HNHacker News
TopNewBestAskShowJobs

larzang

706 karma · joined July 4, 2014

submissionscomments
larzang··on Why do so few people major in computer science? (2017)
Less that you don't need education and more that the education of a CS degree has little relation to the practice of software development. It's probably improved, but when I was in college 20 years ago CS was something you did abstractly on a whiteboard, it's computer SCIENCE. That's certainly valuable to society as a whole and certain fields, but it has little bearing on building websites or business CRUD or other things the vast majority of us are doing. I don't need a new hire to be able to implement a sort algorithm from first principles, I need them to know git and how to write unit tests and how to communicate with a team effectively.
larzang··on PHP Insights: Analyze the code quality of PHP projects
> I desperately want a good code analysis tool for PHP: something that can look behind whether there's exactly one space before a '*' in a comment block and into deeper things like, "hey, on this line over here you tried to call a function that doesn't exist in the class the variable is supposed to be referencing".

Then you want phpstan or psalm. They do actual type checking and static analysis rather than style linting, and do it quite well.

If you do want an alternative for linting, Slevomat Coding Standard adds a huge number of highly-configurable and useful extra rules to PHPCS. I'm a big fan.

larzang··on Dwarf Fortress Creator Explains Its Complexity and Origins [video]
He did start out as an academic/scientific programmer, so yeah.
larzang··on Should all strings become f-strings?
Additionally sprintf (basically .format) is strongly preferred to double quotes in many projects for readability and highlighting explicit intent.
larzang··on Deprecating password authentication in GitHub API
And it does still exist, until November. Deprecation is a transition period, instead of just removal without warning, but without future scheduled removal then deprecation would serve no purpose.
larzang··on Ask HN: How can I pick a side project and stick with it?
I find side projects useless. At work I solve real problems for real people, often big problems. Some toy project doesn't feel the least bit meaningful, and any idea I have for something that isn't just a toy is something 100 other people have had as well.

So I help with their implementation instead. Instead of building useless tech demos or starting primitive games I'll never finish, I look up the projects I do actually find useful and see what they need help with.

larzang··on Apple Store leaks 4.7-inch ‘iPhone SE’ name
Yeah I always thought the screen-size on my 5 was perfect, but a week after buying an XR I fully came around to living with a large phone. It really was just a massively better experience.

I would have bought an updated SE if they had been available at the time, but I don't regret the XR purchase.

larzang··on Amazon struggles to find its coronavirus footing
So when does this amazing higher pay kick in for the thousands of Amazon contractors?
larzang··on Self-isolation is feeding my Warhammer addiction
Being an adult warham is kind of a mixed blessing, at 19 I had no money and all the time in the world, at 36 I have no problem affording my plastic addiction but little free painting time.

At least now with the virus I'm 100% work from home, which gives me an extra 90 free minutes a day from not commuting.

larzang··on “Just walk out” technology by Amazon
But you just bought a toilet seat, surely you want five more toilet seats, you toilet seat enthusiast you.
larzang··on If your cipher were secure, this image wouldn't have repeating patterns (2015)
Ironically now PHP is one of the few high-level languages doing this right, with built-in libsodium support and an excellent idiot-proof library available in Halite on top of that.
larzang··on New in PHP 8
Everything in the Symfony/Doctrine ecosystem that uses annotations does so as an option for those who prefer them. If you don't like them, you can usually just as easily use YAML or XML or PHP configuration.

Most developers seem to like them (brevity, locational grouping of concerns), so they tend to get treated as a default, but they're not the only option or the only one treated as a first-class choice. Like much of new-PHP, this also seems to be something largely borrowed from the Java world, it's hardly something new or invented by PHP.

larzang··on Police conducted search in the Nginx office due to a copyright claim
> though I concede MariaDB isn't as popular as I hoped

I would think that's more due to the huge boom in Postgres popularity than any failing of Maria. For the projects that do still use MySQL, all the ones I know of are on Maria or Aurora rather than the Oracle implementation.

