Recent submissions

Comment · 5 years ago
Checked Zig. Doesn't have a memory manager. It's "free all at program termination" or manually manage memory like C.
Comment · 5 years ago
I don't get how food consumption can increase in a pandemic. Should be constant in or outside a pandemic situation. Possibly somewhere crops are getting rotten because of newly imposed export restrictions, or for some other things.
Comment · 5 years ago
Too large a company. Their cross-team is like other's cross-company.
Comment · 5 years ago
Consider keywords :

ফেরত -> উত্তর

ফাং -> কাজ

For hashmap indexes, consider

name["key"]-> name.key

And while initializing

"name" -> "value"

consider syntax

name : "value"

Less typing.

Comment · 5 years ago
Anybody else remember the speedup loop.

https://thedailywtf.com/articles/The-Speedup-Loop

tl;dr : programmer inserts a large empty loop in a UI, so that in weeks when he achieves nothing, he removes a single zero from the end of the loop counter to speed up things a bit.

Comment · 5 years ago
Gab is like Facebook. Parler like twitter.
Comment · 5 years ago
Do it for all the selected lines, when multiple lines have been selected and tab pressed.
Comment · 5 years ago
Also note that the way he fixed it, strlen only caches the last call and returns quickly on an immediate second call with the same string.

Another reason why C styled null terminated strings suck. Use a class or structure and store both the string pointer and its length.

I have seen other programs where strlen was gobbling up 95% of execution time.

Comment · 5 years ago
Parse your server's access log file. The way it had been done for decades. "Analog" was popular then, Should be better options now.
Comment · 5 years ago
Right! Linode was $20/month at least and more focused to businesses. Not the then unbelievable $5/month for SSH ssh accessible virtual box with root access that DO started. Plus the SSD. Other hosting providers later caught on with DO.

But the thing I liked best was their "no hidden cost". You pay what you agreed before to pay. No surprise. No upsell, trick sell which were common with all hosting at that time.

DO still maintains that honesty. Not sure what will happen after their IPO.

Comment · 5 years ago
His conclusion :

> In the years to come, industry experts expect low-level coding and programming jobs to become obsolete with the development of new tools that remove the need to code completely.

Me wondering how much of it shall we see.

Comment · 5 years ago
If you can't purchase the GNSS HAT, use an old Android phone and install Termux on it. Then run some bash scripts on the phone that will do the job.

The phone will communicate with your network over wifi, and replaces both the Raspberry PI and the HAT.

Comment · 5 years ago
> continued dominance of facebook in a lot of countries is a bit of an anomaly.

Scaling for cheap is the winning strategy here. Google had its social network before facebook too. Orkut. Didn't scale cheaply. Invite only to limit load.

Facebook could do it. Fast loading pages serving billions. I was trying gab.com recently. Too slow. Too much non responsive. Even after they are trying their best. And even though they make money from premium membership.

Comment · 5 years ago
Prototyping takes less time than writing up the requirement in paper. And customers can give more accurate feedback watching the prototype than reading the docs.

It rarely happens that once a prototype is written, the developer finds out it was all a wastage and the customer wanted something quite different.

Think of the prototype as a Photoshop mock, but interactive like the real application.

Comment · 5 years ago
Coup news takes time to reach the media. If this is not fake more likely this video is from the previous day afternoon, when they raided the parliament.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton