• 0 Posts
  • 9 Comments
Joined 11 months ago
cake
Cake day: August 10th, 2023

help-circle
  • Was going to say that.

    @OP:

    One of the main skill a developer must have is being able to troubleshoot properly how their code behave.

    Break your code in small pieces, check all of them with unitary test (formal or not) to validate their behavior then move to the next step. Never test everything in one shot or you will be overwhelmed by side effect bugs whom will distract you from the real root cause.

    Being a programmer is not just coding but also testing and deploying (even locally).

    That won’t avoid you being blocked by a silly mistake for hours, everybody did that at some point in their career, but that will reduce your frustration against yourself when you discover why the bug existed.

    Do a pause, go walk, change the topic and the next time you look at your code, you will spot the obvious bug :-)


  • except if you compare it with windows 11.

    My Win11 was so bad (compared to Win10) than I’ve switched to ArchLinux. I’ve won around 10~20fps without doing anything particular (and also gain some better loading time as the nvme sequential access performance was much much better under linux).




  • Indeed, you can achieve a better result with less verbose naming convention. And choose better variable name to make it obvious than 0 Hp is death. While i don’t like having too verbose variable name (as it impacts the readability and quick understanding of the function), i’m not against that for the function name… without going too far of course!

    Best is too have proper datamodeling of the object manipulated on top of some classic basic comments. Good interface contract is also a minimum. Best is to have full datamodeling of all the services, objects, in and out interactions between them, etc.

    Documentation is a mandatory piece of the code delivery (with tests being the other important part) far too much forgotten if you don’t enforce it on your teams.





  • Enoril@jlai.lutoLinux@lemmy.mlLinux Boomers
    link
    fedilink
    arrow-up
    32
    arrow-down
    1
    ·
    6 months ago

    Totally useless “article”. You learn nothing, you have to navigate between poor writing with high usage of explectives. It’s like reading a 11 years-old rebel child blog.

    tdrl: he use Arch linux, boomers…