HNHacker News
TopNewBestAskShowJobs

dc-programmer

784 karma · joined August 10, 2021

submissionscomments
dc-programmer··on 3 percent of Python codebases we checked had silently failing unit tests
Wow, that sounds like the future of testing. It’d be a hard to sell to manager now though. Some of those checks seem like they could be auto-generated though
dc-programmer··on 3 percent of Python codebases we checked had silently failing unit tests
I’ve shipped unit tests that would fail but don’t run by copying the function signature of the previous test then forgetting to change the name of the new one. Only one of the tests will run (the first?).

Maybe unit tests need unit tests? (There’s probably a lint rule to catch what I describe above)

dc-programmer··on Ask HN: Is HN becoming more of an “echo chamber”?
The baseless conspiracy theories are annoying too. Theorizing motivations or potential conflicts of interests is not proof of any kind. Nor is cherry picking incidents from the past
dc-programmer··on Ask HN: Is HN becoming more of an “echo chamber”?
The reactionary political takes can be pretty exhausting to be honest. There is a stark contrast between the nuance and depth of the technical conversations compared to the politically adjacent ones.
dc-programmer··on Trudeau Invokes Emergencies Act
In Canada?
dc-programmer··on Why Won’t Anyone Teach Her Math?
This does not sound like a proof heavy class, but this approach unfortunately does not work as well for more advanced classes. Especially for problems where you can lose points for not writing the proof like a mathematician would even if you get the steps right (there was one prof in the math department who would deduct points for inelegant but otherwise correct proofs)
dc-programmer··on Why Peter Thiel Searches for Reality-Bending ‘Secrets’
Perhaps relevant https://news.ycombinator.com/item?id=30219472
dc-programmer··on Silicon Valley's Secret Christians
American Jesus would approve of Silicon Valley’s relentless pursuit of profits over people. Gospel of Wealth and all that
dc-programmer··on Silicon Valley's Secret Christians
I was about to reference the Silicon Valley episode but decided to peek into the article first. Turns out it’s in the first sentence
dc-programmer··on Why won’t anyone teach me math?
Well, the few people I had in mind aren’t exactly tearing up the world of financial services to put it nicely. Maybe moron was too mean.

A related belief I have is that college students over-index on trying to get their foot in the door of whatever industry. For example, students who skip stats and CS classes because they might hurt their GPA might find themselves behind the students who did 5 years down the line. Even in the humanities and social sciences. Another example is all the junior engineers who are leetcode experts but don’t know what DNS is.

I actually agree with what you are saying. But why can’t college be the place to do that? You have a bunch of people together in one place who want to learn (and have the time), in theory guided by experts. Most people are highly social learners and need some accountability, and Khan academy videos aren’t going to cut it

dc-programmer··on Why won’t anyone teach me math?
One unfortunate thing about undergrad is that students are punished for taking classes that push their capabilities or even classes in other disciplines (past the basic requirement version of these classes).

Many ambitious students are striving to make a career in the humanities (probably like this author), to go into investment banking, or to get into an elite law or medical school. These fields are so competitive that it’s not worth risking taking classes you might not get an A in.

This results in students filling their schedule with easy classes and professors and maybe not taking the classes they are interested in. Or worse, punishing students who don’t do this.

Some of the smartest people I know were 3.2-3.5 students because they did not play the game and took challenging classes across disciplines. Conversely I know some absolute morons who got I-banking jobs at elite firms because they only took fluff classes

dc-programmer··on Why won’t anyone teach me math?
I got crushed by a class in environmental humanities. Not due to a lack of comprehension of the material but because I didn’t understand the technical aspects of writing literary analysis (extreme focus on close reading of the language used where I tended to focus on the abstract conceits). It felt equivalent to taking a class in graph theory without first taking a proofs/discrete course and everyone else in the class had. Great class though - I think about the texts all the time
dc-programmer··on Web hacking techniques of 2021
Sir, this is a Wendy’s
dc-programmer··on Ask HN: What are your IDE superpowers? Tips that make you a better developer?
vim’s text manipulation capabilities are overpowered. I can dump unstructured or poorly structured logs into a text file and format the key fields into a CSV in under a minute using no code. It’s like excel, grep, and sed rolled into one tool
dc-programmer··on Ask HN: When should event-driven architecture be avoided?
That does make sense, but isn’t that what container orchestration services do for you?
dc-programmer··on Ask HN: When should event-driven architecture be avoided?
Do you have any recommendations for resources that map control theory to web services? I find the idea really interesting. I have two questions though

How well do controllers work with non-numerical inputs? I would assume the usual use cases involve numerical data from sensors.

Does it work well with applications where the importance of availability supersedes consistency? When I hear controller, I can’t help but think single point of failure

dc-programmer··on 101 AWS Lambda tutorial for Go developers
The last point is extra painful because it causes errors that are difficult to reproduce locally (even when using runtime interface emulator)
dc-programmer··on 1999 Repeal of Glass-Steagall was the worst deregulation enacted in US history
Before the Federal Reserve, recessions devastated the US economy every 20 years in the United States. When the Fed is actually given the autonomy to do what’s right it’s a pretty effective system. The last two recessions were pretty bad but they weren’t due to monetary policy but rather fiscal policy + bad actors and a pandemic.

The skeptic in me questions the motivation of public figures who blame all economic woes on the Fed. It really checks off a lot of populist scapegoat boxes

* Un-elected technocrats making important decisions in the shadows

* big government interfering in the economy

