HackerTrans
TopNewTrendsCommentsPastAskShowJobs

throwaway38375

no profile record

Submissions

DNA confirms there IS a big cat roaming the British countryside

discoverwildlife.com
156 points·by throwaway38375·2 years ago·88 comments

comments

throwaway38375
·2 years ago·discuss
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
·2 years ago·discuss
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
·2 years ago·discuss
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
·2 years ago·discuss
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
·2 years ago·discuss
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
·2 years ago·discuss
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
·2 years ago·discuss
Yes! Windows got it right IMO.
throwaway38375
·2 years ago·discuss
Ah, I see. Thank you for explaining. This is much clearer.
throwaway38375
·2 years ago·discuss
Good point.
throwaway38375
·2 years ago·discuss
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
·2 years ago·discuss
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
·2 years ago·discuss
> 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
·2 years ago·discuss
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
·2 years ago·discuss
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
·2 years ago·discuss
Very excited about this, I have the best memories of using Kaboom.
throwaway38375
·2 years ago·discuss
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
·2 years ago·discuss
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
·2 years ago·discuss
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
·2 years ago·discuss
Happy to help dude. Enjoy! :)
throwaway38375
·2 years ago·discuss
Something useful, submitted with good intentions, will be received well, regardless of when you submit it.