Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
hsn915
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
65 ms
·
751.
▲
by
hsn915
5y ago
Actually you _can_ do pointer arithmetics. It's just not straight forward, and the behavior is "unefined" in the sense that even if it works today, it might break in future versions.
752.
▲
by
hsn915
5y ago
This is a cultural issue. It's not inevitable that by developing a module over time that you constantly break compability AND you want all people that depend on you to upgrade version. Go encourages the opposite approach. If your API i
753.
▲
by
hsn915
5y ago
"Mocking" is such a weird thing to me and I don't think it serves a good purpose. It's the kind of thing that would only arise if you assume a-priori that 100% test coverage is a non-negotiable must. If you have a functi
754.
▲
by
hsn915
5y ago
> Also my personal style is to do shit ton of refactoring. This means I usually start with something that only vaguely resembles the end result. I spend a lot of time moving stuff around until I get rid of everything that I don't li
755.
▲
by
hsn915
5y ago
Aiming for 100% test coverage actually produces negative value. You don't need a "study paper" to know this. Just work with a team that aims for 100% coverage for a few months and you will see it for yourself. The negative va
756.
▲
by
hsn915
5y ago
This is not at all close to what I'm advocating for. The page says: > Open Source is rewarding- but it can also be exhausting. > The linking project’s code is provided as-is, and is not actively maintained. Basically the attitude
757.
▲
by
hsn915
5y ago
Why is it condescending? I asked this question because your comment does not jive with my experience. So before countering your point I wanted to confirm whether you had some experience that was opposite to mine or not. Where is the condesc
758.
▲
by
hsn915
5y ago
http is not a networking protocol in the sense I meant. It's an application level protocol. Although you can still write a server that implements only http1.1 and it should still work fine. A lot of the things that you describe as chan
759.
▲
by
hsn915
5y ago
What part of my comment was condescending? > That’s not theorizing, that’s the whole industry’s collective wisdom. There's no wisdom there. The industry is too young to have any meaningful wisdom to speak of. It's mostly fashio
760.
▲
by
hsn915
5y ago
I didn't ask you for credentials nor accuse you of anything. It was an honest question.
761.
▲
by
hsn915
5y ago
I don't necessarily disagree, but this is the cultural problem I'm sort of pointing the finger at.
762.
▲
by
hsn915
5y ago
Have you actually tried to reduce dependencies? I mean, are you speaking from experience, or just theorizing? Here's something to keep in mind: when you depend on a huge library that has 40 features, it's likely your program only
763.
▲
by
hsn915
5y ago
I haven't worked a lot with Docker or similar containerization tools, but my impression is they require you to have an internet connection to download stuff. At least with Docker, when you write or download a docker file for the first
764.
▲
by
hsn915
5y ago
1) If you buy into this concept, you would naturally limit your dependencies to the bare minimum. 2) Static linking does a good job of protecting against when upstream introduces new bugs or security holes.
765.
▲
by
hsn915
5y ago
People think if a project on github hasn't been updated since 3 months then it has been abandoned!! Like, why don't we just let projects be "done"? Things don't need to be maintained and updated for eternity. In my
766.
▲
by
hsn915
5y ago
async/await in js exhibits the exact problem mentioned in the article.
767.
▲
by
hsn915
5y ago
How is that not magic? I suppose user code can do the same thing, but still, it's kind of magic. When people speak of magic in code, they mean something that looks innocent but has huge ramifications because some other part of the code
768.
▲
by
hsn915
5y ago
This is not about minimal computing. It's just using Javascript's weir rules in unexpected ways.
769.
▲
by
hsn915
5y ago
If people can perform so much despite the minefields, then these are not minefields. If we agree that they are minefields that impede programmer's performance, then by definition someone who does not make sure these mines are never int
770.
▲
by
hsn915
5y ago
More broadly, the 10x engineer makes sure there are no such minefields. They make sure there are nearly zero hurdles to getting in the zone.
771.
▲
by
hsn915
5y ago
There are two things here: - What is a 10x programmer (what do they do better?) - What is the impact of their presence (or absence) on a company A 10x programmer is not someone who completes a narrowly defined task at 10x the speed of anoth
772.
▲
by
hsn915
5y ago
> We promise we will return data as per API spec ;) ok sure, but that does not mean that "type safety" is an advantage of using your API.
773.
▲
by
hsn915
5y ago
How is it type safe? Type safety is worse for http calls because you literlly have no idea at compile time what the data will be. Where as, when all the data is in your repository, you can verify the data matches what you expect. Reudcing s
774.
▲
by
hsn915
5y ago
Let's suppose (it's probably true) that there's an absolute minimum amount of calories your body must use per day to stay alive today. Is that amount even sufficient to stay alive every day? Maybe your body can reduce some
775.
▲
by
hsn915
5y ago
You can download an xml or sql file from here https://tanzil.net/download/ They also provide metadata for download https://tanzil.net/docs/Quran_Metadata If you instead send an http request to ant
776.
▲
by
hsn915
5y ago
> I used to be able to eat 3500 calories a day and not gain weight. Now in my 40's if I eat more than 2500 I put on weight. Could it be that chronic calorie reduction has made your body adapt?
777.
▲
by
hsn915
5y ago
The problem with calorie counting is you're sort of modelling the human body on simple machines, like say, cars. But the body is actually a complex system, and the core quality of a complex system is adaptation. This means you can cut
778.
▲
by
hsn915
5y ago
Carefully written Go vs uncarefully written C? Sure. Carefully written Go vs carefully written C? I still think C would win by a factor of 10. Like I said, most slowness comes from memory access and fragmentation. In C you can use strategie
779.
▲
by
hsn915
5y ago
I'm confused by "I/O heavy applications". This is a reality: I can server thousands of concurrent connections using a single machine in a server program written in Go. Can you do the same thing in Python or Ruby? No. Som
780.
▲
by
hsn915
5y ago
I regularly write Go code and I mostly enjoy programming in the language, but this post captures nothing important about what makes writing code in Go pleasurable. Having biultin library features is nice but is not the reason. Python al
More ›