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

help-circle




  • “Which server do I join?” seems to be a sticking point for a lot of people.

    The “Browse servers” page does say at the top “You can access all content in the lemmyverse from any server, so it doesn’t matter which one you choose”, but on showing this page you immediately scroll that message off the screen. Maybe if you kept that bit visible it would help.

    Also I think comparing it with email servers might be helpful. People already know they can email anyone from any email server, and that signing up to, say, Posteo, doesn’t mean you can only email other Posteo users.









  • letsgo@lemm.eetolinuxmemes@lemmy.worldSecurity
    link
    fedilink
    arrow-up
    0
    ·
    11 months ago

    Sure but if you’re doing rooty stuff all day then sudo you’re sudo not sudo going sudo to sudo type sudo sudo sudo every sudo fucking sudo time sudo you sudo want sudo to sudo do sudo something. And yeah it sudo caches it for sudo a bit but sudo it’s still too sudo much.


  • Yeah it always feels like “negative logic” to me. If it’s not this and not that then don’t do the other… Does my head in. Next time I’m going to use a lookup table “x…f.bf…fb.f…” then mod15 the index. f=Fizz, b=Buzz, x=both. Nice thing about this is that it’s easier to change with the requirements. Want to shift the second fizz right one? No problem “x…f.b.f.fb.f…”. Good luck doing that with the standard approach. Add Gronk which collides with Fizz, Buzz or both at various times? Also no problem - just extend and modify the LUT accordingly and change the mod.

    I can already hear people asking why x is at the start. Arrays are indexed from 0. FizzBuzz starts at 1. 15 mod 15 is zero. Loop N from 1-100, switch on lookup[N%15], case ‘f’ print Fizz, case ‘g’ print Gronk, case ‘p’ print FizzGronk and so on. The only “nice” original feature you lose is when both %3 and %5 fire at the same time and it prints FizzBuzz without any extra code.


  • The previous candidate to me at a job a few years ago left the room in tears after not being able to write Fizzbuzz. On a laptop with Visual Studio installed, on their own in a an empty room with nobody looking over their shoulders. The same company said they’d had so many candidate, including university graduates, who simply couldn’t code, that they were almost giving up on it.