KillerPHP Blog

iOS

My new site swiftplayground.org

June 18, 2014

swift

Hi,

It took us a week but my site on Apple’s Swift programming language has officially launched!

swiftplayground.org

I decided that (once again) I had to walk my talk and explore a new programming language. Swift is a good one to learn for several reasons:

  1. Swift is an ultra modern language. It’s always good to be clued into the cutting edge.
  2. Swift will open up the doors to speedy iOS programming. There’s good money in them Apples!
  3. It looks like a lot of fun!

So there you have it PHP nerds. If you are looking to stimulate your programmatic brain or maybe expand the type of (programming) work you can do, Swift is something worth learning.

Stefan Mischook
killerPHP.com

read more


Apple's new programming language Swift just Killed Objective C

June 3, 2014

swift

Hi,

I just watched the presentation on Apple’s new programming language: Swift. This means the end for Objective C and it fundamentally changes the world of iOS programming.

Why?

It is much easier to learn and much easier to work with and so we will see it used by a lot more programmers.

About the Swift Language itself:

It looks like a modern scripting language that shares similarities to Python and other modern nimble languages. I just took a quick look at some Swift code and it is indeed much easier to learn than Objective C.

Take a look at this:

let label = "The width is "
let width = 94

For the constant (created with the keyword ‘let’) you don’t necessarily need to declare the type of data that your constant is holding (if you will) Swift is smart enough (many times) to detect the data type automatically. For example:
let width = 94

… It seems pretty clear the ’94’ above is an int and not a string.

When there are situations where the initial value of your constant does not provide enough information with regards to its’ type, then you can specify it’s value like so:

let explicitDouble: Double = 70

Casting Types with Swift:

Since it seems Swift is NOT loosely typed like PHP and JavaScript, you need to explicitly convert data types. So for example:

let label = "The width is "
let width = 94
let widthLabel = label + String(width)

In the above code, I had to convert my ‘width’ constant from an integer (I’m sure Swift set ‘width’ to int when we declared the constant) .. to a string using: String(width)

Anyway, I just started looking at this language 20 minutes ago and I have a lot to learn! But, from what I’ve seen so far, and from what I’ve seen with the new Xcode tools and Swift Playground (which gives you live feedback of your code) I think this could be a great language to learn and teach with.

More to come I think.

Stefan Mischook
killerPHP.com

read more


iOS or Android Programming?

February 4, 2013

Hi,

So you’re a young nerd programmer who is trying to decide which direction to go in when it comes to programming for mobile devices, should you learn iOS development or Android?

Bottom line: Learn HTML5 and JavaScript development.

Some details:

At this time, Android is by far the most popular mobile OS with about 70% of the market share, whereas iOS accounts for about 20%. But, I was told recently that iOS is much more common online – it seems many Android phone users don’t get a data plan?

(more…)

read more


iOS Programming is going to go Niche … then Ultra Niche!

January 14, 2013


Hi,

One of the things that I see time and time again, is a (once hot) technology … fall into a niche.

This time, I think it is native iOS programming that will slowly fade away. Why?

Here are my top five reason why native iOS programming will become niche:

  1. iPhone penetration is falling – Android is now king of mobile.
  2. HTML5 and CSS3 based apps can can do just about everything native iOS apps can.
  3. HTML5, CSS3 and JavaScript are easier to learn than objective C.
  4. HTML5 and CSS3 apps are cross platform – iOS apps are not.
  5. There are a lot of JavaScript programmers out there ready to roll – no need to learn another language!

So think about it from a clients perspective; if you can build your application with HTML5, CSS3 and JavaScript and have your app work on Android, iOS, OSX, Windows 8 etc … why would you invest in an app that runs only on iOS?

… Most businesses wont.

Stefan Mischook
killerPHP.com

read more


Windows is quickly getting replaced by iOS and Android on the Web

December 9, 2011

As a web developer or web designer, you have to mindful of who your audience is when you are putting up a new web site or web application.

Back in the 1990’s when I started, you had to consider which web browser but you were pretty safe to assume that people would be visiting your website on a desktop computer and 95% of the time, it was Windows.

… Things have changed and will continue to change.

Check out what a well known hedge fund analyst is saying – Roger McNamee of Elevation Partners told CNBC:

The explosion of mobile platforms, particularly iOS and Android, means that Windows will account for less than 50% of all Internet-connected devices in 2011.

Now that doesn’t mean 50% of the people visiting your site will be using iOS or Android … at least not yet. But it does speak of a powerful trend that will not stop. That trend is toward smartphones, tablets and the death of the desktop. Since Windows on the smartphone and tablet is a non-starter, I think as a web application developers, we have to see Android and iOS as being the future.

What does that mean for PHP developers?

I think PHP programmers are going to have understand the new front end … the mobile device. As such, PHP’rs are really going to have to get into the client-side technologies because they have an impact how we write PHP code. I’m thinking:

– HTML 5
– CSS 3
– Javascript
– JSON
– Jquery

… You better understand how these technologies work with PHP if you want a job (or contracts) as a PHP programmer.

Stefan Mischook
www.killersites.com

read more


Android Market Share Doubles, iOS Drops In Q3

November 15, 2011

Google Android logo

Hey Nerds!

This just out: Android Market Share Doubles, iOS Drops In Q3

Android’s share of the worldwide smartphone market was 52.3% for Q3, double what it was a year ago, according to fresh data from Gartner. Apple’s iOS dropped on a year over year basis to 15% market share for Q3.

The culprit for Apple’s drop? The iPhone 4, of course. People were waiting for the iPhone 5, or as it turned out, the iPhone 4S.

Read more: http://www.businessinsider.com/android-market-share-2011-11#ixzz1dmzpfS6Y

I’m no Android fan-boy and I happen to like Apple products a lot – I think the the Mac Air is the greatest computer ever made. But as a practical web designer and web programmer, you have to be mindful of what’s going on in the real world. It is clear that Android is and will be the dominate player.

So web designers and developers (programmers) have to learn HTML 5 and CSS 3 since they both run fine on Android and iOS.

Stefan Mischook
www.killersites.com

read more