• 0 Posts
  • 26 Comments
Joined 1 year ago
cake
Cake day: December 30th, 2024

help-circle

  • Preserving the language is a very important element of it for sure, and language-protection bills weren’t invented by the CAQ.

    Immigrants can learn French in their own country, they’re not entitled to French lessons (except refugees, I guess, who are presumably exempted from French-learning rules anyway). They can always migrate to other parts of Canada if they don’t want to bother with French, nobody forces them to choose Québec.

    I’ve known people living for more than 5 years in Montréal, and they never bothered to learn French. Not that I think they should, but not everyone learns the language as you claim.

    Honestly, I’m not a fan of the CAQ, and I would be a hypocrite to criticize migrants given I was one in the province myself, but I do think that French speakers wanting to keep their language alive in their province makes sense, and it doesn’t happen on its own.






  • The fact is, the dickhead probably didn’t have any of those, otherwise we would’ve known from the article.

    Putting others at risk is a far more serious offence that deserves harsh punishment, but this is not what happened here. Prison is grotesque. Community service, being expelled from school would have given the kid the lesson they deserve.

    If you’d spit in my milk, while I do think that deserves to be handled by the courts, I don’t think it’d be appropriate to put you in prison.









  • Guttural@jlai.lutoProgrammer Humor@programming.devlook at this junk!
    link
    fedilink
    Français
    arrow-up
    9
    ·
    edit-2
    4 months ago

    As soon as I stopped trying to write textbook OOP stuff, this stopped occurring to me. That was years ago.

    I’m not saying I write perfect code, no. But when I read bad stuff I wrote, I can understand it and think of ideas about how to improve it if that becomes necessary.

    On top of writing more functional-style code, the way I achieved this was:

    • Absolutely no inheritance whatsoever. Composition + interfaces work wonders for what I do.
    • Minimal mutable state. This pays dividends when debugging.
    • Ditto for type-system-encoded nullability markers (ie. ? in C#, std::optional in C++…)
    • I avoid writing code just-in-case something happens. If I haven’t run it manually or via unit tests, it goes to the garbage bin (not an absolute, just a guiding principle). There’s a chance that code isn’t even correct to begin with and you’ll have to throw it away should you ever need it.
    • Low indirection. I don’t want to jump through 10 functions to see what something is doing, and nobody else does either.