519 karma · joined October 15, 2013
Open web page, switch to readability mode, select print from the share sheet, unpinch on the page thumbnails to zoom them to full screen, open share sheet again and save the PDF in another app.
It's probably the best hidden feature in iOS.
-(void) greetWith:(NSString *)greeting to:(NSString *)personName
and you'd call it like [self greetWith:@"Hello" to:@"Bob"]
Swift's external/internal parameters are built to allow the same style as was used with Objective-C and easy bridging. Swift's APIs tend to be terser than Objective-C ones, though.https://en.wikipedia.org/wiki/Olkiluoto_Nuclear_Power_Plant#...
Pipfile looks like a definite improvement over the pip install, pip freeze workflow.
With hindsight, turns out that none of newLISP, Goo or Arc set the world on fire.
It's not the same in GUIs where the startup time doesn't usually dominate, but it's easier to keep the main loop spinning at 60 Hz to avoid dropping frames with a language implementation that is faster and not encumbered with a GIL.
And it doesn't help that the primary hosted repository system is Bitbucket and Bitbucket didn't support pull requests from bookmarks last time I checked.
I remember seeing lots of "but Python doesn't have REAL GC" arguments years ago. But Cocoa's foray into GC, subsequent retreat back to manual ref counting and then ARC probably have affected this too, yeah.
In Helsinki, less than half of households have cars. In many areas of central Helsinki, more than 60% are carless. I'd be surprised if car ownership was significantly more popular in other European cities. If there's good public transit and the city is walkable, a car is a waste of money for most people.
Objective-C:
[self frob:param1 withObject:param2];
Swift: self.frob(param1, withObject:param2)The other big thing git has is startup speed. Python is slow. Something like chg helps, but it's a workaround.
It makes sense with blocks where you have actual multiple values you can pass in without futzing with pointers to pointers.