skysight-inc/HackerNews huggingface dataset:
Server-side rendering is the best front-end architecture at the moment. Superior first content paint and is better at SEO than SPA, and have a better architect than MVC.

So in what way does if differ from traditional MVC? In MVC, the final output is HTML strings. Easy example: supposed you have an array of Posts in your controller, and a HTML template. The final result will be the combination of both of them. But when the HTML strings get sent to browser, you lose the array !!! It's gone. The client never receives an actual array, just DOM nodes.

In Front-end framework SSR (NextJS or NuxtJS), what you work with is a component. A component can have data (an array), and the data is pushed (serialize) as-is to browsers. On the browser, you won't ever have to work with low level DOM nodes. You continue to see the component and data in its original form. This is the biggest win of SSR that is easily overlooked.
Thanks to distributed version control, you can commit all sorts of trash in your own branch while figuring things out. These commits should not clutter the project source, though if you like hoarding data like I do, you might still preserve this history somewhere else in the repository.
4chan initiative: What is the coolest program ever written?
> Martin writes that ‘the proper use of comments is to compensate for our failure to express ourself in code.’ It’s there to shout out about something that the code fails to tell you. The comment needs some help to distinguish itself from the surrounding code and say, ‘hey, I’m important!’

This is exactly backwards in my experience. Comments can lie. Computers don't execute comments. When reading code for understanding, you need to treat the comments as at best a guide and read the code first. Sure, there are rare cases where an algorithm is so subtle it needs to be explained via other media, but even then a simple link to documentation or a textbook reference is IMHO a better guide. Comments are awful in practice. Stay away.

Whether that has anything to do with syntax highlighting is an open question.
> where does that statement 'horrible to learn' come from?

I had French, English, German, and Dutch in school. I'm a native Dutch speaker. English was easier than any other language. I'm pretty sure my English grammar is better than my Dutch right now. I mostly understand the d/t rules in Dutch by now, but I'm not always certain. French, German, and Dutch classes kept introducing lots of random rules that serve no purpose. At the end of high school, the only language I could hold a grammatically correct conversation in was English and my native language, and write a grammatically correct text only in English (not Dutch, or at least not without avoiding certain rules by rewriting sentences).

English classes also introduced some silly random rules at first, but once you get beyond the a/an, learn a hundred or so irregular verbs, and a few other such things, you're mostly done and it's just vocabulary and expressions/sayings left. You can't really get around the latter, but the former can be kept as small as possible (only the useful features like indicating possessiveness or plurals, not differentiating between whether the object you're speaking about is {male, female, neuter} × {active, idle, giving, modifier}). And the German sentence structure is more convoluted than necessary (I forgot most of my French, maybe theirs too), plac[1] the second part of a split verb so far at the end of the sentence with lots of words and qualifications in between that you lost track of what came before when you finally reach the end of the sentence especially if you can't really read German fluently [1]ing, but maybe that just takes some getting used to.
Answer that question and you might have a startup company...
Keywords in Python and C
The genres, though... And saying that the German grammar is simpler is quite a stretch. English barely conjugates verbs!

Would trade putting genres into english if I could also get the German consistency in spelling any day, though.
Windows title screens from 1.0 to 10
AMD unveils the 12-core Ryzen 9 3900X, at half the price of Core i9 9920X
Youtube-dl is one those things I wish could stay under the radar.
s/shell scripts/manpages/
You Probably Have Too Many Free Trials
PMs Should Study Statistics: An Interactive Essay
Is this just about Github Enterprise Server? If so, the article doesn't really make that clear, and it seems like a red herring. AFAIK Microsoft does not currently restrict access to Github.com to any country, and they even make a censorship-friendly version of LinkedIn for the PRC.
The current set of vulnerabilities target Intel specific microarchitectural features, like the first version of Foreshadow/L1TF targeted the SGX enclave, which by definition isn't in other company's CPUs.

