HNHacker News
TopNewBestAskShowJobs

CiaranMcNulty

410 karma · joined April 2, 2013

submissionscomments
CiaranMcNulty··on PHP Pipes in 156 Bytes
That's not done lazily which is considered bad
CiaranMcNulty··on PHP RFC: Enumerations
>So, singletons. That way you end up with more global state, with all its consequences.

As you point out, the lack of properties solves that. The use of a singleton probably relates to the identity issue

> at this point you may just as well skip the entire object part as I don't see why exactly it's needed for an identity check.

PHP only has 8 types (string, int, bool, float, array, null, resource, object) and they're not likely to be added to (resource is largely deprecated).

Given that, object is the only one that's not likely to be abused by relying on the actual scalar value. Keeping it as a singleton ensures that === will still work (it requires 'same instance')

CiaranMcNulty··on Why is Apple acting like an asshole?
Apps cannot currently use other browser engines on iOS
CiaranMcNulty··on Apple helped make 'top secret' iPod for US government
> The victim's family were [resolute] that the BBC [should] show pictures showing the extent of his injuries and quote, in full, the racist tirade he was subject to during the attack.
CiaranMcNulty··on Mac keyboard shortcuts
UK has § in the top left above tab
CiaranMcNulty··on Don't close your MacBook with a cover over the camera
I find it odd that you argue with the 'in the last 10 years' statement with a thing from 2008
CiaranMcNulty··on Why we won’t be supporting Sign in with Apple
"by using the email account you registered with"
CiaranMcNulty··on [dead]
Or where the hydrogen comes from (currently the huge majority of commercial hydrogen originates from fossil fuels)
CiaranMcNulty··on The iPad Awkwardly Turns 10
Wouldn't it be strange to compare 'iPad' to 'MacBooks'?
CiaranMcNulty··on How to start a blog using Hugo
Google Search, JS solutions like lunr.js, paid options like Algolia...
CiaranMcNulty··on Google Kills Cloud Print
I've definitely worked places with segregated LAN and WANs, where it's a pain in the ass to print if you aren't plugged into the ethernet
CiaranMcNulty··on Ask HN: What happens after no-deal Brexit?
Re: climate change, that'd be a nice problem to have
CiaranMcNulty··on Google hit with €1.5B fine from EU over advertising
Delete * from user_data doesn't take that long
CiaranMcNulty··on What's next for SemVer
It's as simple as adding to the README 'do not depend on specific output as it will change between versions' and then you're doing server...
CiaranMcNulty··on Ask HN: Is it just me, or is CSS too damn hard?
> What's the advantage?

The same content reflows to different 2D spaces

CiaranMcNulty··on Brexit: France activates no-deal plan
Given that the Brexit referendum was legally non-binding (unlike an election), the only mechanism needed is political will to ignore the result
CiaranMcNulty··on Field notes: London, England (2018)
You think English people have genetically weak legs?
CiaranMcNulty··on Using Web Technologies to Print a Book
Hitting enter at the end of a line lets you manually wrap paragraphs in a way that will fit into an 80 or 120-char wide terminal.

Ignoring those line breaks is desirable when reflowing the text into e.g. HTML output

CiaranMcNulty··on The Waterfall methodology was a historic accident and they knew it
Yes, that shows that 'telling patients to go for a run' doesn't work
CiaranMcNulty··on Why only 2% of Chinese pay any income tax
Because the % of income spent on goods decreases as earnings increate.

Many high-earners aren't 'spending' their money, they're investing it to make more money

Whereas low-earners are spending their pay cheque before the next one arrives.

CiaranMcNulty··on Why only 2% of Chinese pay any income tax
Progressive income tax retains the property that the higher your salary is, the more you take home
CiaranMcNulty··on The Second Edition of “Refactoring”
> It seems like the trivial part of refactoring.

Trivial after the book exists, sure

The catalog misses out most of the interesting discussion

CiaranMcNulty··on Ask HN: Telsa Powerwall a Good Investment?
Comes down to whether they're willing to forfeit the potential 10-20k profit from investing that 15k wisely over 15 years, if it means they're burning less carbon
CiaranMcNulty··on Google accused of GDPR privacy violations by seven countries
There's a comparison of the approaches in the two regions about 10 mins into this excellent talk on the subject https://www.youtube.com/watch?v=zU3GZyO_E4g&t=1814s (it's from a PHP conference but isn't language-specific)
CiaranMcNulty··on Ask HN: Is there a modern “power on to basic” computer, for kids to learn on?
It boots to a loading screen from which you can select BASIC or a game
CiaranMcNulty··on Ask HN: What discontinued company/product do you wish was still around?
Pebble - they created a series of smart watches that had:

- long battery life (2-7 days depending on model)

- e-ink colour screens, that were always on

- an extensive app/watchface ecosystem

- actual attractive watches

I had a series of them and was all-in on the new models announced via kickstarter, when they suddenly disappeared and were bought by Fitbit. All forthcoming products were killed off.

They've been pretty reasonable with sunsetting the servers and helping the community move towards an open model, but it's only a matter of time before my Pebble Time Round bites the dust and I can't fix it (my partner's has already gone)

CiaranMcNulty··on EU approves internet copyright law, including ‘link tax’ and ‘upload filter’
There's a huge cultural difference where people generally assume regulators are going to be fair and even-handed.

FWIW it mostly works out.

CiaranMcNulty··on Estonian Manors
There were lots of such tools, back in the day!
CiaranMcNulty··on Tesla won’t give drivers their own crash data without a court order
If it has a US subsidiary (which is fairly likely for tax etc) then that entity has to give you your data.
CiaranMcNulty··on Tesla won’t give drivers their own crash data without a court order
Crash data is not necessarily Personally Identifiable Information
← PreviousPage 2 of 4Next →