Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dkarl
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
48 ms
·
511.
▲
by
dkarl
3y ago
Tests matter, but elegance and simplicity matter, too. Tony Hoare said, "There are two ways to write code: write code so simple there are obviously no bugs in it, or write code so complex that there are no obvious bugs in it." All
512.
▲
by
dkarl
3y ago
> In my experience no coding standards or cleanliness can prevent this. The only sure way is testing on commit/PR. I think that's an issue with how people define "clean." It isn't just about surface aesthetics. T
513.
▲
by
dkarl
3y ago
> 3) Nobody gives a f** about your clean code This is true most of the time, but assuming your boss and coworkers are doing their jobs well (which is why it's not true most of the time) people will regularly communicate the things t
514.
▲
by
dkarl
3y ago
Not just one line, but often 3-4 lines, and when writing tests, it often completes 10+ lines for me, and I only have to make a few corrections, sometimes none at all. You have to read every line and character it suggests, but even so, it sa
515.
▲
by
dkarl
3y ago
> absorb best practices by osmosis a few years after they're developed by the bigshots Better yet, ignore the concept of "best practices" and learn what different software development practices have to offer in different c
516.
▲
by
dkarl
3y ago
It really pays the effort back, though, when you can figure out why something was done, beyond knowing the feature it was related to, which is all you get with a squash merge.
517.
▲
by
dkarl
3y ago
I think squash merges are a last resort heavy-handed tool for dealing with developers who refuse to clean up their commit history before merging. Most developers can do better by hand. Git history should tell a simple, understandable story
518.
▲
by
dkarl
3y ago
A language doesn't just keep getting better and better with age. "Maturity" is about achieving a a level of stability and quality in language features, tooling, runtime, library ecosystem, etc. Scala and Java share the same r
519.
▲
by
dkarl
3y ago
The Secret Service's criteria[0] make it arguable either way. For example, the polling criteria would argue against him (though I think he's been close): "Whether, during and within an active and competitive major party prima
520.
▲
by
dkarl
3y ago
> Seems scholarly and scientific in conversation with Joe Rogan I doubt that's a hard thing to achieve for someone used to speaking in public. Joe Rogan is not known for challenging his guests intellectually.
521.
▲
by
dkarl
3y ago
I guess the way you describe it is the way I like to work, keeping my object model in code close to the relational model to minimize the mental and performance cost of mapping back and forth, and using a SQL library to minimize boilerplate.
522.
▲
by
dkarl
3y ago
If you are sophisticated enough to design a good relational model and use an ORM to generate it, what does an ORM give you? Serious question. The answers I've seen typically stress the advantages for developers who are uncomfortable wi
523.
▲
by
dkarl
3y ago
This reminds me of the company I worked at that was paying for dozens of unused Redshift clusters at any one time, peaking over a hundred. There were common data science (read: ETL configuration) tasks that required spinning up a Redshift c
524.
▲
by
dkarl
3y ago
For this reason I love drawing diagrams on whiteboards and absolutely hate taking the step of putting them into a wiki/README/etc. One thing I miss about in-office work is that people would spontaneously draw diagrams in meetings.
525.
▲
by
dkarl
3y ago
Even as a teenager, I knew that "it turns out all your emotional angst is vindicated by objective reality!" was a bullshit fantasy, but even knowing that, I needed it to sometimes be the answer. The older I get, the more I'm
526.
▲
by
dkarl
3y ago
> If a human being had done that they would have absolutely had the book thrown at them. Really? If they had been in a car accident caused by another driver, and took a few seconds to pull over because they were unaware they were draggin
527.
▲
by
dkarl
3y ago
> I find it ironic that the human driver is still at large Ironic but completely expected. We have normalized and accepted the awfulness of human drivers to a degree that people just don't comprehend. Human would be terrible drivers
528.
▲
by
dkarl
3y ago
It's insane to hear attrition used as an excuse for architectural decisions, but I've seen it firsthand.
529.
▲
by
dkarl
3y ago
Businesses aren't human beings, and there's no meaningful way to confront them with emotional consequences. Whatever obligations they have should be satisfied in a way that gives them the least possible influence over the process
530.
▲
by
dkarl
3y ago
There's a Nobel Peace Prize waiting for you if you can solve the problem at that level.
531.
▲
by
dkarl
3y ago
> There is no Legal Aid for cases like these. Charities or (in this case) relatives That's the part that could be fixed. If we manage to provide legal assistance to every criminal defendant who can't afford it, we could provide
532.
▲
by
dkarl
3y ago
> So we’ll do the whole @financialombuds thing and fill in a million faceless forms. But I bet that not a single person will ever turn up at her home, sit down with her and just talk to her. Shame on you @HSBC_UK Such a weird place to lo
533.
▲
by
dkarl
3y ago
If you're transpiling to Javascript, or running type-hinted Python, the runtime platform doesn't know about the type-checking you did at compile time.
534.
▲
by
dkarl
3y ago
That's a completely reasonable compromise. I think the reason it doesn't get mentioned is that nobody would bother doing it under those constraints. Scientists would not choose to work on it at such great personal cost, and the fi
535.
▲
by
dkarl
3y ago
It depends on how much it warps your business. As far as I could tell, the company I talked to had a couple of prominent front-end features that were AI-driven, nothing more.
536.
▲
by
dkarl
3y ago
> The problem is that companies are throwing tons of garbage at the wall to see what sticks. And somehow, investors are rewarding them for this. I'd turn that around. Investors are throwing tons of money at AI to see what sticks, an
537.
▲
by
dkarl
3y ago
> Personalized learning can feel isolating. Whole class learning can feel personal. can , can Can't the author say anything more definitive than can? > Whole class work can feel personal. I consider it proven by Liz. QED. Th
538.
▲
by
dkarl
3y ago
It doesn't even have to involve death. I had a NAS that I set up and relied on, and then when it stopped working, I was so busy for the next month that I got used to living without it. (It wasn't a difficult fix, but I didn't
539.
▲
by
dkarl
3y ago
> There are many tricks to becoming a fail-proof superhuman, many of which I detail in my book Good lord is this cringey. > The confidence damage from failing is still huge compared to the confidence boost from succeeding, so to do su
540.
▲
by
dkarl
3y ago
I think you're blurring some lines when you present a choice between using a DI framework, rolling your own framework, or not using "dependency injection as a pattern in general." "Dependency injection as a pattern in ge
More ›