Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "xor"
-
It happened! It finally happened.
I got to use the XOR operator today, for the first time in my 10 years of development.
Now I feel complete. I am senior developer now!9 -
While the world is busy changing their WhatsApp status, Facebook status, Instagram status...
I'm here, sitting before my laptop, looking at my build status...4 -
I HATE it when I give my phone to my friends for like 2 mins and they clear my notifications and recent apps while giving back!
Why bro?12 -
A brilliant article that talks on the state of internet
The Bullshit Web - https://pxlnv.com/blog/...
Tldr: as internet speed increased, page loading time did not decrease because the extra bandwidth is being stuffed with unnecessary big scripts and autoplaying videos.
AMP is nothing more than a business tactic by Google24 -
Over heard my coworkers talk about my open source project: "ya that's the best there is"
I am just so happy 😊😊😊4 -
The most embarrassing moment is when you look at an answer in StackOverflow and think "Which stupid wrote this answer?" and look at the name only to realize that it was YOU!!!1
-
This happened sometime back..
A guy came to our university with a social network that he created. It was for students and professors to interact, to form study groups and earn points as they mark done topic as "studied". He made a deal with our university, so everyone was forced to sign up for this.
While he was giving a demo of the website, me and my friend started ranting.
"This website is shit. Why are we forced to use this?"
"This UI looks just like LinkedIn"
"This top bar is right out of bootstrap"
"I have seen that graph in one of the libraries. He didn't even change the defaults."
Another friend who was sitting besides us was hearing all this.
"I don't understand a word you guys are talking. It is too high level for me"
We replied, "Don't worry. We will talk in low level. 00101110010101..."4 -
Schools in India be like - "We teach CS from 3rd grade!"
Me: "Name a few programing languages"
3rd grade student: "Basic, cobol, pascal..."
Me: (thinking) "Am I in stone age...?"6 -
This might sound trivial to most of you but recently I had my *mind blown* with a simple revelation.
When you use a ! as in "not equal to", you're actually performing a bitwise XOR to flip the bits.4 -
I learned how to solve some problems using XOR.
This might be like when I learned to love regex.
*loud laugh reminiscent of Vincent Price in the Thriller music video*
What am I becoming?13 -
So I finished uni three weeks ago. Interview for a my first junior web developer position a week ago.
Received news yesterday that I got the job. It’s been a good couple weeks I’d say.3 -
So I just had this job interview with a "startup" (side note: who the fuck still calls limping companies "startups" in 2024? That is sooooo 2010s).
There was this tattooed and very pale girl (you just know the vibe), the mandatory Norse bearded tall guy and the balding, "I'm-in-my-fifties-but-I-am-not-a-square, maaan" sleasy-looking white guy in a button up shirt but no suit jacket. The whole stereotypes gang came looking for their missing nerdy Indian.
The sleasy bloke goes on and on on a looong tirade on how they're "a tech innovation academy", how they "move fast and break things" and they "run smoking hot", so that "long nights are to be expected".
So, they usual red-flagging shit.
Then they all went on a "but we're not like all those companies that look exactly like us" word salad about "sustainability and a healthy work life balance", with their "highest value" being "the utmost respect at all times". I'm nodding my head at the meaningless splurge until they fart out the sentence "for example, cussing while talking with colleagues is a fireable offence".
If some hustling enterprise rather prefers a posh working environment, one can adapt to such circumstances. Provided, of course, that said enterprise adheres to the administrative coherence expected from a culturally refined institution. Mostly by compliance, from the leadership, to a rigidly predictable working schedule.
Now, if the bloody curs want coder dogs that work assfucking hours with a shit eating grin, they better swallow our fucking sailor mouths. Fuck, I've done twenty hour shifts getting my ass kicked in dark startup fisting/rush rooms. If unable to yell at any blabbering cocksucker to go stick his fucking opinions up the bitch who crapped him, then I ain't gonna bloody be there.
TL;DR they can either have a "utmost respect" working environment XOR a "fast and hot" daily hustle.
After they crapped out that oxymoron I could barely hold myself to avoid saying "sorry, I do not partake in any of the psychedelics you must be on".
On to the next interviews!9 -
Was presenting an idea today for an IoT Challenge event. This was the first question by the judge:
"What will you do if internet isn't there?"12 -
!rant XOR !rant
I have been using devrant for a while now and have finally decided to create an account. That is all I have to say really. I rarely have anything to rant so instead I will just be ++ away.
P.S @linuxxx you are awesome and I love reading your rants.16 -
I would like to add a new word to the devrant glossary, next to !rant
Recursive rant - rant about another rant
Any one interested in building a devrant glossary with me? Comment the words you like to add 😅20 -
Can we please eliminate React?
I was interviewing lately and the lady asked if I knew react, I said no and I don't want to. She then asked what the hell I use for front end... As if react is the only thing you can use... Ehm hello we still have vanilla JS and jQuery in the house. Which are better, faster and easier to use for like +90% of all Web projects out there...25 -
I like to use programmer logic in everyday conversations, especially with not programmers, like
They: would you like coffee or cake?
Me: yes
The real question is "would you like coffee xor cake?"4 -
I just had a programming test.
I'm such a fucking stupid retard.
What I should've written:
static bool NotAnd(bool a, bool b) => !(a && b);
What I did:
static bool NotAnd(bool a, bool b) => a != b;
So instead of !AND, I wrote a fucking XOR. I got everything else right but not the simplest of all.
Great birthday so far.4 -
It hurts if you see this on Google Analytics for a Windows 10 UWP app!!
Google, I know you hate MS. Why do you have to show it on me??!!😢😢4 -
I'm not a web dev but I am pretty sure it is not so easy!
TNW just lost it's respect from me for this click bait!3 -
So i I got confused on how xor works and fucked up the whole interview
That is after writing all code correctly
I wrote the truth table wrong
I am doing this for 7 years now how can I make this mistake ☠️ fml3 -
I'm about to get a burnout I suppose.
I just can't handle the amount of things we need to master in very near dead lines anymore. It's too much.
I've spend about 3 years with this year now. I am thinking of dropping it, because my grades only get worse, but on the other hand I had my dream of attending an university plus all the years that I've kind of lost here...
I can feel how the veins around my brain are full with pressure.
BTW. I'm thinking of dropping it and beginning an apprenticeship as a developer. But before that maybe an internship in that company xor taking one year free to fly to China and to the US to get my brain free.9 -
An OSS library made me learn a new language and I am so happy it did!
I came across a well implemented System Verilog parser written in Rust. It was so good to see someone putting in the effort to write that library, I wanted to contribute to it. I had zero knowledge in Rust but I thought, what the heck, let me learn it.
And man it was a steep learning curve. After a 2 weeks or so, now I have very basic understanding of the language. What better way to learn something than just diving into an actual project?
So, today I raised an issue to the developer for a possible improvement to the library. I hope he accepts it -
I'm delirious so here's your daily dose of fuck:
```fasm
; --- * --- * ---
; 64-bit byte-by-byte mash
macro clamp_u8 {
mov cl,$08;
mov rdx,rax;
rept 8 \{
rol rdx,cl;
xor al,dl;
\};
};
; --- * --- * ---
; give 8-bit random seed
macro prng_u8 {
rdtsc;
shl rdx,32;
or rax,rdx;
clamp_u8;
};
; --- * --- * ---
; roll dice
d20: prng_u8;
; x%20, according to gcc ;>
mov edi,eax;
mov eax,-51;
mul dil;
shr ax,12;
lea eax,[rax+rax*4];
lea edx,[0+rax*4];
mov eax,edi;
sub eax,edx;
; discard high and give
and rax,$FF;
ret;
```
I guess `d20` could be inlined too but I thought it'd be too much.
Is it faster than straight C? Probably not. But it's way lighter, so it loads faster. Below five hundred bytes mother fucker.
Now if you'll excuse me, I'll go sit in the darkness repeteadly typing roll 1d20 on the terminal. For reasons.9 -
Junior dev here. Finishing a boot camp, actively going through a few job application processes.
One of the companies has given me a tech assignment (for a Graduate Junior position, mind you) that was titled Full Stack Mid Level Challenge. It took me a week to build an app they asked and do analitycs and refactoring of the second part of the task (I only had late evenings free to dedicate to that), it was my first time doing back-end in Node (my boot camp teaches PHP) so I basically learned to do it while doing this challenge.
They asked testing and clean architecture.
I submitted the assignment (I thought I would die while doing it, exhausted, I think I was brain dead for a short perio of time, but I submitted it on time).
They got back to me and we had already have a tech interview with the Leads that had live coding at the end. Don't have feedback yet, really won't be surprised for whatever comes, it was literarly my first interview, treating it like a valuable learning experience.
But. This rant is not about this. Thsi is just to put you in my mood.
This is the !rant:
My classmate from the bootcamp is probably already hired, or will be one of these days. As a tech challenge she was asked to do FizzBuzz kata. I repeat, FizzBuzz bloody kata!
Now, I am very happy for this person, the situation is complicated and this job is extremely needed.
But, please, explain to me, HOW??? How is it possible that selection criterias vary that much?
End of rant. Thank you very much.4 -
For the first time in 20 years I used and xor operator.
I wrote in line of code instead of two.
How uses the xor operator?7 -
Quickly coming to the terms with the fact that software development inside companies is just the perpetual motion of putting out fires as quickly as possible just so customers can still be ignorant cunts.
-
I'm not sure what to answer...
Found on SlimSocial for Facebook - Windows 10 Mobile (latest update😜) -
by simply making the bias random on the second input for a two bit binary input during activation calculation, it's possible to train a neural net to calculate the XOR function in one layer.
I know for a fact. I just did it.16 -
Why the fuck are there so many utterly useless programming blogs? I have to implement DES in C++ for our college project. After coding most of it step by step, I decided to swallow my pride and check for an implementation online to save time because I was confused in the XOR part. Now most programming blogs had the same code copy pasted. To top that, NAME YOUR FUCKING VARIABLES PROPERLY YOU MORONS! I decided I'm better off resolving my confusions the hard way.3
-
Having a fantastically shitty day and it’s currently only 08:05.
Last night spent the entire evening moving into my flat and building the colossal amount of Ikea furniture, ended up going sleep around 3am.
Because of my fabulous two and a half hour work commute to work everyday I have to leave my house at 6am. Three hours sleep? Excellent start.
Leave my house at 6am good start, manage to get on my first bus no problem, bus driver being the horrendous cunt he is slams on his brakes because going round a sharp corner at 40 mph when the speed limit is 20mph is a fucking brilliant idea you cunt, consequently it sends my protein shake all over me, my clothes and my laptop. Cheers cunt.
So now it’s half 7 and I’m at the train station & I realise I’ve left my wallet at home. You’ve. Got. To. Be. Fucking. Me.
8 o clock roles over train inductor comes round asking for tickets and the power hungry scrotum drops a £60 fine on me. Cheers. You. Cunt.
So now I’m wondering whether I should just save myself the hassle get off the train at the next stop and jump in front of an incoming train.
Today can suck a fat meaty fiery cock from hell. -
In one session 36 hours. I lost someone close to me and I kinda didn't leave my office for any form of social interaction for three weeks.
-
I'm as nervous as a guy who just proposed.
I had been contributing to a vs code extension for more than 6 months now. And my contributions were good. Recently I put forth few plans for the development of the extension to the repo owner and he accepted it.
One of the ideas is to ask the owner of another similar repo to merge with us and help us make the best there is.
I had just sent a detailed mail to him and waiting for a reply. Hope he says yes 🙈 -
Just wasted 2 hours wondering why my simple bit of code didn't pass the test cases. Turns out what I thought was an add was actually supposed to be an xor. It was a hacker rank challenge. So much for trying to improve myself.
-
Approaching the end of my first week as a junior web dev.
Spent the week writing automatic web suite tasks for an entire e-commerce platform.
Arguable the best way I could have been introduced to the code base 10/10 would recommend. -
There are few things I hate more in software development than writing mappings from shitty SOAP apis to JSON.2
-
Lead developer likes premature optimization. Always forces me to remove a if here and there because "bad for the performance".
Now her optimization caused a base component to fail, ppl will have to spend the night debugging.
Best of all, it's my last day ;) -
I wish Outlook had autocomplete...
Isn't it time even Word and other apps support basic autocomplete..?11 -
I'm binge watching Person of Interest right now and I would like to know the community feels about it.
I feel that it is still futuristic and we aren't there yet. What do you think?1 -
If I have all nighters with my laptop, does it make my girlfriend?
Inspired by:https://devrant.io/rants/906981/...1 -
Off all the websites out there, I think GitHub should know the importance of having a dark theme for the site!
It's 1 am and the night is still fresh..4 -
Came to the realisation that I wasted three years in uni, today my final grades were released - for those who give a shit I got a first
I was happy till I realised I got my dev position without them even knowing my final grade.3 -
Not before long, I guess we may have to put up with bots during code review...😂
Meet the Bots That Review and Write Snippets of Facebook's Code
https://spectrum.ieee.org/tech-talk... -
My team has been using CVS for ages. I'm new to the team and can't imagine how my colleagues are working in this environment. I am thinking of proposing to change to git.
I found this amazing video of Linus explaining to Google engineers why git is better and I thought I'll show it to them:
https://youtu.be/4XpnKHJAok8
What do you guys say about my idea? Do you have anything that can help me?17 -
research 10.09.2024
I successfully wrote a model verifier for xor. So now I know it is in fact working, and the thing is doing what was previously deemed impossible, calculating xor on a single hidden layer.
Also made it generalized, so I can verify it for any type of binary function.
The next step would be to see if I can either train for combinations of logical operators (or+xor, and+not, or+not, xor+and+..., etc) or chain the verifiers.
If I can it means I can train models that perform combinations of logical operations with only one hidden layer.
Also wrote a version that can sum a binary vector every time but I still have
to write a verification table for that.
If chaining verifiers or training a model to perform compound functions of multiple operations is possible, I want to see about writing models that can do neighborhood max pooling themselves in the hidden layer, or other nontrivial operations.
Lastly I need to adapt the algorithm to work with values other than binary, so that means divorcing the clamp function from the entire system. In fact I want to turn the clamp and activation into a type of bias, so a network
that can learn to do binary operations can also automatically learn to do non-binary functions as well.10 -
Which of the two jobs is better for a frontend Dev:
1. React project, stressful, bad communication, depending on bad internal libraries
2. WordPress theme building, higher paid, promising startup with stock options8 -
Yesterday I spent 7 hours on a silly SSL certificate error. The exact same webpage gave me "certificate revoked" error when viewed in one browser/device but it displayed fine on others!
But everything is back to normal today! As if nothing happened!
I'm not a web dev, so I have no idea why this happened. I'm just pissed that I wasted 7 hours on a thing that wasn't my fault... -
I think professors should relate computational processes to mathematical ones more often. This helped me out at the beginning a lot when learning CS through the internet during high school.
I remember that a lot of the computational logic made sense to me because of math.
e.g. functions, comparators, variables, for, and, xor, sets, trees, sorting, searching etc.
A lot of these topics are hard to teach for beginning computer scientists. But I think if professors made the relationship with math from the beginning it would be easier for the students
I dont know if teachers already do this but the first time I had a professor relate math to code was while taking data structures in my second year of college1 -
Found myself in a career predicament.
I’m currently working at a tech startup and it really does have the potential to really take off.
But recently the CEO has taken compressed working and remote working off the table for the most part which at this stage in my life is quite important.
Today I was offered a position at a different company with 4/5 days a week with a 10% pay increase.
Now the time has come to make a decision and I really don’t know what to do because I’m pretty sure the worst thing for me to do is make the wrong choice and end up kicking myself in a years time.
Was wondering if any of y’all have had to make a similar choice in your career7 -
Do you people anything about a processor with a firewall?
Because I just saw an episode of Arrow where they were trying to break into such a firewall!1 -
VB.Net
The biggest problem about vb.net is that people don't consider it as a language anymore. With more people interested in c#, all examples and tutorials are available only in c#. I can't even copy a simple example as it is. I have to convert it on my own to vb.net or use any one of the online converters.5 -
I came across a website today when I was searching for some banking related stuff on Google and this is what happened...
Types search term in Google
Gets the results
Opens a result in a new tab
Finishes reading it and clicks back
Tab refreshes to go the website's home page (What!?)
Clicks back again
Refreshes to the same result page (seriously?)
Back
Home page
Back
Result
Back
.
.
.
.
Back
Google home page (wtf?)
Back
Website home page (again?)
Back
Result page (NO! I'M DONE)
Closes the tab
What sort of wicked loop did I get myself into? Did the website devs ever think how frustrated it will be if they ever open their own page?
And what a clever technique to open Google home page for people who keep on pressing the back button! 👏👏 /s1 -
I get that this was a small team when they developed this and there was no coding guidelines...
But, using spaces and tabs in the same file is just unacceptable!!14 -
I’m done with people who claim they don’t have time to do something.
Constantly hearing people complain they don’t have time to do things, oh fuck off you cunt. You work a nine to five, you get home at half five and you sit at home doing fuck all while you complain that things aren’t going your way.
Doesn’t even have to be about developing, lost count with the amount of people who claim they don’t have time to go the gym. Dickhead, you have a 24 hour gym three minutes away from your house. You could go after work, instead you’ll sit on your ass, eat a load shit and then complain you’ve put on weight.
If you’re doing fuck all to make things happen then you lose the right to complain about your circumstances. Stop blaming other people for your fuck ups because you ‘don’t have time’ to get shit done you absolutely holocaust of a human being.
While I’m at, fuck people who think it’s my soul mission in life to fix their shit, believe it or not I don’t give two flying fucks about your circumstances if you’re doing fuck all to help yourself.
Do me a favour and kindly drink some bleach.13 -
For everyone who fought valiantly in the Battle of VS Code Icon, here are the results:
https://code.visualstudio.com/blogs...2 -
A friend who just got into ML recently.
"Dude, did you know how amazing ML is??"
"I'm training a computer to give out outputs, basic AI dude"
"Dude logistic regression is the shizz"
"You heard about backprop mate?"
"ANN is the next big thing. I'm currently working on one of the biggest AI project now"
So I casually ask him whether he completely his project or not. He proudly showed me a 9 lined code he copy pasted from Google (search for neural network in 9 lines) and said, "Dude I trained my laptop with some advanced AI techniques to give out the perfect XOR outputs"
He rounded off values like 0.99 to 1 and 0.02 to 0 to make it look perfect.
#facepalm1 -
Is it normal that my lead developer insists that if(x){return A} else {return B} must be changed to if (x){return A} return B, and a variable must be renamed from requestFn to requestFunc because the former is confusing?12
-
using System;
using System.Text;
using System.Text.Encodings;
//Bitwise XOR operator is represented by ^. It performs bitwise XOR operation on the corresponding bits of two operands. If the corresponding bits are same, the result is 0. If the corresponding bits are different, the result is 1.
//If the operands are of type bool, the bitwise XOR operation is equivalent to logical XOR operation between them.
using System.Text.Unicode;
using System.Windows;
using System.IO;
namespace Encryption2plzWOrk
{
class Program
{
static void Main(string[] args)
{
//random is basically a second sepret key for RSA exhanges I know there probaley is a better way to do this please tell me in github comments.//
Random r = new Random();
int random = r.Next(2000000,500000000);
int privatekey = 0;
int publickey = 0;
string privateKeyString = Console.ReadLine();
byte[] bytes3 = Encoding.ASCII.GetBytes(privateKeyString);
foreach(byte b in bytes3)
{
privatekey = b + privatekey;
}
int permutations = random/ 10000;
if(privatekey < 256)
{
while(permutations > 0)
{
foreach (byte b in bytes3)
{
privatekey = privatekey + (privatekey ^ permutations)*20;
}
}
}
publickey = privatekey*random;
Console.WriteLine("your public key is {0}",publickey);
}
}
}
would this be considerd ok HOBBYIST encryption and if not how would I do a slow improvment I used bitwise to edit bits so thats a check :D12 -
My lead developer requires object sorting, so {url, extraParams = { id = '1', hobby = 'code' }} HAVE TO be {extraParams = {hobby = 'code', id = '1'}, url}. Is that normal?4
-
-Recently started a new job so I’m new to the infrastructure-
Spent the vast majority of the day trying to SSH into one of my company servers to sort some random bug out on the website & the connection kept being rejected despite the day before it working when passing the .pem key into the SSH along with the ip & my username, nothing new there.
Anyway, everyone’s mad busy so I don’t wanna bother anyone to ask why, so I check confluence, no documentation for SSHING into our scheduler or the code the server I need to access. Never-mind.
Spend another couple hours trying debug it on my own, no luck. Never-mind.
Finally seize my opportunity and ask for help; ‘Oh the server IP changes daily so you need to run a task through our scheduler that you need to SSH into to return the list of IPS and that dynamically changes so that’s how you get the IP’
Oh ok. Why is there no documentation for that again? I mean. Thats generally some pretty important information you’d pass onto your starters.
At least I can say I won’t be making that same mistake again.5 -
Jest/enzym unit testing: My lead developer says using shallowWithStore instead of shallow on one incidence would introduce CPU overhead thus I MUST stop whatever I'm doing and fix the pull request. Is that normal?
-
Does it say something about a company if many of the devs in the team are employee-turned-consultants kept working in the same role?6
-
Which should I choose:
Company A: much better pay and benefits, team seems nice, Glassdoor citing quite bad reviews about CEO and upper management.
Company B: current company. uninteresting field, team in distance, tech lead likes micro management and quite annoying in general. In middle of a project.5 -
My lead developer insists that an analytics value of "requestURL" should be window.document.location(which is an object) because in the analytics API doc it says this field "should be location of the current page, most probably window.document.location". Is she right?
-
Now the vanilla App.xaml.vb looks sooo weird after using Template10 Bootstrapper for long time! But nice job Template10! If only I can tag Jerry Nixon here...