* impossible to understand as a layperson (for anyone?)

* a big departure from traditional ways of doing things so people think it was better in the good old days

Additionally it’s a good way to distract from America’s dismal fiscal policies. Finally, I think there’s a physiological component where people blame economic hardship on the tangible incarnation of wealth - money - as opposed to more abstract systems. It’s a way to map their emotions on something they know and understand.

dc-programmer··on iPhone flaw exploited by second Israeli spy firm
This is getting out of hand. Now there are two them!
dc-programmer··on Ask HN: How to Deal with AlphaCode Anxiety?
You don’t see how someone might have a visceral reaction to the prospect of being automated out of a job? Especially for those people living in countries with weak or no social nets? Plus, for a lot of us programming as it’s done now is a big part of our identity, and it’s understandable how people might feel uncomfortable about something that casts uncertainty about our place in the future.

The historical Luddites were not anti-tech. They were lashing out against automation reducing their status in society and financial security

dc-programmer··on North Korea hacked him, so he took down its internet
At this point I would assume that foreign states have malware hooked deep enough into all the systems that the only way to eradicate them would be with an incinerator. Plus even after (if?) they update their software I doubt you’d need zero days to get back in. Im interested to see what the upgrade path is for the Red Star OS is though lol
dc-programmer··on North Korea hacked him, so he took down its internet
The article says he’s exploiting known (ancient) vulnerabilities
dc-programmer··on Request bodies in GET requests
I disagree with many of the posters here saying that the difference between GET and POST is irrelevant or a social construct or something like that.

Intermediate proxies and browsers apply different caching rules to GET vs POST responses. This can have huge performance and security implications.

Along the lines of security, browsers impose stricter security mechanisms on POST requests. Cross site POST calls require a CORS pre-flight options request, and the response of this request is scrutinized. Choosing GET vs POST can be the differences between having CSRF protections and having none.

Sometimes I feel that some of the opinions here are not very useful without the context of the environments in which they are deployed. A few weeks ago I saw someone wrote that logging is an anti-pattern because correct code doesn’t need it. That may work for a small project, just like using fat GET requests may be fine for most projects. But when you are building complex software at scale, the importance of following the normal practices becomes very evident

dc-programmer··on Whichever party is in power, policies tend to be similar
Thanks for the detailed response. I will check out The Anglo American Establishment
dc-programmer··on Despite the hype, iPhone security no match for NSO spyware (2021)
Also a lot of these exploits are buffer overflows. That’s a terrible back door because anyone could find it. If there were back doors it would be things like sharing the seeds to the RNG that generates their private keys or just giving access server side access. But they aren’t doing that because it’s dumb. And if the government already has back doors why would they purchase external tools? But as ever the best argument against the conspiracy is it would impossible to keep secret
dc-programmer··on Despite the hype, iPhone security no match for NSO spyware (2021)
We are a now in a age where people are talking about building their own chips and phones because they don’t trust the commercial products to be secure. I have a feeling the Apple marketing org is less than thrilled about recent news. Also Google no doubt is looking for ways to capitalize on this. They already have the reputation of having security geniuses on par with the NGO group on their payroll
dc-programmer··on Despite the hype, iPhone security no match for NSO spyware (2021)
If Apple is adding back doors willy nilly why would they execute a parallel marketing campaign centered on privacy at the same time? The more likely reality is that are extremely upset this is happening and being publicized. My personal take is it would be impossible to add back doors to Apple products without whistle blowing. Why does everything have to be a conspiracy these days?
dc-programmer··on Whichever party is in power, policies tend to be similar
Just visited the NumbersUSA site because I never heard of the, and immediately regretted it. Ghastly. They oppose a few thousand additional green cards (a system that is already pretty exploitative) during a time when skilled immigration is drastically decreasing. I don’t get it all. If anything ever made America great it was high skill immigration.
dc-programmer··on Whichever party is in power, policies tend to be similar
I believe our democratic process gets corrupted by the influence of money (and the legalization of bribery by the courts). But there’s no evidence this is all part of some coordinated effort that persists over time. Even if there is some evil cabal out there, they clearly do not exert complete influence as evidence by all the populists officials elected in the last four years. Why would Google/Facebook et al hand pick officials that want to break them up? These people are bad for big business because they act on reckless impulse.

Also maybe the status quo democrats aren’t leftists after all? And yes, I think these are useful “labels”. You’re implying the Illuminati or someone made up the left/right dichotomy to divide us but these have been used for over 200 years. Finally, I don’t think supporting resource extraction is intrinsic to one side. Lots of socialist countries export billions of dollars of oil a year. Equating anti fossil fuel sentiment with leftism is a very western way of viewing the issue.

Honestly the only conspiracy I really see is the political nihilism evinced online. It’s like some people want the citizenry to just give up or something. It’s still possible to exert political power as a normal voter. Don’t like the two choices you were presented with? Well did you vote in the primary? No? Oh gee.

People are taking this article to mean we are all living in a veil of ignorance while our puppeteers present us with a false dichotomy. I think an easier explanation is the US Government is a lumbering bureaucracy with lots of momentum and a few newly elected officials aren’t going to change anything. People overrate the influence of individuals and try to form narratives that don’t exist to explain the world in a way that makes sense. When really events and changes emerge dynamically from complex systems in a way that can’t be easily explained

dc-programmer··on I got an FBI record at age 11 from dabbling in cryptography (2015)
I mean that’s a pretty dumb thing to do with very predictable consequences
← PreviousPage 9 of 11Next →