Yeah, finally some lisp!
HN user
douchescript
Works as long as you don’t have to ask ”which Google sheet” if you just have one sheet for a particular problem you are not in a world of hurt.
Nix + flakes & direnv is the perfect dev environment, run it on the Mac and everybody in team can setup any project in seconds. We also have a makefile that sets up Postgres / init,start,stop with a local file socket - so every project instance has it’s own db instance. Very jummy.
That said I wish it was easier to be able to pick a specific build of for example ruby like ruby-3.3.7-p123.
It would be a valid thing if there was a documented way to convert a generic node package to import map. Not much stuff in that importmap ecosystem - seems doa.
There was also the coffeescript romance, that was brief. But maybe earlier.
But how do you integrate and turn on at a specific page/controller view? Look for a specific dom id?
What’s the best way to use JavaScript on rails these days?
I’ve been using rails for over 20 years and still love it but the JavaScript story has always been in flux in bad ways. I don’t like the turbo stuff or stimulus. Basically just want to be able to add some nice charts, and some enhancements like confirmation for links. Basically just build admins with it so the caching for partial html just isn’t part of the game. Looked at upgrading to rails 8 now but the javascript in last version of rails was fragmented and complicated, so looking to find a good way to do it in a standard way now, hopefully next version of rail’s doesn’t change everything again.
I prefer Atkinson dithering. I think it preserves more details when the resolution is very low. For more high resolutions floyd-steinberg is better though
Please explain what you mean, atkinson dither loses 1/4 of the error to gain in contrast and details, rendering the top whites washed out. What's your recommended formula for converting the image to gray before dithering
I do prefer always using self.attribute, it’s a little bit longer but there’s no ambiguity. Otherwise you would have to have all props in your head when reading the code.
I do like ruby a lot but I never grokked what was so great about _why, even though I coded ruby when he was active. Felt like a cargo cult. Maybe it was the depressive vibe of his stuff.
No it’s a 32 bit Arm processor most likely. Capable of doing usb and Bluetooth. N-key rollover.
I have one of their kits. Pretty nice kit and fun to build.
14 kB HTTP site. What about the SSL?
I like to use code coverage tools to understand how things work together. Its especially useful with unit tests. You can see every line that was hit all over the codebase for a particular function or api call, with a heat map of line counts. Makes it easy to know what’s important and what’s cruft.
Drafting the Japanese suicide pilots were also a way for the military to clear the ranks of naysayers / peaceniks/ less committed to the cause.
Heh, I’d Pay to get better search results like google was a couple of years ago. Maybe a like/dislike button for search results and some machine learning on top of that would do it.
The problem with the frankenstack, where you levy a couple of hand-picked libraries, is that there’s no guarantee or roadmap that will make newer versions of your libraries (and their dependencies) play together nicely a year or two on. If the number of libraries can be kept to a minimum, then maybe it’ll be a viable strategy.
They are not easy to come by. Often it’s the coax kind of ethernet as well. I have done a simular setup to get a shell on my modern mac via kermit over serial cable.
They are big on water re-use, greywater and such. The arcology idea is islands of self container cities that are self sustainable isolated ecosystems that recycle water etc. These are islands in a new wilderness around. Some arcologies are in space, some are in jungles, some in deserts. Like noas ark.
However much i like the visuals of solieris vision, concrete, hippie and brutalist architecture in general, i find the idea of life a city that cannot grow but inwards pretty grim.
I have used typescript for production but i am not convinced it adds to the experience. If you are not a js dev, why do you worry about typescript? It seems like you are in the static type camp and want to make a case for that. In the end the runtime is not typechecked anyway so it’s a false security.
Jquery was written to overcome limitations in js browsers as typescript was written to overcome the typing limitation.
It seems again you like the typed lanuage political agenda. I am on the other side - i like dynamic languages. I appreciate that there is another side - i just don’t agree.
There are lots of programming languages and tools that are in wide use by large organizations. That doesn’t make them better or worse.
It just comes down to politics, and I want to make a case for the dynamic camp.
Remember coffeescript? Just a waste of time and effort.
It’s javascript in the end so why complicate it more? Less people know typescript, making source less accessible, i.e you first need to understand typescript to understand the code. Also you’ll have several more layers of indirection: compiling, transpiling, bigger toolchain. In the end - why should not the latest javascript be enough?
In the old times javascript was apparently not good enough without jquery - but why add another dependency of similar ilk now that jquery is removed?
I am averse to complicated javascript franken toolchains because they don’t age well. Better to stay vanilla.
Why? Less accessible that way. I would have liked it to be in clojurescript myself but thats even worse!
Nice writeup. I have spent years on dvtm and dwm. Only problem for me is that as i get older i get less interested in bikeshedding my dev setup. I get the same feel from trying to get the right mix of ui programs as trying to manage a javascript frankenstack - just too much work for little gain, and that it breaks over time.
All tech will go the way of rational rose Sooner than later.
Exactly, family member is researcher on water quality and waste processing, and claims that new toilet paper is the way to go.
Since toilet paper goes out into nature it is better to not use recycled, less heavy metals and contaminants in fresh paper. Contraintuitive but true.
It doesn’t drive if no peddling, legal stuff here in sweden.
My electrib bike is AWD. Electric in the front and mechanical in the back. Very good for recovery on a patch of ice, impossible with just back wheel drive.
Well leveraging rails and quality plugins makes for extremely short development time. Author mentions low server load for this app so prime candidate for rails imho.