I vaguely remember hearing this this was only really available for toy code and that this function created the class ignored the arguments and qualified println when you compiled it, so it wasn’t actually that useful?
- 0 Posts
- 46 Comments
Solemarc@lemmy.worldto
Programming@programming.dev•Building Custom MCP Servers with Next.js and mcp-handler
1·22 days agodeleted by creator
Solemarc@lemmy.worldto
Programmer Humor@programming.dev•Clock but the PM quit and was replaced halfway through the project. Handover instructions: "Make the clock hands show the current time"
25·3 months agoPolling the API every second, are you crazy?!
Whenever I try and get a proper explanation of a monad from the internet I get these miserable opaque examples which make me go “sorry I asked!” But I think a monad is basically just single type that when unwrapped gives you the result of a calculation and some metadata about the calculation.
I think it’s more like Rust’s Result or Option types then go’s tuples but I’d say they both basically count.
Nah, I recently had to create a program that turned a bunch of extracted CSV files into an XML file for government reporting. I also had to parse some provided government XML files to add things into my output.
This was going to be run by non-technical people on any OS so I went for python because “install python, download this file and click on it” was easy. Python has a big standard library so I could do everything I needed in it. I was considering using Go but asking people to open the terminal and build something was probably a bridge too far.
I/O and stuff like that is being done in the WASI proposals not in WASM proper. I believe most of this stuff is waiting for initial implementations at this point and then it becomes a proper standard.
Solemarc@lemmy.worldto
Australia@aussie.zone•Stop the free ride: all motorists should pay their way, whatever vehicle they driveEnglish
9·6 months agoIsn’t the EV tax effectively just a fuel excise tax for cars that don’t use fuel? I mean, regardless of what this article thinks the fuel excise is described as “a sales tax on fuel that is reinvested into roads”.
Solemarc@lemmy.worldto
Programmer Humor@programming.dev•They're trying to normalize calling vibe coding a "programming paradigm," don't let them.
2·9 months agoI had a fun one this week! I needed to make an SQL query that would aggregate rows by invoice and date, but only aggregate 5 then overflow to a new row. I also needed to access the individual row data because the invoice items weren’t summed, they were displayed on separate columns!
I ask my senior if there’s an easy way to do this, he comes back with “chatgpt says you can assign row numbers then get individual row data with % row number”
I go to Gemini and ask “how to aggregate rows by 5 and get individual row data out?” It says “you can’t” (since when has Ai’s been able to say you can’t do X) So I ask it about the modulo operator and it gives me an example that doesn’t really work. After screwing around for a while I give up and decide I’ll just run this query 3 times. 1 for rows 1-5 then for 6-10 and one more for 11-15 that’s so many rows surely no one will break this.
Solemarc@lemmy.worldto
Android@lemmy.world•Exclusive: Google will develop the Android OS fully in private, here's whyEnglish
1·9 months agoFYI Android is not about to become closed source. Google has their own internal dev branch and the publicly available main AOSP branch, this is already known. What they’re doing is simplifying their release process so that rather than having two “main” branches AOSP will be downstream from their dev branch.
Solemarc@lemmy.worldto
Australia@aussie.zone•Sound it out: Victorian children improve reading ‘leaps and bounds’ thanks to phonicsEnglish
3·9 months agoI remember being taught phonics in primary school in the 2000’s, and I went to a public school so I don’t understand why we think this is revolutionary either. Maybe it’s just new in VIC? I’m from QLD
Solemarc@lemmy.worldto
Programmer Humor@programming.dev•ErikMcClure/bad-licenses: A compendium of absurd "open-source" licenses.
15·11 months agoIsn’t the “passive aggressive licence” just MIT?
deleted by creator
I agree with you, it was more of a commentary on “what would happen if we had AGI tomorrow”.
We’ve been 3 months away from AGI for a few years now and it’s debatable if we’ll ever get there with LLM’s. Looking into the results of AI tests and benchmarks show that they are heavily gamed (tbf, all benchmarks are gamed.) With AI though, there’s so much money involved, it’s ridiculous.
Fortunately it looks like reality is slowly coming back. Microsoft’s CEO said that something like “AI solutions are not addressing customer problems.” Maybe I’m in a bubble but I feel like overall, people are starting to cool on AI and the constant hype cycle.
I’d agree that in the short term, AI is overhyped and in the long term, who really knows.
One thing I’ve always found funny though is that if we have AI’s that can replace programmers then don’t we also, by definition, have AI’s that can create AI’s? Isn’t that literally the start of the “singularity”, where every office worker is out of a job in a week and labourers only lasting long enough for our AI overlords to sort out robot bodies?
Solemarc@lemmy.worldto
Programmer Humor@programming.dev•(How to trigger programmers (and make them irrationally angry)
21·1 year ago“we’re just trying to display <insert field here> why is this so hard? It’s a ten minute job!”
Rust makes multi threading very easy you can just use
thread::spawn();But rust makes Async difficult because it’s naturally stackless so you need to create your own scheduler or use someone else’s like Tokio. Also, people have a bad habit of conflating async with concurrency which makes it more confusing.
Solemarc@lemmy.worldto
Programmer Humor@programming.dev•Something is broken... I know it..
93·1 year agoMy favourite is always;
Lemme quickly write this test, it passes great, if I make this little change it’ll fail. It’s still passing, damn.
Solemarc@lemmy.worldto
Programmer Humor@programming.dev•TIFU by not using objects in my object-oriented programming coursework
4·1 year agoYou’re not wrong but I think when you’re teaching someone just having 1 parent and 1 child class makes for a bad example I generally prefer to use something with a lot of different children.
My go-to is exporters. We have the exporter interface, the generic exporter, the accounting exporter and the payroll exporter, to explain it.
At school, the only time I used inheritance was 1 parent (booking) and 1 child (luxury) this is a terrible example imo.
Solemarc@lemmy.worldto
Programmer Humor@programming.dev•TIFU by not using objects in my object-oriented programming coursework
8·1 year agoSame, I always remember this with interfaces and inheritance, shoehorned in BS where I’m only using 1 class anyway and talking to 1 other class what’s the point of this?
After I graduated as a personal project i made a wiki for a game and I was reusing a lot of code, “huh a parent class would be nice here”.
In my first Job, I don’t know who’s going to use this thing I’m building but these are the rules: proceeds to implement an interface.
When I have to teach these concepts to juniors now, this is how I teach them: inheritance to avoid code duplication, interfaces to tell other people what they need to implement in order to use your stuff.
I wonder why I wasn’t taught it that way. I remember looking at my projects that used this stuff thinking it was just messy rubbish. More importantly, I graduated not understanding this stuff…

So sick of this doomer BS. I went and had a look at Linus’ “FoSS vibe coded project” that everyone’s been flipping their shit over.
Like, it apparently worked for Linus and he also doesn’t care to learn python at all. But I was under the impression that these things are supposed to be good at python.
This was completely unhinged garbage that I’m shocked even worked. It created the same function twice one after the other. We have nested python functions.
We have these unhinged guard conditions where if navigation is true we return. THEN we immediately set it to be true and at the end of the function we set it to false again. I thought I was high reading that code. If you legitimately think these things are better at writing code then you are, you suck at writing code.