• 0 Posts
  • 14 Comments
Joined 1 year ago
cake
Cake day: August 10th, 2023

help-circle

  • First time war?

    It has always been like that and it’s a reason a war should be avoided when you don’t have the power to maintain your military and economic force…

    And it’s exactly why main leaders of the worlds warned russia months before the invasion until the first day of the invasion: “Are you sure? You should not move so many troops near ukraine border for your ’exercice’ Because you have more too loose as a super-power country”

    He didn’t listen so now pay back!







  • Enoril@jlai.lutoWorld News@lemmy.worldOut for a bit, be back soon-ish...
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    4 months ago

    I don’t think it’s the right place for this kind of message (or you just open a pandora box of totally not related world news from everybody for everything). .

    But good luck for your recovery! You should have watched Die Hard and learnt from John McClane than going barefoot around glass and metal is not a good idea…



  • 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 :-)


  • 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.