News for hackers. Stuff that matters.

HdS84

Re:An Incoherent Rust on Thursday March 26, 2026 @08:59AM (#47529893)
Personally, I am comfortable with Pythons "linter warning and we are all adults here" - it works well and I have never seen that somebody cried "I overwrote this private method and after an upgrade it did not work!". .Net allows it via reflection and considering that .Net Frameworks could run untrusted code it was okay that it was forbidden out of the box (since reflection was forbidden for untrusted code). But in the current world, where untrusted code does not really exist anymore? It's just legacy cruft.
Re:An Incoherent Rust on Tuesday March 24, 2026 @04:27AM (#47499906)
There are always corner cases where you might need to do something differently. I had three memorable cases in my career: 1. Python 2.6x had a a stdlib bug where windows event logging did crash the process when the user had some rights set differently. Fix submitted but for the meantime we simply overwrote the private function and could ship. 2. Also python: scikit-learn had a primitive "print everything" strategy, but we need to get it into a logging framework. We overwrote their print wrapper and could ship. 3. In C#, a third party lib insisted on dumping a result to a file. We used reflection to get that as a stream.

All three are not ideal - but I think having escape hatches is important. I also think private/public is overrated. Having it as a signal is ok. Forbidding access to privates is too strong.

Re:CATL Expects Oceanic Electric Ships in 3 Years on Monday December 08, 2025 @10:02AM (#46192989)
The germans tried that in the 60s see https://en.wikipedia.org/wiki/Otto_Hahn_(ship). It was uneconomical. You need specialized engineers for that, you need special permissions for ports and the important canals are off limits due to risk.
Re:Asynchronous Error Handling Is Hard on Tuesday July 01, 2025 @02:28AM (#44431169)
Many "developers" think print("OOOPS") is a good way to debug - so I guess it's an education problem.
Probably not... So they will have issues, too.
Yes, halfway decent security runs counter to most people's inclinations. Like osha or medecine rules. So enforcement is important, though it is annoying
Thanks! I am a little disappointed that it seems to be trash :(
We introduced MDM for our Mac boxes early this year. Over half(!) had outdated mac versions and missed multiple major updates. Before that - it was always really obvious that you needed to run the newest version ASAP (asap=All dev tools run on the newest version, which was not a given, so a few weeks delay was ok). We have lots of linux boxes and I suspect their patch state is even worse - but how to check that? There are a dozen distros and a few self build systems...
Re:Marines mobilized in response to LA protests on Tuesday June 10, 2025 @02:09AM (#44233163)
History shows that to simply not the case. Individuals are bringing down democracies all the time. Especially presidential democracies are super vulnerable to this because the president has outsized power compared to the other branches of the government.
Re:Marines mobilized in response to LA protests on Tuesday June 10, 2025 @02:05AM (#44233138)
I studied political sciences twenty years ago - even then it was established consensus that presidential democracies are vulnerable to authoritarian takeover. The position has too much power, is easily abused and there are not enough checks on that position. The US escaped that problem for a long time due to strong cultural norms - but you abolished them (i.e. gatekeeping the presidential nominees and replacing that with a televised drama) and working checks (but again, now party in congress and president march in lockstep). FPTP and gerrymandering just exacerbate that problem and entrench a very unhealthy "the winner takes it all without need for compromise" culture.

You need electoral reform post haste - but I do not seed even a start to that discussion, so I think you are hosed. Might not be Dictator Trump, but maybe Vance or some other guy who succeeds in this game.

And all who cry "if the democrats win everything will be ok again!!!!" - not it won't. The democrats are too slow to recognize the problem and even if they eventually do, there are no majorities to change the system. And finally: Democracy needs at least two parties - democrats cannot be expected to keep branches of the government forever. You need a sane and democratic second party. Republicans ain't it - but the current system gives them success, so why change?!

Did you evaluate RavenDB? Just out of interest
Re:The Ingredients of a Productive Monorepo on Wednesday May 28, 2025 @03:10AM (#44113403)
Hey, do you think Gitlab should do anything except running after the next trend and develop shitty not-solutions for that? Why, that could improve Gitlab. We cannot have that!
Re:I Don't Like NumPy on Thursday May 15, 2025 @03:48PM (#43998612)
As a simple example : once upon a time a We needed to generate a sort of heat map. Doing it in pure python takes a few seconds at the desired size (few thousand cells where each cell needs a small formula). Dropping to numpy braucht that downs to hundreds of milliseconds. Pushing it to pure c got us to tens of milliseconds.
Re:I Don't Like NumPy on Thursday May 15, 2025 @03:44PM (#43998570)
R with its 4(?) class systems enters the chat.
Re:Inheritance was invented as a performance hack on Thursday May 08, 2025 @02:36AM (#43923643)
I don't think Inheritance is always bad - sometimes it's a useful tool. But it was definitely overused and composition, interfaces work much better for most problems.

Inheritance really shines when you want to encapsulate behaviour behind a common interface and also provide a standard implementation. I.e: I once wrote a RN app which talked to ~10 vacuum robots. All of these robots behaved mostly the same, but each was different in a unique way. E.g. 9 robots returned to station when the command "STOP" was send, one would just stop in place. Or some robots would rotate 90 degrees when a "LEFT" command was send, others only 30 degrees. We wrote a base class which exposed all needed commands and each robot had an inherited class which overwrote the parts which needed adjustment (e.g. sending left three times so it's also 90 degrees or send "MOVE TO STATION" instead of "STOP").

Re:Graceful Shutdown in Go: Practical Patterns on Monday May 05, 2025 @10:37AM (#43895619)
Overall, I think centralized logging and metrics are super valuable. But stacks are all missing the mark. For example, every damn log message has hundreds of fields,. Most of which never change. Why not push this information once, on service startup an not with every log message? OK, obviously the current system provides huge bills to the benefit of the company or's offering these services.
Re:Why Flatpak Apps Use So Much Disk Space on Linux on Sunday May 04, 2025 @05:39PM (#43889805)
Exactly. In theory, the original windows 10 model is the one most users want: a perpetually up to date os which runs also up to date software. Yes, of there might be reasons the pin something to an older version, but it this pc is on a network, security alone tells you to update ASAP. Don't get me wrong, a working package manager is a very good addition to this model. But currently, most of the time setting up a ltm Linux system I spent on updating ancient git/docker whatever versions.
Re:The True Size Of on Wednesday April 30, 2025 @04:03PM (#43850041)
I only visited Realschüler and switched to gymnasium in 11. Tbh I don't remember much of my geography lessons, was not my primary interest in school
Re:The True Size Of on Wednesday April 30, 2025 @10:35AM (#43845865)
German is Mercator only. Learned about different projection on the internet years after school
Re:The True Size Of on Wednesday April 30, 2025 @07:27AM (#43843684)
I wish schools would stop using it so much. Mercator is useful, yes. But having good size comparisons is much more important for most everyday tasks.
Re:A single line of code cost $8000 on Tuesday April 29, 2025 @12:41PM (#43834941)
I am forced to use a custom kv store for my current t project. That pos has a custom dsl, which can only be imported through a swing ui, by clicking five buttons. Also, the ui is for 1024 screens, they are tiny in my 4k monitor
I've studied political science in Germany. Unfortunately, most German political science people confused opaque writing with wisdom - basically hiding invalid theory behind an obtuse language. Nobody wanted to say out loud that they don't understand the language, so it helped to fortify their shit theories.
Re:CONL: "Markdown" for your config files on Sunday April 27, 2025 @05:43AM (#43810633)
You caveman! Everybody knew that watching config though a 30*80 chars ssh display in black/white should be enough for everybody. Who needs help displays, validation or even sliders?!
Re:AI Horseless Carriages on Thursday April 24, 2025 @09:50AM (#43782803)
Wasn't even legal but concerned the scope of the offer. Nuance, but nuance can be important. Like "rework the service and add minor festures" VS "slightly rework and do major features" - this affected the direction of our offer a lot.
Re:AI Horseless Carriages on Wednesday April 23, 2025 @03:13PM (#43775669)
One of our managers uses Ai to summarize everything. Too bad it missed important caveats for an offer. Well, we burned an all nighters to correct the offer, but he did not read twenty pages but one...
Re:Jagged AGI: o3, Gemini 2.5, and everything after on Monday April 21, 2025 @12:47AM (#43748573)
Yes, thar is the same feelingg I have. Giving it some json and describe how a website should look? Super fast results and amazing capabilities. Trying to get it to translate my unit tests from Xunit to Tunit, where the latter is new and does not have a ton of blog posts? Forget about it. The process is purely mechanical and it is easy after RTFM, but it falls flat on its face
Re:How to Force Your Kids to Do Math? on Sunday April 20, 2025 @09:38AM (#43743699)
I will die on the hill that most of math would benefit from better naming, less short names and longer format. Yes, the crack math guys have no problems with terse symbols. But most people do. Good example is Greek letters for geometry. They are not really taught in school so an easy formula gets 'weird squiggly thing times another squiggly thing....' and that does not help understanding at all
Re:Googler... ex-Googler on Monday April 14, 2025 @03:33PM (#43685290)
Honestly, the problem is not that there are layoffs, the problem is that the process sucks.

you don't need to fire this person immediately - you can talk to him, wind his operations down and then let him go. I.e. in Germany it's often half a year between announcing a layoff and anything happening (besides other stuff like making sure the layoff applies to the newest people first). Even if you don't want such a long period - talking to him and giving him a few weeks to wind down at your firm and starting to search for a new job seems perfectly reasonable. What happens if he wreaks havoc on your firm out of revenge? Really? Happens practically never. If it happens, sue him.

ofc this process applies to reasonable layoff - if it's for something egregious (breaking the law) you can and should fire him immediately.

Re:Any program can be a GitHub Actions shell on Wednesday April 09, 2025 @01:41AM (#43629212)
You can also do that in Gh. Gizlab does that, too. But I hate it. When you do this, every build becomes cargo culting commands until it works. Ntm every build it's is own special snowflake from hell. I want standardized builds which output everything I need (artifact, warnings, security issues etc) without me feeling like a necromancer. Gh solves this okayish, but extending and debugging is a pain.
Re:Any program can be a GitHub Actions shell on Wednesday April 09, 2025 @01:39AM (#43629202)
Maybe packer? That's terraform syntax, but optimized for building Vms.

Older »