larzang··on It's Not Sabotage, They're Drowning
The weakest link in your software is always you. Automation that can help compensate for human failings always has value. I can't count the number of times writing tests has led me to catch simple mistakes in code that I'd stared at for hours and declared good.

Not to even get into the ways that tests can help guide sensible architecture, especially for junior devs, because "this is hard to test" is the single most straightforward code smell for "this probably needs to be simplified or broken up".

larzang··on Dependency injection is dynamic scoping in disguise
I don't really see this comparison as being particularly useful. There isn't really a choice between DI or dynamic scoping, there's just a choice between application architectures, which is largely dictated by language.

The Closure example works because all your foreign symbols are coming from namespaced imports, which is to say you have a Module architecture and your only polymorphism lever is altering the namespace mapping to point to an equivalent module.

With Java and the like you have a Service architecture, so rather than importing symbols you're injecting services. Things that would otherwise be exported as bare functions tend to be written as classes so that they can be used as services.

While some languages can support either (i.e. JS is typically modular but there are things like Bottle if you want to write JS in a service-based way), it's not typical that a given application is going to support either simultaneously. Most languages have a clear idiomatic choice that you're likely not going to want to stray from to avoid headaches integrating 3rd party dependencies and developers other than yourself.

larzang··on Driverless cars are stuck in a jam
And where is this going to come from? Our public infrastructure is crumbling after decades of insufficient spending and maintenance as it is. It will take a significant social shift to reverse this trend and stop robbing the future to support short-term political agendas of neoliberal austerity and privatization that merely enrich the rich further.

If we can accomplish such a shift, there are already much more worthy ends to put the money and political will towards: increased public transportation, rebuilding of streets to safely support non-vehicle traffic, public ev infrastructure, etc. Spending massive amounts to subsidize the few rich who could afford autonomous cars would just be further regressive policy.

larzang··on PHP-FPM remote code execution bug exploited in the wild
That's true for us as well with our legacy applications.

Our newer applications are using litespeed instead, and we've found it to be significantly better. You basically get the features of a nginx + apache + varnish stack in a single easily managed service and with better performance too.

larzang··on Algolia raises $110M for its search-as-a-service
> Not only that, but I can manage the search result weigths and preferences from within Algolia with no special experience.

This was a major selling point for us when we switched to Algolia. The business people want to be able to manage things like search without having to go through the programmers, just like they manage GA/GTM and such.

larzang··on Scientist Behind Navy's “UFO Patents” Filed One for a Compact Fusion Reactor
The X-37 is the best example of one widely known to exist, without yet knowing all the details of its purpose and missions. It's pretty unlikely to be the only such program.
larzang··on Scissor Statements: Sort by Controversial
The idea that the discussion of a supreme court nominee being a rapist is what is dangerous, and not the fact that a supreme court nominee is a rapist, is frankly sickening. So is reducing Kaepernick to a political meme, complete with invocation of Putin as scary mastermind.

Acting like everything is some kind of abstract theater designed to divide people on internet forums shows a disturbing detachment from the real effects that real events have on real people.

larzang··on Robots to Cut 200k U.S. Bank Jobs in Next Decade, Study Says
> What is needed to really reduce costs is a payment system that eliminates error and irregularities, or which uses AI to handle them.

Perhaps some kind of... clearing house, which could be automated?

In the US we have a dozen startups for you to send money to your friends. In most of the world you just do a bank transfer.

I pay my rent and utilities with ACH, but I know people who still don't have that option and are stuck in the dark ages of checks or credit cards with processing fees.

I have accounts with multiple credit unions, and one doesn't permit online ACH transfers and another takes 3+ days to do it. I'm currently trying to consolidate those accounts but even that's a huge hassle. It's nearly 2020 and the form the payroll company my employer uses wants a voided check from me to change where my direct deposits go! I don't have checks and haven't written a personal check in probably 15 years.

We keep scratching our heads looking for that magic future tech solution to our problems (AI! AI for everything!) when we actually just need to fix adoption of the freaking 45 year old standardized solutions right in front of us.

