233 karma · joined Apr 24, 2024 (2y ago) · 207 submissions
comment 2y ago · link · parent
If you had done this, even spending 10 hours looking at network traffic, you wouldn't have been protected from this hack: https://www.theverge.com/2018/4/24/17275982/myetherwallet-ha...
That was a technically sophisticated hack, but there are simpler ones, like social engineering someone to take over their site.
Put putting hacks aside...
Say you have a site and it doesn't mention whether the data is sent to a server and you want to find out. Now let's say that site does a backup to server but only when localstorage has run out of space, but you don't know that.
When you test the site in the network tab, and you haven't run out of localstorage space then you will see no XHR and assume it's all good, it never sends to the server.
You then use the app for a few days, hit the localstorage limit and it sends stuff to the server without you knowing. And yeah you can keep the network tab open all the time if you have the discipline, but you only know once your data has been sent. It is too late.
If you care enough about whether it sends stuff to the server to look at a network tab, then you probably care enough to want to know for sure.
With the web as it is now there is only one way - trust the site and hope they do the right thing, and are secure. Or only put stuff on there you are happy to leak.
So, made up situation: if you are using this tool to edit and release a whistleblowing related video as a journalist. Maybe you shouldn't!
You probably instead want a local app, running on linux, on a machine that is disconnected from the network.
comment 2y ago · link · parent
Future behaviour may be different.
Also on the web code can change. Either the site owner or by a hacker. There is value in checking network requests if you need to but it isn't fool proof.
comment 2y ago · link · parent
So there is a tradeoff so Generative AI is more useful in many circumstances.
AI is getting more accurate with time not less. It is using less energy per byte with time too for a given quality.
Guess where things will be in 2030?
comment 2y ago · link · parent
This made me think that hey why not use it for all video editing needs! Although harder to use than a UI the commands will be the same in 2050 as they are now! Plus it is scriptable.
comment 2y ago · link · parent
I can see this being useful, devil is in the details of how good the UI is. I don't use Python yet for LLM stuff but I may do in the future (for other reasons). But something like this might be useful to me.
The sticking point for me is I prefer to use open source not because of course but longevity and control reasons.
comment 2y ago · link · parent
So you could return something from a void function and use it and that will compile to JS and work but only the compile time type check would fail.
Highlighting that of course TS has no runtime checks of types.
comment 2y ago · link · parent
comment 2y ago · link · parent
But the way posted here would much much faster than that!
comment 2y ago · link · parent
JS is just the language. Avoiding JS on the front end is more about avoiding front end code, state management, mutations, a11y issues, frameworks etc. rather than the JS language itself!
comment 2y ago · link · parent
Just reject and ask for an explanation OR pair with the coder to have them explain the code.
If the reviewer can’t understand it without an explanation the rest of the team can’t understand it unless they git blame then ask the coder, assuming they are still at the company!
The “dump 1000 lines of previously unseen and undiscussed code as a code review at a reviewer” method is an antipattern.
Either the reviewer should be heavily involved or break it into smaller, well explained chunks with design documentation to point to.
This saves everyones time in the long run.
comment 2y ago · link · parent
Admittedly for anything more than 1-2 joins you are better off hand crafting the SQL. But that is the exception not the rule.
Refactoring DB changes becomes easier, you have a history of migrations for free, DDL generation for free.
In the early 2000 I worked where people handcrafted SQL for every little query for 100 tables and yeah you end up with inconsistent APIs and bugs that are eliminated by code generation / meta programming done by ORMs.
comment 2y ago · link · parent
Running docker locally usually means messing around, sometimes troubleshooting and restarting the daemon.
Even if you make your app handle all the commands. It’ll end up not working and the user will give up. Even their technical relative may not be able to fix it!
Instead I would probably make the effort to create seperate Windows, Mac and Linux builds.
If it is a pure Node app for example this might help: https://nodejs.org/api/single-executable-applications.html#s...
There are probably similar options on other stacks.
comment 2y ago · link · parent
Chatting with GPT4 and pasting into your editor code or pasting into a terminal some commands could also help alot.