NostraDavid
@NostraDavid@programming.dev
- Comment on It's okay, Buddy 2 days ago:
Source: BaalBuddy
He’s pretty gooood!
- Comment on time 2 months ago:
That’s obviously a randomly generated string.
A bot-ass username would be FirstnameLastnameFourdigitnumber. Sheesh.
- Comment on The Eurobean Mind Cannot Comprehend 2 months ago:
Learn some proper English, you cappie
- Comment on The Eurobean Mind Cannot Comprehend 2 months ago:
It’s Saturday Night Live. It’s an American Humour* channel by the corpos.
* the cringy type of humour - I do not understand why people like it. Oh well.
- Comment on Apple argues in favor of selling Macs with only 8GB of RAM 2 months ago:
I haven’t used 8GB since… 2008 or so? TBF, I’m a power user (as are most people on any Lemmy instance, I presume), but still…
And sure, Mac OS presumably uses less RAM than Windows, but all the applications don’t.
- Comment on Why Charging Your Gadgets Over 80% Is Such a Bad Idea | iFixit News 4 months ago:
I still charge to 100, but I use a slow charger, so my phone doesn’t start to spew flames while it’s charging. I wouldn’t be surprised if that helped as well (as heat is another battery killer).
I just can’t be bothered to handle that shit manually.
- Comment on Announcing freenginx.org 4 months ago:
Tell me you didn’t read the article, without telling me you didn’t read the article.
- Comment on Discovery returns to screens April 4th 4 months ago:
When do the Predators show up? :p
- Comment on Everything about TOML format - Orchard Dweller 4 months ago:
One thing you can run into is that nesting things is hard in TOML: stackoverflow.com/…/does-toml-support-nested-arra…
The syntax is simply not built for that, because
.ini
format. - Comment on YouTube now suggests new content *by colour* 4 months ago:
I’ve set Revanced to start on Subscriptions, instead of Home, so I’m not mentally spammed with whichever bullshit is “du jour”. I also disabled shorts, because it was too easy to lose an hours of 2 to that mental cancer (even if some shorts were great).
Disable shorts via You (lower right) > Cog (upper right) > Revanced (pretty low) > Shorts components (at the bottom) > Hide Shorts in feed (first option).
- Comment on Everything about TOML format - Orchard Dweller 4 months ago:
- Comment on First year CS student currently on vacations looking for programming course to follow. 5 months ago:
Read through the HTML5 spec if you want to do anything frontend related. Yes, it can be boring at times, but using a TTS extension for your browser helps a lot.
It’ll teach you which HTML5 tags exist, which attributes exist for each tag, which tag goes within which tag, etc. Very helpful if you want to actually learn an up-to-date HTML5.
It will provide a very good fundamental knowledge before you start learning whatever popular JS framework exists in a few years.
- Comment on bash.org is gone 5 months ago:
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.
- Comment on bash.org is gone 5 months ago:
General tip:
https://web.archive.org/save/<url goes here>
(includinghttp://
) 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. - Comment on ‘Front page of the internet’: how social media’s biggest user protest rocked Reddit 5 months ago:
I 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.
- Comment on Has google stopped working for finding anything? 5 months ago:
i’ve got a subscription for ChatGPT and tend to use it over Google, unless I know Google has decent results.
- Comment on Waveterm 6 months ago:
Wezterm or death. I would have chosen Alacritty, if pasting in Vim wasn’t broken.
- Comment on Waveterm 6 months ago:
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.
- Comment on Waveterm 6 months ago:
so… vscode? you can install an extention for remote connections (made by MS)
- Comment on What operating system and tools should a beginner use to learn programming? 6 months ago:
Linux (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.
- Comment on Software Engineer vs Software Developer 7 months ago:
If 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.
- Comment on What's the biggest change you would like to see in computing/tech? 7 months ago:
Any 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.
- Comment on I wrote a program for my boss. How legal is to to write the program again and make it FOSS? 7 months ago:
Even 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.
- Comment on If you live in the EU - you may also be faced with this Meta prompt. Info in text. 7 months ago:
That includes lemmy, right?
Right?
- Comment on As a beginner, how should I go about learning difficult concepts? 7 months ago:
Yes, I too used to struggle with this.
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.json
in a local.vscode
folder. 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 eitherpytest
on the terminal, or just the vscode test addons to run tests.Anyway, my tests end up being something like this:
src/my_app/main.py
or something, withsrc/my_app/__init__.py
existing to turn that folder into a module:def main(): # some code I want to run
Then in
tests/test_main.py
(mirroring thesrc/
folder; addingtest_
makes the file findable for pytest, and I call itmain
to 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_main
and run the test within vscode, which means I have a way of hooking into the main function.
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.
- Comment on What are the recommended scripting languages for complex shell scripts beyond bash? 7 months ago:
Modern Perl
Perl or Raku?
- Comment on What got you into coding ? (aside from money) 7 months ago:
I didn’t like the math they threw at me in the Networking course I did - back in 2006, I think. I think it was like Ohms law, but I saw that shit and noped out into a Gamedev course. And that’s how I ended up Iearning Algebra: by learning how to program. Before that, math always scared me.
Anyway, I didn’t become a gamedev due to grueling hours I heard they did (fuck that - I work to live, not the other way around), and ended up becoming a data engineer.
I learned C, C++, Java, Python, C#, Haskell, Python again (because the lack of types confused the hell out of me - glad they fixed that bit!), roughtly in that order, so I’m pretty all-rounded software engineer in general, when it comes to languages :D
- Comment on Is anyone else stuck on overhead? 8 months ago:
Summed up as
T H E E N E R G Y T RA N S I T I O N
Not that that means anything to people outside the industry (spoiler: it means our energy networks need upgrading to accommodate all those solar panels in the network, and all that generated energy needs to be tracked, which it’s not as of today, because only a handful of locations used to generate energy, which we didn’t need to track)
I’m just a data engineer, but that shit is pretty fascinating in and of itself!
- Comment on Linux Terminal Emulators Have The Potential Of Being Much Faster 9 months ago:
As someone who had to develop on a super-restricted, underpowered laptop: Speed meant a LOT to me. Being able to think faster than my laptop, because I was using vscode’s terminal (which is Electron based), was excruciatingly painful - Wezterm FTW! I used Alacritty, but due to windows versions pasting indented text made Alacritty indent more and more, which was a frustration for me. But I would agree that beyond a certain point speed won’t matter, because when your machine can be powerful enough to run vscode smoothly, that (Electron) won’t matter any more.
Anyway, I fully agree with you; I just wanted to note that depending on the situation, speed may matter a LOT more than some may think :)
- Comment on How often do you hop distros? 9 months ago:
I don’t. I just use Debian, because it’s the oldest, most popular, most (API) stable distro out there. I have zero needs to switch. I’m sick of OS’ (i.e. Windows) that keep moving/switching/changing things around in massive ways, just for the sake of change. I know they do it to stay fresh in the market, but that’s simply not it for me anymore.