Better HN
topnewbestaskshowjobs
Log inSign up

bubblebeard

149 karma · joined Mar 2, 2024 (2y ago) · 113 submissions

Submissions

comment 2y ago · link · parent

This is well written and reflects my own ideals quite well. Especially the part about all code being a liability.

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

I agree with you, I didn’t say that quite right. In my mind this is actually pretty much what I meant, though I completely see how it can be misinterpreted. Line counts, like most other design rules should really be more like guidelines. Thank you for helping me clarify myself mate!

comment 2y ago · link · parent

I constantly try to improve how I write my code. The last couple of years I’ve been involved in a couple of projects that’s required rebuilding a few times over because the project managers kept changing directions and was always in a hurry.

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

It’s refreshing to see a young person with such sound reflections about social media.

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

Cool! I will keep an eye on this and consider it!

Also, I noticed the website seems to not render completely properly on my phone, just something I noticed.

comment 2y ago · link · parent

Congrats on the lauch!

I’ve been thinking about learning more languages over the years and your approach intrigues me. From the website it appears to be text based learning only though, is that accurate or does the app support vocal conversations as well?

comment 2y ago · link · parent

This past year I’ve been trying to listen to my gut feeling more often and found that more of my endeavours are successfull, and very often when I disregard it, whatever I set out to accomplish will fail or have unforseen consequences. Funny, since there is no apparent logic to it.

comment 2y ago · link · parent

Agreed. Whenever I want to play anything on my PC there is always some problem I have to deal with.

comment 2y ago · link · parent

Holy crap, this guy made the future

comment 2y ago · link · parent

Having been in a similar position myself, I understand how hard it can be to let go of either the one or the other. I would suggest you cut down on your hours at work (your steady job), and spend this gained freedom on something which relaxes you and which does not involve a computer or TV. For example walks, bathing, reading fiction, or some other hobby. Since your side projects generate an income this shouldn’t hurt you too much financially, and as your business grow you can cut back more hours from your day job in time.

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

Think it’s great to put that on your resume. If I was to apply for a new job I’d like to believe they would be more interested in the things I’ve built and designed then my grades or past positions.

comment 2y ago · link · parent

Quite so. It’s always an adventure when sorting through these stacks. Never know what one might find.

comment 2y ago · link · parent

I see your point, I’m a neat freak who cares about most things I possess. Trouble is, we don’t always have time to be this neat. For example, I’m standing in my laundry room rolling up socks when suddenly someone calls from upstairs. I go into my hallway, still working on a pair of socks, and discover it’s my partner calling me because our son just defecated on the floor of the tiny bathroom upstairs. I throw the socks on the first available surface and run to help, focusing on the new problem at hand, and now the socks are lost. This exact situation is on the extreme side of course. It’s more common for me personally to put down a glass/cup to assist someone with a minor yet to them seemingly important task and then proceed to search for my lost bevrage.

comment 2y ago · link · parent

I might just steal this idea from you. Having a partner who ”organize through chaos” (which I maintain is not an actual system) there are constantly treasure troves of knick-knacks everywhere, usually hiding important items. No matter how often I try to organize it’s always messy, I think this might be the answer. Thank you!

comment 2y ago · link · parent

Thanks for the info! I will keep an eye on this for future projects, keen to try it out. I’m currently working on a project being converted from Electron to Rust/Tauri. I recall Flutter being discussed, but our frontend dev was more comfortable with React.

comment 2y ago · link · parent

Commendable effort! I’m currently using Tauri for a project myself and was wondering if anyone has any pros/cons between the two?

comment 2y ago · link · parent

This is very cool. Almost completely useless, but very cool all the same.

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

Certainly! Now, I’m no expert and may get some things wrong here, if anyone else knows better I’d be happy to be corrected.

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

I have been using JS for more than 20 years, and I do not like it. There are parts of it I find useful, but I avoid using it as much as I can in any project.

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

This is right on the money. I never really used social media, and I started disregarding mainstream news about 8 years ago, relapsing every once in a while when I’m boored only to be reminded the only things reported makes me feel horrible.

comment 2y ago · link · parent

I’ve looked at several alternatives over the past year and Copilot is the best I’ve seen so far overall when you factor in ease of use, price to performance etc.

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

Not obsessed quite enough to buy this, but really cool all the same. Maybe, if I can find a physical copy. Thanks for sharing this!

comment 2y ago · link · parent

This was a bit of a mixed bag. The tool I found to be the most useful was the ”Todo List Creator”, in my tests it listed my tasks in a sensible fashion.

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

To me it’s needless exposure for admin accounts. I can see the value for frontend, client, accounts. However, only if such a service use usernames and not email addresses for logins. Otherwise it would be a great way for attackers to accumelate email addresses related to certain types of services.

comment 2y ago · link · parent

That’s true and I see your point. Personally I do not understand this choice in contrast to an admin panel though.

comment 2y ago · link · parent

I think this is a valid point. At least for frontend usage I can see how less generic messages might make sense. I would still opt for generic messages, but I’m also a little paranoid ;)

comment 2y ago · link · parent

This reminds me of an article in which brute forcing the WP admin panel was discussed. The problem was that when supplying inaccurate user credentials you would get an error message telling you which was wrong. Their dev stated this was a design choice, that you needed to balance security and user friendlyness.

Security in WP seems more like an afterthought to me, which is a shame to say the least.

comment 2y ago · link · parent

This was both a fun read an raised a real problem with products in general, avoiding quality to assert more sales.

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

comment 2y ago · link · parent

”The Count of Monte Cristo”, one of my favorites. It’s a classic the general story being jailbreak/revenge. A little slow paced at times but the writing is fantastic.

If you enjoy fantasy novels I would recommend ”The Wee Free Men” by Terry Pratchett, it’s outstanding.

comment 2y ago · link · parent

No problem! Hope it helps :)
1234