• 0 Posts
  • 22 Comments
Joined 1 year ago
cake
Cake day: July 12th, 2023

help-circle





  • atyaz@reddthat.comtoProgrammer Humor@lemmy.mlAverage TS developer
    link
    fedilink
    arrow-up
    4
    arrow-down
    14
    ·
    8 months ago

    My comment was obviously devoid of any nuance, I am on programmer humor after all. I actually do use typescript, but I think fixing issues in application code that isn’t used by other code is a waste of time. I also think there are lots of advantages of a very dynamic language, like usable REPLs and much easier debugging. We can take these advantages way further by embracing the dynamic nature of javascript, like how lisps do it for example. But instead, everyone is happy going down the route of turning it into another c# (nothing against c# but we don’t need all languages to be c# and java).




  • atyaz@reddthat.comtoMildly Infuriating@lemmy.worldAn £8 sandwich in Starbucks
    link
    fedilink
    English
    arrow-up
    10
    arrow-down
    4
    ·
    10 months ago

    I get the sentiment, but most places don’t have even halfway decent coffee shops. Everyone gives starbucks shit (rightfully so), but the fact is if you walk into a random cafe in America, it will most likely be inferior to starbucks. The level of quality in American coffee is just abysmal. And if you’re traveling, you won’t know if the cafe you take a chance on is a hidden gem (spoiler, it never is). I was in Austin one time and I found this hipster place that had great reviews on google. The interior was really nice, nice place to work, spacious, etc. The coffee tasted like dog water. It wasn’t mediocre, it was trash. I’m sure Austin has great cafes, but unless you live there how will you know? Starbucks is a consistent mediocre coffee.





  • Always merge when you’re not sure. Rebasing rewrites your commit history, and merging with the squash flag discards history. In either case, you will not have a real log of what happened during development.

    Why do you want that? Because it allows you to go back in time and search. For example, you could be looking for the exact commit that created a specific issue using git bisect. Rebasing all the commits in a feature branch makes it impossible to be sure they will even work, since they represent snapshots that never existed.

    I’ll never understand why people suggest you should default to rebasing. When prompted about why, it’s usually some story about how it went wrong and it was just easier to do it the wrong way.

    I’m not saying never squash or rebase. It depends on the situation but if you had to pick a default, it should be to simply merge.