24,182 karma · joined Jul 22, 2017 (9y ago) · 14,302 submissions
https://hnbadges.netlify.app/?user=quickthrower2
comment 3y ago · link · parent
I guess you could install a bunch of old versions on Ruby, gems, etc. on your machine too, but docker, or a VM might be easier.
Or you could go through, remember how all the code works and upgrade it to the latest versions of everything to run it. Assuming the SSG du jour 2013 is still maintained :-).
I tried to resurrect a 2 year old NodeJS project and gave up trying to upgrade it to the latest versions, NodeJS people really love their major version changes, and breaking back compat for no real reason.
comment 3y ago · link · parent
Reasons:
If I leave it for 10 years and come back I will know how to maintain it. The tools will exist (especially if WordPress auto upgrades).
If I use some static site gen, I will need to remember all the syntax, use some docker container to run the version I used all that time ago. Even coming back to it after a year can leave me with confusion.
Also WordPress has a brilliant ecosystem of plugins and themes. And if you are worried about security, there are plugins that will pump it out into a static site on S3, if you like, so you can use WordPress to author, and S3 to host.
The WordPress ecosystem can rival most no-code tools too.
Also hosting is ubiquitous, and cheap, and usually simple (open CPanel, hit install new Wordpress Blog).
comment 3y ago · link · parent
For HN for example, you could prerender much of the content including latest comments and get Next to keep it up to date, cache invalidating as necessary. Basically have it rebuild static pages as posts are made. Then use fetch calls or maybe sockets to get the very latest posts and keep it up to date, even live updates if you wish.
ISR is the jargon here: https://nextjs.org/docs/basic-features/data-fetching/increme...
It is a bit like a mirror of what HN does. HN will use caching so that if you are logged out you get fast renders of pages. Instead of caching, you are pregenerating and keeping it up to date.
comment 3y ago · link · parent
Say you have a useEffect that calls an API: maybe firebase or parse. That useEffect only gets run on the client. For the server side render: it runs the react code based on the initial props and takes that first rendering and creates the static html from that. When that static html is run on the browser it will run react and subsequent renders can update the dom.
comment 3y ago · link · parent
You can still use NextJS - just get it to prerender the entire site statically. Then you get the plus sides of using NextJS, but can take your static ZIP file of files to any host you like, or self host.
You then get, for example, an HTML file, with all the elements ready on page load, which can be 'rehydrated' when React kicks in for deep functionality and interactivity.
comment 3y ago · link · parent
With the OP system the attacker gets potentially way more attempts to access the page and gets to try in the future with whatever tech comes out. On the plus side it is E2E encrypted!
With a traditional server they can rate limit attempts on the password. But they probably don’t encrypt it using YOUR password (unless it is a password manager etc.) so an attacker could get the plaintext if there is a breach.
comment 3y ago · link · parent
Remember people get conned by humans online pretending to be other humans (catfishing) by following scripts. Those people will assume they are talking to a conscious person but they are talking to a construct really.
comment 3y ago · link · parent
Hire the best get out of their way seems to apply here.
In addition to a library how about a cinema room, where you can catch up on the enormous amount of conference content on youtube.
comment 3y ago · link · parent
The role you are describing might be different to an engineer.
Sure a good engineer avoids unnecessary coding but having done that they have to be seen to do some necessary coding (or necessary work like architecture, security, devops etc.)
Most small companies think in job titles and roles as an anchor but you may wear other hats sure.
comment 3y ago · link · parent
A forum is going to be way more searchable. If you want realtime notifications that was solved 50 or more years ago with email or say 20 ish years ago with RSS.
For this reason I prefer JIRA comments with @-ed colleagues over slack which provides the context and async communication.
An ephemeral slack-like (snapchat for teams!) might be useful for the remote equivalent of talking which is also ephemeral. Knowing that the conversation will be lost and will be interruptive should move most stuff on the forum.
ATC style short radio-style communications might be interesting for this too. “Dan please check broken build. Out”
But yeah there is a lot of cultural bias towards slack like chat systems and at large companies changing that would be like trying to switch away from active directory: unplausable!
comment 3y ago · link · parent
comment 3y ago · link · parent
This is useful and fine. Someone wrote a test and it now hits a race condition or something and occasionally fails. Let’s assume we are very confident it is problem with the test not the product.
Choices:
Spend a sprint trying to fix it right now regardless of priority.
Turn it off and lose that coverage.
Buy some time.
In this context it makes sense. As long as their is a procedure to address these in some sane timeframe.
Maybe that is an example of normalization of deviance. But I think if it is discusses and trade offs thought through it is an OK thing to do at times. Remember most development is not green field. You inherit a system when you start a job.