507 karma · joined Apr 21, 2024 (2y ago) · 39 submissions
comment 2mo ago · link · parent
comment 2y ago · link · parent
Sure, single-entry bookkeeping might be easier and more normalized, but sometimes it is a good idea to just stick with the systems and abstractions that have been developed over centuries.
Just use double-entry bookkeeping unless you definitely need something else. Sure, it might be icky for the programmer inside you, but I think you'll be thankful if you ever need to get actual accountants involved to sort out a mismatch.
On a related note: does anybody know of any good resources for programmers in payments and adjacent fields? Something like an "Accounting for Programmers"?
comment 2y ago · link · parent
How can you do this using print debugging? For every print statement I add, I can add a breakpoint. Even more importantly, I can see the stack frame and know which functions led to the current one. I can inspect any and all variables in scope, and even change their values if I want to pretend that the code before was fine and proceed further.
comment 2y ago · link · parent
- When you sign in to Google, you sign in browser-wide. Google now gets all of your browsing data, perfect for advertising. (If you ever doubt it, go check out Google Takeout. You'll be shocked at the amount of data you see there.)
- They have special APIs and features that they get to use, and nobody else. Only because they own Chrome. [1]
- They get to move forward with enabling and pushing features that allow for more advertising: see Manifest v3, FLoC.
- Google specifically serves a worse version of Search on Firefox for Mobile. You have to get an extension to get the full experience.
This isn't an isolated attempt. You can see more of the same thing with Android.
- AOSP (the open source counterpart of Android) is now unusable. It doesn't ship with most essential apps, including a Phone app. In previous versions of Android, all of these were a part of AOSP.
- Most third party launchers/stores struggle to implement features because they are only available for Google themselves.
- The signing in with Google thing from above continues here too: you sign in to Google system-wide.
comment 2y ago · link · parent
- You're using a dynamically typed language.
Something like Rust can eliminate most bugs that come from incorrect data types. For me, a lot of bugs used to come from types that were different from what I expect.
- It is super easy to run your program with a debugger attached.
If your code needs to run on a K8s cluster or a dedicated test machine instead of locally, logs are much easier to get hold of than a remote debug session. Some people aren't even aware that they can attach a debugger to a computer over the network, or inside a Docker container.
- Your environment.
If you don't use an IDE that supports a debugger, it's another friction point. I'm not sure if Vim has something similar to, say, PyCharm's debugger.
Similarly, if you're a junior, and you reach out to a senior and they tell you to debug using logs, you probably will never switch to using a debugger yourself.
comment 2y ago · link · parent
This is one area where I believe a GUI tool is so much better: I can hover over variable names to view their values, expand and collapse parts of a nested structure, edit values easily, and follow execution in the same environment I write my code in.
Sure, it doesn't help much for some scenarios (one I've heard people mention is multithreaded code, where logs are better?), but for most people it's not that far from a superpower.
comment 2y ago · link · parent
Edit: Also, from the same table, it seems that only this library was ran after warming up, while others were not. https://github.com/bhavnicksm/chonkie/blob/main/benchmarks/R...
comment 2y ago · link · parent
This doesn't protect you against trigger bots (shoot automatically when you put your mouse on a target), aim bots (snap to targets, ranging from obvious hacks to very minute adjustments), and others.
comment 2y ago · link · parent
All the long, rambling stories you see before recipes? That's just there so the recipes can rank higher.
I can't remember the source, but I also remember a website adding AI generated slop to cater to Google's wishes, and leaving a page to explain to normal users why they did so.
It's also seen when you look at YouTube videos, where now it's basically necessary to have a clickbait thumbnail + title + reminders to like and subscribe.
comment 2y ago · link · parent
There's no match for the modding capabilities that Java edition gives you.
[1]: https://feedback.minecraft.net/hc/en-us/community/posts/2309...
comment 2y ago · link · parent
I don't see this as a vulnerability: how is Google supposed to know that a person has left the company? You let them know by deleting the account.
comment 2y ago · link · parent
If you as an employer provide a leave of just 15 days for the father (I've seen really big companies do this), and just a few months for the mother, don't be surprised if people lose productivity or just straight up leave when they have children.
Most EU countries have great paternal leave policies. Most other countries could learn something from them.
Somehow, it has become acceptable to forget raising a family for the sake of working, and it's disheartening to see people actually defend companies when they set these policies.
Edit with some more thoughts:
95% of all the time you will spend with your parents is gone. [1]
If your child is raised by a caretaker, you're losing a huge chunk of all the time you'll get with them. On your deathbed, would you feel proud of having delivered another feature instead of spending a bit more time with your family and children?
comment 2y ago · link · parent
For example, the C++ model is really good at writing both OpenGL+GLFW and Raylib.
comment 2y ago · link · parent
comment 2y ago · link · parent
I remember playing CS:GO (and later, CS2) and it was super common to see cheaters in almost every other match.
In contrast, I haven't seen a single cheater yet in a match of Valorant.
You can see the difference yourself by checking the UnknownCheats forums for CS2 vs Valorant: the CS2 subforum is full of new hacks every day (most of which seem to be slight modifications of existing ones) while the Valorant one is completely dead.