• 0 Posts
  • 135 Comments
Joined 2 years ago
cake
Cake day: August 19th, 2023

help-circle

  • I would go for “garbage, bad and ok” where bad is acceptable. Most styles are ok, a lot of anti-patterns are bad but still get the job done but sometimes people write pure garbage. I’m very happy that at my job we just have a lot of bad code that’s workable but this one contractor wrote an absolute piece of shit. His code was a convoluted side-effect mess that was “reactive” and at around 3-5x more verbose than the “naive” solution. He made so many decisions that increased complexity and overhead that it become a rigid buggy mess.

    Sometimes people just need to stick to the basics by using a database layer and a service layer on the backend and a API layer and component code on the front.





  • You’re not forced into global forced variables, but they’re the default. Use the local keyword in front of the variable declaration for nicely scoped variable.

    It’s not that cumbersome to do things like

    local date=`date`
    echo "$date"
    

    but in all honesty the syntax sucks ass because it’s not intuitive. If statements suck ass, passing variables has to be done via command line arguments sucks ass, switch statements suck ass, making structured data sucks ass (jq is nice though).

    I agree with you that bash really sucks when you get to anything more than 10 lines and at that point I’d take literally prefer Dreamberd.


  • Disregarding the case where you are a Marmite supremacist I’ll say why.

    Vegemite and marmite can be thought of as a bitter spice to put on top of butter toast. Just like with salt you can put nothing, way too much and the just right amount. The just right amount is way more subjective than tomatoes or cheese on breat since it can vary by a factor of 20-50x.

    I have converted some people to eating marmite and I do it by putting 2-3mm of a knifes tip on the toast and spreading it as thin as possible.


  • This article is more about where is more convenient to make a first off world base than terraform. It’s very hard to make a base on mars and the moon but a moon base is much easier.

    Terraforming is a whole another beast though. You’ll need to be able to create industry on Mars with local resources to begin terraforming, notably harvesting solar energy. Wind energy is going to be absolute ass to begin with since the air pressure on the moon in 1% of earth’s so we’d need to do a stupid amount of climate change just to make it as livable as Mount Everest Basecamp. Probably we’d need to electrolyze all of the surface rust for oxygen and then we’d still need to deal with radiation issues because of it’s still missing the molten core.

    More realistically we’d need a Dyson sphere around Mars, a shaft that goes all the way to the core and blast it with the power of the sun for centuries to kickstart the core again. Not sure about the calculations on that one. Could off by many factors of 10. Once done it can be sealed and the insulation will keep it going for a longer than we’d have to worry about.

    I personally think a floating city on Venus a lot nicer. At 50-60km elevation the air in breathable for humans so we’d just have to make massive blimps.




  • Thats not true. Privately owned firms tend to be really bad because they don’t have a feduciary duty to long term value. They suck everything dry. Private equity is the reason why daycare costs so much yet the daycare workers make minimum wage.

    I think we’re probably not on the same wavelength. Privately owned doesn’t mean bad, a one person owner operated plumbing business is not bad.

    Publicly traded corporations are also really bad because the goal is increase in share price at the cost of long term success often. If you can show profit or revenue growth at the cost of losing customers by cutting costs that’s positive over there.

    Single person ownership of a company where the person cares about the company providing good value instead of making money is very different from maximising profit or resale value.

    So the dissonance I think mostly stems from the example of daycare that you made and your conclusion that private ownership is worse than publicly traded companies. If the daycare was publicly traded it would probably look the same since none of the owners really care about the staff. On the contrary an owner operated business often do care about staff and their development at the cost of their fiduciary duty.

    Private equity would gut a business for cash. Publicly traded would syphon away all customer value to increase the stock price. Owner operated business normally does neither since it’s their baby.