Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
weberc2
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
weberc2
7y ago
You misunderstand the point of formatters. They aren’t meant to automate your personal preference; they automate a standard format so your team doesn’t have to waste time deciding on and enforcing a coding standard and so you don’t have to
32.
▲
by
weberc2
7y ago
I’m honestly fine with putting the dict in the function call in most cases. It’s not a big deal either way. As for your exceptions, you can just do raise ValueError( "Lorem ipsum dolor sit amet, consectetur adipiscing eli
33.
▲
by
weberc2
7y ago
Right, but the parent claims it will do that when it would fit on a single line, unless I misunderstood something.
34.
▲
by
weberc2
7y ago
It would be nice if things converted on a single standard, however.
35.
▲
by
weberc2
7y ago
How is this argument a strawman?
36.
▲
by
weberc2
7y ago
Any formatter will violate established usage in most Python projects. I find black at least makes your code readable, compared with pprint-esque styles.
37.
▲
by
weberc2
7y ago
This is a strange comment. It sounds like you’re using black wrong. First of all, when you pick Black, you throw away your own style guide (at least where black is concerned; keep the bits about function naming, etc). Secondly, you should o
38.
▲
by
weberc2
7y ago
I’m pretty sure Black doesn’t do that, it will fit them onto a single line if possible, then it will move the kv pairs onto their own line, and failing that, one kv pair per line. In any case, I’m fine with more lines. Clarity is much more
39.
▲
by
weberc2
7y ago
In this case the shell hasn’t aged well. Besides the globing feature, the bash language is arcane and few can actually reliably write correct bash despite it being ubiquitous. Personally I would like to see a completely reimagined take on t
40.
▲
by
weberc2
7y ago
It goes both ways. If someone is not hired because they aren’t good enough, it’s always possible to say it was ageism.
41.
▲
by
weberc2
7y ago
All the more reason to be glad when said company tilts away from the sort of fringe ideological positions described in TFA. A fortune 50 company shouldn’t be driving extreme positions; if you disagree, consider if they were driving extreme
42.
▲
by
weberc2
7y ago
Who is making a big deal about it? It’s a Tweet-sized comment...
43.
▲
by
weberc2
7y ago
Exceptional doesn’t mean uncommon, it means your program is in an invalid state. Your programming style is inherently unsafe, and you are derelict of your most basic responsibility as a software professional if you apply it on any software
44.
▲
by
weberc2
7y ago
This thread is discussing whether exceptions are bad for handling unexceptional events. We are arguing that APIs that throw exceptions for valid program states, such as a missing key for some user input, is an abuse of exceptions. There are
45.
▲
by
weberc2
7y ago
It’s a poorly designed API, full stop. It doesn’t matter whether or not it has an API to check existence, it’s not the dictionary’s job to know whether or not a missing key is a valid state in the broader program, and most often it is. More
46.
▲
by
weberc2
7y ago
The problem is that these systems are built in a way in which the data access latter is throwing the exception even though it can’t reasonably know if the record is expected to exist or not. It can’t or shouldn’t know that this is an invali
47.
▲
by
weberc2
7y ago
Those aren’t contradictory views; you are consistent, but your views aren’t consistent with those of the “other people” you refer to, which is my point.
48.
▲
by
weberc2
7y ago
> I can summarize most people’s attitude I’m skeptical that there is a significant body of critics that share these patently conflicting views. More likely there are different groups who each value one of these, or more likely still, lot
49.
▲
by
weberc2
7y ago
Your statement implies a lot of assumptions about a business’s model. Our company cares about user interactions in our app, software development metrics, quality metrics, sales metrics, etc. GA is just one small piece of the puzzle. “Data l
50.
▲
by
weberc2
7y ago
Who besides your hypothetical salesman is arguing that the raisin d’etre for data lakes is user web analytics?
51.
▲
by
weberc2
7y ago
I’m guessing he meant roughly ”docker build”
52.
▲
by
weberc2
7y ago
You’re being pedantic. Docker for Mac shouldn’t use the full VM allotment at idle, full stop. Nitpicking the parent for speaking in terms of the host cores instead of the VM cores is off topic and boring.
53.
▲
by
weberc2
7y ago
Can you elaborate on this? I’m not following.
54.
▲
by
weberc2
7y ago
Absolutely this. Native apps are just so much smoother, and I say this as someone who really wants the web to win, and who used web apps almost exclusively because my 16GB iPhone 6 had very little space for apps. Also, the quality of native
55.
▲
by
weberc2
7y ago
Can you elaborate?
56.
▲
by
weberc2
7y ago
How would the auto parts industry prevent adoption of puncture proof tires? Do they have some crazy lobby power?
57.
▲
by
weberc2
7y ago
If the language makes you jump through unnecessary hoops to get passable performance, the issue is with the language, not the program. Otherwise we could generalize your perspective such that all languages are above criticism (no languages
58.
▲
by
weberc2
7y ago
No, but very often those programs are slower overall because of the pickling cost. Multiprocessing isn’t a magic bullet / there’s a reason threads exist.
59.
▲
by
weberc2
7y ago
> Python is not fundamentally single threaded - it just has a lock that stops it from taking advantage of threads in cpu bound scenarios. Tomato tomahto > Python is used in data science because of the C bindings that make it not slow.
60.
▲
by
weberc2
7y ago
Async doesn’t help with CPU-bound tasks, but yes, you can rig up systems that involve running multiple Python processes behind a load balancer. It’s just more work.
More ›