HNHacker News
TopNewBestAskShowJobs

pkaler

2,527 karma · joined October 24, 2007

https://kaler.io https://twitter.com/kaler https://linkedin.com/in/kaler/ Email: pk smartful com
submissionscomments
pkaler··on How Tinder's “feedback loop” forces men and women into extreme strategies
Do they realize they are being throttled? Just because one end sends a swipe doesn't mean the other end receives it right away or at all.

Men who send a lot of swipes get their outgoing swipes throttled. Women who receive a lot of swipes get those swipes throttled, too.

Think about if you were the programmer working on Tinder. The first thing I would build is swipe spam detection.

pkaler··on Async and Await
If you're on OSX/iOS you would use an NSOperation and NSOperationQueue.

Your NSOperation objects would conform to the NSCoding protocol. Then you would iterate through NSOperationQueue.operations and use NSKeyedArchiver to serialize.

pkaler··on Winding down the Swift 3 release
It looks like Portability is not a core focus of the core team. It looks like IBM is doing a ton of the Linux compatibility work and has offloaded the core team.

(BTW, shameless plug, I send a weekly Swift newsletter here: http://SwiftNews.co)

pkaler··on NES classic ‘Punch-Out’ has an Easter egg that went undiscovered for 29 years
This is probably just a coincidence.

NTSC runs at a framerate of about 30fps. PAL runs at 25fps. I have not worked on an 8-bit console. But if I were to, I would probably run a simulation/AI tick every 6 frames.

By coincidence, some background animation is going to coincide with some gameplay event.

pkaler··on iOS Dev Tools
Shameless plug for the weekly Swift newsletter I put together: http://www.swiftnews.co
pkaler··on Swift vs. Go
The list doesn't mention optionals in Swift. Optionals are a substitute for nil/NULL and handle the absence of a value in a type-safe manner. It is similar to the Maybe type in Haskell.

(BTW, if you're interested in Swift, I send a weekly newsletter at http://swiftnews.co)

pkaler··on Millennials Flee Vancouver for More Affordable Cities
"If property values were tied directly to incomes..."

They are not because there is no land left.

It is impossible to buy a single-family detached home because there is no land left. Renting a condo is still very economical compared to other large cities.

pkaler··on Millennials Flee Vancouver for More Affordable Cities
There is no such thing as an LLC in Canada. You are either a federal corp or a provincial corp. http://www.canadabusiness.ca/eng/page/2853/
pkaler··on Millennials Flee Vancouver for More Affordable Cities
I'm standing at my desk in my apartment that I pay $1589/month for. An equivalent apartment in SF or NYC would be $3500 or higher.

The problems are two-fold.

1) Vancouver hasn't created a single-family detached home lot since the 1970s. There is an ocean to the west, the US border to the south, Burrard Inlet and mountains to the north. There just isn't any land. The only way to expand is east into the Fraser Valley.

The single-family detached home is dead. Live in a condo. Everyone gets a view. Everyone gets sunshine. Everyone gets services. Everyone gets a park a block away. https://en.wikipedia.org/wiki/Vancouverism

2) Vancouver companies pay dick-all for salaries because Vancouver companies make dick-all for revenue. Everyone that lives here and can afford works or consults for a company that is not from Vancouver. A tech company that can't afford to pay an employee to rent a $1589/month apartment is not a tech company.

pkaler··on CocoaPods downloads max out five GitHub server CPUs
I think Github's response was about as good as it could be. In hindsight, they probably should have contacted CocoaPods when they pegged one CPU. And they could have given the same general solution to Homebrew and others.

With respect to CocoaPods, I would hope someone on the team had thought through performance characteristics of their architecture.

It's like they brought a shopping cart onto a city bus and were then surprised that it inconvenienced the bus driver and the other passengers.

pkaler··on Sit/Stand Desk: IKEA Skarsta Review
I've had the Bekant desk for about a year now. I haven't had problems with the motor or controller. My experience is about the same as the reviewer of the Skarsta. The Bekant isn't super stable at higher heights, but works well. I recommend it.

