NostraDavid

@NostraDavid@programming.dev
1 Post – 85 Comments
Joined 1 years ago

You might also want to check the latest Ladybird update: https://youtu.be/cbw0KrMGHvc

Source: BaalBuddy

He's pretty gooood!

Just add before:2023 to your search query BTW.

2 more...

It was my replacement of Skype, which was leaning hard into its enshittification around that time.

4 more...

a free forum

"Oh great, I'll have to create another fucking account" - me, already having some 300 accounts in my key-vault...

9 more...

If a duct that transfers water is an Aquaduct, then a duct that transfers nature is an Ecoduct

4 more...

General tip: https://web.archive.org/save/ (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.

About 2 years ago I wondered the same, so I collected a bunch of data (of 'who worked on which game') and used D3.js to make a graph thingy:

Downside: It's up to Shadowlands, not Dragonflight; Also, the few little circles pulled more left are mentioned multiple times in the same Credits, just under different roles.

The thick green circle is Customer Support (though this was before the mass-layoff by MS).

Live version here, but it's SUPER janky - changing selections will generate a new graph lower down the page.

Raw JSON data here - I had to install Retail WoW (F2P is good enough), dig into the game files to find the .html files that contained the credits and then convert that whole pile of doodoo into JSON.

Just ask whether they can provide a phone as well.

Soon, Firefox can block ads better than Chrome. Ads are annoying. I see Chrome losing at least a 5% of the market, if not more, to Firefox, just because they're going to break uBlock Origin, and Firefox isn't.

2 more...

While 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.

3 more...

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.

1 more...

I ran the PowerDelete tool last night to nuke my profile

Note that the profile only shows the last 1k comments - I did a GDPR request to get my data (took em a few weeks - they have a month the time to do so) and then used that data to find all my comments and replace a whole bunch of comments with GPT-generated bullshit about spez being a poopyhead.

I won't pick up my shit and move, I'll kill the plants, salt the earth and poison the well. Fuck 'em. It's all for shittificating the site for YEARS.

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.

Have too low IQ? Yeah sure, I guess.

Be slower at it than the norm? Absolutely.

I only learned Algebra by learning programming and through that I learned how to think abstractly (abstract just mean "hiding details" - think of how a child draws a car. You can't tell it's colour, brand, model, etc, yet you can tell it's a car, even though all those details are hidden). Once I got that, I was able to follow videos from MIT that taught me more of the maths, giving me a theoretic foundation for programming. Now I'm doing an Algorithm course (also MIT) and feel like an "actual programmer" (because I felt like a "fake programmer" before that - though that still sometimes returns). After that I intend to learn more about SQL because I'm painfully lacking in that regard.

Anyway, I've been at it since 2005 when I was a 20-something kid, and there's always something new to learn.

FYI: I made a dependency graph of a bunch of freely available MIT courses, left is a dependency for stuff on the right: https://thaumatorium.com/articles/mit-courses/

2 more...

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.

1 more...

Yes, 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.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/ and tests/ folders. src/ for my actual code, and tests/ for my tests. I can use either pytest 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, with src/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 the src/ folder; adding test_ makes the file findable for pytest, and I call it main 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 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:

  1. 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?)

  1. Write ingestion
    1. figure out what the source is
    2. Is there an SFTP state file? is it an API?
    3. 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?

  1. Write ingestion
    1. figure out what the source is | SFTP
    2. Is there an SFTP state file? is it an API? | there is a state file
    3. Do I need a username/password? Some API key? | usename/password
    4. How big are the files?
    5. 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.

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.

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.

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.

5 more...

I remember seeing a video of how painfully outdated the IRS is, so they should invest instead...

edit: found it - it's by LGR: https://www.youtube.com/watch?v=qL5ut8o5pfs

Outer 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 ;)

1 more...

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.

"Gedeelde smart is halve smart" (shared sorrow is half a sorrow) is a classic Dutch saying. I've never thought of the positive form. Good to learn.

I just checked his Wikipedia page for his credentials. Worked for 9 years at NASA, of which 7 working on the Curiosity rover (yeah, the one that's on Mars now).

I'd say that's credentialed enough.

I too wish he did more complex stuff.

ctrl-h still opens a useless sidebar, and ctrl-shift-h still opens a window like it's 2006.

Boo! Stop giving me new "fresh" UIs and fix actual out-of-date shit!

Tell me you didn't read the article, without telling me you didn't read the article.

Stroustrup to congress: "You expect me to talk?"
Congress: "No, Mr Stroustup, we expect your language to DIE!"

so... vscode? you can install an extention for remote connections (made by MS)

I hope you can install Firefox, because The Googs is pushing for Manifest v3, which means no more functional adblock.

Linux or bust, babyyyyyy

An overly simplified summary: Developers run on "Copium".

Go into your YT history (https://www.youtube.com/feed/history) and delete the offending video. Your recommendations should be back to normal within 24 hours (ish). There's even a search bar for it.

Same - I just track my accounts in my KeePass, so it's not too bad. I have way too many accounts anyway, and I don't trust Google/Microsoft to keep them safe in the long term, so KeePass it is.

That button never worked:

Go into your YT history (https://www.youtube.com/feed/history) and delete the offending video. Your recommendations should be back to normal within 24 hours (ish). Thereโ€™s even a search bar for it.

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!

That box story right below the original message is hilarious! ๐Ÿ˜‚ It's always good to bring up happy memories after someone passed away. Good way to mourn, IMO.

https://en.wikipedia.org/wiki/Serial_port

Because there's going to be kids around here who have never seen this port (other than maybe on a Point Of Sale (POS) system?)

What is a "waitperson"?

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).