towerful

joined 2 years ago
[–] towerful@programming.dev 9 points 13 hours ago

Maybe all of DOGE was about finding Epstein files content, and failed.
And now that they have been released, Musk realises there is no kompromat on him so he can recover some PR points or something

[–] towerful@programming.dev 6 points 13 hours ago

I have a laptop with 32gb of ddr5 ram. It feels a bit slow on windows for work stuff.
On endeavour os (arch btw), it is blazingly fast

[–] towerful@programming.dev 5 points 13 hours ago* (last edited 13 hours ago)

Such is "being rich and famous".
Nobody on earth is "pure".
But some people will do anything for themselves. This is how billionaires and monsters are made. They are ALL bad

[–] towerful@programming.dev 14 points 13 hours ago (1 children)

Oh look, the consequences of Elon being in the Epstein files.
This is called PR.

The questions should be:
Why isn't he being prosecuted for being in the Epstein files?
Why isn't he being prosecuted for supplying internet to militantly aggressive enemies of the US?

[–] towerful@programming.dev 3 points 13 hours ago (2 children)

Does Canada have local manufacturing of good EVs?

Assuming Canada doesn't want American trash (seems like the prevalent opinion) the next option is European vehicles.

And I dunno that Canada yet has a favourable trade relationship for EU cars, so why shouldn't they get some Chinese import cars?
I haven't heard anything actually bad about them except "cheap".
Probably some tracking and privacy issues, but it seems like all companies do that so who the duck cares?!

To be clear, I live in the UK. I am very much local first, closer to home the better, never American.

[–] towerful@programming.dev 5 points 13 hours ago (1 children)

Git. Git git git.
If it is text and can be modified from multiple places, should have a single "main" branch and feature work done independently on separate "branches". Or even just a "back this up".
Git.

Git is text based version control (tho it will do binary file, just not elegantly).

So yeh, git.
GitHub is easy to host on, but owned by Microsoft and is somewhat proprietary (by the time issues and other enhancements GitHub provides), but at the end of the day it is git with authentication and is on the ol "cloud".
Plenty of ways to replicate this if it's just for you

[–] towerful@programming.dev 1 points 13 hours ago

Codeberg is git?
It's not GitHub! But fundamentally, it's git

[–] towerful@programming.dev 2 points 14 hours ago

I haven't experienced "2 or 3 prompts later" regression.
I have found asking it to queue changes until I ask for it to work on the queue.
Maybe ask it to produce a single file for review, or tell it how to modify a file (and why, it likes an explanation).
But always stack up changes, ask it to review it's queue of changes etc.
Then ask it to do it in a one-er.
Although, this is the first time claude said such a request will take a long time (instead of showing it's working/thinking and doing it is 20 minutes).
Maybe this is when it starts forgetting why it did things.

[–] towerful@programming.dev 16 points 14 hours ago (4 children)

Probably not relevant to the article, I had to rant. I'm drunk, and suffering!

I'm trying the old vibe coding, except with actual specs. I feel like I have to. I hate it.

I think refining the spec/prompt with Claude makes sense. I found it helped me crystallise my spec and highlight gaps & pitfalls.
At which point, I should've just coded it.
I'd have known what it does, and it would be exactly what I needed.
But I figured I'd see what Claude could do.

So, my "dev->staging->prod" (project isn't in production state yet, thought it would be good to try AI on something) database migration system with a planning, apply and rollback stage was built by Claude.
There are system tables that should migrate fully (but allow for review if they are structurally different) and there are data tables that should only alter schema (not affect data). It's decently complex that it would take me a week or so to write and generate, but maybe I can spend a day or 2 writing a spec and seeing what clause can do.

It wanted to use python, and told me that migra is outdated and tried to generate something that would do it all.
I told it to use results (the migra replacement), and after convincing it that results was the actual library name and that it can produce schema differences (and telling it that it is a different API than migra cause it tried to use it as if it was migra, and.... So much wasted time!), I finally got working code. And all the logs and CLI etc resulted in SUCCESS messages.
Except that tables are named like "helloThere" were ignored by it, cause it hadn't considered tables might have uppercase. So I got it to fix that. And it's working code.

It looks nicely complex with sensible file names.
Looking at the code: there are no single responsibilities, no extensibility. It's actually a fucking mess. Variables sent all over the place, things that should be in the current command context being randomly generated, config hard coded, randomly importing a function from another file (and literally the only place that other function is used) because.... I don't know.
It's just a bunch functions that does stuff, named be impressive, in files that are named impressively (ignoring the content). And maybe there are context related functions in the same file, or maybe there are "just does something that sounds similar" functions.

The logging?
Swallows actual errors, and gives an expected error messaged. I just want actual errors!

It's hard to analyse the code. It's not that it doesn't make sense from a single entry point. It's more that "what does this function do" doesn't make sense in isolation.
"Where else might this be a problem" has to go to Claude, cause like fuck could I find it it's probably in a functionally similar function with a slightly different name and parameters or some bullshit.

If I didn't know better, and looked at similar GitHub projects ... Yeh, it seems appropriate.

It is absolutely "manager pleasing complexity".
But it does work, after telling it how to fix basic library issues.

Now that it works, I'm getting Claude to refactor it into something hopefully more "make sure functions are relevant to the class they are in" kinda thing. I have low expectations

I don't EVER want to have to maintain or extend Claude generated code.
I have felt that all the way through this experiment.
It looks right. It might actually work. But it isn't maintainable.
I'm gonna try and get it to be maintainable. There has to be a way.
Maybe my initial 4-page spec accidentally said "then randomise function location".

I'm gonna try Claude for other bits and pieces.
Maybe I'll draw some inspiration from this migration project that Claude wrote (if I can find all the bits) and refactor it into something maintainable (now that I have reference implementations that seems to work, no matter how convolutedly spread they are)

[–] towerful@programming.dev 108 points 3 days ago (3 children)

If the snowman was build on the road, the driver is at fault for driving carelessly, not paying attention.
Nobody else was hurt. Nobody else's property was damaged. There is no one to be held liable.

This guy drove into a snowman, regardless of where it was.
A static object that only moves in Christmas music.

If it was a snowbank, same deal.
If it was a parked car, same deal.
If it was a fallen telephone/power pole, same deal.
If it was a pile of cinderblocks that fell off the back of a truck, same deal.

The guy either wasn't paying attention, or was being an asshole.
Either way, driving carelessly. Asshole is at fault

[–] towerful@programming.dev 2 points 4 days ago (1 children)
[–] towerful@programming.dev 2 points 5 days ago

I like typing yay and getting updates.

 

(not sure where to post this...)

I had an idea there might be a TUI lib for typescript. A duckduckgo search came up with an article that described exactly what I wanted!
So of course I immediately searched for this fabled tui lib. A quick search didn't reveal anything, and npm can't seem to find it either! https://www.npmjs.com/search?q=Tui
Navigating directly to the npm package page reveals a 10 year old got repo with no actual code... (https://github.com/basarat/tui)

What the scuff is this world coming to?!
This seems to absolutely align with my experience of using LLMs

(Also accepting suggestions for typescript TUI libs that actually exist!)

 

I've been here a while, and I appreciate the community and the defed/hiding list.
I also know programming.dev contributes to upstream Lemmy repos.

I saw another post about another instances funding.
Which reminded me....

Is programming.dev on track for funding?
Need some more donations?
Is there a runway?

view more: next ›