Better HN
topnewbestaskshowjobs
Log inSign up

phphphphp

2,976 karma · joined Jan 11, 2022 (4y ago) · 556 submissions

Submissions

comment 3y ago · link · parent

Companies don’t need to be right, they need to maximise the chance of succeeding. Yes, it was obvious that the raining-money period wasn’t going to last… but what if it had? What if Google had decided to ignore it, and then by some ridiculous twist of fate, it did continue and a competitor did leverage it to beat Google?

Firing a bunch of people and killing some projects is a tiny price to pay for the potential upside. As humans, seeing people get fired is painful and we view the individuals responsible in a negative light — which I agree with! — but for Google the corporate entity, and Microsoft and Shopify etc etc it made complete rational sense even in hindsight.

comment 3y ago · link · parent

I don’t think so, Retool has a loyal fan base, I know multiple Retool customers who’d write a comment like that. Retool are popular enough that they don’t need to astroturf to get comments like that.

comment 3y ago · link · parent

> [...] OpenAI’s outsourcing partner in Kenya was Sama, a San Francisco-based firm that employs workers in Kenya [...]

Does this qualify as nominative determinism, given OpenAI founder Sam Altman's username is... sama?

comment 3y ago · link · parent

No, my argument is that most of the footguns described in A Fractal of Bad Design have been long since fixed and those that remain are being removed as and when it's feasible and the PHP community has matured a great deal to the point where the remaining footguns don't really apply in modern codebases because of libraries, static analysis and testing.

Spend any amount of time actually using PHP and you'd discover that it is meaningfully different to what it once was. It's far from perfect, and still has a long way to go, but if you reflect on where it was and what had to change to get where it is today, the improvement and progress has been excellent.

comment 3y ago · link · parent

You can quote yourself ad nauseam but that does not turn your incorrect statement into a correct statement. If you spent any amount of time looking at a modern PHP codebase, you'd discover that the type of code people write today is radically different to the type of code you'd have seen at the time A Fractal of Bad Design was written. There are still aspects of modern PHP that stand to be improved, absolutely, but that's true of all languages.

comment 3y ago · link · parent

> Yes; in several billion years, e.g: [...]

You just invented the "several billion years" part. I absolutely, unequivocally believe the premise of the article we're discussing, that space-loving billionaires (like Elon Musk) and their acolytes believe that the earth is doomed to failure in the short term and that the only way for humanity to survive is to become multi-planetary. If you think Elon Musk is operating on several billion year time horizons, I have a spaceship to sell you.

comment 3y ago · link · parent

I don't wish to be the bearer of bad news, but nobody is trying to convince you to use it: nobody cares what you're using for software development... and you're working with out of date information if you think that A Fractal of Bad Design is relevant any more. PHP has evolved a great deal over the last decade, as have the people using it and as has the ecosystem.

Personally, as my username might hint, I've been using PHP for a long time, and, as I've commented on HN before, I would not choose PHP if I was building an engineering organisation from the ground up, and I do not use PHP professionally at the moment, but I absolutely choose to use PHP for my own projects and can enthusiastically say it's a great language in 2023.

If you're not willing to try out modern PHP, that's fine, but ranting and raving about PHP based on your experience more than a decade ago is not relevant any more, given this is a post about the improvements made in the last decade. Many people with experience beyond PHP think PHP is a great language today.

comment 3y ago · link · parent

academia doesn’t set cultural expectations. If the culturally influential people in the space sector are saying humanity is doomed on earth and our future is on Mars and other planets, that’s the message most people will take onboard.

The article is written for people, not academia. Ask laypeople about Mars and you’ll get a representative insight into the Mars fantasy.

comment 3y ago · link · parent

> Musk wants there to be a colony on Mars in the near future.

As a first step, to prove Mars is liveable. As far as I can recall, he believes that we must be a multi-planetary species to survive which means Earth is destined to die.

Space is absolutely a “earth is doomed, we must leave” fantasy for Musk and his acolytes.

comment 3y ago · link · parent

Generally, if you make good changes, you'll see a short-term dip before a long-term increase. The challenge is differentiating between bad changes that have caused long-term harm, vs. good changes that are experiencing the natural short-term dip.

A website may build good reputation with a search engine which has ranking benefits but at the core of search engine ranking is individual pages: you must protect your well ranking pages at all costs. That means never break any links. If you break links, your pages will drop out of search engines, and it can take years to rebuild the lost reputation for those pages. The model for thinking about SEO should be page-based, not website-based.

The good news is that if your website was able to rank well once, it'll rank well again, because as much as we might tinker with the structure of a website, what matters most is the content, and you're still distributing that same content... you just might have set yourself back a year by breaking a bunch of links. Easy mistake, c'est la vie.

