Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
default-kramer
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
default-kramer
1y ago
I realize no one is claiming otherwise, but this writer almost certainly did it intentionally for humorous effect. ("Aubergine wyrm" is just too good to be accidental.) It's like "the lick" in jazz.
32.
▲
by
default-kramer
1y ago
"How can I change the background color of the selected item in a WPF ListView? It must work whether or not the ListView has focus." I only tried ChatGPT which gives me 5 incorrect answers in a row.
33.
▲
by
default-kramer
1y ago
I highly recommend Dragon Quest Builders to anyone who enjoys (or might enjoy) Minecraft even a little bit. It can reliably make me feel like a kid with a new Lego set for hundreds of consecutive hours. Killer Feature #1 is the room system,
34.
▲
by
default-kramer
1y ago
I'm very surprised we don't see more people using a level 5 language to generate Terraform (as level 3 JSON) for this exact reason. It would seem to be the best of both worlds -- use the powerful language to enforce consistency an
35.
▲
by
default-kramer
2y ago
Yeah, automated tests are great when they are good. But when they are bad, they can be worse than no tests at all. Multiple times in my career I've taken ownership of a codebase written by someone else. Some of the most pleasant ones h
36.
▲
by
default-kramer
2y ago
> Kind of disagree with this article, when you add a "noun" (aka type), you're often introducing a new abstraction. The article is talking about simple "bundle of values" types; the example is the CreateSubscript
37.
▲
by
default-kramer
2y ago
> Pass 5 variables individually, the only difference will be in verbosity. Which can be an extremely significant difference. If you're already using a single object and add a 6th field, you only need to update the places where the o
38.
▲
by
default-kramer
2y ago
> When you have one engineer who is empowered to write SQL specifically crafted to pull the exact columns required to SSR a web view (which they are also responsible for), you don't need to spend a single second thinking about APIs
39.
▲
by
default-kramer
2y ago
A good DBA would restrict the account so that it can't access the information schema. It's easy to imagine an environment with a vigilant DBA and less vigilant web developers.
40.
▲
by
default-kramer
2y ago
> I can't imagine how the schema would reveal SQL injection holes. It wouldn't. I'm just assuming that the thrust of the hypothetical negligence accusation was "The schema is useless unless you have SQL injection hole
41.
▲
by
default-kramer
2y ago
Maybe I'm ignorant, but if the account the app is using doesn't have access to the information_schema how do you do this?
42.
▲
by
default-kramer
2y ago
"Defense in depth" is an easy argument to make. I sure hope I don't have any SQL injection holes, but I can't prove it with 100% certainty.
43.
▲
by
default-kramer
2y ago
Right, and that's what you use to find the vulnerability. But imagine you've found the vulnerability and now you want to use it to update all of your parking tickets as paid. Without the schema, this is going to be quite tricky an
44.
▲
by
default-kramer
2y ago
> How does knowledge of a column name make it easier for me to discern whether a SQL injection vulnerability exists? It doesn't. It just means that as soon as you find one, you can immediately begin crafting valid queries instead of
45.
▲
by
default-kramer
2y ago
Why would someone acting in good faith do as much outrageous trolling as Trump and Musk do?
46.
▲
by
default-kramer
2y ago
Thanks, I am appreciating reading this discussion. > Of all the things you listed about Trump, I’d only really take issue with two So then you agree that he tried to overthrow an election? This is the wild part to me. I don't know w
47.
▲
by
default-kramer
2y ago
I remain unimpressed by KQL. Comparing SQL to KQL is approximately like comparing Java to C#. Yeah it's better in many ways, but at the end of the day it doesn't make a huge difference. I want to go from Java to Lisp. Consider how
48.
▲
by
default-kramer
2y ago
I'm very surprised to learn that PRQL does not natively support `like`, but you can add it yourself: https://github.com/PRQL/prql/issues/1123#issuecomment-135385...
49.
▲
by
default-kramer
2y ago
I'm still working on it, but I think a key idea is that 1) The "host" tells you he is going to eliminate one of the two losing options, and then allow you to choose from the two remaining options. 2) The host allows you, if y
50.
▲
by
default-kramer
2y ago
> But we do know: it's always on purpose, Monty never opened a door with a car behind it We only know that if the problem tells us. Sometimes it doesn't. > There are no ambiguities in the Monty Hall problem The problem has b
51.
▲
by
default-kramer
2y ago
Not this again... https://duckduckgo.com/?q=monty+hall+site%3Anews.ycombinator... I need to write a blog post or something convincing everyone we need to stop talking about the Monty Hall problem and replace it with a new p
52.
▲
by
default-kramer
2y ago
> And for this new hash table, the time required for worst-case queries and insertions is proportional to (log x)2 — far faster than x. > The team’s results may not lead to any immediate applications I don't understand why it wou
53.
▲
by
default-kramer
2y ago
> where is DOGE’s evidence of all of this corruption? Presumably this was published by DOGE: https://www.whitehouse.gov/fact-sheets/2025/02/at-usaid-wast... I encourage everyone to follow the links and det
54.
▲
by
default-kramer
2y ago
I hope this is true. Can you name any senior people and/or financial auditors who are overseeing "the youngins"?
55.
▲
by
default-kramer
2y ago
And not just the ORM, but the way it's used. If you ensure that lazy-loading is turned off from day 1 and stays off, you might be okay. But if you don't pay attention to this and write a bunch of code for N years until all the &qu
56.
▲
by
default-kramer
2y ago
Hard disagree on the 10kloc limit. At a previous job, I maintained and enhanced a 50kloc monolith (written by someone else), usually by myself. My productivity was very high. At my current job, we've split a codebase that should be abo
57.
▲
by
default-kramer
2y ago
> Either the candidate earns a position fair and square, in which case you don't need "DEI", or you are discriminating against someone else more deserving, and therefore lowering the bar overall. False dichotomy. It's
58.
▲
by
default-kramer
2y ago
I looked at it when it hit HN a while ago. Looks nice, but not exactly what I want because > Joins and source tables are automatically resolved in Trilogy. You won't ever explicitly specify one in your query; you're declaring w
59.
▲
by
default-kramer
2y ago
> Compose SQL in an actual real programming language that isn't horrible instead of doing any of this. Got any recommendations? That's a serious question, I've tried many (and built my own) and some are okay but none feel
60.
▲
by
default-kramer
2y ago
The goal is that the composable parts get woven into an efficient, planner-friendly query. Stored procedures completely undermine that unless something very exciting has happened since last I checked (SQL Server, but probably applies to all
More ›