HNHacker News
TopNewBestAskShowJobs

throwaway38375

170 karma · joined February 29, 2024

submissionscomments
throwaway38375··on My daughter (7 years old) used HTML to make a website
Well done to your daughter! She is clearly a smart one. I wish her the very best for her future career (possibly) in computers. :)
throwaway38375··on The Internet in Greece
Looks like the average connection is somewhere between 10 and 30 Mbps?

Seems enough for browsing the internet, online banking, emails, some social media, and watching videos in standard definition.

That sounds like enough for the average person. :)

throwaway38375··on Ask HN: Why do message queue-based architectures seem less popular now?
Because you can set up a rudimentary queueing system in MySQL/PostgreSQL very quickly these days. And it scales really well for small to medium sized applications!

I maintain a web application with a few hundred daily users and with the following table I have never had any problems:

CREATE TABLE `jobs` ( `id` BIGINT NOT NULL AUTO_INCREMENT, `queue` VARCHAR NOT NULL, `payload` JSON NOT NULL, `created_at` DATETIME NOT NULL, PRIMARY KEY `id`, INDEX `queue` );

Using MySQL's LOCK and UNLOCK I can ensure the same job doesn't get picked up twice.

All in all, it's a very simple solution. And simple is better!

throwaway38375··on Ask HN: Anyone use graph db in production/at scale? Like Neo4j or Arangodb?
Worked at a place where the lead engineer was adamant a graph database was the solution. After two years of trying to get it launched, the project failed spectacularly.

Another team got given the rewrite and build it in six months using MySQL.

throwaway38375··on Discussion on why SQLite is gaining popularity [audio]
I love SQLite, so please don't think that I'm a SQLite hater, but:

I've never seen SQLite used in a setup which multiple machines connect to the same database over a network.

For example: A web application with a web server, a worker/job server, and a database server.

In these instances MySQL or PostgreSQL seem to be much better choices.

So will SQLite ever be able to "take over" in these scenarios?

throwaway38375··on Show HN: Desktop Game Made in JavaScript and Tauri
Neat! This is exactly what I'm planning to do one day.

How did you find the development experience? Anything that you would change or do differently?

Also, how does Kaboom/Kaplay hold up under load with lots of sprites? I've hit a few performance problems with my game when rending lots of sprites...

throwaway38375··on AeroSpace is an i3-like tiling window manager for macOS
Yes! Windows got it right IMO.
throwaway38375··on Encryption at Rest: Whose Threat Model Is It Anyway?
Ah, I see. Thank you for explaining. This is much clearer.
throwaway38375··on Encryption at Rest: Whose Threat Model Is It Anyway?
Good point.
throwaway38375··on Encryption at Rest: Whose Threat Model Is It Anyway?
I should clarify that I see the value of encryption at rest for something like an employee laptop, which could be left at a bar (while powered off) by accident.

I just don't get the value of it for always online servers.

throwaway38375··on Encryption at Rest: Whose Threat Model Is It Anyway?
This might sound like a stupid question, but I'll ask anyway:

What benefit does encryption at rest solve for something which is never intended to actually rest?

For example, a MySQL database powering a web application is expected to be alive and responding to requests 24/7. It's never really intended to be at rest.

So what benefit does encryption at rest bring? Won't a hacker be attempting to take data when it's online (and therefore not resting)?

throwaway38375··on What benefits can I hope to achieve by switching from jQuery to react?
> but one thing that dissuades me from getting into it is the whole monstrous npm system of components around it.

You are not alone. It is very complicated, but a lot of people seem to get off on the complexity (for some unknown reason).

> Is it not possible to just like include react through CDN with `link` or `script` tags and still make good use of it?

Not with React (as far as I know). But with Vue you can use it straight off a CDN.

Follow this guide through. It take about 15 minutes but it is entirely worth it!

https://v2.vuejs.org/v2/guide/#Getting-Started

> More specifically, I want to know what can I hope to achieve if I migrate from jquery to react?

You can build SPAs (which although not impossible to do in jQuery, is a lot harder). You can also be part of "The React Gang" and get more jobs.

> And to begin with, is this a good idea even?

Not if jQuery is still working for you. If it ain't broke, don't fix it! :)

throwaway38375··on Kaplay – a JavaScript library that helps you make games fast and fun
I don't think you can swap bits out. When I used it things seemed baked in. Yes, mainly suited to 2D side or top down view games.
throwaway38375··on Ask HN: How to build, deploy and maintain a web application?
Backend:

Stick with the LAMP/LEMP stack. It's not perfect, but if you're moving from WordPress (which uses the LAMP/LEMP stack) then sticking with it will make the move less painful.

In terms of a framework. Laravel is a good idea for RAD, although Symfony is a fine choice too!

---

Frontend:

Assuming is has to be a SPA: Use whatever you know best. React, Vue, or Angular are fine. Laravel seems to prefer Vue slighty?

If you can get away with SSR: Use a templating system. Assuming you're using PHP, you could use Blade (for Laravel) or Twig (for Symfony).

---

In terms of hosting and deploying, use one big VM for as long as possible. It's not better, but it's simpler... and I'd say you've got a lot on your plate!

---

But to answer your original question:

