News for hackers. Stuff that matters.

hn_acc_2

Re:Next.js Is Infuriating on Tuesday September 02, 2025 @10:44AM (#45103778)
I prefer this to having app.use / router.use scattered anywhere throughout the app init (i.e. Express)
Success is a lousy teacher. Mr. Musk has been dreaming about his "everything app" i.e. X.com for a very long time. The fact that he thinks the sinking Twitter ship will bring it to fruition is laughable.
Re:Lichess gets a big upgrade. It doesn't go as planned on Thursday December 15, 2022 @04:54PM (#34006357)
Looks like the top comment was spot on. Were HN users the "Avengers" mentioned in OP?
Re:Why CVE-2022-3602 was not detected by fuzz testing on Monday November 21, 2022 @01:59PM (#33696404)
There are a limited number of people willing to spend a limited amount of time fuzzing, reviewing, and scrutinizing crypto libraries. The more libraries exist, the more their efforts are divided, and the total scrutiny each library receives decreases. How would this help the problem?
Actually, among the MAGMA companies I've found the _least_ bias for leetcode-memorization at Amazon.

My interview with Meta was exactly as you described (a CS riddle taken from a textbook, to be solved without running the code or receiving hints). But in my interview with Amazon, each coding interview also included a couple leadership questions. If you want you can look up the exact questions that they'll give you to test what they call their "Leadership Principles"

Also the Amazon coding questions were not taken directly from Leetcode, and were easily reasoned out without prior knowledge of a special algorithm.

Obviously this is true but CK doesn't sell dollar bills for 90 cents.
Yes..... and the only way a $444M quarterly revenue company "aren't profitable at all" is if their costs are >$444M / quarter. That's what my comment was getting at. Does GP really think a business like CK costs that much to run?
Your guess is wrong, their Q2 revenue this year was reported $444M
Re:Let's Rewrite Everything on Saturday February 05, 2022 @02:47AM (#30218819)
Having seen several projects written by people who "happen to know some code," I can tell you there's a good reason this hasn't caught on.

These sort of people can work the very foundations of the company into an ungodly quagmire that would send you screaming back to the fad-chaser dev in a heartbeat.

Also despite the meme, most mid-senior devs are actually keen on making their contributions valuable to the business, having gotten over this phase of fascination with new tools

Re:QOI: Lossless Image Compression in O(n) Time on Wednesday November 24, 2021 @05:19PM (#29335840)
The difference will be painfully clear once you try to walk a junior developer through installing and linking new files to a large project in Visual Studio, vs "copy this .h file here and include it".

Whether or not a "good build system" should handle it, the fact that single-file libraries are much preferred these days should demonstrate most people don't have such a build system

Re:QOI: Lossless Image Compression in O(n) Time on Wednesday November 24, 2021 @05:11PM (#29335772)
1) Include it wherever it's used. The convention is to use the preprocessor[1] so it only appears once in the final binary

2) Most developers just want to compile to a single binary. Any developer who for some reason needs separately compiled objects should be able to quickly achieve that from a single-file library

[1] https://github.com/phoboslab/qoi/blob/324c2243b2fb35f741a88d...

Re:My First CSS on Monday July 26, 2021 @01:43AM (#27956089)
There is a stigma amongst "real programmers" against "web developers". So a "real programmer" will never become adept at CSS because it doesn't appeal to their ego
Sure, high salaries are justified for this minority.

The people mentioned specifically in the comment are of more concern; sales, admin, etc. salaries in this field are also inflated compared to other industries.

Re:What I wish I knew before building a Shopify App on Friday March 19, 2021 @07:22PM (#26519182)
What other packages have you seen abusing import side effects?

Shopify is the first one I've seen, so I don't think it's quite as common as you are implying, but I'm curious to know what other bad behavior you have found

What "moat" does Bitcoin have protecting it from other crypto which may have more attractive features?

It seems to me that it's just the first one that everyone's grandma has heard the name of.

Some journalists will say BTC is just the "most stable" but the fact that it has the most miners is just a consequence of the high price, not the other way around.

As for the technology, what is actually maintaining BTC dominance in the crypto world other than general first mover sentiment?

Re:Alpine Linux 3.13 on Thursday January 14, 2021 @04:38PM (#25782980)
Unfortunately the Python package ecosystem is enough of a headache.

Now we add additional complication "OK, these pip package authors have upstreamed Alpine packages, and these other ones are only on PyPi".

Maybe this approach would work if you can keep your Python dependencies to a small list of well-maintained packages

Re:Alpine Linux 3.13 on Thursday January 14, 2021 @04:35PM (#25782944)
If you ask me, installing glibc / compat layers defeats the purpose of using Alpine, especially since Alpine ultimately only saved me ~50 MB on image size versus a similarly configured debian:slim-buster image
Re:Alpine Linux 3.13 on Thursday January 14, 2021 @04:25PM (#25782807)
I did settle on Debian, using i.e. python:3.9-slim-buster (though you can just as easily start from debian and install your python version)
Re:Alpine Linux 3.13 on Thursday January 14, 2021 @01:55PM (#25780539)
Another "I want to love Alpine but can't" user here.

Their use of musl libc makes it a very poor choice for running python in a container, because it forces a lot of manual rebuilding since the PyPi wheels don't work on Alpine, among other issues [1]

[1] https://pythonspeed.com/articles/alpine-docker-python/

Re:Multi-screening may mess with your memory on Thursday October 29, 2020 @01:55PM (#24933173)
Thanks, that makes sense. The computer terms helped :)
Re:Multi-screening may mess with your memory on Thursday October 29, 2020 @01:07PM (#24932676)
> Results showed that attention lapses in the moment prior to remembering impacted on behavioural and neural memory signals and were associated with greater likelihood of forgetting.

Can anyone translate this for me? This sounds like someone throwing a bunch of big words together to me.

I don't have a Nature subscription but this seems like another non-study, 80 adults in a contrived experiment with flashing images then given a "questionnaire" with which conclusions are drawn...

Re:Bletchley Park’s contribution to WW2 'over-rated' on Tuesday October 20, 2020 @12:13PM (#24839093)
If the atom bombs had no effect in forcing surrender, why then are they mentioned specifically in the Japanese surrender broadcast (with no mention of Soviet aggression at all)?

https://en.wikipedia.org/wiki/Jewel_Voice_Broadcast

Re:How the CPython compiler works on Thursday September 24, 2020 @12:44PM (#24580581)
Not sure about the first part...How is Python's approachable design "so limiting" to all those dimensions?

Nobody writes performance-critical code in pure python.

Not sure how "tooling" is bad, what would you say is limited there?

Package management, again, what package management problems are unique to Python? Many people say this but it seems the problems they bring up are not unique to pip or the python ecosystem, same problems are found with rubygems, npm, Maven, etc...

Maintainability is a responsibility of developers and not a programming language, and unmaintainable code can easily be written with any language. However I'd argue Python should score positive points for maintainability; one of the languages I feel most comfortable picking up old code from someone else and groking it easily.

Re:How the CPython compiler works on Thursday September 24, 2020 @12:31PM (#24580387)
It depends on your compiler.

But as a general rule, the programmer will have a hard time "outsmarting" the compiler by using different objects or abstractions.

Compiler authors have spent many hundreds of combined hours making C code run as fast as possible, and optimizing the switch statement is something they've most certainly done to death.

I.e. if your control flow is switch-case-like, use a switch-case.

Re:Firefox usage is down despite Mozilla's top exec pay going up on Wednesday September 23, 2020 @04:05PM (#24571341)
This is not a case of gallivanting engineers running free.

All of the moonshot projects are done at the direction of executive leadership in the hopes to open new profit streams.

In fact some of the more technically promising projects (like Servo) had their whole entire team laid off recently to "refocus" on more of these executive-sourced profit grab moonshots

Re:Moving your SSH port isn’t security by obscurity on Monday September 21, 2020 @01:24PM (#24546044)
Just curious, what problems does fail2ban suffer with thousands of unique ips? (A crowded iptables I guess...)

I still use it with a super oppressive jail time and few retries, with a few whitelisted IPs and it seems to work ok.

That's not fair...

1) Costs were not zero for the re-release. The only version of the game data (stats, items, enemy spawns etc.) was in the form of an original database backup (from an old employee's personal stash!). Classic runs on the modern WOW engine, so work was required to shoehorn the old data in and reimplement systems and interfaces which don't exist in the current WOW engine.

2) Before Classic's release, by far the most vocal crowd making demands of Blizzard were shouting their slogan "NO CHANGES". I really don't find it surprising that Blizzard has not made major changes since the majority of the player base requested as such...

Re:Professor suspended for saying 那个 nà ge on Monday September 07, 2020 @03:46PM (#24402124)
Just like a two-year old enjoys their newfound power over their parents by screaming in public until they are appeased.

So too do students with authority issues enjoy exerting newfound power over the authorities they oppose by complaining to their risk-averse boss.

No, the drive motor rpm is not controlled by OS drivers but by the drive controller. You'd have to write custom firmware and flash it onto the drive controller (inside the HDD) to change the rpm
Re:Ultralight lithium-sulfur batteries for electric airplanes on Wednesday August 19, 2020 @04:31PM (#24215982)
You could use this technique to estimate the remaining capacity starting from a full charge / known charge, but not to arbitrarily measure the remaining capacity of the battery

Older »