Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
bilinguliar
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
bilinguliar
3y ago
Preppers use it as a backup communication channel. The scenarios are: 1. Your country is invaded, and you are building a resistance. 2. Your government becomes a dictatorship. You want to fight back. 3. Natural disasters: the grid a
32.
▲
by
bilinguliar
3y ago
Go has “zero” values. The zero value of Boolean is false. https://go.dev/tour/basics/12
33.
▲
by
bilinguliar
3y ago
I suspect that these types of programmers are not challenged enough at work. And this is when some devs try to entertain themselves at customers' expense. My advice to such people would be to work with the team where they are no longe
34.
▲
by
bilinguliar
3y ago
With feature-rich languages, teams often end up with their own DSL. I see it as a downside. Especially at 3 AM.
35.
▲
by
bilinguliar
3y ago
This commands an issue in the Go repo!
36.
▲
by
bilinguliar
3y ago
Shameless plug to claim Rust superiority!1 No, Go playground can not do that :(
37.
▲
by
bilinguliar
3y ago
It seems over-engineered to me. Why go through all the hustle of code generation? It can be solved with a simple “for loop”: func isOdd(n int) bool { var odd bool for i := 0; i < n; i++ { odd = !odd } return odd
38.
▲
by
bilinguliar
3y ago
They used generics to abstract away ChatGPT.
39.
▲
by
bilinguliar
3y ago
There may be a time in the future when you will be suspected of a crime if you are looking for a local hard drive to buy. - Why do you need local storage? Do you have anything to hide?
40.
▲
by
bilinguliar
4y ago
U-root implementation: https://github.com/u-root/u-root/blob/main/cmds/core/cat/cat...
41.
▲
by
bilinguliar
4y ago
I guess this can be used to eliminate dead code from your projects as well. Cases that you thought were executed but, in reality, are not. I am curious if the overhead of this feature allows for running it in production for some time, let’s
42.
▲
by
bilinguliar
4y ago
This is also about the number of suppliers. Clouds - a dozen. Hosting providers, collocation - thousands. I agree that in all cases, you depend on someone, but you can lower the risk to the point where other dangers that threaten your busin
43.
▲
by
bilinguliar
4y ago
With the standard tools you have a whole spectrum of options: a) Cloud providers; b) Hosting providers; c) Collocation; d) On-prem;
44.
▲
by
bilinguliar
4y ago
Yes, this is my approach, as long as you stick to standard interfaces, you can migrate rather quickly. Your level of abstraction may vary. I stick to VMs after realising how much overhead I had with the cloud as a one-person shop. Teams can
45.
▲
by
bilinguliar
4y ago
What stops me from using such platforms is the risk that one day for any reason my account can be suspended and I will have to migrate my apps and data. Do you have a strategy for that situation? Your old Ansible branch hopefully is still t
46.
▲
by
bilinguliar
4y ago
> energy doesn’t grow on trees I think this statement may be wrong.
47.
▲
by
bilinguliar
4y ago
Just what I need. Left 5 star review.
48.
▲
by
bilinguliar
4y ago
I see your point and agree. Anyway, I am already using “anyone can decap a chip” for the listeners' amusement in my daily conversations.
49.
▲
by
bilinguliar
4y ago
“Anyone can decap a chip” made me laugh. I am curious how many people can do that and then understand what is going on.
50.
▲
by
bilinguliar
4y ago
It is miserable. Does it answer the OP's question of how to stop caring? “not caring” is miserable.
51.
▲
by
bilinguliar
4y ago
One of the easiest ways to stop caring is to believe in determinism. There are options here. You can take a simplistic approach where everything is defined by higher forces - God(s). Alternatively, you can believe in a highly complex world
52.
▲
by
bilinguliar
4y ago
The only downside for me is that it uses only one core, making it hard to scale vertically.
53.
▲
by
bilinguliar
4y ago
In five years, I needed to do the latter only once or twice because a library I was using demanded a pointer to a primitive. Forgive my arrogance, but why does one need a pointer to a zero-value primitive in Go? I sincerely believe there i
54.
▲
by
bilinguliar
4y ago
I struggled with examples of codebase structure when I was learning the language. I looked into code written by Go contributors, and it struck me as “procedural.” This is where a significant shift in my programming started: abandoning OOP,
55.
▲
by
bilinguliar
4y ago
This is true. In the case of REST, it is your “encoding/json” who will allocate for int pointer. So I do not see why new() is needed.
56.
▲
by
bilinguliar
4y ago
Indeed, this may be the use case. I am curious how often you may need a pointer to an int.
57.
▲
by
bilinguliar
4y ago
My bad. I misread your comment. Please see the response one level up.
58.
▲
by
bilinguliar
4y ago
I have misread your comment. So, your experience with handling errors that must be returned to the caller is tedious. Hmm, I do not feel it is tedious. I will likely bubble it up the stack, report it and return a relevant code. I appreciat
59.
▲
by
bilinguliar
4y ago
I never use new(). It gives a way to allocate, that I would prefer to avoid in favor of declaring zero-value explicitly. Maybe I am missing the point of new().
60.
▲
by
bilinguliar
4y ago
I write HTTP/RPC and some TCP servers, implementing specs to parse files and data processing pipelines based on PubSub, NATs, etc. Whenever the server fails to do what is needed - in most cases, it will retry with a backoff. In case it
More ›