149 karma · joined Mar 2, 2024 (2y ago) · 113 submissions
comment 2y ago · link · parent
We should always take a few moments to reflect before we write anything at all. Everything unnecessary we add is just another point of failure or potential security hole.
comment 2y ago · link · parent
comment 2y ago · link · parent
For one project I eventually managed to convince them to let our team write a more general purpose library to conserve time in the future. And this has paid itself of several times over.
When we write code it’s important we do consider how it may be utilised in the future. Since we cannot make exact predictions it’s better to make methods as small as possible instead to reduce the amount of time spent on refactoring (since this is unavoidable). This also helps us to create solid, more future proof, tests for our business logic.
You don’t need to follow a strict set of design rules, but general guidelines is a good idea. Like trying to follow SRP, avoiding more than x nubmer of lines for your method bodies and trying to avoid nestled code.
comment 2y ago · link · parent
This post made me reminisce about learning web development when I was 11. Finding resources online was tricky, especially since I didn’t always have access to the Internet. I got books from my parents, and not very good ones either, but I loved them all the same.
I miss those days, when everything was more of an adventure.
comment 2y ago · link · parent
comment 2y ago · link · parent
For me, I had to take a different approach and dropped something I really cared about. But two years on I can say it was the right decision. Putting too much strain on yourself will only end badly, so I’m happy to hear you are attempting to take steps to prevent that.
Best of luck!
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
One thing I’m wondering about though. I’m not an expert, but I cannot really see how a VPN is any protection from sketchy public wifis? If they wanted to own you it would be enough for you to connect to the wifi in question.
I guess it would protect against packet sniffers while you are browsing etc. But then, the packet sniffer should pick up on your login to your VPN, and now they own that instead.
I don’t know, when travelling I only use my mobile Internet, seems safer.
comment 2y ago · link · parent
Every browser implements a version of ECMAScript (this is a specification declaring what features of the JS language will be available for the JS engine included with the browser).
This means that every browser on the planet, and every version of them, support different JS features.
For example, let and const are commonly used to define variables, but if someone happens to use an old browser version the use of these would cause an error, which in turn may cause all the rest of JS code to stop executing, resulting in (worst case scenario) your website being rendered useless to that particular person.
On top of that different browsers may use different engines. So even if they define the same ES version the code may still execute differently (this was for example a very big issue with Microsoft browsers in the past).
This may seem trivial, but new JS features emerge all the time. Granted, this was a much bigger problem before ~2015 something, but it’s by no means none existent today.
Thus, you cannot be sure the code you write locally will actually function the same everywhere, and you are unlikely to know how often failures even occur since it all happens client side.
comment 2y ago · link · parent
The biggest reason for this being that the execution of JS code it down to the browser rendering the page where it’s deployed. As such it’s practically impossible to get any code to run consistently. This is of course only relevant in my day to day work as a web dev.
That aside, JS has some funny behavior. If you wish toninderstand JS better you could read up on how null and undefined works.
You could also read up on how functions work, they are objects actually.
comment 2y ago · link · parent
There may be services which generates code better, but at the end of the day you still need to review and touch up anything that is generated.
Copilots chat integration in Jetbrain IDE’s has also been great at helping me discover language features/functions, especially when learning new languages.
comment 2y ago · link · parent
The ”Project Report Creator” link is broken.
The ”Product Idea Generator” has some value, and the ”Regex Expression Generator” seems to function properly.
Overall a good set of tools to help devs/project managers.
comment 2y ago · link · parent
comment 2y ago · link · parent
Security in WP seems more like an afterthought to me, which is a shame to say the least.
comment 2y ago · link · parent
I like to imagine a secret meeting between glass manufacturers plotting how to shut this startup down xD
The name of the original glass is also fantastic, ”Superfest” meaning ”Super party” in my language :D