General tip: https://web.archive.org/save/<url goes here> (including http://) to save a page. We used to be able to spam save, but they’ve implemented some throttling there, so you can’t save the entirety of your personal website all at once, but oh well.
NostraDavid
- 0 Posts
- 26 Comments
NostraDavid@programming.devto
Technology@lemmy.world•‘Front page of the internet’: how social media’s biggest user protest rocked RedditEnglish
2·3 years agoI requested my data (because your regular comments page only goes up to 1k comments) and replaced all my data with something semi-negative (generated by ChatGPT, because I’m lazy like that).
I really should just delete my account, but I somewhat still like the programming subreddit - about the last bastion that hasn’t completely gone to shit over the years.
NostraDavid@programming.devto
No Stupid Questions@lemmy.world•Has google stopped working for finding anything?
2·3 years agoi’ve got a subscription for ChatGPT and tend to use it over Google, unless I know Google has decent results.
NostraDavid@programming.devto
Gaming@beehaw.org•Male players: Why do you play female characters?
1·3 years agoI don’t, mostly because I watched Asmongold talk about it, and now I feel weird playing with a female character online.
Though singleplayer I don’t feel any problems: Lara Croft, Rynn, Chell, Rayne, Jade - it’s all fine.
Maybe it’s just for customizable characters?
Wezterm or death. I would have chosen Alacritty, if pasting in Vim wasn’t broken.
Quickly edit code on a local or remote machine with the same editor that powers VSCode.
so it’s vscode, but not. you can just install an extention to get remote abilities.
so… vscode? you can install an extention for remote connections (made by MS)
NostraDavid@programming.devto
Programming Horror@programming.dev•God I wish there was an easier way to do this
1·3 years agoYou joke, but I’ve seen a programming language that didn’t have a loop, and if you copied a line of text and pasted it in a text editor, JSON would come out…
The editor could barely handle 400+ lines because it probably converted the text to JSON, added a letter and converted it back to JSON… Per inserted symbol…
NostraDavid@programming.devto
Programming@programming.dev•What operating system and tools should a beginner use to learn programming?
33·3 years agoLinux (because Unix was originally created for programmers), and C because so many other languages derive from it.
Learn the language (types, functions, how to set up a project, etc), then learn the library (you can use the man pages from Linux).
You can use this knowledge for Python, as Python uses the library too, under the hood.
If a duct that transfers water is an Aquaduct, then a duct that transfers nature is an Ecoduct
NostraDavid@programming.devto
Programming@programming.dev•Software Engineer vs Software DeveloperEnglish
8·3 years agoIf someone flies the “software engineer” banner seriously, I expect them to have some theoretic knowledge besides the practical one. They would know different programming paradigms (procedural, OOP, FP), know about programming patterns, layers, UML, and at least a programming language or 4 (3 superficial, 1 in-depth).
A software developer can be any random code-monkey picked up from the street that is self-taught and/or had a boot camp of sorts. Nothing wrong with being self-taught or boot camps, as SDs need to eat, but it lacks a certain level or rigor I would expect from a SE.
If both had a certain amount of experience the SD would mostly catch up to the SE, in practice. Not sure if on theoretic knowledge too, but that depends.
NostraDavid@programming.devto
Game Development@programming.dev•Review: The Jolt Physics Engine
10·3 years agoThere are not a lot of Physics Engines out there (at least that I know of), so I’m happy to see this exists (even if this is v4 - v1 was released in 2022).
NostraDavid@programming.devto
Programming@programming.dev•What's the biggest change you would like to see in computing/tech?
8·3 years agoAny hardware that’s abandoned needs to be forced to release the source of any needed software - the latest version.
We’d need a range of available licences, as to prevent any bullshit “you’re only allowed to read this source” license.
This is going to suck for Apple, but it’s going to be great for people who pay for some expensive microscope that’s not supported any more.
There’s probably a lot of legal nonsense that may make this impossible in practice, but I’d love to see this happen.
NostraDavid@programming.devto
Gaming@lemmy.ml•Gabe Newell on why game delays are okay: 'Late is just for a little while. Suck is forever.'
163·3 years agoWhile this was true in a pre-Steam world, it hasn’t been true for a while.
See Terraria (which didn’t suck, but was lackluster compared to how the game is now), No Man’s Sky, Cyberpunk 2077.
NostraDavid@programming.devto
Ask Lemmy@lemmy.world•What game do you play to just chill?
82·3 years agoOuter Wilds
I will always shill for Outer Wilds, simply because it’s such a niche that only 2 games have come out in its unnamed genre: Majora’s Mask and Outer Wilds.
Yes, Outer Wilds is a spiritual successor to Majora’s Mask.
And the worst part is that talking about the game would probably spoil half of it. All I can say that it’s an adventure like Majora’s Mask.
If you ever were to trust an internet stranger to buy a game blind, now is the time. If you loved MM, you’ll at least like OW.
Happy adventuring, stranger ;)
NostraDavid@programming.devto
Programming@programming.dev•I wrote a program for my boss. How legal is to to write the program again and make it FOSS?
7·3 years agoEven worse: Depending on (local or national) law, it may be the company’s property, even if written in personal time. Especially if the code is in competition with your work.
Yes, it’s ass-backwards, but that’s how it is in some places.
NostraDavid@programming.devto
Technology@lemmy.world•If you live in the EU - you may also be faced with this Meta prompt. Info in text.English
33·3 years agoThat includes lemmy, right?
Right?
NostraDavid@programming.devto
Programming@programming.dev•As a beginner, how should I go about learning difficult concepts?
8·3 years agoYes, I too used to struggle with this.
Debugging
Learn how to debug. For me, it’s a lifesaver for me to be able to step through some code to figure out what it actually does, instead of me trying to read the code to figure out what it may do. Yes, I do this for my own code too, because we tend to make assumptions, and I want to confirm those, always.
That means learning how to setup your IDE of choice - I presume you use vscode, so you’ll then have to google for “vscode debugging”. Maybe you’ll have to install some addons to add the support, probably setup some
launch.jsonin a local.vscodefolder. It all depends on your language of choice.
Learn how to test. This goes great with debugging. I write code in Python, so I end up creating
src/andtests/folders.src/for my actual code, andtests/for my tests. I can use eitherpyteston the terminal, or just the vscode test addons to run tests.Anyway, my tests end up being something like this:
src/my_app/main.pyor something, withsrc/my_app/__init__.pyexisting to turn that folder into a module:def main(): # some code I want to runThen in
tests/test_main.py(mirroring thesrc/folder; addingtest_makes the file findable for pytest, and I call itmainto make it easier to link to the main code):from my_app import main def test_main(): main()This is how I always start off with - just a simple piece of code that does a thing, and a test with almost the same name as the function I’m trying to test. I can now add a breakpoint inside
test_mainand run the test within vscode, which means I have a way of hooking into the main function.
Think about the process of your application
Think about how to cut up the steps to create your application into smaller and smaller steps. Whenever something feels insurmountable, I’ll just have to stop in my tracks and mentally cut up a task into smaller and smaller steps, until I feel comfortable to take some steps.
I’m a data engineer, which means I tend to write code to ‘ingest’ data (which means, grab it from source A and put it into target B (where B is some centralized location to store all raw data).
So the main task is:
- Write ingestion
I then have to figure out “what is the source”, because that dictates how I grab the data (do I have to loop over all folders in an SFTP server? Is there a state file that makes my life easier? Do I use an API instead?)
- Write ingestion
- figure out what the source is
- Is there an SFTP state file? is it an API?
- Do I need a username/password? Some API key?
I then start writing a small piece of code that connects to the source, or just grabs some random data to show the connection works.
So now I can grab some data. Is that data too large to ingest all at once? If a file is super large, I may not be able to hold it into data, which means using a buffer. And how many files are there to download? Should I batch those?
- Write ingestion
- figure out what the source is | SFTP
- Is there an SFTP state file? is it an API? | there is a state file
- Do I need a username/password? Some API key? | usename/password
- How big are the files?
- How many files are there?
and this is how I slowly grow my applications from an idea “ingest all data from some source” into something that can actually run.
Now, I do have some experience and know that filesize and filecount are important to take into account, but that’s something I learned along the way.
My first applications just loaded whole files into memory (a bad idea if your memory limit is 4 GB, and I’m trying to load multiple 1GB sized files into memory 😆), and taking local state (which files have I already downloaded) and external state (which one have updated or been added?) into account, etc.
Anyway, you’re already on the right path: You already know a weak point, and you’re smart enough to know your limits and ask for help when you’re stuck. That’s one of the fastest ways to grow as a programmer.
NostraDavid@programming.devto
Programming@programming.dev•What are the recommended scripting languages for complex shell scripts beyond bash?
1·3 years agoModern Perl
Perl or Raku?

Better how? I can’t message people when they’re offline, everything is completely boring text, no images, it’s not clear how I can easily setup my own server, everything feels archaic.
I tried using it before Discord was even a thing, and I already thought it quite sucked. If you think it’s great, then good on you for knowing everything inside and out, but the discoverability with any IRC client tends to be in the negatives. It feels awful to use.