• 1 Post
  • 41 Comments
Joined 1 year ago
cake
Cake day: June 21st, 2023

help-circle



  • letsgo@lemm.eetoProgrammer Humor@lemmy.mlgot him
    link
    fedilink
    arrow-up
    16
    arrow-down
    1
    ·
    2 months ago

    That’s not a real operator. You’ve put a space in “i–” and removed the space in “-- >”. The statement is “while i-- is greater than zero”. Inventing an unnecessary “goes to” operator just confuses beginners and adds something else to think about while debugging.

    And yes I have seen beginners try to use <-- and --<. Just stop it.



  • letsgo@lemm.eetoProgrammer Humor@programming.devRebase Supremacy
    link
    fedilink
    arrow-up
    21
    arrow-down
    3
    ·
    3 months ago

    Merge gives an accurate view of the history but tends to be “cluttered” with multiple lines and merge commits. Rebase cleans that up and gives you a simple A->B->C view.

    Personally I prefer merge because when I’m tracking down a bug and narrow it down to a specific commit, I get to see what change was made in what context. With rebase commits that change is in there, but it’s out of context and cluttered up with zillions of other changes from the inherent merges and squashes that are included in that commit, making it harder to see what was changed and why. The same cluttered history is still in there but it’s included in the commits instead of existing separately outside the commits.

    I honestly can’t see the point of a rebased A->B->C history because (a) it’s inaccurate and (b) it makes debugging harder. Maybe I’m missing some major benefit? I’m willing to learn.




  • You’d often get the error when there was paper in the printer though. Turns out the cause is the slightly different size between US letter page size and A4 page size. Technically the printer’s correct to complain (for the same reason it’d be correct to complain about an A4 sized print while full of A5), but virtually nobody gives a shit about that difference and so the “PC Load Letter” message just translated to “You have to push that stupid button before I’ll do anything because pedantry.”