• 0 Posts
  • 147 Comments
Joined 3 years ago
cake
Cake day: July 3rd, 2023

help-circle


  • pelya@lemmy.worldtoComic Strips@lemmy.worldTools
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    6 days ago

    It’s these things. Notice how the thread is smaller than the shaft. You always need to drill a pilot hole, otherwise the thread won’t bite into the wood. The thread is also pretty tight, so screwing it two-three times in the same hole is enough to strip the wood in the hole, so it can be pulled out with tweezers with almost no resistance. It’s also slotted, so if you press too hard your screwdriver will slip out. And if you screw too tightly, the head will rip off, because it’s a mild steel.

    Or you just hammer it in.


  • pelya@lemmy.worldtoComic Strips@lemmy.worldTools
    link
    fedilink
    arrow-up
    28
    arrow-down
    2
    ·
    6 days ago

    In Soviet Russia, all furniture was assembled by hammering wood screws. Then the assembled furniture was ripened for up to ten years in special humidity-controlled warehouses, allowing screws to expand and lock in place thanks to rusting. This required making screws from special-grade low-quality steel, and use extra-toxic glue for particle board planks so they would not rot. And still, only one in five assembled pieces of furniture did not have any rotten parts or fall into pieces when you attempted to take it home, making it even more luxurious. It is utterly impossible to repeat this level of craftsmanship in modern world.




  • pelya@lemmy.worldtoProgrammer Humor@programming.devThanks for asking...
    link
    fedilink
    arrow-up
    11
    arrow-down
    2
    ·
    edit-2
    15 days ago

    People are boasting about Arch, but my first open-source OS was FreeBSD 4.2, fitting on a single CD-ROM.
    It included a tiny base system and C compiler, and practically every other package had to be compiled from source, using the ports system, which was just a collection of makefiles, one for each package.
    And you had to be careful to use gmake instead of make, because the default Make was BSD-specific tool incompatible with most of open-source software, which targeted Linux. And you had to make sure to use GNU versions of grep, sed, and awk, and remove all bashisms from shell scripts, because /bin/sh was of course incompatible with bash.
    You had only about 50% chance that a given package would compile. Package manager? What package manager? Just run suand then make install.
    And my PC was AMD K6, and it had Turbo button, which did absolutely nothing. And I was very proud of my TEAC CD drive.










  • As for languages that are acceptable for business logic, C++ is lolno, Java is kinda surprisingly okay because so much business logic is already written in it and debugging is trivial, Python is not worse than Java for the same reason when you are using proper linter to catch typos, C# / Go / Ruby are probably the best because they are most modern with the lowest footgun ratio.


  • JSON-in-a-string is a commonplace method of having a generic or any type when you are too lazy to write a proper structure for it, or want to save an object into a database without creating an additional table. In all fairness it has nothing to do with the language itself, and more with lazy coders. Postgresql even have additional SQL operators to access individual JSON fields inside a record, so yeah, you can dump a whole new unstructured database into a row of your existing database, it’s totally an acceped practice.


  • It’s Javascript with types. You are still using one hundred NPM packages to do the simplest thing. Any string can be JSON. And Node is single-threaded, so if you plan to create some kind of parallel computation, you’d need to run 16 Docker containers of your Node server, one per CPU core, with NGINX or some other load balancer at the business end, and hope that your database engine won’t reorder transactions. And yeah, Docker is mandatory, because Node version in your latest Ubuntu release is already outdated.