• 0 Posts
  • 119 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle
  • I think climate activists would just be better off doing what everyone else does - lobbying. Identify politicians who represent areas who would benefit from pollution controls, or green investment or whatever and push the message. Performative acts in front of cameras might feel good but it’s a blunt tool to change policy. Some protestors such as “just stop oil” campaigners are so stupid that they actually help the causes they supposedly oppose.


  • I once developed an electronic program guide for a cable TV company in New Zealand and I’d lose my mind if I had to use timezones. The basic rule of thumb was:

    a) Internally you use UTC religiously. UTC is the same everywhere on Earth, time always goes forward, most languages have classes that represent instants, durations etc. In addition you make damned sure your server time is correct and UTC.

    b) You only deal with timezones when presenting something to a user or taking input from a user

    Prior to that I had worked for a US trading company that set all their servers to EST and was receiving trades through the system which expressed time & date ambiguously. Just had to assume everywhere that EST was the default but it was just dumb programming and I bet to this day every piece of code they develop has time bugs.



  • Rust isn’t really OOP like C#, Java or C++ - it has structs with functions that you could consider an “object” but there is no inheritance. Instead Rust uses traits which are a little bit like interfaces in some languages.

    The way the kernel is using Rust at the moment is to produce safe bindings for modules to be written in Rust, i.e. you can create a module in Rust source which will be correctly loaded up, the code is safe by default and will have access to kernel services via bindings. I expect over time that more of the kernel will become Rust, but the biggest impediment right now is Rust relies on LLVM and LLVM only supports a subset of targets that a kernel could potentially support with another compiler like gcc.



  • arc@lemm.eetoProgrammer Humor@programming.devIs this a Nut?
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    7 months ago

    The only reason people use JS is because it’s the defacto language of browsers. As a language it’s dogshit filled with all kinds of unpleasant traps.

    Here is a fun one I discovered the other day:

    new Date('2022-10-9').toUTCString() === 'Sat, 08 Oct 2022 23:00:00 GMT'
    new Date('2022-10-09').toUTCString() === 'Sun, 09 Oct 2022 00:00:00 GMT'
    

    So padding a day of the month with a 0 or not changes the result by 1 hour. Every browser does the same so I assume this is a legacy thing. It’s supposed to be padded but any sane language would throw an exception if it was malformed. Not JavaScript.



  • Not really. Pre-musk, reporting racism & other abuses was more likely to illicit a response than not. Nowadays it is a was of time to even bother unless it is extremely overt… And all the shitheads with few exceptions who were perma banned got reinstated no matter how awful they were.

    And the situation with blueticks is self evident. It used to mean somebody noteworthy - journalists, actors, politicians, authors, scientists etc. Now it’s trolls and narcissists with money to waste on a vanity tick. Popular feeds will have pages of inane comments by these scumbags to scroll through. There are even actual Nazis with blueticks who complain/brag about the ad revenues they receive from engagement. It couldn’t be any more removed than the way it was.



  • Definitely. I think it has just about reached a critical mass users writing content to attract new users and it looks so similar to Twitter there is practically zero friction in moving. I think it’ll really kick off when we see more heavy hitters coming over - big news networks, public figures, governments etc.

    I think news orgs in particular should be removing themselves from obnoxious social media platforms (e.g. Twitter) and move to somewhere where the engagement is more genuine and not toxic rants by racists and morons.





  • I’ve been in the industry some time but here are some of my most hated software I’ve been forced to use:

    • IBM Clearcase. Absolutely the worst dogshit source control system ever to exist. Complex, fragile, arcane, slow, network intensive. The company had to employ people fulltime on each of its sites whose only job was creating branches and mirroring repos on other sites. The operational & licensing costs of running it must be insane. Some defenders might claim “but it’s so powerful!” or “look how we can create fancy layered views” as if that excuses it for being terrible in the most basic ways. Fixing it must have been intractable because IBM Clearcase eventually produced a faster remote client that talked to a proxy of the view running on a server somewhere. More expense and complexity.

    • IBM/Lotus Notes & Domino. Another complex, arcane, slow, unintuitive, frustrating product by IBM (though owned by HCL now). Originally a content management system with an email / calendar with its own terminology and workflows completely divorced from any other email / calendar system in existence. Various iterations attempted to rework the front end to appear more user friendly but it was illusory - click button or two and you were confronted with dialogs that hadn’t changed in 30 years.

    • Internet Explorer. I’ve worked in company after company that had some really awful in-house expenses system or clock-in/clock-out or some enterprise junk that NEEDED Internet Explorer and no other browser would do because it was so badly written that it couldn’t render properly or it used an ActiveX control.

    • HP/Microfocus ALM. Another over-engineered, arcane, unintuitive piece of enterprise software. This time for tracking bugs, features, testing etc. Complicated and slow, heavily dependent on Internet Explorer and other deprecated Microsoft tech.

    • Trend antivirus. Almost every corporate antivirus is bad but this one has been the bane of my existence. I write code which does stuff like encryption and compression/decompression and this piece of shit would constantly trigger warnings and delete binaries I was trying to build and develop. When it wasn’t interfering with my work, it would just be constantly hogging CPU and slowing down disk activity.

    • Enterprise software in general. This crap is sold like Kirby vacuum cleaners - a pushy salesman convinces a clueless CTO to buy junk that can seemingly do everything and a sign contract for $$$. And then this stuff is there FOREVER. Management will ignore complaints and the obvious shortcomings of the system because its paid for and the sunk cost fallacy kicks in.


  • Haven’t been to Thailand since my 20s (with girlfriend) but there were plenty of bars where the hostesses seemed like they would perform other services if the clientele had money for them. Not to mention actual brothels and sex shows. I went looking around Pattaya on Google Maps to see if it was still like that and was disappointed to see that many of the streets had been knocked and big resort hotels built there. Still a few dodgy areas though still.


  • You don’t have to take your eyes off the road to operate a control. You might need to learn where some are in a new car, but then you instinctively reach for and operate the ones you use all the time. It’s muscle memory.

    This is not the case in a touch screen where controls may or may not be visible at any given time and you have no chance of operating them unless you physically look at the screen to control where you touch it. Maybe this arrangement is fine for some non-critical functions, but it absolutely isn’t for critical ones.

    What is worse is that cars from Tesla are even getting rid of indicator stalks which is fantasically dangerous. Maybe it’s not a big deal in the US where roundabouts are uncommon but they are all over the place in Europe and the rest of the world and lack of indicators will cause crashes and fatalities. Just so Elon Musk could save a few bucks on a stalk. And if that results in a lower EuroNCAP score then boohoo for him. I can imagine the raging and legal threats that he’ll engage in if that happens.


  • Personally I think that the following car functions should be mandatory physical controls - wipers, indicators, hazards, side/headlights, door locks, defogger / defroster, electronic parking brake. forward/reverse/neutral/park. And they should be controls that have fixed position in the car (i.e. not on the wheel) with positive and negative feedback.

    And fuck Tesla or any other manufacturer that wants to cheap out on a couple of bucks by removing them. Removing physical controls has obvious safety implications to drivers who are distracted trying to find icons on a tablet.



  • The problem is, that most languages have no native support other than 32 or 64 bit floats and some representations on the wire don’t either. And most underlying processors don’t have arbitrary precision support either.

    So either you choose speed and sacrifice precision, or you choose precision and sacrifice speed. The architecture might not support arbitrary precision but most languages have a bignum/bigdecimal library that will do it more slowly. It might be necessary to marshal or store those values in databases or over the wire in whatever hacky way necessary (e.g. encapsulating values in a string).


  • We had tens of thousands of lines in our rake files to build a bunch of targets, none of which were even Ruby. I think if I needed to build another complex build system that was a directed acyclic graph I think I’d use Gradle, for a several reasons - we had some Java targets so we save on an additional developer runtime, it would run faster & Gradle is more mainstream and easy to get various plugins & documentation for.