Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dana321
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
271.
▲
by
dana321
8y ago
We're talking about simple reflection here, pass in the value, infer the type and cast to that type. Most people are totally confused by generics, i personally don't have a problem using them or not. At the end of the day, its ju
272.
▲
by
dana321
8y ago
Well, what was the point of adding std::any in C++17? Generics aren't a cure-all, they merely duplicate code and change the type. Its not much better than copy-paste and replace the type names.
273.
▲
by
dana321
8y ago
using interface{} and reflect is good enough for the many problems of using X datatype
274.
▲
by
dana321
8y ago
interface{} is the equivalent of C++17's std::any, of which you can put anything including vector (slice) and maps. If you really want high performance with many different types of a function, its a case of copy-paste-modifying your co
275.
▲
by
dana321
8y ago
No. I called mine Goliath (because it uses features of the go runtime, and is written in go)
276.
▲
by
dana321
8y ago
The fact they removed the "away" status is annoying enough without the app crashing randomly
277.
▲
by
dana321
8y ago
Cause and effect are simple to discern with one variable (like pushing a ball), with multiple variables everything becomes increasingly complicated. Kind of why drugs don't work in the same way with everyone. Too many subtle differenc
278.
▲
by
dana321
8y ago
I would have to re-arrange my call stack so that the read or write functions would be inside the open statement, then it would close it at the end anyway so its kind of pointless for my uses. I try and totally avoid panics and never throw t
279.
▲
by
dana321
8y ago
Sorry, but for me its not a great method of releasing resources. I tend to (for example) open a connection in one function, do something with it in another function, close it in another. I'm not writing traditional go programs, i wrap
280.
▲
by
dana321
8y ago
I avoid using defer
281.
▲
by
dana321
8y ago
Remember the magical formula: Correlation != Causation
282.
▲
by
dana321
8y ago
Eating fruit and raw vegetables for me does make me feel good and brings about a feel of wellbeing. Whether thats the sugar or the other nutrients that they bring i don't know. Its not really news, i agree, but to a lot of people it i
283.
▲
by
dana321
8y ago
Its all about: Syntax Libraries Runtime I picked syntax briefly, because i think its the most important part of the language. The libraries can be written, the runtime improved but if the syntax is bad its hard to change it later.
284.
▲
by
dana321
8y ago
I have evaluated Rust a while ago, before i updated my C++ skills to C++17 with vcpkg / cmake and learned go using the new go modules functionality. I think rust is overly complex, and very quirky but.. It has some good ideas that i ha
285.
▲
by
dana321
8y ago
I do myself now use go, i've developed a scripting language on top of go which has all the great features of the go runtime but it is interpreted instead. It has a few hundred commands and will eventually have the ability to modify its
286.
▲
by
dana321
8y ago
Its all still encumbered by patents, its not free. Its "open"
287.
▲
by
dana321
8y ago
Once Oracle bought Sun Microsystems, i became dis-interested in Java all round. I would rather use a programming language not licensed by a huge corporation. The reason they are a huge company is the way they are predatory towards their cu
288.
▲
by
dana321
8y ago
Basically, if you eat less, you lose weight
289.
▲
by
dana321
8y ago
Bizarre behavior all round.
290.
▲
by
dana321
8y ago
linuxbrew / homebrew does a pretty good job at downloading packages and compiling them. The wildcard is cross-platform. vcpkg doesn't seem to be 100% there and has many bugs for example the folders where includes and libraries ar
291.
▲
UK could ban social media over suicide images, minister warns
(bbc.com)
2 points
by
dana321
8y ago
|
0 comments
292.
▲
by
dana321
8y ago
Thats brilliant, and so true.
293.
▲
MIT AI: AI in the Age of Reason with Steven Pinker (2018)
(youtube.com)
2 points
by
dana321
8y ago
|
0 comments
294.
▲
by
dana321
8y ago
50%? I've seen 2 copies of my account and my name is unique. That would make it more like 66%
295.
▲
by
dana321
8y ago
If you look into the failure rate of apple products, the defects in things that all other manufacturers seem to get right then you begin to build a picture of how this is going to turn out.
296.
▲
by
dana321
8y ago
I wouldn't trust an Apple self-driving car. If i saw one i would start running.
297.
▲
by
dana321
8y ago
Thats extreme! I would have just made it an image with the text, from a random url.
298.
▲
by
dana321
8y ago
Yeah, they've failed at every attempt of making a pure social network (they bought youtube, its a kind of social network) with Microsoft buying github, it would be prudent of them to buy Twitter before someone else does.
299.
▲
by
dana321
8y ago
Pretty cool site so far, the background noise feature is pretty soothing
300.
▲
by
dana321
8y ago
https://www.godaddy.com/garage/the-top-20-most-expensive-dom...
More ›