Readit News logoReadit News
elevation commented on Please just try HTMX   pleasejusttryhtmx.com/... · Posted by u/iNic
asim · a day ago
Man I did try htmx, and I was hopeful, right until I saw how it polluted my codebase. I can't say I have the answers, but writing a pure Go app, I'm currently using one giant css file, custom styling and inline html.

And now I'm at the breaking point. So I'm planning to move to tailwind and Go templates, but honestly, i was hopeful for htmx, so I need to properly see the usecase. Which i don't know is this. It reminds me of Angular a lot...

elevation · a day ago
> it polluted my codebase

HTMX is less noisy if you integrate it into your backend framework.

A contact of mine build a python/flask app. To simplify coding, he wrote a file to extend the flask framework to support the HTMX patterns he needed with just a single line of boilerplate. Took him about a day, his team is happy with the results.

elevation commented on alpr.watch   alpr.watch/... · Posted by u/theamk
MangoToupe · 3 days ago
I specifically have considered this in terms of protecting workers from (otherwise private or hidden) workplace abuse.
elevation · 3 days ago
Two thoughts:

1. Amazon blink is an interesting hardware platform. With a power-optimized SoC, they achieve several years of intermittent 1080P video on a single AA battery. A similar approach and price point for body cam / dash cam would free users from having to constantly charge.

2. If you're designing cameras to protect human rights, you'll have to carefully consider the storage backend. Users must not lose access to a local copy of their own video because a central video service will be a choke point for censorship where critical evidence can disappear.

elevation commented on The Tor Project is switching to Rust   itsfoss.com/news/tor-rust... · Posted by u/giuliomagnifico
giancarlostoro · 7 days ago
I still wish Mozilla had kept oxidizing Firefox. It would have been a net positive for Rust itself.
elevation · 7 days ago
At least the Chrome team is still oxidizing.
elevation commented on Show HN: Gemini Pro 3 imagines the HN front page 10 years from now   dosaygo-studio.github.io/... · Posted by u/keepamovin
giancarlostoro · 10 days ago
100% Rust Linux kernel has to be it being funny.
elevation · 10 days ago
For a minute I thought I was looking at actual hacker news, and that headline grabbed my attention without tipping me off that it was satire -- I figured that to port that much source must required compiling C to rust, but it didn't seem impossible. I would love to give something like this a spin.
elevation commented on Bringing Sexy Back. Internet surveillance has killed eroticism   lux-magazine.com/article/... · Posted by u/eustoria
elevation · 21 days ago
> She demanded that I apologize to the women

This is antisocial advice. It's beyond inappropriate to use the pretense of apology to announce your intimate fantasies to strangers.

elevation commented on There may not be a safe off-ramp for some taking GLP-1 drugs, study suggests   arstechnica.com/health/20... · Posted by u/voxadam
elevation · 23 days ago
> regained significant amounts of the weight they had lost on the drug [...] blood pressure went back up, as did their cholesterol, hemoglobin A1c [...] fasting insulin

These symptoms will be familiar for anyone who has lost weight dieting and then returned to eating junk food.

elevation commented on Why top firms fire good workers   rochester.edu/newscenter/... · Posted by u/hhs
autoexec · a month ago
Companies have spent a fortune paying companies just to spread lies and misrepresentations about unions to workers. I guess their money is being well spent. All their big talking points are here, being regurgitated just like they wanted.
elevation · a month ago
If companies are spreading lies/misrepresentations about unions, they're leaving a lot of good material on the table! I have a lifetime of union abuse stories from family and neighbors in the trades, service work, factories, and even elementary education.

A close female relative declined to cooperate with a unionization effort at her job -- she made good tips and didn't want to pay dues. She started receiving threatening calls at night describing her indoor pets and other details of her home that heavily implied that the caller had physically surveilled it, or was perhaps currently nearby. While the unionization effort ultimately failed, the harassment she endured left psychological scars.

My best friend's brother lost his union job after refusing to work unpaid overtime for them. When he showed up at his second job (with another union) he found out he was also fired there -- the union bosses in town had collaborated to blacklist him. So he took a non-union job framing houses. Months later, some union goons caught him alone on a job site and assaulted him for being a scab. They struck him several times with a 2x4 and kicked him. He nearly died.

Other friends in town have had their tires slashed, windows broken, or had out-of-state union members show up at their house on the weekend after trying to step down as union steward.

Even when I don't know the people involved, I can see the union machinery at work around me. When my local children's hospital awarded a parking garage contract to the lowest bidder, the local carpenter's union wanted a cut of the action. So the union brought in ruffians from out of state to protest the job site, causing delays. Someone covered the downtown with defamatory posters with pictures of the man who owned the construction company, so that his family, friends, and people he'd never met would see him made out to be the devil. The hospital and construction company could have made all the sabotage and harassment go away if they paid their protection money.

All the unions my family has experienced this century are just organized crime.

elevation commented on We should all be using dependency cooldowns   blog.yossarian.net/2025/1... · Posted by u/todsacerdoti
elevation · a month ago
You could do a lot of this with CI if you scheduled a job to fetch the most recent packages once a month and record a manifest with the current versions, then, if no security issues are reported before the end of the cooldown period, run integration tests against the new manifest. If no tests fail, automatically merge this update into the project.

