I don’t see why you couldn’t have relations in a object model database. Just allow fields that are references to other objects or their keys.
- 2 Posts
- 799 Comments
FizzyOrange@programming.devto
Programming@programming.dev•Should I teach students who doesn't know computer science C or JavaScript first?
12·3 days agoI would teach Typescript. Being able to write the types down and hover things to see what types they are will definitely help them.
I think C would put them off. I also wouldn’t go with Python, in case they want to do things like write games or make websites, which are common tasks you can do with Typescript but not very well with Python.
ORMs are a pain and so is hand rolling SQL queries and doing the mapping manually.
I definitely think there’s scope for NoSQL databases where the database “shape” matches the normal struct style of programming languages. Kind of like how JSON does and XML doesn’t.
But it seems like all we got was MongoDB and Firebase which are both shit.
Are there any good NoSQL databases? MongoDB and Firebase don’t even have schemas.
You don’t need ORMs to prevent SQL injection. Prepared statements have existed for decades.
FizzyOrange@programming.devto
Rust@programming.dev•New to Rust - what is the most fun way to learn the language?
3·4 days agoI always like "by example"s for learning languages - here’s Rust’s.
I’d probably make a project with it. Maybe a CLI tool using clap_derive and some crate that does something neat that you want to do. Depends what you’re interested in I guess.
I wouldn’t recommend trying to do leetcode problems with Rust because they are obsessed with linked lists and linked lists are awkward in Rust.
Also I wouldn’t recommend making a game or GUI app with Rust yet since the ecosystems there are immature.
A microcontroller project using Embassy is probably a fun way to learn too but I haven’t actually tried it yet.
Well they’re open source so we’re not losing them yet. Especially with
uv, it’s pretty clear that it is such a vast improvement over the clusterfuck of pip that a community fork is virtually guaranteed if it is ever necessary.
FizzyOrange@programming.devto
Rust@programming.dev•The Rust Compiler is the most helpful one I have experienced so far
1·10 days agoYeah I feel like it was more than 3 years ago but I guess it’s been a long 3 years!
FizzyOrange@programming.devto
Rust@programming.dev•The Rust Compiler is the most helpful one I have experienced so far
14·12 days agoYeah I think the reputation was probably deserved early in Rust’s life, but as time has gone on it has gotten a lot easier to write, especially with the non-lexical lifetimes update 3 years ago.
FizzyOrange@programming.devto
Rust@programming.dev•The Rust Compiler is the most helpful one I have experienced so far
8·12 days agoIt’s better than nothing but it really only drags Bash from “your code is definitely horribly broken” to “your code is probably broken”. Nothing like Rust!
FizzyOrange@programming.devto
Programming@programming.dev•METR AI Coding Research Inconclusive Because Dev Participants Refused to Complete Tasks Without AI
1·13 days agoYeah I know, but if you really mean that analogy then the conclusion is that the normal thing for 99% of programmers to do should be to use AI. In the same way that 99% of people do not get around by running.
I don’t agree with that yet - so far I’ve found AI to be a very fast but mediocre programmer. Kind of like giving a beginner access to all the documentation and a time machine. Sometimes that’s exactly what you want. But definitely not most of the time.
FizzyOrange@programming.devto
Programming@programming.dev•METR AI Coding Research Inconclusive Because Dev Participants Refused to Complete Tasks Without AI
1·13 days agoNot everyone that runs is an avid runner.
But I do feel like the analogies aren’t that great. Coding in notepad instead of an IDE is dumb because IDEs work and don’t really have any downsides. AI mostly seems to produce slop that barely works without a ton of cajoling.
FizzyOrange@programming.devto
Programming@programming.dev•C++26 Safety Features Won’t Save You (And the Committee Knows It)
21·13 days agomodern C++ facilities do make a difference to prevalence of bugs.
This is true, but just saying “write modern C++!” doesn’t actually work in practice. First, there are a ton of footguns that even best-practice C++ doesn’t avoid. Using
std::shared_ptr? Great, you’re probably going to avoid memory leaks. Null pointer dereference? Not so much. What’s the modern C++ way to avoid integer overflow?Second, it’s pretty much impossible to completely avoid raw pointers etc. even if you’re trying, and good luck getting your colleagues to actually try. I can’t even get mine to write proper commit messages. You need a machine forcing them to do it properly. Something they can’t opt out of (or at least where opting out isn’t the easy lazy option).
So yeah it’s better to use modern C++ and it is an improvement, but not enough the change the conclusion that you should just use Rust instead.
FizzyOrange@programming.devto
Programming@programming.dev•Inkscape needs help. The Inkscape team is hiring one issue administrator and two C++ developers for part time positions
4·19 days agoDamn that’s pretty good! (Outside the US I mean.)
Presumably this would be a bit higher actually since it’s contract work, not full time.
FizzyOrange@programming.devto
Rust@programming.dev•Is it possible to write Rust on a low end system?
11·21 days ago8 GB is a really small amount. Even phones have had that much RAM for several years. The average desktop I built in 2012 had 16 GB of RAM.
Plenty of modern computers only come with a small amount of RAM, because most people only need a small amount, but 8 GB is still a small amount.
FizzyOrange@programming.devto
Programming@programming.dev•We Overhauled Our Terms of Service and Privacy Policy - Another VC funded bait and switch
1·22 days agoThat is about their AI service. If you don’t use that then who cares?
FizzyOrange@programming.devto
Programming@programming.dev•Looking for a Q&A community that isn't as restrictive as StackOverflow
2·26 days agoTo be honest I suspect they wanted to do this before, but the power mods wouldn’t allow it. I definitely remember the staff posting a proposal to allow second chances for closed questions, and it was downvoted to hell by the mods. They presumably got scared because they were getting a lot of free labour from the mods (even if it probably wasn’t exactly the kind they wanted).
Now StackOverflow is dead the mods have no power, so they are free to make changes.
FizzyOrange@programming.devto
Programming@programming.dev•Looking for a Q&A community that isn't as restrictive as StackOverflow
3·26 days agoThe company is going forward with it because the “active community” killed their site and now they have no choice.
If they had done it before AI became a viable alternative they might still have some users.
FizzyOrange@programming.devto
Programming@programming.dev•Is it a bad practice to replace compiler warnings with a bunch of TODO notes?
2·26 days agoI would say it maybe makes sense to do that for team based projects so your TODOs don’t impact other people finding new warnings in their code.
For solo projects I don’t think that makes any sense.

Python’s performance is too poor to do anything serious. Go and look at the screenshots from Pygame. They look like ZX Spectrum era games.
Compare that to something like PixiJS.