9
Zer0day
4y

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

Comments
  • 3
    Buffered Readers/Writers in Java
  • 7
    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.
  • 1
    @Fast-Nop seems many people struggle with it, i know a few, too. Dunno how they got their bachlors tbh.
  • -1
    @Fast-Nop did you read that I give a fuck?
  • 0
    @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.
  • 0
    Js 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
  • 0
    @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.
  • 1
    @Fast-Nop Yup, still don’t give a fuck.
  • 2
    Wordpress.

    Whenever I hear people list the pros and cons of Wordpress I just zone out completely.
  • 5
    CSS preprocessors. I've dabbled in Sass, but i just don't see the point. Just seems unnecessary and bloated
  • 0
    @10Dev I like SCSS but I would agree. It's for pretty specific use-cases.
  • 1
    @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.
  • 0
    @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.
  • 0
    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.
  • 0
    Html/CSS, it's full of weird "tricks" to make something, super annoying, fuck it with hot sand.
  • 0
    @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.
  • 1
    @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.
Add Comment