The ideal strategy for experimenting with SEO is to do it page by page, experiment with different changes on different pages and measure the impact. Don't make wholesale changes to the structure of every page until you're confident that you're doing something that works.

comment 3y ago · link · parent

A credit card is a long term commitment that integrates into your personal finance life, it’s a big decision you make once and can benefit from the broader finance system — e.g: you can refinance, you have legal rights (jurisdiction dependent). A credit card is a tool for the buyer.

BNPL is a product that merchants pay for because it increases their conversion rate: customers who wouldn’t otherwise buy something, will buy it, by clicking a button and entering into a financial agreement at checkout.

BNPL has been around for decades, the innovation of digital BNPL is in making it so easy for someone to walk into a financial commitment. For example, BNPL is very effective for fashion e-commerce, a market where it’s normal for a customer to fill their basket with products and then whittle it down to stay within their budget at checkout: BNPL is an antidote to that, it tells the consumer, “you don’t need to stay in budget! Just pay for it in future!”.

comment 3y ago · link · parent

Functionally it is substantially different to a credit card. The value of BNPL to businesses is the way that it changes the basis for a customer’s purchase decision, a credit card does not have that same dynamic.

The underlying credit mechanism might be a lot like a credit card but the way borrowers interact with it, which is what matters, is very different. The mechanics of a mortgage and a car loan are very similar but that doesn’t make a mortgage a car loan and vice versa.

BNPL is a bubble. BNPL is just like ride-sharing circa 2016, as soon as cheap money stops and regulation arrives, the bottom falls out and people realise that BNPL is just new paint on an old idea and should be valued as such.

BNPL will not die because it has existed for decades, and it is a valuable service to a subset of consumers but when you set aside all of the tech-boom hype… it’s just a boring financial service with healthy-but-unremarkable profit opportunities.

comment 3y ago · link · parent

Don’t, keep things simple. Maintain a separate archive of each individual repository and any history can be referenced in that repository when necessary.

comment 3y ago · link · parent

A justice system will never be about the truth, because the truth does not bring justice: justice is a human attempt at realising what most would call karma. You do a bad thing, we try to make you suffer: the truth doesn't matter, because there's no absolute "good" and "bad" -- it's all perception. Lawyers are not truth seekers, they're playing a game, and to represent oneself in pursuit of the truth is a fools errand.

I've served on a jury, I agree the modern model for justice is broken, but the problem is not an absence of truth, it's much more fundamental.

comment 3y ago · link · parent

Do whatever feels right for you. There are some people for whom there is a psychological cost to being on medication and medication for them is a step towards being "normal" but for many other people (like myself) medication is a tool I'll continue to use for as long as it feels helpful.

