Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mjr00
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
26 ms
·
421.
▲
by
mjr00
1y ago
The API mandate notably specified what rather than how . "It doesn’t matter what technology [you] use. HTTP, Corba, Pubsub, custom protocols — doesn’t matter." In some ways it's quite the opposite of CEO mandates to use
422.
▲
by
mjr00
1y ago
> I’ve been around long enough to see resistance to things like the Internet, version control, bug tracking systems, ORMs, automated tests, etc. Not every advancement is welcomed by everybody. An awful lot of people are very set in their
423.
▲
by
mjr00
1y ago
> And yet, if making your own game engine makes it intellectually stimulating enough to actually make and ship a game, usually for near free, going 10x slower is still better than going at a speed of zero. Generally, I've seen the e
424.
▲
by
mjr00
1y ago
You don't need a digital passport to do this. You just need to engage in communities where people actually know each other . As the article says, if you don't know someone they may as well be an NPC, and there's no point in
425.
▲
by
mjr00
1y ago
> There should be some limits and some consequences to the insurer as well. I don't think the insurer is god and should be able to request anything no matter if it makes sense or not and have people and companies comply. If the insu
426.
▲
by
mjr00
1y ago
Yeah. SOC2 reminds me that I didn't mention sales as well, another security-as-economics feature. I've seen a lot of enterprise RFPs that mandate certain security protocols, some of which are perfectly sensible and others... not s
427.
▲
by
mjr00
1y ago
> I disagree with other posts here, it is partially a balance between security and usability. And economics. Many people here are blaming incompetent security teams and app developers, but a lot of seemingly dumb security policies are
428.
▲
by
mjr00
2y ago
> There is a reason why python become that popular and widely adapted and used, and it is not the extra layers of type checking, annotations and the likes. Python got popular and widely adopted for the same reason PHP did: 1) it was read
429.
▲
by
mjr00
2y ago
Your code is comparing to the wrong alternative; the comparison should be to connection = connect_to_database() my_var = MyType(connection) It's far more testable, maintainable, more explicit about when and which objects a
430.
▲
by
mjr00
2y ago
There's nothing about the contextmanager approach that says you're open and closing any more or less frequently than a __init__ approach with a separate `close()` method. You're just statically ensuring 1) the close method ge
431.
▲
by
mjr00
2y ago
C++ destructors are deterministic. Relying on a nondeterministic GC call to run __del__ is not good code. Also worth noting that the Python spec does not say __del__ must be called, only that it may be called after all references are
432.
▲
by
mjr00
2y ago
You're right that consistent internal state is important, but you can accomplish this with class MyClass: def __init__(self, config: str): self._config = config And if your reaction is "that just means
433.
▲
by
mjr00
2y ago
It's a lot easier to reason about code if I don't need to worry that something as simple as my_variable = MyType() might be calling out to a database with invalid credentials, establishing a network connection which may
434.
▲
by
mjr00
2y ago
It's not totally crazy in that I see it all the time, but it's one of the two most common things I've found make Python code difficult to reason about.[0] After all, if you open a DB connection in __init__() -- how do you clo
435.
▲
by
mjr00
2y ago
Doing anything like this in __init__ is crazy. Even `Path("config.json").read_text()` in a constructor isn't a good idea. Friends don't let friends build complicated constructors that can fail; this is a huge violation o
436.
▲
by
mjr00
2y ago
Yeah, the Krugman quote gets pulled out around literally everything. Bitcoin/Blockchain/NFTs, Metaverse, AR/VR, I'm sure some other things I was forgetting. For every Krugman "the internet will be as useful as the f
437.
▲
by
mjr00
2y ago
> No one longed for a level of AI where you have to double check everything. This has basically been why it's a non-starter in a lot of (most?) business applications. If your dishwasher failed to clean anything 20% of the time, woul
438.
▲
by
mjr00
2y ago
Yeah, this one is very interesting; the charge is for "intentionally caus[ing] damage without authorization to one or more protected computers, including the Ethereum Virual Machine (EVM), which was implemented through, among other nod
439.
▲
by
mjr00
2y ago
You can look through the indictment yourself - https://www.justice.gov/usao-edny/media/1388036/dl?inline Among other bits: > MEDJEDOVIC understood that his conduct circumvented the intended functioning [..
440.
▲
by
mjr00
2y ago
> This is the classic “you don’t get to walk into my house just because you found an unlocked door” that HN users struggle to understand when the digital equivalent is under discussion e.g. an unsecured API. Except this is not how DeFi a
441.
▲
by
mjr00
2y ago
The big difference is that those are centralized systems owned by corporations, and accessing them in a way which you're not supposed to, such as by changing a bank account number or exploiting a zero day, is a crime. With DeFi it'
442.
▲
by
mjr00
2y ago
Short answer: https://www.macrotrends.net/stocks/charts/AMZN/amazon/revenu... Long answer: There's no movement among major businesses to move off cloud providers, only putting more stuff onto. Every
443.
▲
by
mjr00
2y ago
That question has been answered; cloud has been unambiguously a huge win. There are a select few companies where their business makes more sense to use on-prem rather than cloud, but those are the exception. For most, it's outsourcing
444.
▲
by
mjr00
2y ago
Yeah. Nobody seriously commits to it because fundamentally the idea of EU countries quickly moving off American tech services is as flawed as the idea of American manufacturers quickly moving to production in domestic factories: * There
445.
▲
by
mjr00
2y ago
> If the code works, passes all relevant tests, is reasonably maintainable, and can be fitted into the system correctly with a well defined interface, does it really matter? You're not wrong here, but there's a big difference i
446.
▲
by
mjr00
2y ago
I "love" this part: def ensure_dir_exists(path: str) -> None: """ Ensure a directory exists. Args: path: Directory path """ An extremely useful and insightful commen
447.
▲
by
mjr00
2y ago
Haha, I appreciate the math, fair enough. We can change the caveat to "it's a project you worked on every weekend for a few months" if that helps. The point still stands that 15k LOC doesn't represent the type of codebas
448.
▲
by
mjr00
2y ago
For a brand new project that you're trying to get done in a weekend--aka a weekend hackathon project--it's very doable. Would not recommend committing 7500 lines of code per day at your day job though.
449.
▲
by
mjr00
2y ago
> 15k LOC codebase I wish articles about AI assistance would caveat this at the start. 15k LOC is a weekend hackathon project, which is all well and good, but not reflective of the work that 99% of developers are doing in their day jobs.
450.
▲
by
mjr00
2y ago
> It's really hard to accurately assess the possibilities granted by LLMs, because they just feel like they have so much potential. I agree, but this feeling isn't anything new! This was the verbatim argument people used when i
More ›