Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jblow
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
87 ms
·
781.
▲
by
jblow
14y ago
Hence my caveat about not being able to avoid it if an API forces you to use them. But if I were making a replacement language that runs in the browser, among the highest priorities would be to make it not work via callbacks.
782.
▲
by
jblow
14y ago
Also, no, I don't believe GUIs are inherently difficult. I do think most GUI libraries are just terrible though, because they have bought into bad GUI paradigms. If a GUI is your example of something that is difficult, we are just living in
783.
▲
by
jblow
14y ago
It depends on what the application looks like. The most straightforward and robust thing is to block on events. But if you are doing tons of this kind of thing, and the data is relatively self-contained and packageable, then I would do some
784.
▲
by
jblow
14y ago
Just like a C++ program would, you have a loop that blocks on network input. This has been solved since the 1970s.
785.
▲
by
jblow
14y ago
I don't believe that parent/child relationships are a good way to structure programs. I use them sometimes, but very rarely. (Current codebase is 180k lines of C++).
786.
▲
by
jblow
14y ago
Nope, because you can do static analysis (a.k.a search through your program text) to find out who calls a function and when. The whole point of a callback is that this doesn't work.
787.
▲
by
jblow
14y ago
When I was in college, and shortly afterward, I was very much into "new programming paradigms" and would get excited about lazy evaluation or continuations or whatever was the new cool idea going around. I have designed and implemented seve
788.
▲
by
jblow
14y ago
I don't see it as fundamentally different. Callback means some or all of: "I don't know when or where I am being called from, or what the state is of the rest of the program at this time." All of those are bad things if you are trying to wr
789.
▲
by
jblow
14y ago
Callback Hell is certainly a real thing. I decided 12 years ago that I would never use callbacks if I could avoid it (the only wai you can't avoid it is if an API forces you to use them); I have never looked back. Regular, simple, straightf
790.
▲
by
jblow
14y ago
Okay, so what if a particular gas station can't supply 100kW, so what? You charge at 50kW? That is definitely less convenient, but still feasible for filling up your battery and getting you where you want to go. It's still infrastructure th
791.
▲
by
jblow
14y ago
Okay, but ... did anyone ever say that it would save you money? I don't see that in the thread anywhere. I certainly wouldn't make that argument for cars of today. But I see how rapidly the price is coming down, and I see what price targets
792.
▲
by
jblow
14y ago
Wait, now you are comparing a luxury car to a Toyota truck. That doesn't make any sense at all, so your question "Which one makes more economic sense?" doesn't make sense. By your logic, everyone who buys a BMW M3 or a Porsche Boxster ... o
793.
▲
by
jblow
14y ago
The Model S solves the issue via the ability to charge at Tesla's "supercharger" stations (much faster recharge than any other EV), and via the supercharger network that Tesla is currently building (some stations in California are currently
794.
▲
by
jblow
14y ago
My electric bill has increased by about $15 a month, depending on how much I drive. It is way cheaper than gas. (But the car is so expensive that you won't break even via cheaper fuel!)
795.
▲
by
jblow
14y ago
What does "the batteries are too heavy" even mean? Too heavy for what? Tesla just released a really big car with a heavy battery that goes 265 miles on a charge (under the very strict new EPA rating; at older methods of measuring range this
796.
▲
by
jblow
14y ago
The Roadster is definitely expensive, but now the Model S, just a few years later, is 1/2 to 2/3 the price, and is a superior car. Thus, the price is declining rapidly, and this is obvious to anyone who cares to look at actual facts.
797.
▲
by
jblow
14y ago
My 2006 M3 had SMG and I didn't like it much. (Fine for highway driving, sucks for city street driving). Maybe the new one is better?
798.
▲
by
jblow
14y ago
Oh, hey dude. 40 amps at 200v will completely charge a Roadster in something like 7 hours. I don't know how long for a Model S, but it is probably longer. I am only familiar with the day-in, day-out of the Roadster so I will stick to that m
799.
▲
by
jblow
14y ago
Tesla's EV batteries already in common use last a lot longer than that (7-10 years), so I am not sure what your point is.
800.
▲
by
jblow
14y ago
It is definitely less convenient if you don't have a garage. But as mentioned, this is starting to be addressed. Also, the Supercharger-style charging station becomes a lot like a gas station would be for a normal car. I do think that "I do
801.
▲
by
jblow
14y ago
Burning coal / electricity / oil to explore, drill, transport, refine, and re-transport oil ... Then using that to fill your car, so you can blow it up inside an engine. Sounds a little less efficient than the electricity thing when you loo
802.
▲
by
jblow
14y ago
... and on the battery chemistry issue, Teslas use Lithium-Ion batteries, just like we have been using in laptops for forever. They are not exotic.
803.
▲
by
jblow
14y ago
Those of us who own electric cars know that electric cars have already won. They are just too good compared to regular somewhat-junky gasoline cars. The benefits are too numerous to list. The only problem that I have with my Roadster is t
804.
▲
by
jblow
14y ago
I think this "electric grid can't handle it" is another piece of anti-EV FUD that is not representative of the situation in reality. Right now, peak electricity usage times are during the day. This is why in most urban areas electricity is
805.
▲
by
jblow
14y ago
Forgot to mention that I am an electric car owner as well (Roadster). I don't really like the idea of battery swapping. It seems like a big hassle. The current Supercharger seems totally fine. I guess it remains to be seen how well it works
806.
▲
by
jblow
14y ago
Naah, all electric car batteries are replaceable in the sense you are talking about. "Swappable" means you can change them out in a short period of time (10 minutes or less) in lieu of recharging. Completely different concept.
807.
▲
by
jblow
14y ago
The "Supercharger" already works pretty well. It's the first attempt at such a thing. I would expect that maybe subsequent attempts would be even better? So I don't understand why you are saying "the only way they can possibly make sense" i
808.
▲
by
jblow
14y ago
I did a lot of consulting / contract work at AAA companies between 2000-2005. "Parachute in and make the E3 demo work / implement some tough feature / etc". Sometimes it was less well-defined than that.
809.
▲
by
jblow
14y ago
This is not just middlebrow dismissal, it's outright wrong. In the AAA world we would love to spend only 3 weeks of an engineer's time to get a 15% speedup. Seriously, that is a great deal, it's like, where do I sign up? However, it becom
810.
▲
by
jblow
14y ago
Like what? AAA has a definition involving budget, it doesn't just mean "not indie". I am not aware of anyone operating at that budget level and using C#.
More ›