HN user

CodeWithCoffee

237 karma

Programming Thomas, iOS and Android developer

http://programmingthomas.com

Posts1
Comments40
View on HN
Harper Lee has died 10 years ago

A quick check of the stories on the front page suggests this is the case; editorial content and news covering yesterday's events is all /19 (today) whereas today's news and online content (for tomorrow's paper) is all /20 (tomorrow).

Their about page lists the licenses for several native iOS libraries (AFNetworking, etc) which suggests it is mostly native.

Over the years it seems there have been a fair few 'Hacker News for X' (see https://hn.algolia.com/#!/story/forever/prefix/0/hacker%20ne...). Presumably each time people implement the whole site from scratch (users, commenting, ranking, etc). Have there ever been any open-source attempts at creating a generic Hacker News style site that people could self host for specific topics? The only thing that I can think of is self-hosting your own copy of reddit.

Also you can use smart pointers to do automatic garbage collection.

Not quite. Smart pointers do automatic reference counting, which doesn't use a garbage collector.

Smashing Swift 12 years ago

Objective-C uses Automatic Reference Counting (Garbage Collection has been deprecated - and ARC works a lot better than the GC implementation), and as Swift had to uses Objective-C's memory model it must also use ARC.

Furthermore, Apple did bring up a slide during the Platform State of the Uniform (slide 56 in the PDF) saying source compatibility wouldn't be guaranteed (but that converters would be provided) because the language will evolve. I can't imagine that they'll introduce dramatic changes that will break code generated by PaintCode, but it would be a pain if you have to completely regenerate your all rendering code with each update to Xcode/Swift.

Apple also uses a similar strategy with the iPhone. The iPhone 4 and 5 both made major form changes (retina display and screen shape) whereas the 4S and 5S were focussed on refinement (faster CPU, 64-bit CPU respectively). It has also been noted (possibly on the Accidental Tech Podcast, or somewhere similar) that a 'tick' year for the phone tends to be a 'tock' year for iOS and vice versa; iOS 5 and iOS 7 (released with the 4S and 5S respectively) were bigger changes than iOS 4 and 6.

A lot of old articles (some as early as 2011) have been popping up in the popular list on BBC News. In the past this had been due to it suddenly being shared on social networks although I can recall one occasion when it displayed a list of the most popular articles from exactly one month before.

To answer other commenter's questions about the color, my perception is that it has to be the same color as the page background. This gives the illusion that the image is behind a 'window' in the page that is covered by the bars. Then when something moves from 'behind' the bars to 'in front' of them it gives the illusion of depth.

Although nothing was actually shown in the video - it dismissed several seconds after 'Send' was tapped. With this design, where the whole message thread is shown, I think it would be better to have a 'Done' button up at the top, in case you want to reread messages or send a second reply.

The majority of users will still feel like they are switching apps, because the messages app is shown here as taking over the entire screen.

A better solution would be to have something like the existing Facebook or Twitter dialogs for posting (basically a big UIAlertView/modal dialog with a text field as its primary view) for entering your reply because you can still remain within your current app.

I have to agree - if anything there is a greater move away from JavaScript towards native platforms, although I think that C# via Unity and Xamarin.iOS/Xamarin.Android is gaining significant popularity. C++ does technically work on both iOS and Android, but I think its use outside of games is fairly small - Google has bold text on the NDK download page saying it won't be useful for many applications and Xcode's support isn't anywhere near as good as its support for Objective-C.

I think that the primary reason that games are more profitable on iOS is because a lot of games are using the free-to-play + in app purchase model and there are a lot more iTunes accounts with credit cards linked that can make purchases compared to Google Play accounts, so Android games tend to rely more heavily on ads.

OpenGL != OpenGL ES != WebGL

Whilst technically true, WebGL is designed to have API compatibility with OpenGL ES (2), which in turn is based off of OpenGL (2). OpenGL ES 3 and WebGL 2 are beginning to emerge and are based off of OpenGL 3. In my experience shaders that work with WebGL will also work with OpenGL ES 2 and OpenGL 2.1. Equivalent versions tend to use the same concepts. On the other hand, code written for desktop (v3+) won't work on mobile, because the desktop version is one version ahead of mobile (and I imagind that it will be for several more versions).