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

help-circle

  • More or less the same but the user gets passed as a method parameter each time. Validators would be in my opinion a long function inside the service also with named variables like this because it’s just easy to read and there are no surprises. I’d probably refactor it at around 5 conditions or 30 lines of validation logic.

    I recommend trying out using the constructor in services for tools such as a database and methods for data such as user. It will be very easy to use everywhere and for many users and whatever

    const passwordIsValid = ...
    if (!passwordIsValid){
      return whatever
    }
    


  • I always thought of the “how” being better explained by the code itself where you can see string.replace(" ", "\ ") as the actual fix while the message says the “why”.

    I would still have “Fix a bug where strings containing whitespace break CSVExporter” as my go to message.

    I guess our viewpoints are different based whether we want the commit messages to represent tasks or changes. They both have their uses of course. Looking at changes to a file to know what people have done to it is better with a “changes” type message but looking at the history to check “did we actually complete this or was it just marked as completed in the issue tracker?” is better with a task based message.

    Task management where every issue is put on a ticket and tracked would my type of messages obsolete but at my current company theyre very useful.







  • I bought a used desktop with 4 SATA ports. Has i5 7th gen and currently 5 TB and an 500GB SSD and has max ram of 64GB. I guess the HDD are not included in the price?

    I’m not sure what your software requirements are but if you go the DIY route a desktop works. I made the BIOS auto turn on on power restored and have services start on startup so it gives the server feeling.

    Bonus is that you can use it as a gaming server and upgrade the components easily for a while depending on the motherboard.



  • Out of all the additions to punctuation I’ve seen this is the one I find myself needing most often. Interrobangs are easily written as “?!” and even most other ones can be quick fixed with storytelling like “said lovingly”, “said with authority” and whatnot.

    But “Is that the best, or is it just what we have?” is an absolutely horrible thing to write punctuation for when you mean it as two connected questions like “Is that the best? Or is it just what we have?”

    It should obviously be replaced with a question comma. There are so many cases where you also have the question in the middle of the sentence such as “Is that okay (question comma) because I don’t think so…”







  • A lot of Europe did so and for this exact purpose. Immigrants are net contributors of tax money and help a lot with demographics. Now however European countries have a sizable portion of their countries as immigrants and it turns out a lot of people feel like their culture is getting lost.

    Add that up with corruption is more out in the open, austerity after the 2008 financial crisis generally failed as a policy and people are very prone to believe “Immigrants are to blame” and vote for right wing parties since they run on an anti-establishment platform.

    The left generally believes that we need more immigrants and more social programs and so on but there has been a massive crusade on tax rates which hinders the governments ability to pay for them.

    This is all coming together now and the far right narrative is being given a chance in Europe with their anti-immigration stance.

    In my opinion this is basically the centre-right trying to get votes by cutting taxes, end up taking on massive debt or gutting quality of life social programs so the only way forward is to fuck over minorities and making the most vulnerable people suffer for the greater good. But tax the well-off, rich, wealth, land, capital gains, profits? Nooooo, can’t do that because they fund the political parties. 🙃