Close notepad.exe. Open a real editor. Select the text you want to comment out. Press Ctrl-/
- 0 Posts
- 13 Comments
Yeah but… Don’t. Multiline comments are a bit of an anti-pattern at the best of times. This is a war crime.
FizzyOrange@programming.devto
Programming@programming.dev•Anders Hejlsberg, Creator of TypeScript: 10x Faster Typescript, Why AI Won't Replace SWEs
2·3 days agoAI is not capable of novel or complex stuff,
This seems to be both untrue and mostly irrelevant.
The recent FLT proof is clearly complex and novel.
But also a huge amount of programming is only barely complex and not really novel at all.
The biggest issues I’ve seen with AI so far are:
- The slop comments are just painful to read. I think this might mostly be Claude though, I recently switched to Codex and it’s way less annoying.
- It is so benchmaxxed to “succeed at all costs” it will often do stupid things just to make the test pass or whatever. To be fair a lot of humans are like that - “I dunno but it seems to work” attitude.
FizzyOrange@programming.devto
Programming@programming.dev•Github confirms random 401 responses on unauthenticated `git clone`s are no mistake
4·4 days agoI expect they are for GitHub. GitHub is really well known and huge so it makes sense to set up specific scrapers for it.
FizzyOrange@programming.devto
Programming@programming.dev•Github confirms random 401 responses on unauthenticated `git clone`s are no mistake
12·5 days agoThis seems reasonable. Cry all you want but if even smaller sites are getting overwhelmed with bots imagine what it’s like for GitHub.
FizzyOrange@programming.devto
Programming@programming.dev•You have to beat the models at something
2·5 days agoWhat are you talking about?
FizzyOrange@programming.devto
Programming@programming.dev•You have to beat the models at something
4·6 days agoAh the classic “it’s just maths therefore it can’t really think” nonsense. You’re just dirty water so you definitely can’t think.
FizzyOrange@programming.devto
Programming@programming.dev•Laravel keeps getting bigger and I'm not sure that's good
1·6 days agoPython is a poor choice IMO. It’s just too slow, even for web servers. Everyone says “oh it’s IO bound or database bound; Python doesn’t matter”) but in my experience it does.
Better choices:
- Go - very easy. Build in web stuff. Fast. Trivial to deploy.
- Typescript, especially via something like Deno’s Fresh. Much faster than Python, better type checking, and best of all you can use TSX-based templates instead of shitty text-based ones like Jinja.
- Rust. Definitely the hardest option, but on the plus side you will learn Rust and that’s a big plus.
FizzyOrange@programming.devto
Programming@programming.dev•You have to beat the models at something
10·6 days agoThey can be guided. For example I asked Claude to benchmark some SystemVerilog.
First it just did
time ./run.shand I was like “no, idiot. That’s going to include the compilation/startup overhead.”So then it said “I’ll just increase the simulation time to amortise the startup cost.” Again I told it that was bad and to actually measure the time in SV.
So since SV has no wall-time functions, it used
$system("date")or some bollocks like that. No! I said - use DPI-C.Finally it did the right thing. Would it have been quicker to do it myself? Absolutely not.
Current AI is at lazy junior engineer level (but sped up 10000 times). You just have to make sure they don’t make lazy dumb decisions. E.g. they’re going to do everything in Bash if give half a chance.
Tbf to AI I think they’ve learned a lot of this from humans. I bet if you searched for
$systemin SV you will find a lot of hand crafted horrors. I’ve seen human-written C code that found an ELF symbol bysystem("nm ... | grep ... | awk ..."). I shit you not.
FizzyOrange@programming.devto
Programming@programming.dev•Good Culture is the Biggest Productivity Hack, Not AI
2·6 days agoYeah… when the only documentation is CLAUDE.md…
Still you can see why right? Improving docs/understandability for AI is good for them - they get more capable AI. Improving it for humans only helps other people, which is less of a priority.
FizzyOrange@programming.devto
Programming@programming.dev•why we never use modulus to produce random integer range
3·8 days agoNever is a strong word. In cases where you don’t need strong cryptographic or statistical properties it’s totally fine. That’s 99% of cases.
Nobody is modding a single byte. You’re going to have a 32-bit PRNG at least. 32-bits mod 100 is easily random enough for almost every use.
I guess it’s a good thing to be aware of though.
FizzyOrange@programming.devto
Programming@programming.dev•TMOG — Your whole machine, at a glance.
1·8 days agoEvery core, honestly
Oh hi Claude.
The fact that CSS only supports multiline comments doesn’t mean multiline comments are good, it means CSS is badly designed.