• 2 Posts
  • 92 Comments
Joined 1 year ago
cake
Cake day: June 5th, 2023

help-circle




  • Note that this isn’t specific to Go. Reading from stream-like data, be it TCP connections, files or whatever always comes with the risk that not all data is present in the local buffer yet. The vast majority of read operations returns the number of bytes that could be read and you should call them in a loop. Same of write operations actually, if you’re writing to a stream-like object as the write buffers may be smaller than what you’re trying to write.




  • Looks exactly like Visual Studio 2022.

    I guess the joke implies that automated (or incorrect manual) conflict resolution causes code that doesn’t compile. But still not git’s fault. They should probably have merged earlier and in rare cases where that wasn’t possible, you have to bite the bullet and fix this stuff.




  • dfyx@lemmy.helios42.detoStar Wars Memes@lemmy.worldJack
    link
    fedilink
    English
    arrow-up
    9
    ·
    1 month ago

    I would assume force users (both Jedi and Sith) would be forbidden by their masters from using anything mind-altering, except maybe in strictly controlled rituals. And for good reason. Can’t have people running around, randomly force-pushing strangers from a 120th floor balcony on Coruscant.









  • The 99 bottles of beer song is (was?) a popular programming exercise to teach beginners about loops. Singing it in real life would be pretty annoying because you would essentially repeat the same two sentences for a couple of minutes. Apparently, the PHP developers were planning to order one beer each, sing the song and get on everyone’s nerves. The C++ dev stopped this by buying all the remaining beer at once.

    The choice of languages is probably OP’s own prejudice. These days I’d say PHP devs are on average older and more experienced than JS and Python devs, just because almost nobody learns PHP as their first language anymore.


  • And I’m pretty sure that the name “hot potato license” and the comment above the license are very strong indicators for this not being the case. The license is meant to mimic a game of hot potato where you get the code for a short moment (one commit) and have to throw it to someone else. Sure, the analogy doesn’t quite work because you can’t decide who has to make the next commit but it would make even less sense if you were able to keep control over the code and add more and more commits. That would defeat the whole point of naming it “hot potato license”.