HN user

iio7

1,120 karma
Posts76
Comments67
View on HN
www.youtube.com 7mo ago

Linus Tech Tips – Kioxia Factory Tour – LC9 245TB SSD [video]

iio7
2pts0
www.perplexity.ai 1y ago

Politeness to ChatGPT raises OpenAI's operational costs

iio7
2pts1
www.pcworld.com 1y ago

Google is baking Gemini AI into Chrome

iio7
3pts0
phys.org 1y ago

Nanoplastics readily adsorb heavy metal ions

iio7
5pts0
flak.tedunangst.com 1y ago

Memory leak proof every C program

iio7
8pts3
flak.tedunangst.com 1y ago

Browser Ktrace Browsing

iio7
1pts0
techrights.org 1y ago

The Fall of the Open Source Initiative (OSI)

iio7
2pts0
www.youtube.com 1y ago

Animation vs. Coding [video]

iio7
3pts0
www.unixdigest.com 1y ago

What if one of your online friends dies unexpectedly?

iio7
2pts0
news.ycombinator.com 1y ago

Ask HN: What are some of your favorite most UNDERRATED YouTube channels?

iio7
8pts9
news.ycombinator.com 1y ago

Ask HN: Share your experience with storing lots of binary data in the database

iio7
1pts1
fsfe.org 1y ago

EC cuts funding support for Free Software projects

iio7
2pts0
news.ycombinator.com 1y ago

Ask HN: What is the biggest size of a SQLite database you have worked with?

iio7
4pts2
news.ycombinator.com 2y ago

Ask HN: PHP password_hash exits on null byte character

iio7
2pts3
news.ycombinator.com 2y ago

Ask HN: Can a SaaS survive on a donation-based model?

iio7
3pts7
www.youtube.com 2y ago

Making money on YouTube is hard for Some people [video]

iio7
2pts0
github.com 3y ago

Information about the fractureiser Minecraft mods virus

iio7
1pts0
www.thebrighterside.news 3y ago

Nuclear waste powered battery lasts thousands of years

iio7
11pts2
news.ycombinator.com 3y ago

Ask HN: What is your best advice and mindset for running your own business?

iio7
3pts0
www.reuters.com 3y ago

More than 2M Toyota users face risk of vehicle data leak in Japan

iio7
4pts0
www.unixsheikh.com 3y ago

SQLite the only database you will ever need in most cases (2021)

iio7
391pts374
news.ycombinator.com 3y ago

Ask HN: How do you version control your database schema changes?

iio7
1pts5
lkml.org 3y ago

OT: Open Letter to the Linux World

iio7
4pts6
github.com 3y ago

Djot – A Light Markup Syntax

iio7
3pts0
www.phoronix.com 3y ago

Systemd 252 Released With systemd-measure

iio7
9pts0
greg.nokes.name 3y ago

Raised Bars, or Breaking into Tech

iio7
2pts0
www.unixsheikh.com 3y ago

Poor mans mind mapping tool with just the terminal

iio7
59pts7
techcrunch.com 3y ago

Five years later, Google is still all-in on Kotlin

iio7
8pts4
news.ycombinator.com 3y ago

Ask HN: Database or filesystem for logging user actions?

iio7
1pts2
www.unixsheikh.com 3y ago

No your API isn't REST, but don't worry, it shouldn't be

iio7
2pts0

Before mobile phones where a thing, we used to memorize the phone numbers of every family member and friend and co-worker, etc. The numbers we rarely used, we wrote down or looked up in the phone book. When you got a new number, you maybe wrote it down, then after having dialed it a couple of times, it stuck. This didn't really require any effort, it was just the natural way of doing things.

Then came the mobile phone with the ability to store contacts, today I can't even remember my wife's number.

I have coded for more than 40 years and I hate autocomplete, language servers, etc. I don't use any of it because I have found (after having tried to use it all) that, just like with phone numbers, you don't remember much if you use all of that and you have to make a real effort, but things just don't stick the same way. But if don't use any of that, you only have to look things up in the beginning, then occasionally, then rarely or never again and more things just stick, you get faster in a natural way and you understand your code better. You also think deeper about how to structure your code and how to organize everything.

If you always use a crutch to help you walk, you will never walk by yourself. The crutch will look like it is helping you, but that's only in the beginning, eventually it will hinder you and hold you back.

That's my 2 cents.

I Made a Website for Problems

Nice. I already see a problem. It requires a Google account. I don't have a Google account and I do not want a Google account. So how do we solve that problem?

I have a friend who works in production. I cannot remember exactly what his education is, but it's a type of engineer. If you want something produced that you have invented, he can get it done.

He has mentioned that they have software that can calculate the average lifespan of the finished product by entering the different components that goes into the product (like this piece has this amount of iron, this amount of tin, etc).

Based upon this the software can calculate the lifespan very precisely and determine if they have made it "too good". If it's too good the quality is decreased on purpose in order to reduce the lifespan such that people will buy more. Other testing goes into the equation as well, but enough data has been collected over the years that it can be calculated/simulated.

There is no sudden about it, SPA's are yet another one of the so-called "modern web" cancers of the Internet. They go completely against the protocols and architecture they run on and the only reason why they became so popular to begin with is because of all the hype from the big business, like so much else.

A web application or a website, by its very nature, is a series of small requests. When someone sends all requests in one big lump of a page, they have just defeated this very important architecture. Not to talk about the fact that they break searching on pages and a whole lot of other things.

There is a major difference between the help you can get from an IDE or editor with a language server running in the background, and then GitHub Copilot stealing away other peoples code.

I sincerely hope Microsoft looses this law suit.

So, this is another "drive by" on Hacker News about Stripe, which @edwinwee (from Stripe) reacts to and "saves the day".

All the while the rest of us know absolutely nothing about what just happened!

What exactly is going on? What is the business model? And why does it require that these cases reach Hacker News before they are solved by @edwinwee!?

You're missing the point. If you provide an API like in the example you give, put it out on the net at some domain, then in order for it to be REST, I MYST be able to access that domain, without any prior knowledge whatsoever, and make a request.

When I do that in the case you provide, I would not know anything about how to use those resources. Without any prior knowledge, I don't know what "users" are, or what a "like" is or an "unlike". In order for me to use this resource, I need documentation. Even if you provide the documentation in the response to the request, and I have to read that first, then it is NOT REST.

By the very nature of an API, it can never be REST.

No, that would not make it REST. I suspect you didn't read the article thoroughly?

If your application needs documentation, i.e. a spec or similar, also referred to by some as a "profile", in order for the client to use your resources beyond the initial root URI, then that is not REST!

An API, no matter how you twist or turn it, can never be REST. REST are truly only for manual human consumption, not machines. That is why it is so weird everyone is calling their APIs for REST.

We basically only use the Go standard library. So far we have found no use cases where that didn't cover us well enough.

This also removes any problems with third party dependencies that suddenly gets abandoned yet still have serious issues, supply chain attack problems, etc.

We have also found that most third party libraries tries to be (more or less) general purpose, so they often contain lots of stuff we would never need, so we prefer to e.g. write our own specific code.

The way we work require a little extra effort because we write the things we need our selves, but of course we reuse our HTTP handler code, our custom runtime error handler code, etc., from project to project, but in general the benefits far outweigh the cost in our experience. The fewer dependencies, the fewer problems - and Go shines in this because of how much is covered in the standard library.