Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cbsmith
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
241.
▲
by
cbsmith
2y ago
> Milgrom is saying Google ran fair auctions. I don't believe anyone has put forward evidence to suggest it didn't. ...and the idea that running fair auctions are subtly geared to concentrate wealth at the top is silly. Yes, th
242.
▲
by
cbsmith
2y ago
> I bet you haven't. It's like asking a programmer if designing weapons is their primary imperative - nearly everyone will say no. But when you examine the number of people that make contributions that could be weaponized or is
243.
▲
by
cbsmith
2y ago
https://www.foreignaffairs.com/articles/russian-federation/1...
244.
▲
by
cbsmith
2y ago
I'd argue non-typed Python supports duck typing pretty well too, so you don't necessarily need Typed Python to support it.
245.
▲
by
cbsmith
2y ago
That seems a lot like duck typing to me.
246.
▲
by
cbsmith
2y ago
class X(TypedDict): x: str class Y(TypedDict): y: str class XYZ(X, Y): z: str That should get you the class/superclass relationship that you want, no?
247.
▲
by
cbsmith
2y ago
Python classes are basically dictionaries that have a distinct type bound to them. Alternatively you can subclass from dictionary to give yourself a distinct type but still be a dictionary. Slotted classes are basically named tuples (and of
248.
▲
by
cbsmith
2y ago
Their problem stems from the scenario where you don't type them. You just leave them as generic lists & dicts.
249.
▲
by
cbsmith
2y ago
Frankly, your contract was that you have no idea what fields those objects might have. I'm just fulfilling it. You won't have checks for validity of each field, as Optional is valid, but you will have to have code that handles Opt
250.
▲
by
cbsmith
2y ago
> In languages built for it, you can type your dicts/hashes/maps/whatever and its easier to see what they are/know where the functions that operate on them live. I think I must be misunderstanding what you mean by tha
251.
▲
by
cbsmith
2y ago
I always think of Python as having "fairly strong" typing, because you can override the type of objects by just assigning to __class__.
252.
▲
by
cbsmith
2y ago
That one is pretty simple. You have a Car object with four fields. The types of the fields are, respectively Optional<Make>, Optional<Model>, Optional<Year>, and Optional<Colour>. Hickey makes it sound worse than it
253.
▲
by
cbsmith
2y ago
Living this dream in Python right now (inherited a code base that used nasty nesting of lists & dicts). You don't strictly need to do OOP to solve the problem, but it really does help to have a data model. Using dataclasses to map
254.
▲
by
cbsmith
2y ago
I don't find the visualizations shown on websites terribly convincing, so I kind of get it. Yes, you need to kick the tires to understand if it is useful.
255.
▲
by
cbsmith
2y ago
Exactly what I'm trying to say, though written better.
256.
▲
by
cbsmith
2y ago
> So as the parent suggests it's really better to adjust the business process if you can. That's another way of saying that there are serious trade-offs going that way that need to be justified... which may also be true for the
257.
▲
by
cbsmith
2y ago
s/ERP/any other business software product/ ...and yet there are all kinds of segments where customized tooling is more the norm than otherwise. It just depends on whether the deviation from the norm is a competitive disadvant
258.
▲
by
cbsmith
2y ago
There's a bit of selection bias going on there though. The reality is that SAP and similar products are designed for a business that works a certain way, and so obviously businesses that fit that profile are most likely to get value fr
259.
▲
by
cbsmith
2y ago
In other news... https://www.reuters.com/technology/intel-aws-expand-strategi...
260.
▲
by
cbsmith
2y ago
I love realizing that I'm old enough that people think that practices that were the norm at the start of my career don't seem credible even a decade ago.
261.
▲
by
cbsmith
2y ago
That's an arbitrary division of "one thing" though. You've decided the "one thing" includes the HTTP request and response, but it doesn't involve the socket call for that request and response. I'm not
262.
▲
by
cbsmith
2y ago
It's the first time they've publicly acknowledged what specifically was used in the training set for their LLMs. It's NOT the first time they've said that that data could be used for research. The presumption was that
263.
▲
by
cbsmith
2y ago
"I want to be able to mock the REST callout without performing any actual i/o." Why? Because it's hard for you to mock out actual I/O, which could be solved by a tool that makes it easy to mock out actual I/O.
264.
▲
by
cbsmith
2y ago
> The security manager was removed as no one used it well or found it useful. That's as much an indictment of the Security Manager than anything else. ;-) > Every one of these features were added because they were useful to java
265.
▲
by
cbsmith
2y ago
There's an argument to be made that to the extent they break the rules in some manner, they're doing more harm than good. Should you be testing scenarios that are impossible to encounter with the code? Should frameworks be breakin
266.
▲
by
cbsmith
2y ago
This is why successful organizations shadow interviews.
267.
▲
by
cbsmith
2y ago
African or European. Everyone knows that.
268.
▲
by
cbsmith
2y ago
Bluesky is the new Orkut! ;-)
269.
▲
by
cbsmith
2y ago
> Instead the solution that people are advocating for is for more curating powers to be giving to individual users so that they can choose, on current platforms, how much is curated for themselves. When you say "on current platforms
270.
▲
by
cbsmith
2y ago
If having one is good, having two must be better!
More ›