Given that AMD is fully vulnerable to Spectre, there's absolutely no reason to believe it isn't similarly vulnerable to microarchitectural detail leakage if people were to look. And going back to what I was replying to:

> we are talking about one company that made egregious engineering decisions to maintain their market leadership which has put their customers at risk

We demonstrably aren't, seeing as how ARM, and IBM, both POWER and mainframe/Z CPUs are also vulnerable to Meltdown. That and the significant prevalence of Spectre says this is not "typical Intel" but "typical industry", a blind spot confirmed in 7 different companies, and 8 teams to the extent the IBM lines are done by different people.

The "Intel is uniquely evil" trope simply doesn't hold water.
https://transparentcalifornia.com/salaries/search/?q=police+...
Ian Lance Taylor's Response to “Go Is Google's Language”
There are two open-air museums in Inuyama, Japan that this reminded me of: (1) Meiji Mura, and (2) Little World.

Meiji Mura is an impressive collection of Meiji-era buildings that have been gathered from around Japan, including the lobby of the Tokyo Imperial Hotel (designed by Frank Lloyd Wright) and two full-size churches from Kyoto.

Little World is primarily a collection of traditional houses that have been transported to Japan and reconstructed from around the world.

The amount of effort that went into moving and re-building the dozens of buildings at each site must have been incredible. Both are worth visiting if you are near Nagoya.

(1) https://www.meijimura.com/english/

(2) http://www.littleworld.jp/english/index.html
Am I the only one shocked that a website just within the top 200 sites in the world has 139 million users? That's phenomenal (and potentially more if not all user details were hacked)
And many projects aren't. It is still better to label a title correctly.
I used to be excited about the ARM development but the situation with Huawei left a sour taste. I hope companies start abandoning proprietary solution like ARM in favour of open source technologies like RISCV. That would be one good outcome of the US bullying.
The worst I've seen is where the main content is served (if you curl the website, you can see the text content is there), but it's hidden by a full-page loading animation which is removed by JS.
That, or it will bring everything under the control of the Chinese government.
> element.nextSibling is very clear. It's the next sibling of the element. It's idiomatic javascript, and it follows a good naming convention, which is a skill that is language agnostic.

The only catch here is that it will give you the wrong answer, and that you should (almost) never use it since it includes whitespace nodes, which you practically never want. This is why nextElementSibling exists (get the next sibling that is an element).

As for the naming: this is an old old discussion we will never agree on, but I think that in the context of a DOM traversal library "next" is pretty clear.

> The author is also conflating their time learning as a pro for jQuery. Had they learned vanilla javascript first, their point about not knowing which nextSibling to use would be moot.

Your assumptions about my knowledge couldn't be more wrong. I spent years writing plain JavaScript. I even wrote a jQuery alternative back in the day as I didn't like various aspects of it (I think I was the only user), before giving in and "just using jQuery". I still don't like those same aspects, but it's not bad enough to use something else.

I have also, recently, tried very hard to use plain JS, and this post is the result.

> if you are a new developer do yourself a favor and learn the foundation it's built on first.

This is just a variant of the old "kids these days, they just learn Python instead of REAL development with C, they don't even know the difference between the stack and heap!!" Okay, shrug. In the meanwhile, those "kids" are solving real problems, so well... Programming isn't some kind of intellectual exercise, it's a tool to solve problems.
With $(el).next() you _can_ specify the next "what" if you chose, i.e $(el).next('span'). Otherwise it's next sibling, sort of how it appears.

`Why is this a function and not a property of the object?`

1)Who cares? 2)Possibly because it's more than just getNextSibling as example above shows.

So shorter syntax, more functionality, what's the fuss? 30kb?
Why is chicken so cheap? [video]
> I don't even know what you're on about or how it relates to this discussion. Did you mean to post this on a different article?

