HackerLangs
TopNewTrendsCommentsPastAskShowJobs

TOGoS

no profile record

comments

TOGoS
·2개월 전·discuss
A master volume control would be nice (only because my browser doesn't have per-tab controls).
TOGoS
·6개월 전·discuss
My mental model of a website that replaces the content with some 'sign up now' stuff while I'm trying to read it is that it deserves to get closed and never looked-at again.
TOGoS
·6개월 전·discuss
http://www.nuke24.net/

Most interesting pages are probably `music/` and `plog/`.

Optionally HTTPS, though some of the features don't work right due to links to files on personal servers that I haven't yet got around to the HTTPS rigamarole (they are running like 15-year-old Ubuntu and can't run Certbot; it's such a pain).
TOGoS
·7개월 전·discuss
I have never really grokked Ruby on Rails and I passionately hate all the frameworks that try to adapt it to some other language.

That said, I suspect that Ruby on Rails itself occupies kind of a special space where the magic is acceptable because people who write Ruby are used to having very very sharp tools and have learned to wield them carefully. Give that magic to a PHP or Java programmer and there is immediately gallons of blood on the floor.

(says former Rubyist who was put off by the RoR stuff because I'm apparently more of a Haskeller at heart.)
TOGoS
·7개월 전·discuss
> inadvertently leaky

I think this is the main problem.

I don't mind layers of abstraction when they work well and their components compose nicely. Like a well-designed programming language. These can actually be quite fun to work with.

Layers of abstraction where the boundaries between that layer and those around it are fuzzy to non-existent and where certain cases magically work and everything else is a janky mess because it was never designed to work are what give me headaches and want to throw my work laptop out the window on a regular basis.
TOGoS
·7개월 전·discuss
I'd return my Framework laptop if that was still an option. First they sent me bad RAM, and left me on my own to sort it out with Crucial, which never went anywhere. The mainboard has some weird power issue that prevents the modular ports, which are otherwise a cool idea, from working properly, and I went back and forth with support about that for two years before they finally told me it was out of warranty so I was SoL.

Then there's the screen that falls backwards.

Should've bought an old Thinkpad, instead.
TOGoS
·7개월 전·discuss
> I thought this would bring some space savings, because files that are not binary code should be largely the same.

Those ternary blobs tend to be cross-platform, I hear.
TOGoS
·7개월 전·discuss
An example of an OpenSCAD design written this way: https://github.com/TOGoS/OpenSCADDesigns/blob/master/2023/ex...

I wrote about the approach a little bit in this Reddit post: https://www.reddit.com/r/openscad/comments/186b54r/interpret...

The interpreter itself is just a single module: https://github.com/TOGoS/OpenSCADDesigns/blob/master/2023/li...
TOGoS
·7개월 전·discuss
> The awful thing about OpenSCAD is that what one can model in 3D is limited by one's ability to mathematically stretch, rotate, and/or arrange spheres, cylinders, and cubes in 3D.

Not at all. You can build any polyhedron you want using the polyhedron command.

Which would be an enormous pain to write out by hand every time, but I wrote a function once upon a time to generate a polyhedron from a stack of layers, each of which is a list of points, and haven't had to mess with old cubes and spheres since.

One annoying thing is that the default way of writing programs in OpenSCAD uses 'modules', which are a bit limited compared to functions (you can't store them as values to to functions or other modules). I worked around that by writing a module that interprets arrays (think S-expressions) that representing the shape, and then just build up that S-expression-like thing with functions and whatever.

Once you've built your own programming language inside OpenSCAD it's perfectly usable. :-)

This might sound like sarcasm but I actually do prefer this to dealing with Python's mutable state jungle / package management nightmare.
TOGoS
·7개월 전·discuss
Maybe, and I would definitely prefer this to the random-generic-word practice. "illuminate" is some part of Laravel, but I can't remember what it is, just that "that's not even a noun; they just picked that word for $whatever_crappy_subsystem because it sounds nice" and being even more annoyed at the whole thing because of it.
TOGoS
·8개월 전·discuss
1900s MPEG compression was pretty intense.
TOGoS
·9개월 전·discuss
`5.times` is not so outlandish, though it would seem better for that to be in a `Loop` library or something (`Loop.times(5) { do some stuff }`).

The `5.days` example that was posted somewhere else in this thread might be a better example. It is not, as far as I can tell, part of Ruby's core library, thank goodness, but it is the kind of thing the methods-as-hacks-for-syntax culture seems to encourage. My question being "why the heck should the number 5 know anything about days? What does 5.days even mean, given that there are various ways to interpret 'a day'?"

This kind of bad design has made its way all over the place. The Java mocking libraries that my coworkers like to use are full of it. Long chains of method calls that appear like they're trying to 'look like English' but make no damn sense, so you have to dig into each method call and what kind of thing it returns to understand what this chain actually means.
TOGoS
·9개월 전·discuss
> adding a queen to the Borg destroyed the Borg

Agreed. The Borg used to be scary because they seemed unbeatable. They were like grey goo that could adapt to whatever you threw at them.[1]

Having a queen gives them a single point of failure. Suddenly they are a lot less scary.

[1] I kind of felt the same way about the Boogieman from Ghost Busters when I was a kid. Teleports between closets and the regular ghost trap doodad doesn't work on him! Shit!
TOGoS
·10개월 전·discuss
I had about as much luck trying to find a countersinking router bit for 5/16" holes on this site as I did elsewhere. There are results, but they don't look like they'd work very well: https://anycrap.shop/product/5-16-inch-fluted-router-bit-wit...
TOGoS
·3년 전·discuss
One major headache with trying to run precompiled binaries on Linux is that if they were compiled using a newer version of glibc than the target machine, they won't be able to run. Back while working on Factorio, I was trying to get around this problem with endless Docker containers, but coworker Wheybags came up with a much simpler solution to this, which is simply to, at compile time, link to the oldest compatible version of glibc by including a header: https://github.com/wheybags/glibc_version_header

It's too bad this hasn't been standard practice for the past 30 years!