Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
38
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
by
38
2y ago
that's exactly why I stopped using C/C++. building is many times a nightmare, and the language teams seems to have no interest in improving the situation
62.
▲
by
38
2y ago
For the 10th time WSL is not windows, it's a Linux emulator.
63.
▲
by
38
2y ago
Yep. Just tack "serverless" onto something that already exists and charge for it
64.
▲
by
38
2y ago
You aren't reading the same article. It's obviously ambiguous
65.
▲
by
38
2y ago
last release 2017, good game. also only works on Windows with Linux emulator.
66.
▲
by
38
2y ago
5000 is not that much anymore, especially in the US. would have been better to split into $1000 chunks instead of $200
67.
▲
by
38
2y ago
oh fun, a guessing game :|
68.
▲
by
38
2y ago
> The worst example is pointers since they're used to represent both references and optional values. using a pointer as an optional value is an anti-pattern. correct idiom is to return a tuple: type positive struct{}
69.
▲
by
38
2y ago
server is extremely slow
70.
▲
by
38
2y ago
banned https://github.com/evildojo666
71.
▲
by
38
2y ago
The problem is 100% ffmpeg, Go has nothing to do with it other than it's being used as a better shell script. Also some errors are checked and not others, and a large amount of files are opened and never closed
72.
▲
by
38
2y ago
Is this a joke? Go has built in support for importing 3rd party code
73.
▲
by
38
2y ago
> git submodule update --init --recursive nope. this looks cool, but Git submodules are cursed
74.
▲
by
38
2y ago
why is exactly why corporations should not be "people", to prevent this idiocy.
75.
▲
by
38
2y ago
This isn't about Go. This is about a language construct (&& and ||) that I would argue is terrible and should never be used. Its mainly just sugar, and in my experience code heavy on these is harder to read and write. Couple th
76.
▲
by
38
2y ago
just because a footgun exists, doesn't mean you should use it
77.
▲
by
38
2y ago
I would go further to say that syntax should never be used. for example with Go: > cheapFunction(...) || expensiveFunction(...) is not valid unless both functions return bool > car = car || "bmw" is not valid at all, because
78.
▲
by
38
2y ago
this is such a hilariously bad idea, its like knowingly installing malware on your computer - malware that has access to your bank account. please god, any sane person reading this do not install this, you've been warned.
79.
▲
by
38
2y ago
OK but again thats awful, because @ IS A COMMIT, so you are only a "git push" away from accidentally pushing arbitrary garbage instead of proper changes
80.
▲
by
38
2y ago
OK but again thats awful, because @ IS A COMMIT, so you are only a "git push" away from accidentally pushing arbitrary garbage instead of proper changes
81.
▲
by
38
2y ago
Jujutsu is terrible in my opinion. people hate the index, but I think they just dont get it. to me a commit is something that is ready to push, and the index is for stuff that is done but not ready to push. just because I wrote one line tha
82.
▲
by
38
2y ago
the fact that this isn't already done after all these years is one of the reasons why I no longer use C/C++. it takes years and years to get anything done, even the tiniest, most obvious drama free changes. contrast with Go, which
83.
▲
by
38
2y ago
wow you sound like a great boss :|
84.
▲
by
38
2y ago
a basic GET request doesn't mean I am smart, but you go ahead
85.
▲
by
38
2y ago
and this is exactly why I dont use C anymore. why go through the trouble of this blog post, when you can just use a modern language? HTTPS is a solved problem. here is a Go program, 15 lines: package main import ( &quo
86.
▲
by
38
2y ago
uh: https://github.com/mitmproxy/mitmproxy/issues/4170
87.
▲
by
38
2y ago
if GitHub really wants to fix issues, fix the god damn pagination. the current system is basically: comment comment [bunch of hidden comments] comment comment this is not better, at all. to get all comments, you hav
88.
▲
by
38
2y ago
> By default, you’re one fmt.(Sp|P)rintf("%v\n", session) away from including a user’s password hash in your logs, writing it to a file, or returning it in a server response. nope. just use a custom String method: func (U
89.
▲
by
38
2y ago
your comment has the tone of this being an elegant solution, but it reads to me like an awful hack. typeless macros are a nightmare I never want to deal with again.
90.
▲
by
38
2y ago
> Github by itself is not enough; there are orders of magnitude more code outside of it and hence your assumption is wrong. Also most C/C++ folks prefer to keep code local (proprietary and personal reasons) and hence are not sampled
More ›