

A new JS framework! Time to reset the clock!
In all seriousness though, congrats, you’re already a lot further than most people ever get. I approve of this trend to reduce bundle size as much as possible that we’ve been moving towards.
A new JS framework! Time to reset the clock!
In all seriousness though, congrats, you’re already a lot further than most people ever get. I approve of this trend to reduce bundle size as much as possible that we’ve been moving towards.
I 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.
FYI 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.
Used to use vscode, then one day it stopped working for me. I’ve been using Helix full time for a few months now and I’m pretty happy with it.
It’s funny, to me I’ve had an llm give me the wrong answer to questions every time.
The first time I couldn’t remember how to read a file as a string in python and it got me most of the way there. But I trusted the answer thinking “yeah, that looks right” but it was wrong, I just got the io class I didn’t call the read() function.
The other time it was an out of date answer. I asked it how to do a thing in bevy and it gave me an answer that was deprecated. I can sort of understand that though, bevy is new and not amazingly documented.
On a different note, my senior who is all PHP, no python, no bash, has used LLM’s to help him write python and bash. It’s not the best code, I’ve had to do optimisations on his bash code to make it run on CI without taking 25 minutes, but it’s definitely been useful to him with python and bash, he was hired as a PHP dev.
MDN says you’re right because innerHTML is un-escaped and you’re probably trying to use textContent. Didn’t know about this one, thanks.
Isn’t the “passive aggressive licence” just MIT?
deleted by creator
I hate to be all doom and gloom but if the government decided tomorrow that disagreeing with trump was a crime then it’s probably already too late for you.
The amount of information about people online is pretty shocking and no amount of cleaning up after yourself could save you at this point.
On the other hand, it probably won’t devolve that fast so you’re probably ok?
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?
“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.
Also, a funny side effect of game programming is that loosely coupled components like this can make development harder. If it doesn’t need to be split like this, you probably shouldn’t.
deleted by creator
My brother in Christ, this isn’t a crate, it’s a programming language written in rust.
The best way to learn is to just do it! When I’m starting out with something I generally have a few ideas of basic things I could do with it, generally that’s making simple CRUD apps (when I started using Axum I made a simple API that returns json from a file directory as long as the directory is formatted as: /type/name. Then I went and made a website using vanilla js/html/CSS and made everything run using the backend).
This second project is great because there’s always something else I could do like auth, like not doing a post and redirect to the same page for updates, like creating dynamic client & employee pages, like using an actual db instead of a script to make CSV files as a db. IMO, THIS is where you learn things.
Maybe, I’ve never used go templates before.
My comment was supposed to be a bit of a joke…
Generally speaking, you cannot read a file from disk using JS in the browser because the sandbox doesn’t allow the code access to your disk. If you googled something like “read a file JS” it probably made an assumption that you’re using Server side like nodejs or deno. The only exception for in-browser that I know of is to upload files using an input tag.
Another tui library I’ve seen lately is iocraft. Although it’s got the classic react/swiftui style.