• 1 Post
  • 47 Comments
Joined 2 years ago
cake
Cake day: June 11th, 2023

help-circle
rss
  • You should group your source files by domain, then by feature, e.g. ‘src/foo/model’ and ‘src/foo/exports’.

    Is serialization/deserialization the only aim of these structures ? If not, that code should definitely be separated, so as to evolve separately from the structure itself.

    If it is the only aim, the code should also be separated, so you can change your serialization type (e.g. from JSON to XML) without impacting the model.

    Also you might need another export for compatibility with another software, and you don’t want your model file to grow with the 10 formats you support.



  • Funny thing is, the way this is phrased seems to me the person complaining is part of the issue.

    The complete and absolute refusal that something is someone good may lie in the whole of the Trump administration is part of the issue. The extreme polarisation of dems vs reps is part of the issue, and the exact reason some voted trump, because, well, at least he’s red.

    Not understanding that someone may recognize this, and speaking out about anyone who does, leads to more polarisation.

    And what happens with enough division ? What is to be gained to spew hatred on your fellow countrymen ?

    If you really think your opinion is superior, don’t yell at others, explain and share. Don’t judge hastily.

    In this post I don’t see the proton CEO as a MAGA supporter, I see someone who recognizes something good in a context that cannot be changed. (Like it or not, Trump won and will be president legally for the next 4 years).




  • J’ai eu une énorme phase dans la vie où j’ai voulu lire tout ce qu’on le recommandait, et j’ai lu le seigneur des anneaux, dune, et une bonne partie de game of thrones.

    Je déteste le style de Georges R. R. Martin ( si vous l’aimez tant mieux pour vous, mais c’est vraiment pas ma tasse de thé).

    Je trouve que Tolkien mets 300 ans à arriver où que ce soit, et fait des détours qui m’insupportent (je me fous de ce qui arrive au poney, me fais pas un laïus qui est contredit par la suite de l’histoire).

    Mais j’adore Dune (les 2 premiers livres, après c’est plus mitigé).

    Tout ça pour dire: ne t’interdis pas de lire autre chose, tu as maintenant le super pouvoir de dire “mouais, pas mon kiff” et ne pas finir le bouquin.









  • I’ll explain as if your first language is not English.

    Dry means something that has no moisture in it, like sand can be dry or wet.

    Obviously something dry contains no moisture or liquids.

    A Martini is a cocktail, mixed from mostly gin and vermouth. In this context, dry means “little vermouth”, so the taste of the gin is most prevalent.

    So the joke is between the two different meanings of the word, as obviously a dry cocktail makes no sense if you take the first meaning of the word.