Checks have always been an almost entirely American aberration and a bad solution on all sides. It took us almost 15 years after Europe to adopt chip cards, and we're still swiping in places and almost nobody requires a pin for security. NFC adoption isn't great either outside affluent areas. We're not lacking new financial solutions, we're lacking proper adoption of the solutions we already have and the rest of the world is happy to use.

larzang··on Modern Script Loading
The best solution remains in my opinion browserslist-targeted compiling. I don't think it makes sense to pretend you can/should write non-trivial JS today without a build step, especially if you're worried optimizing delivery. Are you seriously going to fret about delivering unnecessary polyfills to modern browsers while simultaneously delivering unoptimized code and styles because you felt like going old school?

You can write tomorrow's JS and CSS today while explicitly supporting whichever of yesterday's browsers you know you need to, and have the delivered code improve over time as older browsers are phased out without you having to rewrite it.

larzang··on Why I'm Worried About the Repo Market
Oh it's the _regulation_ that's the problem, not the inability of banks to not overleverage themselves.
larzang··on Google Feedback on TypeScript 3.5
Whether it's a monorepo or not doesn't change the fact that you have a billion lines of code to maintain, but at least this way they're forced to make changes consistently. The alternative would be doing it piecemeal with a dozen versions of dependencies propagating due to fragmentation, which is way way worse.
larzang··on Amazon’s Shipping Empire Is Challenging UPS and FedEx
Consumers benefit assuming all suppliers are equivalent, which is not at all the case with Amazon. They're gaining a price advantage over using real carriers mainly through incredibly exploitative labor practices in the warehouse and abusing uber-like contractors to cover the last mile for pennies on the dollar.

Not only is the human/societal cost high, consumers directly suffer as well as untrained contractors working irregular routes rush to meet unrealistic deadlines. Every day a different person in a rented van pulls up to throw armloads of packages at my building, may or may not be the right entrance, they don't know the place and have no time to check, before racing off to the next location.

larzang··on Things I Learnt from a Senior Software Engineer
Interaction between devs is unavoidable, at the code review stage if not sooner. Pair programming provides tighter feedback loops and helps get things done quicker than playing CR tennis after a lot of hours have been sunk into something.
larzang··on How Stack Overflow upgraded from Windows Server 2012
Does the word monopoly even have meaning when the "product" is open source? It's not like a single company controls linux, it is contributed to and grows from input from many people and many companies worldwide, all of whom have an interest in seeing it flourish.

Is HTML a monopoly? Is JS a monopoly?

larzang··on AMD Ryzen 3000 Post-Review BIOS Update Recap: Larger ST Gains, Some Gains/Losses
It's silly to pretend like this is a new thing, I and plenty of other teenagers (and non-teenagers) were putting car-kit neons in our custom-modded cases in 2000.

Thankfully my tastes have grown since then, but I can't blame kids today for doing the same thing I was doing (though I can grumble that they have fancy cases and led controllers and aio coolers where I had beige boxes and holesaws and custom wiring and fish tank gear).

larzang··on AMD Zen 2 Microarchitecture Analysis: Ryzen 3000 and EPYC Rome
It almost makes me think the TDP of either the 3800x or 3700x is a publishing mistake. 3.6/4.4 to 3.9/4.5 on the same hardware can't possibly require such a dramatic voltage increase to go from 65w to 105w.

If it does, it means the process is struggling to produce chips at that speed, so the headroom is incredibly low and you can forget about overclocking.

larzang··on On the Impact of Programming Languages on Code Quality
Yeah it's easy to see writing in dynamic languages with optional typing and static analysis tools (e.g. JS with TS/Flow, PHP with phpstan or psalm), the type analysis finds all kinds of different and subtle problems that unit tests probably wouldn't catch. Large integration tests often would, but are even harder to write exhaustive cases for.

Types just make everything easier to do right the first time.

← PreviousPage 2 of 6Next →