I'd consider the hand crank next time or if I were filling an office with desks. Motorized isn't really that much of a bonus for me.

pkaler··on How Tumblr Can Save Yahoo
The way to save Yahoo is for Yahoo to kill Yahoo.

Tumblr is in New York. Away from Sunnyvale. Yahoo could build a new Yahoo there that was comprised of small teams, making new products, shipping on a regular cadence, shielded from the mothership.

When the original Macintosh was created, the team was in a new building away from the Apple II team. Yahoo needs to find its own pirate flag to fly.

pkaler··on Swift String Cheat Sheet
Yes, I believe so. From here: https://developer.apple.com/library/ios/documentation/Swift/...

"Every instance of Swift’s Character type represents a single extended grapheme cluster. An extended grapheme cluster is a sequence of one or more Unicode scalars that (when combined) produce a single human-readable character."

And then later:

"For example, LATIN SMALL LETTER E WITH ACUTE (U+00E9) is canonically equivalent to LATIN SMALL LETTER E (U+0065) followed by COMBINING ACUTE ACCENT (U+0301). Both of these extended grapheme clusters are valid ways to represent the character é, and so they are considered to be canonically equivalent"

pkaler··on Focus by Firefox, a Content Blocker for iOS
I'm on a Swift project for an App in the neighbourhood of millions of DAUs. Swift is ready.
pkaler··on Very basic HTTP implementation in Swift
Aeon is an HTTP server written in Swift that has an API that looks like Sinatra. https://github.com/Zewo/Aeon
pkaler··on Canada's R&D tax credit program hurts R&D in Canada
> Regarding Claim 1, you are advocating that company will sacrifice its growth in order to live off of SRED.

SRED zombies are a real thing. Companies that should otherwise fold keep living on. It's not that they are sacrificing growth, they are tying up productive resources.

https://twitter.com/tobi/status/369180245972090880

pkaler··on TvOS for Developers
I'm not sure what you're trying to point out. It looks like TVMLJS is the framework that the current set of "Apps" are built with. They're basically dashboard widgets that display XML and Javascript. https://developer.apple.com/library/prerelease/tvos/releasen...

There looks like there is a TVMLKit which looks like AppKit and UIKit. https://developer.apple.com/library/prerelease/tvos/releasen...

pkaler··on Philippines to Roll Out Nationwide Free Wi-Fi Service by 2016
I'm not afraid of taxes. I'm pointing out the cost.

And it's about focus. I live in Vancouver. The city should probably be focusing on the downtown eastside and on transit. In SF, the city should probably focus on Muni/BART and the Tenderloin. It's a matter of focus.

It's about competency. The city's website and mobile Apps are not very good. The coffee shops in my neighborhood can't get wifi right. I don't have confidence in the city being able to deliver wifi better than that.

Cost. Focus. Competence.

pkaler··on Philippines to Roll Out Nationwide Free Wi-Fi Service by 2016
> The free Internet service will cost the government about 1.5 billion pesos ($32 million) a year and will be available in areas such as public schools, hospitals, airports and parks, said Monchito Ibrahim, deputy executive director of the Information and Communications Technology Office.

It's not free. It's subsidized.

This is the same debate I have with neighbors that want free wifi in the city. Sure. Do you want higher property taxes, too?

pkaler··on Becoming a contractor programmer in the UK
I agree with you in principle, but not in practice.

Outsource your bookkeeping to Xero or Bench or wherever. As a consultant, accounting is a cost centre. You should be focusing on sales, marketing, or service delivery.

As a consultant, you are now a business. Ring the freaking bell or deliver service. That's your new job.

pkaler··on The days are long but the decades are short
> I get that this is aimed at the startup crowd, but I've always felt that this sentiment is pretty privileged. We, the elite, get to cherry pick our work and do what we like. But I bet 9/10 people will never feel they have this luxury, and 8/10 will be right.

