Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pytester
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
pytester
7y ago
>Even quite minor OS updates can cause the tests to fail en masse I found it didn't even take that. Sometimes indeterminism in the code you wrote or indeterminism in code you can't even control will cause tests to fail en masse
32.
▲
by
pytester
7y ago
There are plenty of businesses where entire countries don't have enough capital to start a competitor (e.g. oil companies, aircraft factories). It's called capitalism, not "I have an idea-ism" for a reason . There are s
33.
▲
by
pytester
7y ago
>If your labor is so critical and all managers are useless tyrants then why are you choosing to give away your means of production to useless tyrants? Lack of capital. It's called capitalism, not "i have an ideaism" for a
34.
▲
by
pytester
7y ago
>If you can't separate Java the language from the idea of static typing and type systems I can. It's people who make blanket statements about static or dynamic typing who can't. >I guess chasing runtime exceptions durin
35.
▲
by
pytester
7y ago
>Unless you propose that my test suite tests the libraries I am using, testing does not find code affected by API breakage. I do find that well crafted integration tests give the best bang for the buck. >First of all, I doubt it. Seco
36.
▲
by
pytester
7y ago
>I don't think you disprove the hypothesis, though. I think you are talking about equally, if not more, important thing - ergonomics Types are an intrinsic part of ergonomics. >I'd rather see something else being an ambassad
37.
▲
by
pytester
7y ago
>When you change a Java API, how much time does it cost you to find all broken client code? How much in the same case for python? With a decent test suite and a bunch of well crafted asserts, it ends up being much quicker. Indeed, for th
38.
▲
by
pytester
7y ago
I think a lot of java's "bureaucracy" is simply duct tape around its badly constructed type system. >Python on the other hand is often written without any safety Oh for sure, but I find it easy to start dialing up python
39.
▲
by
pytester
7y ago
>I can't help the feeling that your post is about Python vs Java rather than static vs dynamic. Because the OP was about python and because python and java are the two languages where I have worked on refactorings of large scale cod
40.
▲
by
pytester
7y ago
>When you see a huge codebase in python grown over several years and try to refactor it, reason about it, or just enhance it, you will inevitably come to the conclusion that the omission of static type checking is a grave error from a sy
41.
▲
by
pytester
7y ago
This piece of PR fluff isn't helping regular ex cons get regular jobs in non-tight labor markets.
42.
▲
by
pytester
7y ago
>Why would we expect Slack or other tech companies to be helping random people with housing or social support? Yet they expect congratulations. Slack's selfish commercial interest is entirely aligned with hiring cheap developers, bu
43.
▲
by
pytester
7y ago
>Voter turnout was down by 3.5 percentage points since the last general election. hm, this example they used was my constituency. I walked around for about 15 minutes until I found the entrance because somebody moved the "POLLING ST
44.
▲
by
pytester
7y ago
C is a good example precisely because it highlights the fact that explicit typecasts and memory safety are a LOT better at preventing bugs than static types.
45.
▲
by
pytester
7y ago
None of those surprising behaviors exist in python 3. I wouldn't say "100" < "2" really counts, since, alphabetically it makes sense (an equivalent would be "baa" < "c").
46.
▲
by
pytester
7y ago
Manual is often the best option. I worked for a company that was hell bent on automating a booking process and minimizing the number of humans involved until they realized how much many people preferred having a human guide them through dif
47.
▲
by
pytester
7y ago
If capitalism wasn't systemically geared towards creating an underclass of unemployed and desperate part time workers it might not be a failure.
48.
▲
by
pytester
7y ago
Types can help eliminate errors and unwanted behavior, yes. Just like tests. Types also help document code. Just like tests. The point is that both are investments and both have different payoff matrices. Sophisticated are often better at
49.
▲
by
pytester
7y ago
Coz there's a difference between "dynamic type system" and "type system that's thrown together with bits of string and rubber bands": https://www.destroyallsoftware.com/talks/wat
50.
▲
by
pytester
7y ago
My approach is to dial up strictness gradually as code proves its value. I'll start out building a project and not validating on I/O, but as the requirements get locked down and the code has proven itself, I'll clean up all
51.
▲
by
pytester
7y ago
"Strong typing" is a term so vague that it loses all usefulness in conversation. Wikipedia gives 5 different definitions. https://en.wikipedia.org/wiki/Strong_and_weak_typing
52.
▲
by
pytester
7y ago
>How do you figure? If it’s mission critical, it means failure is unacceptable. Python and other dynamic languages (TS is a middle ground here) excel when failure isn’t so bad In practice I find that static typing as done by, say, Java a
53.
▲
by
pytester
7y ago
IME database always bottlenecks first.
54.
▲
by
pytester
7y ago
>Right as I was just about to start a new Django project... It's rarely a good idea to use the latest version of Django simply because most projects will be reliant upon 3rd party libraries which will often be slow to catch up to su
55.
▲
by
pytester
7y ago
It's always prioritized delivery speed and quality over raw performance. If you want an ultra optimized web framework it will always be the wrong choice - it was never designed for that.
56.
▲
by
pytester
7y ago
They should focus on building a search index and then license that to European search engine startups. That's the capital intensive part that requires you to build datacenters next to power plants, etc. and where government money will
57.
▲
by
pytester
7y ago
>there are plenty of tools that support all 3 clouds equally. there are plenty of tools that support all 3 clouds, but most of those suffer from some sort of impedance mismatch and/or do not fully support the features which those cl
58.
▲
by
pytester
7y ago
>Aws is not a marketplace and does not enjoy network effects. I.e. if developer A uses AWS, this does not affect developer B. It damn well does. If everybody else is using AWS it pays to use it too, because: * The IBM/CYA effect - i
59.
▲
by
pytester
7y ago
>Because wind usually often weak and below rated speed, you need to build extra capacity to get enough electricity in normal days. Luckily it's dirt cheap to build.
60.
▲
by
pytester
7y ago
Exploratory testing is also useful for uncovering classes of scenario which an existing automated test suite is not currently capable of covering but which nonetheless harbor a lot of bugs. One pretty common case is browsers - an automate
More ›