HNHacker News
TopNewBestAskShowJobs

hknmtt

352 karma · joined September 5, 2022

submissionscomments
hknmtt··on ULIDs and Primary Keys
I have been using ULID(github.com/oklog/ulid) for years. Cannot imagine going back to AI uint64 ever again.
hknmtt··on Chinese company that stole IP from ASML raises $140M
China does not recognize patent law, therefore they could not have stole anything. I am all for recognition of one's discovery but the patent law in "the west" went too far and is more a retarder rather than accelerator of progress.
hknmtt··on Ask HN: How to overcome stage fear / social anxiety
Fear comes from the unknown - that you will be exposed as fraud by the audience. So if you know your stuff, the topic of your talk, inside and out, you will be confident in what you say and therefore the way you present it.

Second thing is to do something like Till Lindemann, the lead singer from Rammstein, did. he too had massive stage freight so ho came up witch a character and his entire performance is exactly that - a performance. So you interact with the audience through this mask, this filer, of a made up persona and so it's not really you doing the talking. At least that is how your mind will rationalize it.

hknmtt··on Migrating from Vue 2 to Svelte
Since i first stumbled upon Quasar(built on vue 3) last year, i have never looked back. It is all that I ever wanted and could never find. And with pinia instead of vuex it's all even simpler. Vue isn't going anywhere and neither am i.
hknmtt··on Memory Safe Languages in Android 13
programming language developers always made compilers to just do that - compile the code. without actually checking the code for problems and allowed programmers to write faulty code. and now we have accepted these memory leaks and shooting oneself into one's foot as normal. so instead of investing time to make compilers output safe programs we had to wait for rust to come by and its "first time in history" compiler while it limits the programmers tremendously to do that along with the ugliest syntax ever invented. when a programmer looks at faulty code, the bug can be seen. sometimes easily, other time not as easy but it can be identified nevertheless. that means we, humans, can detect them. so why can't programs do the same while having way more computing power at their disposal for that particular task, along with language definition and type system? everyone keeps writing new languages and trying to reinvent the wheel in blue, red, purple color instead of solving the actual problem.
hknmtt··on Show HN: I made a 2D shoot 'em up game with Go, using Entity Component System
great to see Go doing more than just web backends and networking.
hknmtt··on Poll: Kubernetes or Bare Metal
cloud is great for startups when you have no idea about your infra needs. once you figure it out you should move to bare metal. but the honeypot nature of cloud is the comfort and ease of use. people get comfortable and decide to not bother with switching and that will bite them in the ass in the long run with insanely high bills. and some will be way too deep to even be able to switch(due to their code base being too dependant on the cloud infra or too expensive to refactor) so they will get stuck there. cloud is a trap if you are not careful but great to get things going.
hknmtt··on Could Dissolvable Cranberry Film Replace Plastic Packaging Someday?
WE ALREADY HAVE CELLOPHANE
hknmtt··on Z-library founders arrested in Argentina
"The pair was arrested on November 3, 2022 in Cordoba, Argentina at the request of the United States" ...
hknmtt··on Ghostly is a simple, lightweight, and fast full-stack framework for Golang
I work with go for years but never used a fw. At the beginning when i came from php, i looked for fw because that was how things were done. But once i let go of that idea and started making things by hand i never looked back. Go really does not need a framework. Sooner or later it starts to limit you. For example i used grpc a lot in the past but came to realize it was hindrance and now i just use proto files to define schemas and generate the structs but that's is all it does. Everything else is hand-made. I even moved away from SQL abstraction and just use sql and directly. Again, sooner or later there will be some limitation that will bother you and so it is just not worth it. And being able to tailor-made every part of the application for its desired purpose is priceless.
hknmtt··on Ask HN: What are some of the best books you have read in 2022?
Yep, sumerian cuneiform is ahead of me. Still have some books i want to read before that but i am certainly interested in reading the old text myself.
hknmtt··on Why everything looks the same
oh boy, worst offender is material design. it looked horrible when it came out and still looks horrible years after. and so many examples of it out in the wild :(
hknmtt··on Maps and Memory Leaks in Go
i don't see any issue here. same behavior can be achieved with slices: foo := make([]int, 0, 1000) for { for k := range bar { foo = append(foo, k) } foo = foo[:0] }

the slice will grow as much as the largest dataset. map will be the same. you need to let go of it to be GCd and create a new one.

hknmtt··on Building a BitTorrent client from the ground up in Go (2020)
this is good info. i was thinking about making my own, before i discovered picotorrent. but the lack of ui libraries for go prevented me from moving forward. nowadays, with nuts and others, it might be worth a shot.
hknmtt··on Thoughts on the “guard” proposal for Go's error handling
you can always panic/recover to get the throw/catch behavior
hknmtt··on Thoughts on the “guard” proposal for Go's error handling
i use this a lot

if error.Is(err, sql.ErrNoRow) { return status.Error(codes.NotFound, "foo does not exist") } srv.log.Err(err).Msg("failed to load foo") return status.Error(codes.InternalError, "")

True, that checking for more than one error type is very sparse but i still like the go errors the way they are.

hknmtt··on We need a replacement for TCP in the datacenter [pdf]
the thing you want to make requires ZERO money.
hknmtt··on Ask HN: What are some of the best books you have read in 2022?
i have noticed a lot of bs attached to anunnaki when i wanted to research more on this. a bunch of ufo, lizard-people... crap. i am interested in facts, not fiction.
hknmtt··on Ask HN: What are some of the best books you have read in 2022?
I have read almost all of Zecharia Sitchin works on Anunnaki, the ancient astronauts, this year. Still have couple of books to go. I read the 12th planet when in elementary school a long time ago and always wanted to read more on this. So I finally did and am very glad. Best things is that he is merely interpreting in his own way all the found sumerian, akkadian, babylonian... literature and jewish writings and bible. So no one can say he is wrong because there is no authority on interpretation of those writings and translations. You can choose to go along with his ideas or not. He does not force-feed you anything, which I like. And in the end, his version of our history makes the most sense to me from anything to this day, however weird it might be at first. Scientists also confirmed the mathematically expected existence of the famous Nibiru so with time, more and more proof is confirming his views, along with new discoveries of writings and artefacts. One negative sides of his writing, after the first 12th planet s that it becomes too abstracts - descriptions of land, locations, structures... with lacking images in the books the reader becomes a bit lost and disconnected. But when he is talking about stories and events that took place in the past, that's when you're hooked in. Also the first book has about 80% of everything, the rest of the books is a lot of repetition for new readers and not much new information. Still worth reading but one will get most out of the 12th planet and I'd say the Anunnaki chronicles which is kind of a summary of his work and i think the last book released by his estate put together fro all his previous released and unreleased works.
hknmtt··on India fines Google $162M for anti-competitive practices on Android
i just got a new phone and it feels like i became indebted to the devil without actually signing anything. i might go back to my 7yo phone with outdated android. this is horrible what the phones have become.
hknmtt··on Ask HN: How to distribute files in CDN?
after a bit more thought, you are right. this is the right approach. i just need to make sure the file is being fetched only once and if client closes the connection the file needs to keep being downloaded.
hknmtt··on Ask HN: How to distribute files in CDN?
i was thinking about doing just that - when request comes, check local file, if not present, fetch from remote url. but the problem is with large files(GBs) that you cannot serve as fast and the client has to wait instead of being redirected to the source which bypasses the cdn node and then what? you have to somehow get the large files too in a way that makes sense.
hknmtt··on Show HN: I have built a library of screenplays for movies and TV shows
great addition to imsdb.com
hknmtt··on Ask HN: How did you stop drinking?
who are you to decide?
hknmtt··on Welcome to Královec
vam tam hore trosku zajebava ze?
hknmtt··on Ask HN: How did you stop drinking?
firstly, stop drinking sweetened drinks. drink only pure alcohol.

secondly, drink good alcohol. like extra old rum(generic term for well aged rums) or 12y+ scotch.

thirdly, drink high ABV, non-chill filtered or as natural alcohol as you can get. you will not be able to drink more than one, maybe two, glasses of a juice like that. it will fill up your desires. you'll have enough with one glass.

fourth, don't drink socially. drink at home, alone. watching some entertainment or doing some work.

hknmtt··on Go: Redefining For Loop Variable Semantics
Strange, never had a problem with this. If I need to reference non-pointer I just use key(append(foo, items[k])) but i find it weird that the print example is not working since in loop the value is passed by copy, just like everywhere else in go, so it should work correctly. as for pointer, again, pass by copy. I see no problem here, it either never bit me in my ass or i figured it out soon in my Go journey.
hknmtt··on Recent discoveries that have changed how we think about human origins
Personally I am subscribing to the Zecharia Sitchin's interpretation of Sumerian history and writings. Too many things just make sense.
hknmtt··on Why JWTs Suck as Session Tokens (2017)
using two tokens makes sense only if you have cqrs system. otherwise it's a complexity that brings no value.
hknmtt··on PayPal’s updated acceptable use policy [pdf]
they also own braintree and some of stripe.
← PreviousPage 7 of 9Next →