Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dkersten
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
301.
▲
by
dkersten
2y ago
The problem I currently have with AI-generated code, as an experienced programmer who can read and understand the output, isn’t that the code quality is bad, but that it’s often buggy and wrong. I recently recommended in my company that if
302.
▲
by
dkersten
2y ago
Not just thrown out, but also the customer relations when the bugs affect customers, the investigation to find the cause of the bugs, the migrations to fix any bad/corrupted data because of the bugs. Code review is a far cheaper way to
303.
▲
by
dkersten
2y ago
Yes, although there is a Linux version underway. It seems to be about ~80% complete, maybe check it in a few months. No idea of a windows version is in progress or planned though.
304.
▲
by
dkersten
2y ago
Agreed. Additionally, I don’t actually want to talk to my computer for most use cases. When I do, then I’ll use a dedicated service like ChatGPT, but for most other take, I really really don’t want a chat interface. I wish these companies w
305.
▲
by
dkersten
2y ago
I still tinker on a game engine personal project just to scratch the C++ itch. I really like using C++, despite all the hate it gets.
306.
▲
by
dkersten
2y ago
Apply the same logic to any other illegal rights violation that companies could do to citizens. Facebook has 3 options available: 1. Only provide their service to paying customers, no free EU version. 2. Don’t provide the service in the EU
307.
▲
by
dkersten
3y ago
Ok, and? I don’t like my high tax bill just as much as the next person, but of all the things the money gets spent on, social housing isn’t something I’m particularly upset about.
308.
▲
by
dkersten
3y ago
Both, really
309.
▲
by
dkersten
3y ago
Standard library maps/unordered_maps are themselves notoriously slow anyway. A flat_hash_map from abseil or parallel-hashmaps[1] would be better. [1] https://github.com/greg7mdp/parallel-hashmap
310.
▲
by
dkersten
3y ago
The most unexpected place I’ve encountered Clojure “in the wild” is the Defold game engines editor.
311.
▲
by
dkersten
3y ago
The way I’ve always done it is that I have client side event handlers that perform the UI-visible side of the logic client side, but also asynchronously request the server to do it. In simple cases, that logic simple sets a toggle or whatev
312.
▲
by
dkersten
3y ago
Isn’t that just optimistic updates? This has been common in client side logic for a long time, no?
313.
▲
by
dkersten
3y ago
I’ve been using aiosql and Hugsql for years and have never had any problems. In fact, Hugsql has a “snippets” feature that allows you to compose bits of SQL dynamically. https://www.hugsql.org/using-hugsql/composability
314.
▲
by
dkersten
3y ago
> resort to raw SQL I'm the opposite, I would rather write SQL than "resorting to" ORM queries, which is why my favourite libraries are aiosql[1] in Python, Hugsql[2] in Clojure and similar: write the queries as SQL in .sq
315.
▲
by
dkersten
3y ago
If I had a family member who insisted on wearing a headset all the time I’d probably be calling them a glasshole (Vision Pro is so much more obnoxious than Google glass ever was)
316.
▲
by
dkersten
3y ago
So non-obvious side effects? You can say that about any code at all, so no optimising would ever be possible. The program running faster is a side effect after all.
317.
▲
by
dkersten
3y ago
Doesn’t have to be faked either, I remember the Emotiv made similar claims and had similar demos where to the best of my understanding eventually people figured out it wasn’t really reading your brainwaves but rather facial muscles or somet
318.
▲
by
dkersten
3y ago
> in the Java world? No. The most recent one I saw was a (hobbyist) C++ game engine that used XML to declare game entities and such.
319.
▲
by
dkersten
3y ago
I still see people, in 2024, writing new software and using XML as the data format. I don't have an example offhand, but I recently saw a hobby game engine using XML to store its engine-specific game object/scene data. Personally,
320.
▲
by
dkersten
3y ago
You don’t even have to ignore io: input is a coeffect which is passed to your otherwise pure function as an argument and output is directly derived from your returned works state. That is, yes there’s some side effects happening before and
321.
▲
by
dkersten
3y ago
It was a problem on my end causing it, yes, but the point was that AWS deployment logs were next to useless as they didn’t even show the majority of times. On digitalocean, I got logs every time and after four or five deploy attempts had it
322.
▲
by
dkersten
3y ago
I actually gave up on AWS forever when trying to use ECS. It was incredibly complex and it kept failing to deploy, but cloudeatch only contained log entries for it about 20% of the time. All I could do was click redeploy over and over — som
323.
▲
by
dkersten
3y ago
I’ve had good success with ChatGPT and with Copilot, but I’ve found it really depends on how I use it and my expectations. It is NOT good at generating complex functions or code but simple cases and I do not use copilot for “comment driven
324.
▲
by
dkersten
3y ago
Not atomic updates per se, but transactional updates. Ie doing two atomic updates as one consistent atomic action.
325.
▲
by
dkersten
3y ago
Do they need that? If not you’re using a hypothetical situation that likely will never occur to excuse a bad decision (see YAGNI). In my 24 years of programming, I’ve never needed to do this in any way where this naming would have helped me
326.
▲
by
dkersten
3y ago
But if you open the source directory, “every” file is a castle file. I already know which files are castle files because they’re in the castle directory. It’s redundant information and it makes it hard to browse the files, eg I now need to
327.
▲
by
dkersten
3y ago
Singletons conflate two requirements: global access and enforcing that there is only one insurance. In my opinion you almost never need the latter and people use them when they really just want global access, and using a “Design pattern” to
328.
▲
by
dkersten
3y ago
It’s just storing the cells in a columnar fashion. If you don’t need the component composition (systems that can iterate entities that have certain components) then to don’t really be ECS, just use a tightly packed array.
329.
▲
by
dkersten
3y ago
I’ve thought about it a bunch, because I quite like ECS in games, but for me, doing web service backends, there was never any real benefit over just using a relational database since ECS is basically an in-memory subset of relational. Even
330.
▲
by
dkersten
3y ago
> The only useful "pattern" in the book is the singleton I don’t think it’s quite as bad a as you suggest. The Observer, component and event queue chapters cover information that is commonly used in games and the entire Optimiz
More ›