For projects with hundreds or thousands of active dependencies, the feed of security issues would be a real fire hose. You’d want to use an LLM to filter the security lists for relevance before bringing them to the attention of a developer.

It would be more efficient to centralize this capability as a service so that 5000 companies aren’t all paying for an LLM to analyze the same security reports. Perhaps it would be enough for someone to run a service like cooldown.pypi.org that served only the most vetted packages to everyone.

elevation commented on OOP is shifting between domains, not disappearing   blog.jsbarretto.com/post/... · Posted by u/ibobev
prewett · a month ago
It's unclear to me what the author thinks OOP is, and what he thinks we are replacing it with. The main point of OOP to me is hiding internal state. So OOP is great for user-interface, because there's all kinds of state there (not just the model, but the internal state of the UI element, like the scroll position of a list or the selection range of a text edit). Microservices, in fact, could be considered "network objects" and a microservice framework as network OOP. The problem there is that normal making a function call is straight-forward. The call produce a failure result, but the call actually happens. On the network, the call might not happen, and you might not be aware that the call cannot and will not happen for some seconds. This is not likely to simplify your code...

OOP can be just about structuring code, like the Java OOP fundamentalism, where even a function must be a Runnable object (unless it's changed since Oracle took over). If there's anything that is not an object, it's a function!

Some things are not well-suited to OOP, like linear processing of information in a server. I suspect this is where the FP excitement came from. In transforming information and passing it around, no state is needed or wanted, and immutability is helpful. FP in a UI or a game is not so fun (witness all the hooks in React, which in anything complicated is difficult to follow), since both of those require considerable internal state.

Algorithms are a sort of middle ground. Some algorithms require keeping track of a bunch of things, others more or less just transform the inputs. OOP (internal to the algorithm) can make the former much clearer, while it is unhelpful for that latter.

elevation · a month ago
> The main point of OOP to me is hiding internal state. So OOP is great for user-interface

One principal I pursue aggressively in UI design is NOT hiding state!

A client had written a script to calibrate an embedded system across several operating parameters. The program consisted of a TUI to capture setup parameters, then ran 5-layers of nested FOR loop for several hours. This original program lacked even a basic progress bar. You never knew what it was doing or when it would be done - it hid a lot of internal state!

You might say, "the TUI program was hiding relevant state; your program should only hide the irrelevant state." But as I iterated on the program I realized that literally all of the program state was relevant! So I meticulously crafted a GUI to display every operational detail on screen at all times. This included the state of each FOR loop, a plot of the intermediate results, the state of each TCP connection, the state of the unit under test, and the user-selected test parameters, the full path of the calibration files the test relied upon.

While the program had some "magic" (it would auto-recall the default parameters associated with the model under test, and would auto detect equipment types with a network scan) I future-proofed it by ensuring that ALL of the parameters were both visible (not hidden!) and human-overridable AND resettable (A reset-to-default option would appear when the user changed defaults, in case the selection was unintended.) The GUI is also wire silent (no network packets transmitted) until directed by the user to scan for/connect to equipment, and it gives a visual indicator while waiting for network responses.

The GUI also tracked test progress as a first-class file-saveable object, so not only was there a progress bar, but tests could be resumed if equipment connectivity was lost mid-test. And a 95% confidence interval estimate, shown as "between 9 and 13 minutes remaining" to help production techs plan their day.

Even when state is read-only, I still don't hide it. Once a test has commenced, the selectable test parameters cannot be changed, but displaying them on screen confirms to users that their 5-hour test was not started with the wrong parameters.

My big takeaway from this effort is that ANY hidden/inaccessible state is a liability. A user should be able to observe at all times what their program is up to.

elevation commented on Linux Career Opportunities in 2025: Skills in High Demand   linuxcareers.com/resource... · Posted by u/dxs
d3Xt3r · a month ago
But how did you get your first Linux job? That's where I'm stuck at. Where I live, there's literally zero entry level Linux roles, and the literally couple of Linux roles that are available require you to have centuries worth of enterprise experience with Kuberneres, Openshift, Ansible, Chef, Puppet, Terraform etc...
elevation · a month ago
You can make almost any job into a Linux job. Use a linux VM on your desktop to solve a problem for the company. Things change once your employer knows its essential.

I've also seen Linux make inroads in "windows only" enterprises when it became essential for performance reasons. A couple of times, towards the start of a project, windows APIs were discovered to be too slow to meet requirements:

In one case, customer needed us to send a report packet every 40ms. But even when we passed "0" to the windows Sleep() function, it would sometimes stop our program for 100ms at a time. The sleep function on linux was highly accurate, so we shipped linux. Along the way 5-6 devs switched to, or got a second PC to run linux.

In another case, we needed to saturate a 10GbE link with a data stream. We evaluated windows with a simple program:

   while(1) send(sock, &buffer, len(buffer);
... but we found windows could only squeeze out 10% of the link capacity. Linux, on the other hand, could saturate the 10GbE link before we had even done any performance tuning. On linux, our production program met all requirements while using only 3% CPU usage. Windows simply couldn't touch this. More devs learned linux to support this product.

Those companies still don't require linux skills when hiring, because everyone there was once a windows guy who figured it out on the job. But when we see linux abilities on the resume it gives candidates a boost because we know they'll be up to speed faster.

u/elevation

KarmaCake day1158November 7, 2015
About
thousandbox@protonmail.com
View Original