That said, if you do wish to stop taking medication like Lexapro or Zoloft, try to frame it as an experiment in finding the ideal dose for yourself: you hope it'll be 0 but it may not be. Stopping cold turkey is a very bad idea for the obvious side effects you experienced, but you're also missing out on the opportunity to understand whether you can live well without the medication (i.e: your entire quitting Lexapro experience becomes consumed by the horrible side effects, rather than the change in your mental health, which is difficult to measure when you're suffering an inability to stand up right).

I am not a doctor or the parent commentor, just a Zoloft consumer, so take this with a spoonful of salt, but... the standard dose of Zoloft is anywhere from 50mg to 200mg: if you're on 200mg and feel that maybe now is the time to come off Zoloft, then gradually reducing down from 200 to 150 to 100 to 75 to 50 to 25 to 0 will give you many helpful checkpoints to determine whether the medication is required, e.g: if you get down to 100mg from 200mg and start to struggle, you know that 100mg isn't enough, but 200mg is more than you need, so maybe a good new dose for you is 150mg. Repeat every time you feel like quitting. Swap those numbers for whatever Lexapro's dosage range is.

comment 3y ago · link · parent

There’s wide range of anti-depressants and many different treatment strategies, including dosage variance. Metabolisation tests may be helpful in some cases to determine if a drug may behave in unintended ways in your body but that doesn’t mean the drug isn’t part of a valuable treatment strategy for you.

The process of experimenting with different treatments for mental health conditions isn’t about finding which drugs your body is most capable of metabolising, rather, it’s to find which treatment meets your mental health needs. A drug may have severe physical side effects but address your mental health symptoms so effectively that the treatment is worth it: a gene test won’t highlight that.

Unfortunately, we don’t really know why some treatments work for some people and others do not: if you’ve got dozens of options, and not enough time to test them all, then a dna test to rule out a bunch is probably going to be helpful (since you’d have to skip some anyway!) but it’s definitely not a case of, everyone should do these tests before deciding whether a treatment is right for them.

comment 3y ago · link · parent

Code is a tool for businesses, and while it's a tool that can enable you to do anything you can imagine, it is an expensive tool for businesses to do anything they can imagine... and how many businesses need to be able to do anything they can imagine?

The cost of code is huge, not only do you need competent software engineers to write the code, but first you need people who can translate business requirements into technical requirements... and then you're burdened with the costs of running, maintaining and iterating on that code as the business evolves.

If you could cut all of that out and instead have the people defining the business requirements design the software (through the use of a no-code platform) your business would be orders of magnitude more efficient. Historically, magical all-in-one configurable platforms (like Salesforce) were unwieldy and required experts to operate them, but that's no longer the case. The world is becoming much more mature, and businesses can achieve so much without owning a single line of code.

There'll always be technology that needs to be built, and code is a great tool for building technology, but most businesses don't need to build technology, they need to use technology. If you're opening your first grocery store, you rent a building, you don't hire architects and construction workers. The immaturity of technology has historically made that approach to business quite difficult, however, that's rapidly changing.

As Software Engineers, we get caught up in believing that because you can do anything with code, code is the right tool. That's a misunderstanding of business, though: given the choice between 2 tools, 1 that can do 90% of what the business needs and 1 that can do 100% of what the business needs but costs an order of magnitude more and has far greater risk then any rational business would choose the former.

If you spend much time interfacing with non-technical people in businesses, you'll often discover that they have an acrimonious relationship with technology in their business, because so much of the technology we build is caught up in the what and not the why. Code generation does not solve that problem, empowering non-technical people to own their business processes does.

Code generation is a tool for 2000, not 2030. I would bet my career that in 2030, there'll be less code produced per year (human authored + generated) than there is today.

comment 3y ago · link · parent

> I think ChatGPT is pretty neat but I was somewhat less impressed than everyone else is with the code generation.

specifically on code generation, even if it could produce the correct code, it's basically faster horses: if you ask a programmer what they want, it's something to generate rote code for them so they don't have to write it... but that's the wrong problem. The problem is not that code is hard to write, or that we don't have enough code, it's that we have too much code and need to write code to solve previously solved problems in the first place.

The future is platforms like Retool that reduce the need to write code, the future is businesses producing less code, the future is businesses producing code to solve new problems -- which an LLM can't do. If code has been written so many times that a language learning model can output it, why on earth are we still producing it (whether that's writing it or inducing a robot to output it)?

Code generation might be a fun novelty for a little while but it's not the future, it'll be a distant memory soon enough.

comment 3y ago · link · parent

The meme that cryptocurrency is good for people in countries without modern banking is long-dead at this point. First, and most importantly, many supposed not-modern countries actually have more robust banking than America: mobile money is more popular and has far greater penetration in large parts of Africa than it does America, for example. Secondly, for every cryptocurrency project that has provided value to places without modern banking, there’s a cryptocurrency project that has more effectively exploited people.

The fundamental problem with your position is that cryptocurrency does not offer a stable store of value and so while there may be short term examples where people have found value by using a non-government currency, these examples are often short lived. Just look at platforms like the YC-backed Stablegains, which are a great alternative to government-backed currencies… until they blow up and financially-insecure people are thrown into a dire situation.

comment 3y ago · link · parent

Many people do find probation stressful because of the perception that they’re being scrutinised: although there’s no difference in the legal rights at 5 months vs. 7 months service, an employee on probation may perceive probation as being a process that is being used to find a reason to fire them. I’ve only heard of one person “failing probation” through my career and they would have been terminated whether the company used probation or not.

Personally, I would never implement probation in my company because it is a stressful process for employees that provides zero value to employers (unless they want to stress out their employees).

comment 3y ago · link · parent

England’s employment rights are much less beneficial to employees now than they once were: nowadays, in your first 2 years, you have no meaningful protection beyond what’s contracted, it’s not until 2 years that you have employment protection rights that prevent dismissal without cause — an employer must go through the redundancy process to dismiss an employee with more than 2 years service without cause.

If you’re at a company less than 2 years, your employment can be ended whenever, so probation doesn’t serve any meaningful legal purpose, it’s just an arbitrary structure a company can use to review employees and delay granting additional benefits. While you’re on probation, you’re still a true full time employee.

(Employment tribunals adjudicate whether dismissal is fair, and dismissal for protected characteristics is never fair, regardless of length of service - e.g: you can’t fire someone because of their religion)

comment 3y ago · link · parent

The pragmatic answer is something like: the marginal cost is ~$0 and the lost revenue is at most $5 so who cares? There's a disincentive to "steal" a logo too because they'll still be selling it: for $5, why not get the exclusive?