If you stick with LAMP/LEMP and a framework, there is so much documentation (and so many guides) that you will be able to figure out what to do. :)

throwaway38375··on Kaplay – a JavaScript library that helps you make games fast and fun
Very excited about this, I have the best memories of using Kaboom.
throwaway38375··on Ask HN: Can we still run mobile computers off AA batteries?
Yes!

Take a Raspberry Pi Zero and connect it to these:

https://www.amazon.co.uk/Battery-Holder-150mm-Wires-Leads/dp...

https://www.amazon.co.uk/voltage-converter-Raspberry-batteri...

Allows you to run a Raspberry Pi Zero from 8 AA batteries!

I can't remember where I'm getting this figure from, but I think it accommodates for about 3 days of runtime (obviously dependant on what you're doing with your Pi!).

throwaway38375··on Ask HN: Pit Droids, Droid Works?
You could try using https://infinitemac.org/ to emulate MacOS in browser.

Then drag and drop one of these into it:

https://www.macintoshrepository.org/5953-star-wars-pit-droid...

https://www.macintoshrepository.org/4962-star-wars-droidwork...

You might need to use StuffIt to uncompress the SIT files. But when booting Infinite Mac there's an option to include common applications, of which StuffIt is one.

throwaway38375··on Ask HN: Why do you all think that Htmx is such a recent development?
As many others have said, I think HTMX was around many years ago, just in different forms.

There were many jQuery plugins that did most of what HTMX did. But maybe it has risen in popularity recently because of JavaScript fatigue?

Unrelated, but my preference when working with JavaScript:

1. None

2. jQuery

3. Alpine

4. Vue

As you can see, I have JavaScript fatigue, and prefer the lighter touch frameworks.

throwaway38375··on Ask HN: What's an old software that you would like to have again?
Happy to help dude. Enjoy! :)
throwaway38375··on Ask HN: Is there a best date/time to submit projects to HN?
Something useful, submitted with good intentions, will be received well, regardless of when you submit it.
throwaway38375··on Ask HN: What's an old software that you would like to have again?
This one?

https://www.macintoshrepository.org/64891-aliens

throwaway38375··on DNA confirms there IS a big cat roaming the British countryside
A couple more noteworthy examples:

https://metro.co.uk/2024/05/14/big-cat-hunters-have-proof-ru...

https://www.theguardian.com/world/2024/feb/22/it-was-a-big-c...

My apologies for the abysmal UK news websites!

throwaway38375··on DNA confirms there IS a big cat roaming the British countryside
This is one of the most likely theories IMHO.

A lot of sightings started at the end of the 70s, which would align with the introduction of this law:

https://en.wikipedia.org/wiki/Dangerous_Wild_Animals_Act_197...

Rumour has it that lots of wealthy people simply released their "pets" into the wild rather than confirming with the laws!

Fairly certain there were documented cases of servants confirming this too.

throwaway38375··on DNA confirms there IS a big cat roaming the British countryside
It would appear this is not the first bit of evidence suggesting that Alien Big Cats (ABCs) are a real thing.

https://en.wikipedia.org/wiki/British_big_cats#Proven_captur...

I should add, the "Alien" in ABC denotes alien to the country they were found in. Not alien to planet Earth! :)

throwaway38375··on Ask HN: What is the most productive stack or lang for single devs ?
LAMP (or LEMP) stack, hosted on a single VM (probably Digital Ocean).

You probably want to use a framework of sorts. Laravel or Symfony are good. Not mandatory though.

Server side rendering to start off with. Bulma for CSS. Alpine for JS.

Throw in some cronjobs for scheduled stuff.

Maybe a bit of Redis for sessions and caching.

throwaway38375··on A proposal to switch Fedora Workstation's desktop from GNOME to KDE
Agreed! I find XFCE to strike the best balance between simplicity, performance, and features.
throwaway38375··on Ask HN: Co-founder doesn't produce work, is unrealiable, doesn't want to leave
You have the same person causing two different problems.

1. With regards to the CTO, treat them like an employee. Prove that their performance as an employee is not good enough, and fire them. They now have no reason to interact with the company on a day to day basis.

2. As a 5% owner, treat them like a shareholder. Put together a reasonable offer to buy them out, and do so. If they don't want to sell then that's fine, you'll only have to interact with them during shareholders meetings.

The first action will solve a lot of your problems. The second action can happen later on when you've got the money to do so.

throwaway38375··on Ask HN: Which Tech Stack has still maintained its charm?
LAMP (or LEMP) stack.

Throw in a PHP framework (probably Laravel for rapid development) and use server side rendering.

Maybe add in Redis for caching too.

All hosted on a single Digital Ocean droplet.

throwaway38375··on Why does 30 feel like a deadline?
It's all relative. When you're in your thirties, you'll panic on hitting forty.

None of it matters really. Would you rather be 25 and unhappy or 35 and happy?

Your answer may shock you! ;)

throwaway38375··on Tell HN: PHP ≥8.1 security support for has been extended by a year
And PHP 8.1 is a really nice language to use for web development too.

It's got enums, typed properties, named arguments, union types, and the splat operator to name but a few.

Plus between Laravel and Symfony, you've got some good frameworks too!

Yes, I'm a PHP fanboy. :)

Page 1 of 3Next →