• 0 Posts
  • 12 Comments
Joined 1 year 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 :-)



  • Polling has rules to follow to became valid in France. Their are laws that make sure the poll is fair and manipulations can’t apply, in the way questions are asked (neutral tone, full range of answer possible, etc) and where and to who, the minimal amount to have, the medium to use to receive the vote, etc…

    If you do that, you are what i call here a professional neutral poller.

    In this case, it’s not the case. How i know? Well, it’s an internet poll! So no way to really check the reality of people behind (nationality, age, etc).

    I put the officia text informing us than Internet poll can’t be used as real poll because you don’t have a representative sample of the population and result can be manipulated.


    Les enquêtes sur internet

    La commission a été saisie du problème des simulations de votes effectuées par certains journaux sur des panels d’internautes.

    Ce type d’enquête n’est pas mené auprès d’échantillons représentatifs de la population. Ils ne constituent donc pas des sondages au sens de la loi du 19 juillet 1977.

    Ces enquêtes doivent donc être accompagnées de précautions de présentation, appelant l’attention les lecteurs sur la prudence nécessaire à leur interprétation.




  • 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.lutoWorld News@lemmy.mlSweden officially joins NATO
    link
    fedilink
    arrow-up
    2
    arrow-down
    3
    ·
    10 months ago

    Why do you expect to be treated like a Human by someone you’ve just insulted in the worse way (in a very uneducated way)?

    If someone called me nazi (knowing my direct family figthed against and some family members die doing it), i would certainly not bother to look at its profile and try to be nice by using the rigth pronoums. You can’t expect being treated nice while shitting dog shit on people face.

    If you act like a garbage bin, assume it.


  • In EU, we know the cost of any wars and the fact creating a new circle of violence doesn’t resolve anything.

    We don’t have one village without a monument commemorating the dead people from the past wars. Everybody have at least a family member who fight or died because of a war… Just go one or two generations in the past (in my case my grandmother lost 2 sisters in WW2, my grandfather was captured and sent in acamp for 2 years and managed to escape and walk back to south of France. My other grandfather family moved to France because of Franco repression in Spain, another cycle of violence…)

    All my ancestors have fought for the land i’m currently on during thousand of years… We have thousand of years of war history behind us… against germany, against the UK, against the whole EU at some point “thanks” to Napoleon, and i could go to the medieval time, or even before when we fighted against Rome… And you know what? I work everyday with Germans, British, Italian people… I didn’t kill them because they are not responsible of their leaders actions and country history…

    You prosecute the responsibles of an attack (in the worse case you sent a little squad to assassinate the leaders if they hide and plan to harm you again) BUT you don’t murder all the civilians around to achieve this result. This is madness and incompetence. And that create a new cycle of violence that your children will have to pay at some point…