Ranter
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
Comments
-
What's difficult about bitwise operations? It's just elementary boolean algebra that doesn't even need a computer - mechanical switches and a light bulb work as well, at least for demonstrating the principle.
-
@Fast-Nop seems many people struggle with it, i know a few, too. Dunno how they got their bachlors tbh.
-
@Zer0day I also read that you don't understand it, and I'm wondering what on earth there even is not to understand in the first place - no matter how few fucks given.
-
kiki349484yJs event loop. If you’re making a simple app and not another frontend framework from scratch and you have problems with event loop, your code is a hacky trash
-
@nitwhiz I mean, pointers and recursion are another matter - but AND/OR/XOR/NOT is some shit that I built up when I was 8 or so, using a battery, switches, and a light bulb.
-
Inxentas7904yWordpress.
Whenever I hear people list the pros and cons of Wordpress I just zone out completely. -
10Dev28544yCSS preprocessors. I've dabbled in Sass, but i just don't see the point. Just seems unnecessary and bloated
-
@unclesam To be fair, hardware guys tend to grasp bitwise easier. At the chip level you have to understand this. If you want to learn it then start playing with microcontrollers. You can even visualize it with leds if you want.
I have a passive aggressive relationship with Functional programming. I use a lot of its concepts, but don't really care about purity. Most of the work I do is using existing non-functional code so a lot of the time it just doesn't fit.
I have a few books on algorithms that I know I should read. Haven't sat down and done it yet. No fucks given. -
@unclesam "A |= B also equals to A = A + B"
No, it doesn't. 3 + 3 = 6 while 3 | 3 = 3.
And no, there isn't more to it, it's just understanding how binary digits work, which is the very basics of computing. There's nothing complex to it. -
MVCC
In theory - yes.
But visualizing the actual processing in my mind, especially regarding transaction levels and the locking models... Plus the parallelism.
Brain goes POOOF. -
Lyniven44544yHtml/CSS, it's full of weird "tricks" to make something, super annoying, fuck it with hot sand.
-
@devnulli What? Unreadable? I deal with that regularly because I have to set/reset/query individual bit pattern masks in registers.
Another great thing is that you can do a whole bunch of parallel operations on boolean variables in just one instruction.
Or you can check whether any flags of an aggregate status variable are set just by comparing it to 0, which is also a fast instruction. -
@devnulli Well unfortunately, posting code isn't possible, but of course a prerequisite is that you have a bunch of logical states that basically mean the same but for different items. I guess that doesn't happen often in business code.
But e.g. if you have let's say a dozen control outputs with activation feedback as inputs, then you don't need a dozen if clauses if you just want to know whether any of the commanded units doesn't have the commanded state.
And let's assume these units are grouped somehow, like area 1/2/3, with a light going on if any of the units in the corresponding area is on, then you don't need a couple of or'ed conditions in an if - using bitwise AND with the appropriate bit mask shows it.
If you add another unit or move a unit from area 1 to 3, all you have to do is changing the global bitmap defines - not dozens of individual if clauses. That prevents bugs and is more readable.
Related Rants
What’s one thing (big or small) you still don’t know or understand in software development and still don’t give a fuck.
Mine: Bitwise operation
rant
dev
question