• 0 Posts
  • 18 Comments
Joined 1 year ago
cake
Cake day: June 2nd, 2023

help-circle





  • Well yeah, that was my point.

    Americans for some reason love this 'low low price of x$ (+tax +tip +service charge +fuck you charge) thing. Here in Switzerland, it’s all in the price. Menu says 40 bucks, you pay 40 bucks. Tips are very voluntary and usually just a “round up” -> total is 57 - let’s make it 60.

    My wife works in a restaurant and gets around 3.7k a month - the tips she gets add up to around 300-700, depending on the month. In the store she works, tips get handled as a pool where everyone gets their monthly share depending on hours worked (serving staff and kitchen) - so total tips x person hours / total hours by everyone.

    It’s still a low wage (I make around than double her wage, but then again I’m an electrical engineer), but it is very livable - I lived on a lower wage alone comfortably when I was studying and only working 50%





  • uberrice@feddit.detoProgrammer Humor@programming.devAlways write comments
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    edit-2
    11 months ago

    If you think a block of code needs a comment, turn it into a method and give it a proper name instead.

    Really depends. Yes, if someone doesn’t get what’s wrong with this statement, they should. But you shouldn’t wrap something in a method all the time just because. Sure, maybe you can make it an inline method, but usually, a method call takes time, and while it’s not a lot of time, in constrained or complex system that can accumulate. A lot. Sure, the compiler might optimize stuff away, but don’t just go blindly trusting your compiler.

    Sure, a method call for something that gets called once a second is not a problem. But when you suddenly have thousands and thousands of method calls when say, you click a button, which calls method x which calls method x1 which calls y1 and y2 which call z1-10 and so on, then the method calls can suddenly turn into a problem.

    Maybe not on a fast, modern device, but on an older or more constrained device. If your code never runs on there, sure, don’t bother.




  • You can even get 25gbps symmetrical - for the same price. They just charge 333 chf to set up instead of 111 for 10gbps, because the optics are more expensive.

    I love their policy. ‘providing you with 25gbps or 10gbps or 1gbps costs us the same. So we’ll provide the max that we can, as long as you pay for the optics’ - all for a single price. No stupid speed tiering. They also have open peering - my ping is phenomenally low to most things.



  • Meh, the best programmers are probably somewhere in the middle.

    This also depends on what kind of work you’re doing.

    Writing some frontend with lots of Boilerplate? That’s lots of lines.

    Writing efficient code that for example runs on embedded systems? That’s different. My entire master’s thesis code project on an embedded system consisted of around 600 lines of C code, and it did exactly what it should, efficiently.

    A better metric to that effect would be the git activity graph. People that do important changes don’t commit 20 times a day - they push a commit usually once a day tops to once every 2 weeks


  • If you’re looking for a free self hosted server - I have been using the oracle cloud free tier for months - especially their Arm based server, and I’m more than happy.

    However, if you end up going that route have some kind of backup strategy set up, and set it up in a way where you can reproduce the server easily, as they reserve the right to suddenly take it offline.

    I’m using a hetzner storage box for backup - which I also use for my personal automated backup with borg.