comment 3y ago · link · parent

I have no relationship to Paddle but they deserve defending, as they’re absolutely not a “dinosaur clinging to life” and are in fact a very valuable player given the changing regulatory and tax landscape across the world.

The phrase to use to describe Paddle is “merchant of record” and it’s more valuable today than it was a few years ago, and it’s more valuable than Stripe in certain circumstances. There are many scenarios in which a business selling digital services would have a rational reason to choose Paddle over Stripe today.

Paddle may have started out as you describe but that’s not what they are today. Personally, I’d argue they’ve done a better job innovating in their niche than Stripe has.

comment 3y ago · link · parent

There's an unintuitiveness to it: many people believe that you're less likely to win the lottery if you pick "01 02 03 04 05 06 07" because of course that pattern is less likely than a randomly chosen set. ChatGPT is a lot like that: it can produce real enough looking "intelligence" for us to intuitively believe it's very close to being able to offer real intelligence... but, is it?

ChatGPT will produce patently untrue statements that are logically inconsistent if you induce it to do so: our human brains struggle to grasp the reality that given enough input you can produce seemingly correct output about almost anything... but seemingly correct and correct are fundamentally different and very "rest of the owl"[1]

ChatGPT is a great step forward that introduces many interesting techniques that I am sure will be the foundation of future research and implementations that get us closer to AGI, but to describe ChatGPT's path to correctness as just needing a bigger dataset feels intuitive but isn't true.

Your example is one where our brains think "wow it really does understand the relationship between a couch and a room and being tidy" but that response is entirely plausible without any understanding of what any of those things are or how they fit together. The most likely answer is not the correct answer.

[1] https://knowyourmeme.com/memes/how-to-draw-an-owl

comment 3y ago · link · parent

Also as far as predictions go, I predict that a few years from now there’ll be research and think pieces about the impact learning from artificial voices has on young children.

comment 3y ago · link · parent

The answers seem to have aged quite well! Apple specifically say that this is designed as a complement to human narration and not a replacement: some aspect of that is Apple protecting relationships with the audiobook industry, but it’s also fair to say that the humanness of human narration is still unmatched by text-to-speech. For many people, high quality text-to-speech will be good enough to enjoy but it doesn’t seem likely to be an audiobook replacement today.

That said, I suspect it’s less of a technology issue and more cultural: the current generation growing up on robot audio will have different expectations to previous generations, the lack of humanness probably isn’t an issue for them, so even if the technology can never exactly replicate the humanness of audiobooks, it may not matter.

(The text-to-speech on TikTok, for example, is often lampooned by people not of the TikTok generation for being disconcerting and annoying, whereas young people seem to have no problem with it… and that voice is much more artificial sounding than these Apple examples).

comment 3y ago · link · parent

That’s quite common functionality nowadays but generally if you’re dealing with valuable enterprise relationships that would benefit from tickets ranking higher, you have points of contact available to the client (whether that’s an account manager or similar) outside of impersonal tickets.

I’m sure if you’re a valuable enough stripe client, they’ll have account managers. The problem for Stripe is that we see big numbers ($400k) and they see small numbers ($4k) so our perception of which clients are worth dedicating resources to is unrealistic.

Stripe could do a better job here but I’d be shocked if any big valuable clients have an experience like this, because if someone is driving $100k/year of revenue for Stripe, they’ll be able to get someone on the phone who knows their name and business.

comment 3y ago · link · parent

The cost of fraud far exceeds the cost of losing one customer. The cost of losing dozens of customers costs more than prioritising someone’s issue.

I have no insider knowledge of Stripe but I find it entirely plausible that Stripe will forever have cases like this. Serious fraud could cost Stripe hundreds of thousands, potentially even millions, and so there will always be cases that are out of the ordinary and don’t fit into the already defined processes. If you’re a low level employee, you do not want to take decisive action that costs Stripe a million dollars.

Stripe grows, fraud grows. Fraud is a cat and mouse game: the question should be, is Stripe effectively solving previously encountered problems? Given how much Stripe has grown, and how relatively consistent the number of complaints are, I’d say Stripe is doing a very good job.

I am sure Stripe could do a better job at handling these cases that fall through the cracks, but that’s a separate issue, because it ultimately comes down to having someone to take accountability and ownership of the risk. A month turnaround on this is totally reasonable.

comment 3y ago · link · parent

Many years ago you were prohibited from sharing warnings by virtue of YouTube monetisation being through AdSense but, as far as I know, there’s no longer such a restriction. Lots of people publish their earnings nowadays, very common amongst finance channels.
1
567
19