HNHacker News
TopNewBestAskShowJobs

CodeWithCoffee

237 karma · joined August 14, 2013

Programming Thomas, iOS and Android developer

http://programmingthomas.com

submissionscomments
CodeWithCoffee··on Xamarin now free in Visual Studio, and Xamarin SDK being open-sourced
You can download Xamarin Studio for OS X or Visual Studio with Xamarin here https://www.xamarin.com/download
CodeWithCoffee··on Harper Lee has died
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).
CodeWithCoffee··on BASIC in C++
> Only numeric variables are supported (no strings, no matrices)

Basic.hpp defines LET as:

    #define LET double [1]
Perhaps this would allow for a broader range of types, seen as C++11 is being used:

    #define LET auto
[1]: https://github.com/rollbear/basicpp/blob/master/basic.hpp#L8...
CodeWithCoffee··on How Math's Most Famous Proof Nearly Broke
Link to the documentary for those in the UK: http://www.bbc.co.uk/iplayer/episode/b0074rxx/horizon-199519...
CodeWithCoffee··on John Carmack: “I just dumped the C++ server I wrote for a new one in Racket”
App Store link, for anyone that's interested: https://itunes.apple.com/gb/app/lisping/id512138518?mt=8
CodeWithCoffee··on Show HN: Timeline.com
Their about page lists the licenses for several native iOS libraries (AFNetworking, etc) which suggests it is mostly native.
CodeWithCoffee··on The Hacker News of Cryptocurrency
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.
CodeWithCoffee··on Show HN: Black Friday deals for developers
OP: There's a typo in the title for ReadKit:

> ReadKit RRS reader

(should read RSS).

CodeWithCoffee··on WatchKit
What's more, you can't get the current properties of the interface objects (e.g. the position on screen, or text content). You can only write to them: https://developer.apple.com/library/prerelease/ios/documenta....
CodeWithCoffee··on Functional Programming in C++
> 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.

CodeWithCoffee··on Material Design Icons
For iOS developers that want to use the new PDF image catalogs in Xcode 6 (which automatically generate the @1x, @2x and @3x images so you don't have to add them individually) I have forked the repository and added them at https://github.com/programmingthomas/material-design-icons.
CodeWithCoffee··on Swift Blog
Steve Jobs blogged on Apple's main site https://www.apple.com/hotnews/, including the famous Thoughts on Flash article https://www.apple.com/hotnews/thoughts-on-flash/.
CodeWithCoffee··on Smashing Swift
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.
CodeWithCoffee··on Swift is coming to PaintCode
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.
CodeWithCoffee··on Dr. Dre Appears to Confirm Apple-Beats Deal in Facebook Video
The old Apple headphones were average (for their price), but overall the newer EarPods are much, much better.
CodeWithCoffee··on Apple Worldwide Developers Conference Kicks Off June 2
This is a lot better than the conference selling out in 2 minutes like last year.
CodeWithCoffee··on Apple's Cyclone Microarchitecture Detailed
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.
CodeWithCoffee··on Raspberry Pi – a rapturous reception
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.
CodeWithCoffee··on Reverse-Engineering Xkcd's 'Frequency'
Or one participant may not be European.
CodeWithCoffee··on Microsoft cries out to UK government against open source
These standards don't just cover 'word documents', they also cover other Office types for spreadsheets and presentations. HTML+CSS is a terrible idea for a spreadsheet standard.
CodeWithCoffee··on 3D GIFs Created with a Simple Visual Effect
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.
CodeWithCoffee··on The number two paid app on iOS is based on a $10 GameSalad template
This article summarise one of the techniques that has been used recently: http://www.tuaw.com/2014/01/10/the-strange-shady-world-of-1-....
CodeWithCoffee··on Wikipedia predicts 2014
The article linked suggesting that Moore's law will become redundant this year (http://en.wikipedia.org/wiki/2014#cite_note-2) was published in 2009. Is this still thought to be true?
CodeWithCoffee··on IOS 8 Concept for Interactive Notifications
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.
CodeWithCoffee··on IOS 8 Concept for Interactive Notifications
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.

CodeWithCoffee··on T * sin (t) ≈ Christmas tree
It seems awfully appropriate 'starring' this repository.
CodeWithCoffee··on JavaScript becoming the lingua franca for mobile development
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.
CodeWithCoffee··on Should You Build for iOS or Android? Discover What 7 Mobile App Experts Say
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.
CodeWithCoffee··on Should You Build for iOS or Android? Discover What 7 Mobile App Experts Say
For context, what was your app? Were you aware that you would be pushing the App Store rules?
CodeWithCoffee··on Why you should use OpenGL and not DirectX
> 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).

Page 1 of 2Next →