Live data from Hacker News

The shortest pull request ever

github.com

51–55 of 55 posts

Re: The shortest pull request ever

#51
post #50

Earlier quoted context omitted.

It has uses in typesetting, e.g. for allowing a word to be broken.

So what's the point of a zero width nonbreaking space then? seeing as that also exists.

Used e.g. to avoid awkward linebreaks

Re: The shortest pull request ever

#52
post #44
post #40

Earlier quoted context omitted.

I wrote a cross platform, stand alone cli program to do this. It determines the end-of-line format, tabs, bom, and nul characters: https://github.com/jftuga/chars

Nice. Would it be possible to have an option to only output the names of files that failed the -f check? i.e. hide the names of files that look "normal" and show the "weird" ones. Also, does it detect files that only contain CR as EOL characters? Or files that have different EOL characters on different lines?

I added a new command line switch, -F

* when used with -f, only display a list of failed files, one per line

https://github.com/jftuga/chars/releases/tag/v2.3.0

Re: The shortest pull request ever

#53
post #50

Earlier quoted context omitted.

So what's the point of a zero width nonbreaking space then? seeing as that also exists.

Used e.g. to avoid awkward linebreaks

You can surely also use no character at all to replace a zero width nonbreaking space for that use case though, or am I missing some subtlety here?

Re: The shortest pull request ever

#54
post #45

Earlier quoted context omitted.

Oof. On the other hand... > The active directory domain was a .local domain .local is a reserved domain for mDNS (aka ZeroConf or Bonjour, the stuff Avahi handles), standardized in early 2013. Then again, 2014 is soon enough after for that for knowledge not to have percolated everywhere, and/or for it to stomp on older networks that had used .local beforehand.

Microsoft recommended using .local for active directory domains since the 1990s, I think because back then it was not reasonable to demand that their customers register a domain name at a time when that was a massive hassle. But it was still wrong to squat on a TLD: there were already moves to expand the number of TLDs at the time, but MS were very slow to correct their mistake. Then Apple made the same mistake with…

I've seen consultants set up ActiveDirectory as "companyname.ad", as if Andorra didn't exist.

Re: The shortest pull request ever

#55
I love the title. I like to ask for pull requests with this exact description to influence my coleagues to look at it faster when it's something small like a single character. For example, when it's a two character PR I say "hey, the second smallest pr in the world". Guess I was wrong!
Post reply on HN