Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
branko_d
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
211.
▲
Key Bitcoin developer calls on FBI to recover $3.6M in digital coin
(arstechnica.com)
4 points
by
branko_d
4y ago
|
0 comments
212.
▲
by
branko_d
4y ago
Also: sanctions against Yugoslavia were imposed, (mostly) lifted, then imposed again and then finally lifted, all within a decade. https://en.wikipedia.org/wiki/Sanctions_against_Yugoslavia
213.
▲
by
branko_d
4y ago
> One big thing is that NULL should never "mean" anything in a business sense. It is the absence of a value, hence it cannot mean anything I always had a problem with that notion. I mean, it has a memory representation, it has
214.
▲
by
branko_d
4y ago
> I think SQL Server can do this, but...then you have to use SQL Server. Yes, SQL Server can update indexed views incrementally, but there are severe limitations: https://learn.microsoft.com/en-us/sql/relational
215.
▲
by
branko_d
4y ago
This was quite poetic IMO: "When you work hard at optimization for most of your life, seeing something that is grossly inefficient hurts your soul." - John Carmack https://www.facebook.com/100006735798590/po
216.
▲
by
branko_d
4y ago
Here is the Joel Spolsky‘s obligatory argument against code rewrites: Things You Should Never Do, Part I https://www.joelonsoftware.com/2000/04/06/things-you-should-... While I don’t necessarily agree that we
217.
▲
by
branko_d
4y ago
I prefer `pastEnd`, perhaps in reaction to the original SGI STL, where the documentation called it "past end", but the actual names in the code were just `end`. For example, look at the... https://www.boost.org/sgi
218.
▲
by
branko_d
4y ago
If by "enumerable of discrete integers" you meant Enumerable.Range, it's not just that. Other examples include String.Substring, Array.Fill, Stream.Read, Span constructor etc. If you meant it's not practical for non-inte
219.
▲
by
branko_d
4y ago
Just for completeness I'll mention that there is another style: start, count This seems to be popular in .NET ecosystem.
220.
▲
by
branko_d
4y ago
> An exchange shouldn't count deposited crypto as their asset. It is an asset of their customer. Exactly. A brokerage firm doesn't own your stocks, so if it goes bankrupt you can still recover what is yours. FTX pretended to be
221.
▲
by
branko_d
4y ago
I have a Web API which calls a DB API which calls a stored procedure which executes several SQL statements. The Web API has a well-defined and documented interface. Is it a “unit”?
222.
▲
by
branko_d
4y ago
> all pre CGI Tom and Jerry cartoons are works of art You clearly haven't seen some of the Hanna-Barbera's later works. They weren't called "illustrated radio" without a reason.
223.
▲
by
branko_d
4y ago
Perhaps a better approach would be some sort of per-library profile?
224.
▲
by
branko_d
4y ago
> doesn't cause much performance overhead Exceptions are slow when thrown. If an error happens rarely, the corresponding exception is thrown rarely, so the performance impact is minimal. OTOH, if an error can happen frequently, it i
225.
▲
by
branko_d
4y ago
A CHECK constraint treats NULL as true.
226.
▲
Bitcoin Fails to Produce 1 Block for over an Hour
(coindesk.com)
65 points
by
branko_d
4y ago
|
54 comments
227.
▲
by
branko_d
4y ago
If these rows are even mildly interactive, I’d use MobX + React.
228.
▲
by
branko_d
4y ago
I think the point of a SPA is not how to refresh the screen when you have to do the round-trip to the server. The point is that you can do more things without making the round-trip in the first place.
229.
▲
by
branko_d
4y ago
I’m describing the breakup of Yugoslavia. TV pundits had a big role in demonizing everybody who might oppose the regime, be it the other political parties or the other republics/ethnicities. This paved the road to the war. Imagine Alex
230.
▲
by
branko_d
4y ago
> the war criminals were the pundits on TV Mila Štula comes to mind. I still remember watching the hysteria on Radio-Television Belgrade in disbelief that people would actually believe it. But they did. And the rest is history, as they s
231.
▲
by
branko_d
4y ago
The biggest problem I have with React is that it’s not reactive. And the biggest problem I have with hooks is that they make functional components non-functional. This is starting to look like a pattern… :)
232.
▲
by
branko_d
4y ago
I practice something I could only describe as “comment-driven development”. Whenever I need to implement something non-trivial, something that might have subtle edge cases or has to be done in a certain way because of the external dependenc
233.
▲
by
branko_d
4y ago
”There are only two kinds of languages: the ones people complain about and the ones nobody uses.” - Bjarne Stroustrup
234.
▲
by
branko_d
4y ago
IMHO, they should have just named the new one .CORE and called it a day. It would have made it immeasurably easier to google, and could have been be incorporated into other names to differentiate them from old versions: ASP.CORE, ADO.CORE,
235.
▲
by
branko_d
4y ago
Good to know, I wasn't aware PostgreSQL supports this. I'm currently on SQL Server and it doesn't support INSERT as a CTE (and I think most DBMSes out there still don't). It would definitely make my life easier if it did
236.
▲
by
branko_d
4y ago
> There's literally no operation on data that can't in principle be expressed as an SQL query (albeit the construction might be painful and tedious). There are some problems though: - Single query can't write to multiple t
237.
▲
by
branko_d
4y ago
The IBM researched this in the late ‘70es and reached broadly the same conclusion. They were talking about “productivity” instead of “bounce rate” back then, but the basic biology of attention span and working memory is the same. He and Ri
238.
▲
John Carmack: Best Programming Setup and IDE – Lex Fridman Podcast Clips
(youtube.com)
287 points
by
branko_d
4y ago
|
292 comments
239.
▲
by
branko_d
4y ago
“We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%.”
240.
▲
by
branko_d
4y ago
These are the after-images, sorry I wasn’t clear about that. But the brightness is quite low. I look at my monitor for living (software development), and I’m always very particular about having the best possible ergonomics regarding brightn
More ›