Nope, that was just a small addendum in relation to my example since experience has shown that often times the back button is broken in different ways depending on browser. Having just one engine left would at least mean some more consistency here, but that's about the only advantage I can see in that.
Your description of what GitHub is is simplistic and reductionary. These sites are not simply about git repositories, but providing features _around_ git, e.g. CI/CD, issue tracking, wikis, project management, user permissions, contribution insights, etc. Those don't really migrate "in 5 minutes".
Down for me in India
On the other hand, one of the most common reasons for comments to lie is that the code is updated and the comment is not. If comments were highlighted to grab attention more strongly, perhaps that would happen less often.
> Git is distributed.

Git - the protocol - helps enable a distributed edit & merge ... but Git itself is not a Schelling Point. Github is a Schelling Point. (I made a previous comment about this conceptual difference.[0])

Likewise, the HTTP protocol can't be a Schelling Point but web nodes that use http like Facebook or HN can be Schelling Points.

(One can get pedantic and argue that pure protocols like git/http/tcpip can also be viewed as Schelling Points on a relative basis (compared to 1960s AT&T leased-lines) but we don't have to dissect that because the social congregation around sites like Github happens at a higher layer than the protocol.)

>Who cares if a hosting server is lost? 5 minutes and you're up on a different server.

Google announced shutdown of Google Code on March 2015: https://venturebeat.com/2015/03/12/google-code-disables-new-...

Microsoft announced shutdown of CodePlex on March 2017: https://venturebeat.com/2017/03/31/github-wins-microsoft-is-...

Not only did both Google and Microsoft abandoned their own public code collaboration websites, they also both tried to acquire Github.[1] As we now know, MS had the better offer to Github's owners in 2018.

Both corporate giants had the money to run their own git-protocol compatible servers and yet they abandoned them for Github. Think about why did that.

Maybe the reasons are social, not technical? Therefore, spending 5 minutes to move a git repo to an unknown server doesn't actually accomplish the same thing Github accomplishes.

[0] https://news.ycombinator.com/item?id=14894128

[1] https://www.google.com/search?q=google+tried+to+buy+github
Yes, you're letting non-ionizing radiation out.
I install Privacy Badger and uBlock Origin for my Mom's computer. I also showed her how to disable them temporarily if a site isn't working as she expects.
How many hours do you work during the 4 days? What do you generally give up during your negotiations for the 4 days?
There are plently more out there, just throwing up 3, it all depends on your take and interests (are you into hobby, projects or the pro scene?)

Good luck on your search.

https://www.eevblog.com/forum/index.php

https://hackaday.com/

https://www.eetimes.com/
Implementing a simple, high-performance Bloom filter in C++
What I remember being really weird is those books were always next to all these books on psychics and UFOs.
Is anyone here a dev working in China? Would love to know a bit about what dev culture is like in China, for instance:

What are dev practises like - do people do Agile / Scrum? Is "post-agile" (sorry) scepticism a thing? What about TDD and CI/CD?

How about technologies, do people develop on Linux, are they using git, are american libraries/frameworks big - are people using React etc?

How about things like FP and niche languages - is there much appetite for people experimenting with new tech/languages or are Python/Java the defacto choices for application work and everything else shunned?

Is there a Chinese-equivalent to GitHub - is engineering in China big enough that they can have their own independent OSS culture? (Is companies contributing back to OSS a thing?)

EDIT: to add one last question - are developers seen as feature-factories or is the relationship between product and developers/tech more flat/harmonious than that?
Idea: Slack for External Communication with Customers
Why is there not such a thing like Slack, but for external communication? Internal communication is happening much faster since Slack, but external communication with customers and business partners still takes forever due to email, live chat and other oldfashioned communicaiton tools. Worth giving that idea a shot?
What about elevenses? Luncheon? Afternoon tea? Dinner? Supper? He knows about them, doesn’t he?
My family and I saw the Starlink satellites two days ago at midnight. They were twice as bright as anything else in the sky except the moon. It was surreal to see these bright points of light move across the sky in single-file lockstep motion, like a train on invisible tracks. My best guess was an asteroid had broken up in the atmosphere, but the lights were really too uniform for that to be correct.
Microsoft Azure has such a feature (although not for Enterprise users, which is evil), I´m surprised that AWS doesn´t.

https://azure.microsoft.com/en-us/support/legal/offer-detail...
> The only way is to develop your idea, which has to be unrelated enough to your work, at a different location, on you own time, with your own money.

To be clear, many (if not most) of the IP clauses discussed here would still claim to own your personal IP produced while employed EVEN given all those conditions.

As an aside, workers in California have much better protections from this kind of IP overreach by employers, and abiding by the conditions you mention will protect you there, but not necessarily elsewhere. Also, and this really grates me, employers in California will still often include a total IP ownership clause, even though it's nullified by the state law, for reasons I can't fathom - to scare you into not developing your own IP off the clock? Or just in case the law changes? I find it very distasteful.
True. I didn't even think of that.

..Difference between purity and precision, I suppose.
I've described how I've built a probitable side-project while still working a full time job here https://abot.app/blog/profitable-slack-bot-rails
Only if you are pushing 1 message per write. 1 write per agent per minute, ends up at just over 2$ per month fox 10 agents, regardless of the number of messages - it's cheaper for any setup I've encountered. AWS services are always middling solutions, which you can often optimize for better cost efficiency.
I wish the same. But the sad reality is probably more "segmented internet" instead of a "decentralized internet".
The first two can be done without github. You can also run your own publicly accessible git repository. It might not have the friendly web interface but it will do all the git stuff.
I still use jquery too and it doesn't have to be a tangled mess of insanity nowadays.

Webpack + ES6 modules + jquery is a reasonable option IMO if you like the idea of server rendered templates with sprinkles of Javascript.

Plus, with the way things are heading with certain web frameworks (like Phoenix), you can do really interesting things like push the diffs of your server rendered templates over a websocket channel without having to write any user land Javascript yourself, and on the initial page load it just gets served without Javascript using the same templates. It's like the best of both worlds (super fast feeling apps, SEO just works and you don't have to duplicate templates and logic on both the client and server).
> Except for very simple use cases, serverless platforms in general encourage bad software design patterns.