Maybe. Maybe not.

My less "book smart" friends that learned blue-collar trades like being a welder or carpenter are much happier than the ones that found white-collar data entry and sales jobs.

They have to put up with crap like unions and graveyard shifts, but in general, they are happier because they get the satisfaction of making things.

pkaler··on Nice Downtowns: How Did They Get That Way? People Made Them
In Vancouver, we call this Vancouverism: http://en.wikipedia.org/wiki/Vancouverism

It is a long-term commitment to mixed used development, walkable streets, view corridors for everyone, public parks within walking distance, and mass public transit into and out of the core.

pkaler··on Preparing App Submissions for Apple Watch
I have some experience building WatchKit Apps. I'm building out the companion App for my virtual trainer: http://impactfit.co

It's very early days with WatchKit. You can understand most of the SDK by just looking at the header file for WKInterfaceController. A Watch App is basically a Today Widget Extension.

pkaler··on Psychology of ‘no': Vancouver transit vote shows why good decisions are hard
"It presupposes that the tax increase in question would be a strict positive for the populace, and argues based on that premise."

That's because it is a good plan. Every single mayor and a vast majority of councillors are voting YES. http://transit-vote.thetyee.ca/

Almost every single organization, left and right of centre, has endorsed the plan: http://i.imgur.com/guVFQDa.jpg

It's a good plan. That's why the piece pre-supposes that point.

pkaler··on Psychology of ‘no': Vancouver transit vote shows why good decisions are hard
"I already pay..." "I don't give a rat's ass..." "I don't care about those..." "I will fend for myself..." "I also don't care about..." "My commute is already..." "I can beat transit..." "I don't care about a new bridge..."

You've done a great job of making the article's point. You've fallen for the cognitive trap that the article is describing.

You have not considered more complex effects. How does this affect your family, friends, and co-workers? How does this affect the school and parks in your neighbourhood? How does this increase population density? How does this affect property prices? How does this affect pollution levels?

pkaler··on Psychology of ‘no': Vancouver transit vote shows why good decisions are hard
The increase is 35¢ per day for the average person. Literally pennies. Literally.

Every single Metro Vancouver mayor, every newspaper (right and left of centre), every organization that matters has endorsed the plan. http://i.imgur.com/guVFQDa.jpg

It's a good plan. It's so obviously a good plan. However, voters are polling that they will vote No. Against their own best interests.

pkaler··on SwiftMonthly – Newsletter for Swift Developers
Hmm, signup seems broken to me.

For your consideration, here is the weekly Swift newsletter that I curate: http://www.swiftnews.co

pkaler··on YC Open-Source Sales Agreement
I use Contractually for this. I upload my .DOC files and invite others to view them. Plus I have a repo of contracts that I have signed. http://www.contractual.ly/features/
pkaler··on Ask HN: Is Swift ready for production yet?
I have been writing Swift for 6 months now. Almost every single day. I will be shipping an App to the App Store this month written in Swift. The language is fantastic and the future of what languages should look like Swift.

However, I do not do billable consulting work in Swift. I am twice as slow writing Swift than I am writing Objective-C. The toolchain is very brittle. The debugger is near unusable. The instruction pointer bounces all over the source file while debugging. SourceKit crashes all of the time. Multiple times an hour. And build times are about twice as slow as Objective-C builds.

Swift is fine for personal projects or small libraries. I'm not going to bill hours in Swift until another major release.

Btw, I send a weekly Swift newsletter: http://www.swiftnews.co

pkaler··on Programming languages and Frameworks to learn in 2015
Swift if you're gonna live in the iOS/OSX ecosystem. I've been writing Swift everyday for the last 4 months and I'm loving it. The compiler and toolchain are still buggy. But this is clearly the future of programming languages.

Shameless Plug, I send a weekly newsletter here: http://swiftnews.co

← PreviousPage 4 of 17Next →