Apple’s New Swift Programming Language

Dearest Followers,

My apologies for being so quiet this past year, I have found it much harder to maintain a blog after college (or university for anybody not in the US). I have been hard at work coding my face off as often as possible to keep myself sharp by learning more and more languages. Just in the past 6 months, I have switched my focus to creating games - nothing special, just some 2D games created mainly for Android and iOS. Because of this, my skills in Java and Objective-C have skyrocketed exponentially in the past few months.

I have also begun to learn Apple’s new language, Swift very recently. I have to say, Swift is very intuitive and so easy to pick up. Apple released an iBook with as much information as you can handle that walks you through some tutorials on how to do things. Of course, you would most likely benefit from this book if you already know at least one language as it doesn’t teach you the concept of how to code.

Some of my favorite features of Swift:

  • Ability to return multiple values from functions/methods
  • Semicolons are optional as long as you only have one instruction per line
  • More of a C-like context
  • Functions inside of functions inside of functions
  • Interfaces with Objective-C and other core iOS/OSX features beautifully
  • Spitting out ideas are quick and easy, especially with the new “Playground” feature
  • So much more

For those of you wondering, Playground allows you to get instant results when coding in Swift (you must be using the Playground feature, which is not available inside of already existing projects).

For example, I can get instant feedback when trying to see how to concatenate strings (shown below).


Disclaimer: I do not claim to know the anatomy of Kitties and Monkeys

You can also see values of variables as they go through a loop in a graph view such as the one below.

I haven’t gone too far into Swift yet, so please check it out for yourself if you are an Apple Developer. Otherwise, you will likely have to wait until September when they release it as part of Xcode. Of course, you also must use OSX to code with Swift.

did-you-kno:

Source 
"It’s easier to make a fun game fast than it is to make a fast game fun."

Bob Nystrom - “Game Programming Patterns

did-you-kno:

Source


Lesson learned from video games [x]

(Source: officialfrenchtoast, via sierraisspunky)

jeremyjohnstone:

bill:

I usually put on MSNBC’s Morning Joe in the background as I’m doing my morning routine. I do this mostly to absorb television’s most authentic marital drama as I’m trying to down coffee (seriously reality shows, take notes, Joe and Mika have you beat), but there…

That feeling when a recursive function works the first time you run it.

That feeling when a recursive function works the first time you run it.

"

The Game Cube can be hit with a sledgehammer and work just fine. The Nintendo DS was specifically designed to be able to survive a 1.5 meter (five foot) drop onto solid concrete without breaking, and one of the company’s bigwigs wouldn’t let it go past the design phase until the design team could guarantee it could survive the drop at least 10 times. In fact, Nintendo products have such a reputation for being impossible to break through normal means that they spawned the term “Nintendium”—an all-purpose phrase given to pieces of technology that survive extreme punishment. For example, take the Gulf War Game Boy, an original Game Boy console that survived having a freaking bomb dropped on it.

Nintendo never advertises their products as being durable, they don’t brag about their Game Boys being bomb-proof or their consoles being tough enough to survive being hit by a car. They just expect their customers to be human and include features to prepare for that humanity. While other companies decide that they’re nice by including a cover to protect the screen of the $600 phone you just bought in case you drop it, Nintendo just builds a device that can survive being dropped in the first place and doesn’t make a big deal about it. Because that’s how a real company does business.

"

10 Toys That Are Replacing Cutting-Edge Technology (via strandedonthemainland)

I dropped my 3DS down a flight of concrete stairs and it just got a little scratched on the corners. (via digitallyimpaired)

(via sierraisspunky)

did-you-kno:

Source
One of the many easter eggs found on Google’s I/O 2014 website. I am a sucker for Doge jokes.

One of the many easter eggs found on Google’s I/O 2014 website. I am a sucker for Doge jokes.

Just a little random fact of the day!

In case you missed it, Google released their beta for Android Wear, an interface between (Android) phones and (Android powered) smart watches. They come in Round and Square shapes.

To get started with testing a (functioning!) emulator, go here. The emulator links with your Android device and displays incoming notifications. I’ve only tested it with a text (shown above) so far, but I’ve seen some other examples that are gorgeous.

First Image: Notification on the Android Wear Emulator
Second Image: Showing the “Open” Button
Third Image: The test text showing on my actual phone.

ilovecharts:

Solving for pi on Pi Day

ilovecharts:

Solving for pi on Pi Day

(via sierraisspunky)

JavaScript is cool! Created a little pixelation tool just to see how it’s done.

For those who are curious, here’s the original image…

JavaScript is cool! Created a little pixelation tool just to see how it’s done.

For those who are curious, here’s the original image…Original Image

Koch Snowflake

This little beauty is what I spent my entire day on! As someone who is not amazing at math, this is proof that practice and diligence is all it takes to get something awesome done!

Check it out here

JavaScript Source Code

UPDATE - Added some options so that you can play around with it yourself!