Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
_gabe_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
181.
▲
by
_gabe_
3y ago
> Cute, now do it with UTF-8 support. I see this type of sentiment a lot and I'm not sure why this exists. Maybe it's because there were a bunch of formats in the past and it made it more difficult? Idk. Anyways, I finally deci
182.
▲
by
_gabe_
3y ago
> Stack Overflow remain the site that, when you are looking for an actual answer to a technical question, is worth clicking on at least. These days I'm skipping Stack Overflow entirely and jumping straight to the docs, unless it
183.
▲
by
_gabe_
3y ago
Plain Old Data. It's the same as POJOs in Java or POCOs in C#. It's essentially a class with no logic associated with it (so no member functions or private/public mixed data). Technically everything in C is POD. The Cpp docs
184.
▲
by
_gabe_
3y ago
Way to take that statement entirely out of context. For anyone reading this later, this is what the article OP posted says in context : > In another place, the article [the Wikipedia article about Jesus] simply asserts, “the gospels are
185.
▲
by
_gabe_
3y ago
> So, you profile your program, and it turns out that 95% of the runtime is caused by malloc/free in tight loops, which you can't get rid of, because they're hidden behind an API which had to choose between encapsulation a
186.
▲
by
_gabe_
3y ago
> And you've just made it impossible for the users of your StringBuilder to pass it around by-value. Every instance has to be malloc'ed by your library, even though it's just a tiny, word-sized struct. Awesome! And each ac
187.
▲
by
_gabe_
3y ago
Yea, I used to get annoyed when I saw results like this. But I appreciate them more and more. It's still easy to find what you're looking for with a quick Ctrl+F. But there inevitably comes a time when I want to understand a conce
188.
▲
by
_gabe_
3y ago
> The instantiation operation (“calling” a class object) creates an empty object. Many classes like to create objects with instances customized to a specific initial state. Therefore a class may define a special method named __init__(),
189.
▲
by
_gabe_
3y ago
Isn't a blacklist typically a bad idea for all of the reasons people are listing in the comments (like scunthorpe)? I've never implemented a social media platform, but why would you use a blacklist as opposed to a flagging system
190.
▲
by
_gabe_
3y ago
I don't know where you've gotten the idea that Windows will just run whatever software you provide it without saying anything. Executables must be signed with a trusted CA. You can get this trust by buying a CA and waiting for rep
191.
▲
by
_gabe_
3y ago
> Computer security would be about 80% solved if we just deprecated every technology shown in this graphic. Computer security would be 100% solved if we just got rid of computers. It's impossible to break into something if it doesn&
192.
▲
by
_gabe_
3y ago
TIL Box2D must not be serious code because it doesn't use copious amounts of explicit temporaries[0]. And just for the record, I'm very glad Erin Catto decided to use operator overloading in his code. It made it much easier for me
193.
▲
by
_gabe_
3y ago
> The reason I don’t think Ladybird will ever really get to the point where it can render an arbitrary site perfectly, is based on my experience as a web developer. I haven’t been doing web development for very long, but there have been
194.
▲
by
_gabe_
3y ago
Ask a random college freshman in computer science to write a backtracking sudoku solver with coroutines and/or fibers in their language of choice. Oof, only 1 out of 10 can do it...? I guess 9 out of 10 college freshmen aren't gen
195.
▲
by
_gabe_
3y ago
> If the rules are too complicated, then they are a challenge for all parties, both users and implementers Not necessarily. Generics, and/or C++ templates are a pain to parse because they're context sensitive. But while reading
196.
▲
by
_gabe_
3y ago
Well now I'm intensely curious about this. I've turned off monetization on this video https://youtu.be/liJac6RysE4 . Please let me know if you see any ads on the video, I'm curious if YT will still display th
197.
▲
by
_gabe_
3y ago
This is just so funny to me. Google has to have the absolute worst PR for any company I've ever seen to make this happen. Somehow, they've duped the general public (at least on HN) into believing they insert the ads into videos. A
198.
▲
by
_gabe_
3y ago
This exactly. I tried buying from other online retailers recently to support other businesses directly, and their websites are replete with what I would consider dark patterns. Things like listing 2-day shipping and then burying the fact th
199.
▲
by
_gabe_
3y ago
>> I was valedictorian and had a perfect score on the SATs Sounds like OP certainly deserved it to me. Instead we have these perverse incentives to go to "elite" schools purely because of the school's name (not because
200.
▲
by
_gabe_
3y ago
Fair enough :) Absolute statements are generally bad ideas, and I've just been reminded of why that is the case haha.
201.
▲
by
_gabe_
3y ago
Isn't that the whole point of this discussion? We're talking about conventions programmers treat as absolutes that are detrimental to the maintenance and security of the programs. So I don't see how this has much bearing on t
202.
▲
by
_gabe_
3y ago
I could almost buy your argument, except for the fact that Fortran, which was created in 1954 when systems like the IBM 650 had a maximum of 35KB of memory[0] (which I'm assuming included program memory), and it still included the si
203.
▲
by
_gabe_
3y ago
I use TypeScript on a daily basis for my job. It was an entire language created to make up for JS's shortcomings. There's no horribly inflated reasoning going on when most of the industry has decided the best idea is to just thr
204.
▲
by
_gabe_
3y ago
> Different people have wildly different experiences with ORMs as they used them for wildly different levels of integration and tasks, and in wildly different languages with different features that make ORMs more or less useful, yet ther
205.
▲
by
_gabe_
3y ago
> it was a summary of the purpose of the LGBT issue to counter the parent’s straw-man that summarized LGBT as being a binary harassment vs praise issue. ? You may want to reread what I wrote because the last thing I was trying to do was
206.
▲
by
_gabe_
3y ago
Cool, and people that are religious believe it's harmful to society and people's well-being to engage in several behaviors that are otherwise considered acceptable in the eyes of the law and different social circles (sex outside o
207.
▲
by
_gabe_
3y ago
> because over the years they've had experiences with LGBT people in their life and changed their minds. Two things can be true at once. People who identify as LGBT can be very pleasant people. Additionally, I can still believe that
208.
▲
by
_gabe_
3y ago
This whole thing is dumb. There's never a description of "What is a vehicle?" And there's never a description of, "What is the park's jurisdiction?". If the author wants to relate this whole thing to conte
209.
▲
by
_gabe_
3y ago
I think this is a definition thing, because I agree with you, but the author's comment below seems to imply clickbait is anything that looks flashy. I found this definition when googling "what is clickbait" and I like it: >
210.
▲
by
_gabe_
3y ago
> I'm a relatively new immigrant to the US, Seattle area > I don't know the circumstances of the people that you describe, but Europe is looking way more attractive than the US The US is giant. I always find it funny when pe
More ›