1,554 karma · joined Dec 3, 2023 (2y ago) · 1,354 submissions
comment 1w ago · link · parent
Who ever had the time and will to write unit tests that mock every single function/class being called, checks the strings of thrown errors, etc., for every single function, for several tests per function?
The instant you change the implementation the tests break because it's testing how many times each method has been called of an object that was passed as argument.
That's just an insane way of writing tests. But for AI that's normal for some reason.
It feels like it's making unit tests the "textbook" way that in practice you wouldn't do because in practice half the things it's testing are inconsequential.
comment 1w ago · link · parent
Write less code. Reuse things that have already been written and thus were already reviewed and tested by someone else. Do not reinvent the wheel. KISS.
With AI everyone is implemented a dozen libraries from scratch in their project instead of using something someone else made. Why use a library for 2D geometry when ChatGPT can write one in 10 minutes?
comment 2w ago · link · parent
I'd heard that one-shot a project with AI, you need a fairly complete design document instead of a short prompt, so I tried to write one.
In doing that, I'd include the unhappy paths as well, e.g. in describing a list/detail interface: the list shows the X's (I thought: but in what order?) in alphabetical order; when an X is selected, the detail is displayed in the detail pane; (lists should work with multiple selection, so) multiple items may be selected at once, in which case the detail pane should display "N items selected" instead of the interface to edit the items; (a list starts empty, so) if no items are selected, the detail pane should display "No items selected", etc.
Laying out the entire system in plain English helped me have the whole thing inside my head, and see cases where presumptions about how the system would work wouldn't actually hold in practice because they weren't even holding in the text I was writing. So I had to edit the draft to fix my wrong assumptions until it made sense.
And of course the AI managed to do a pretty terrible and disappointing job at it in the end, because it made mistakes in the parts I didn't specify, or placed widgets in the wrong places because the layout that was difficult to explain in text, etc. It's somewhat impressive that anything ambiguous is a spot where AI can make the worst assumption imaginable, like it doesn't have the capacity to intuit "oh, we are making THIS sort of app, so it should look like this". But it was a good learning experience.
I suppose it's a great idea to write out what you're about to do before you set out to do it, because it helps you think about it in whole and in detail. It would be terrible if people stopped doing that.
comment 2w ago · link · parent
These people WILL fall victim of their own ignorance and upload all their private information to an AI chatbot.
comment 2w ago · link · parent
Imagine if you wrote the word "gun" and then 5 tech giants decided it was their job to change the "g" to a "b". It's ridiculous how lightly we take preserving messages when the whole industry is supposed to be about data.
They are also not specific enough to encode what they are meant to convey. People pick emojis for what they look, and if they look even slightly different the message changes, yet platforms are allowed to design them however they want and then change the design year after year. The letter "a" is still going to be the letter "a" no matter what. The same can't be said for "emoji covering their own mouth" which either looks shocked or mocking you depending on how it's designed.
comment 2w ago · link · parent
The first thing anyone would want to know when choosing a GUI framework is how it looks by default. Every major GUI toolkit has screenshots on their websites.
This happens so often it makes me wonder if people just don't know how to take a screenshot and put it in a webpage with <img>.
comment 2w ago · link · parent
comment 2w ago · link · parent
But if I wanted to learn software design and architecture, I'd probably not even know where to start.
comment 2w ago · link · parent
comment 2w ago · link · parent
It also doesn't solve one important attack vector: the existing executable has logic that can be used maliciously (e.g. a function that sends a file to the internet), and this logic is executed based on data on memory. In this case you only need to manipulate the data, without manipulating the "code", in order to exploit it.
I'm not sure I understand why would you need special hardware for that.
I think that the principle of "code is data" is that data influences the algorithms either way, so there is not much of a point in separating the two.
comment 3w ago · link · parent
This is Google, the most used search engine in the world, made by a company that is at the forefront of AI development.
ChatGPT, Claude, etc,. constantly generate answers without sources and rarely cite anything verbatim. I'm not sure if they could cite something verbatim even if they wanted.
Essentially none of these tools are appropriate for information.
comment 3w ago · link · parent
I no longer dunk on crypto.
Not because crypto got better, but because the joke got old. I got tired of dunking on it.
comment 3w ago · link · parent
You can't "move money into an offline crypto wallet that is not online at all."
If "money" i.e. crypto "currency" is in a crypto "wallet" then it is online. Anyone with the key and an Internet connection can transfer it at any time.
The wording is confusing because to someone who doesn't know how cryptocurrencies work it sounds like you can simply "take the crypto offline and put it into a physical device" as if it was a file. But that's not how it works. The physical key merely contains the actual key for the always-online wallet.