• 23 Posts
  • 336 Comments
Joined 3 years ago
cake
Cake day: February 1st, 2023

help-circle



  • edinbruh@feddit.ittoMemes@sopuli.xyz(Laser) Printer go brrrr
    link
    fedilink
    English
    arrow-up
    59
    ·
    15 days ago

    Laser printers are the best. You sacrifice the quality of dense pictures, but gain incomparable speed and reliability. It’s especially worth it if you print less often, because the ink dries up if you don’t print every once in a while and you end up buying new ink even though the cartridge is full, but the toner just sits there indefinitely.




  • “Ternary operator” means “operator that takes three things”, like unary and binary operators take one and two things.

    In C there is an operator for conditional expressions (an ‘if’ that you can put inside expressions) and it looks like this condition ? trueBranch : falseBranch. It takes three expressions, so it’s a ternary operator.

    Except it’s the only ternary operator in C (and most languages, if they have one at all), so instead of calling it something like “conditional operator”, they just call it “the ternary operator”




  • One of my university professors wanted us to program using DrJava, so of course Java 8 it is.

    Why did he want to use that? Because it was similar DrRacket, which he made us use in the previous term to program Scheme (which is just lisp for teachers). Of course that was just us being all modern and such, he himself used DrScheme, the deprecated precursor of DrRacket.

    This guy is so old that my high school Systems teacher had him as her university professor.

    He has a fancy current gen MacBook Pro that he uses for his stuff. Then when it’s lesson time he whips out a windows 95 netbook and a daisy chain of adapters from VGA to thunderbolt.