> For example, in this case, if a regular database was used instead of Firebase, "counting the number of supporters" would have been done inside the database using a query.

I don't think this is connected to serverless achitecture. You have to write a database query either way. And it would be just as easy to count or retrieve entities one by one with traditional approach.
S3 went down twice in 5 years. Since we're transferring files, you just push everything in the next window. The retry is trivial from the agent and accounted for in the consumer.
Not all databases support counting indexes. This is why counts we’re a bit issue at Parse: mongo didn’t support them and if the count is for an unindexed query, it could be a full table scan on a multi-tenant system. Just as bad, mongo as of 3.0 (last I worked with it heavily) did not ever yield during an index scan so counting large numbers on an indexed query could cause massive problems too.

I recommend the atomic increment operator for counts that both Parse and Firestore offer for this problem.
I am willing to bet the OP meant a poor , developing country with a colonial past version of Third-World than member of the Non-Aligned Movement . Most countries in the latter satisfied the former with the exceptions you provided.
Up for me in the US of A.
Mailing lists?
Qualcomm's benchmarks show Snapdragon 8cx running as fast as Intel's Core i5
I learned this lesson, but I wish I had learned it sooner.

A few decades ago I started dollar-cost averaging into a hot-rod actively managed fund. As always seems to happen, the fund cooled down and I was late to catch on. My money was not effectively put to use.

Then I started reading (and YouTube watching) people like Malkiel, Buffet, Bogle, Dalio, etc. They all clearly explain the benefits of index funds for the vast majority of people. I believe them.

