• 0 Posts
  • 74 Comments
Joined 2 years ago
cake
Cake day: June 21st, 2023

help-circle
  • Well that’s OK. It’s not uncommon for different countries to name bits of land and water differently from everyone else. Take Germany for example. The locals call it Deutschland. The French call it Allemagne. Or there are the Falklands, known by the argybargies as Las Malvinas. If Donny McFart in North Mexico wants to call that bit of water the Freedom Gulf or whatever then good for him! As long as he realises it works both ways.



  • C++:

    int i = 5;
    i ^= printf("The initial value of i is %d\n", i)^
    printf("i=i+1; // this increments i\n")^
    printf("Trigger very obscure FPU bug %c",(int)((float)8.5953287712*(double)8.5953287713-'?'))/10;
    printf("i has now been incremented by 1 : %d\n", i);
    

    Output:

    The initial value of i is 5  
    i=i+1; // this increments i  
    Trigger very obscure FPU bug  
    i has now been incremented by 1 : 6
    

    I didn’t test other values but they’re probably OK.


  • Well don’t write 600 lines of code without hitting compile then! You’re not writing an essay that has to be handed in once.

    The only time I ever “write” more than a few 10s of lines at a time (dev since the 1970s, pro since 1991) is when I’m scaffolding a new application with a code generator, and that usually compiles first time. And source control is revolutionary. Check in stuff that works, then no matter how bad things get you can always just roll back to the last good commit. Unpicking the last few hours without source control is horrible. Been there, done that way too many times.

    And even when you do get 700 errors just look at the first few. The rest are most likely junk caused by the compiler not being able to resynchronise with the remainder of the code.





  • There was a period some years ago where Firefox and Chrome were leapfrogging each other: Firefox would get slow and crap so I’d switch, then Chrome would get slow and crap and I’d switch back to FF, and so on. I’ve been on Chrome for quite a while it seems, until this development with uBO, well for me the internet is unusable without a shitblocker, so that’s the end of Chrome. Thankfully FF is up to the job.



  • letsgo@lemm.eetomovies@lemm.ee[Meme] Which movie was this for you?
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    5
    ·
    3 months ago

    Yeah, but critics always have to say shit films are good and good films are shit; that way we keep thinking they’ve got some amazing insight that’s worth them being paid oodles of cash. If they said good films were good and shit films were shit we’d all be like “no shit Sherlock” and kick them unpaid out of the building.