Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
da39a3ee
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
20 ms
·
121.
▲
by
da39a3ee
3y ago
To be fair though, Scala's sum types are a bit of a hack aren't they, or at least pretty cumbersome? Declaring a `sealed abstract class` (or is it trait) and then a bunch of case classes syntactically disconnected from the sealed
122.
▲
by
da39a3ee
3y ago
> Other languages like Go do not necessarily have enums, but you can represent enums by using something like this (in Go): This misses the important point that Go lacks pattern matching -- one uses a switch statement instead -- and the G
123.
▲
by
da39a3ee
3y ago
Ok cool. It's very, very useful. Clearly the biggest technological development in my life, and I grew up before the Internet.
124.
▲
by
da39a3ee
3y ago
What an absolutely idiotic comment. > If you want to solve grade school math problems That's not the aim here. Very obviously what we are talking about here is _complementing_ AI language models with improved mathematical abilities,
125.
▲
by
da39a3ee
3y ago
I don't think you're a cold-hearted extractivist. That's what I meant when I said I thought you were a nice person (though I totally failed to come up with a turn of phrase to match yours!). The thing is I am utterly depresse
126.
▲
by
da39a3ee
3y ago
It replies in the language it thinks follows from what you said. It may have detected that you're non-English languages sounded like an English speaker?
127.
▲
by
da39a3ee
3y ago
Have you not been using chatGPT for programming questions this year? The implied criticism you're making became out of date when GPT4 was released. Of course, it makes things up when you stretch it, but the utility is no longer in ques
128.
▲
by
da39a3ee
3y ago
If you've used it a lot this year for coding like many people, you'll have found that you develop the ability to know when it doesn't know what it talks about. Perhaps you're one of the people who think they're abov
129.
▲
by
da39a3ee
3y ago
You missed the bit where the person you're replying to said they knew something about the field. The loss of some species in a genus of Hawaiian honeycreepers is not tragic because of the potential for making medicines out of honeycree
130.
▲
by
da39a3ee
3y ago
That's the wrong reason to mourn Bachman's Warbler. I suspect you're a nice person but your post completely misses the beauty and the tragedy of these species, instead focusing on a non-existent advantage to humans they might
131.
▲
by
da39a3ee
3y ago
Ok... but Altman & Brockman are just managers. Brockman did an ML course in 2018. If they can now get the actual technical people who built GPT4 over then that is something, but at the moment there's a lot of premature celebration
132.
▲
by
da39a3ee
3y ago
I'm assuming this change will allow plugins to be written that expose a web UI. That would be huge for Emacs.
133.
▲
by
da39a3ee
3y ago
What about these amazing resources from Daniel Murfet at University of Melbourne: http://therisingsea.org/post/mast30026/ They have videos as well as everything else. I'd love to study them with someone/
134.
▲
by
da39a3ee
3y ago
Then you are objectively wrong. Look at Grant Sanderson's explanation of introductory Linear Algebra. Very obviously it adds something good to complement the best paper textbooks on the subject.
135.
▲
by
da39a3ee
3y ago
I think you're just parroting things you've heard other people say. 3b1b's videos are universally agreed to be excellent, and it's baffling that you think it is a choice between watching them and using textbook and doing
136.
▲
by
da39a3ee
3y ago
> If you want anything past Analysis 1 I think you'll find that universities guard their content. Not so; there's an absolutely vast amount of freely available undergraduate mathematics resources available at all levels. Honest
137.
▲
by
da39a3ee
3y ago
Right exactly. The author implies that Elixir isn't an "OOP language" but I agree with you that (AIUI) it's almost the opposite -- it's descended from Erlang whose, AIUI, entire raison d'etre is programming in
138.
▲
by
da39a3ee
3y ago
> There are no classes, no instances, no inheritance I don't know anything about Elixir, but it bothers me when people claim that languages like Rust and Go are "not object oriented". If you create structs and have special
139.
▲
by
da39a3ee
3y ago
There are answers to that scattered throughout this thread. Essentially, long functions are not taking advantage of modularity. And modularity is how we make complex things understandable, testable, and reliable.
140.
▲
by
da39a3ee
3y ago
It depends whether the function is conceptually important to the project and will be read a lot by colleagues, e.g. new team members who are learning the codebase. If not, then a bit like your last option (forget about it). But if it is imp
141.
▲
by
da39a3ee
3y ago
A major difference between a long function and multiple short helper functions is that when you look at the local variables in scope in the long function you do not easily know which of them are used by which parts of the function. You see
142.
▲
by
da39a3ee
3y ago
Thanks. Your attitude sounds reasonable. Being honest though, one problem is that I do not consider it a personal preference: I basically think that functions longer than 100 lines are completely, and objectively, unacceptable (I wouldn
143.
▲
by
da39a3ee
3y ago
> This post is actually just me talking about me
144.
▲
Ask HN: How to deal with the short vs. long function argument
5 points
by
da39a3ee
3y ago
|
9 comments
145.
▲
by
da39a3ee
3y ago
Oh yes, how strange. It was one of those Google "amp" links; I assumed my Android would do the right thing with it. Anyway let's discuss something totally random. I did read Rowan Atkinson's article when it came out a fe
146.
▲
Why American birds are being renamed
(theguardian.com)
2 points
by
da39a3ee
3y ago
|
2 comments
147.
▲
by
da39a3ee
3y ago
How is anyone supposed to know this etiquette rule that you claim? As far as I know people are free to link to whatever they like subject to the laws of relevant jurisdictions. For my part I would say that you shouldn't police other pe
148.
▲
by
da39a3ee
3y ago
it sounds like they're hosting it for 1 month for $12. You never know when the company will decide to delete old videos from non-subscribers.
149.
▲
by
da39a3ee
3y ago
Please do not contribute to this silly archaic practice. It was once not silly. It is now archaic, and it is silly to do it now that we have vastly superior tools.
150.
▲
by
da39a3ee
3y ago
I reacted snarkily because you appeared to be giving a one-sentence criticism of the entire model of startup investment. Doesn't that seem much too large a topic, and too well-established an aspect of modern economies, to dismiss in su
More ›