Indexing is the way to go. Read Bogleheads.org for great advice on this and other topics.
Way inside Tueller Drill range (https://en.wikipedia.org/wiki/Tueller_Drill), if the grizzly disabled her in the first blow her situation was indeed impossible. If not, and that's reported by some survivors, depending on what was hit and how a handgun was holstered, a handgun is a lot more ergonomic than a spray can, for example in pointing, it would have given her a better chance to strike a counter blow.
Wouldn't the fact that if they are ok with you working on FOSS protect you? If you have the source you are free to modify it to you hearts content, right?
And they have it for almost all other plans, so the technology is there.

It sounds like an intentional product decision and not a technical obstacle.
Cost is the motivating factor here.
Meh, if your job is to regularly create IP, it becomes difficult to prove what you came up with at home vs at work. And really it doesn't matter because you are usually paid a handsome sum for your inventiveness. I can understand such clauses as I change my risky situation of not coming up with anything of value and not having money for a steady wage but no chance at extreme richness. I am always free to stop working at my employer and try to score golden patents on my own...
Facebook is myspace with spying and social engineering turned up to 100x
https://reddit.statuspage.io/ says All Systems Operational
With Brexit English has become even more neutral!
Ifixit also has official repair parts and kits you can buy instead of the gray market parts that are of suspect quality.
If the concern is DB operations adding up you can lower your quota as well which will be strongly enforced and shut down your app.
"China should allow foreign businesses to operate in the mainland, subject to Chinese law"

Foreign companies are allowed to operate in China , subject to Chinese law
The Guide to Using GitHub Pages
This is my primary problem with comments. I have worked in very large 20year ol code bases both when I have been on the team for most of that time and when I walked in at the end. In both cases almost half the comments are at least partially incorrect.
Non-Chinese business must operate with a Chinese partner to do business in the mainland.

I see this repeated a lot on Hacker News, but it's no* longer true. Search WFOE (wholly foreign-owned enterprises).

*Fixed a typo - thanks to below comment.
Why would that be? The actively-managed funds will be less relevant, holding fewer dollars and fewer shares purchased.
That's a healthy response to anything new in the front-end community.

Nevertheless I encourage you to check out this presentation:

https://youtu.be/AdNJ3fydeao

Which explains the idea much better than I ever could.

Two things had me sold on this:

1. They managed to make the thing so easy to use, that even people who's line of work involves mostly Excel sheets were able to create something useful after a short introduction.

2. The output is relatively readable JS. There are some surprises like a few one-letter method names, but overall you could open up the source of a running Svelte app(provided it weren't minified) and figure out what it's doing just by reading the code.
Wait what? How would you lose access to Github? Ain't there a tone of ways to get something from the Internet?
Firebase also has a fixed price plan that can shut off your app if it blows through quotas. It’s called “Flame”
3rd party javascript turned off here - page loads quickly, is ad-free, readable, and includes the figures.
I strongly recommend trying a middle ground. I find nearly all highlighting schemes in use today overly garish, so I always find myself customising my own with relatively few colours with the idea of doing as little as possible to bring out the structure of the code:

- Comments and string literals can look like code without being code, so they get their own separate colours to make it easier to quickly scan past to where they end.

- Types live in a different dimension from the rest of the code, and tell me a lot about what it does, so they get a different colour.

And, finally, the one I've been trying for a while but am still not convinced about:

- Structural keywords (for loops, branches, etc.) get a separate colour as well.

All these colours are of course relatively neutral. I'm especially confused by people who use bright red for anything. That's a colour I use extremely sparsely for actual errors and bugs.
100%, I always tweak any color theme I use to have comments highly contrasting green or orange... dunno what's with the modern trend of making everything eyes-hurtingly-colourful, but then going and muting out the parts that should stand out the most.

Another pet peeve I have is why tf do all color themes try to color variable vs. functions vs. fields differently: they never get this right in dynamic languages, and they couldn't anyway bc variables often hold functions in them.

Basically all modern / editor-default color themes are dead wrong and annoying!

(VSCode and Visual Studio ones may be on point occasionally, but they fail at dynamic languages too and only end up spewing meaningless distracting colors everywhere.)