All posts tagged “Language”

Studio Visit: Lex Pott: The Dutch designer on using extensive research and experimentation to create a new language from archetypical materials

Studio Visit: Lex Pott

Since graduating cum laude in 2009 from the prestigious Design Academy Eindhoven, young Dutch designer Lex Pott has been very busy—first with working for Hella Jongerius and …

Continue Reading…

Cool Hunting

12 Tutorials For Getting Started With Swift; Apple’s New Programming Language

If you are planning to build your career in iOS development, then you must know about Swift which is the Apples new programming language and has become so much popular among the programmers. So, if you really want to stay in the developing game, then invest some time in learning this new programming language as it has a good scope.

The best way to learn on internet is through tutorials. Therefore, we have compiled some free and easy Swift tutorials for you to help you learn Apple’s new programming language. Here is the complete list. Enjoy!

Beginner’s Guide to Swift

An Absolute Beginner’s Guide to Swift.

Swift Tutorial: A Quick Start

This Swift tutorial will take around 15 minutes and will give you a quick tour of the Swift language, including variables, control flow, classes, best practices, and more.

Developing iOS8 Apps Using Swift

This article is part of the create iOS8 Applications with Swift tutorial series.

The Swift Programming Language

This book is available for download with iBooks on your Mac or iOS device, and with iTunes on your computer. Books can be read with iBooks on your Mac or iOS device.

Learn Swift: Build Your First iOS Game

This tutorial will introduce you to the basics of Swift before acquainting you with some of its more advanced features. After completing this tutorial you will be comfortable enough to write Swift code on your own. This tutorial also covers the fundamentals of SpriteKit, Apple’s 2D game engine API.

Swift Cheat Sheet

A short guide to using Apple’s new programming language, Swift.

Swift Tutorial – Developing iOS 8 Apps

IOS8 Swift Cheat Sheet

iOS8 Swift Cheat Sheet and Quick Reference Guide for iPhone Developers. Swift is the new programming language used in developing applications for Mac OS and iOS, introduced by Apple in 2014. Swift is not, at present a replacement for Objective-C.

Make your own IOS Mapkit Application

In today’s Swift tutorial, we will explore MapKit. MapKit is a nice little framework developed by Apple. We will learn to integrate this MapKit with the Google Map javascript api and thus develop a complete application using Swift.

Swift Tutorial for Beginners

So as you all may know, Apple just just announced Swift for iOS 8 (not Taylor Swift), which is kinda exciting since Swift looks so easy to learn! In this part of the tutorial I will only cover some simple aspects of the new way of coding iOS.

An Introduction to Swift

Introduction to Swift for Non Programmers

This course introduces you to the brand new language from Apple that is easy to learn, even for beginners.

Mouches Pour Bal: Reviving the seductive language of 18th century artificial moles

Mouches Pour Bal

by Natasha Tauber The nearly lost courtesan art of clandestine communication, through the application of artificial moles, might just be experiencing a modest revival. Literally translated as “Flies for Balls,” Mouches Pour Bal are self-adhesive shapes…

Continue Reading…

Cool Hunting

15 Free Sources to Learn Swift Programming Language

If you are not yet aware of this, Apple has introduced a new programming language called Swift in this year’s WWDC, alongside the new Mac OS X Yosemite. Swift aims to simplify the codes used in Apple platforms iOS and OS X. Despite the new name, Swift is compatible with the roots of predecessors like C, Objective-C and Cocoa Touch framework.

If you have been programming with Objective-C, learning Swift would be a breeze as it has inherited a number of syntax that you may already have been familiar with. And if learning Swift is in your to-do list but you haven’t started, here are a few free sources that is going to make things a lot easier for you.

1. The Swift Programming Language

Available for download for Mac OS and iOS, the Swift Programming Language is available via iBooks. It is Apple’s very own Swift reference, and it covers the essentials, concepts and workflow with code examples. An official guide like this book is always the best place to start with something new.

[Check it out]

2. Introduction to Swift

Not a fan of eBooks? Not a problem. How about a video course instead? Apple has also released a video playlist on Youtube containing short courses on Swift, covering the introduction and a number of its syntax such as Constant and Variables, Integers, and Arithmetic Operations.

[Check it out]

3. The Swift Blog

Here’s a third source on Swift by Apple, a dedicated blog called The Swift Blog. The blog covers tips, insights, and examples on Swift utilization. Despite only having a few posts published at the time of writing, this is still the best source to stay up-to-date with Swift.

[Check it out]

4. Absolute Beginner’s Guide to Swift

Many developers have also put their hands on Swift and shared their findings on their blogs. TeamTreeHouse in their post, An Absolute Beginner’s Guide to Swift, summarized the essentials for beginners; what Swift is, the prerequisite tools, and a basic run-through of the Swift syntax.

[Check it out]

5. Introduction to Swift for Non-Programmers

Swift is designed to be as easy to understand as possible so that non-programmers or entry-level users will be able to pick it up quickly. This free course from Udemy, titled Introduction to Swift for Non-Programmers, consists of 8 videos that will walk you through the fundamentals even without prior programming experience.

[Check it out]

6. SoSoSwift

SoSoSwift is a collection of sources on where to learn Swift. Here you can find videos, articles, tutorials, code examples, and libraries to build Apps for iOS and OS X, with Swift. Do you have suggestions of sources or tutorials to be included in the collection? You can send a request or submit the link to the site to have it listed.

[Check it out]

7. LearnSwift

LearnSwift is similar to SoSoSwift. It is a collection of sources for tutorials, video screencasts, and libraries for Swift. LearnSwift laid out the sources in three sections: Beginner, Intermediate, and Advanced. Pick the level you are most confident in and start learning Swift today.

[Check it out]

8. SwiftLang

SwiftLang is another good place to dive into Swift. SwiftLift has put a pile of references from various sources together. SwiftLang also has a forum where we can ask for help or help others with regards to Swift programming.

[Check it out]

9. Swift Cheat Sheet

Swift consists of a lot of syntax that would be hard to digest all at once. So, here is a Swift cheat sheet for quick reference, composed by Ray Wenderlich. It summarizes a number of Swift syntax, all in one page.

[Check it out]

10. Build Your First App with Swift

Now that you have run through the basics, let’s start building your first app. What about creating a game? This eBook, Learn Swift Build Your First iOS Game, will teach you the steps required to build a game named Swiftris, which mimics the popular classic game, Tetris. The book is available via email subscription.

[Check it out]

11. Building a Simple OS X Application With Swift

In this 10 minute video screencast, Jeannot Muller shows you how easy it is to use Swift. The App created is very simple, as it comprises of only input fields and a button.

12. Drawing With Swift in Playgrounds

One significant feature Apple brought to Swift is the Playground. Within the Playground, we can immediately see how our codes act and turn out, immediately. Join Nate Murray in this video to see how to "play" in the Playground.

13. Creating a To-do List App using Swift

There are plenty of to-do list apps in the App Store. Many of them bring a set of great features with a nice user interface design. But, if you feel like creating your own to-do list App, here is a video screencast to get you started.

14. Developing iOS 8 Apps with Swift

With iOS8 on its way, you’ll want to get yourself ready to build that app. Jameson Quave in his posts series – Part 1 and Part 2 – will teach you how to use Swift to build an App for iOS 8.

15. Swift on StackOverflow

Having bugs in your App is unavoidable. So, in case you have bug trouble, head over to this OverflowStack for Swift to get help from other developers. You are also likely to come across some threads where you can pick up a couple of tips and tricks on how to use Swift.

[Check it out]

Free Swift Tutorials for Apple’s New Programming Language

You’re reading Free Swift Tutorials for Apple’s New Programming Language, originally posted on Designmodo. If you’ve enjoyed this post, be sure to follow on Twitter, Facebook, Google+!

Free Swift Tutorials: Apple's Programming Language

Unveiled only a month ago, the new programming language Swift that was created by Apple for iOS developers shook up Xcode lovers a bit. It aims to provide programmers with an alternative that slowly should replace Objective-C, which is not so resilient against erroneous code. Swift includes slightly revised basic Objective-C features and new advanced […]

Advertise here with BSA


Link About It: This Week’s Picks : Futuristic workwear in Milan, London’s new Serpentine Pavilion, electronic sign language and more in our weekly look at the web

Link About It: This Week's Picks

1. Painting Mutant Bugs Cornelia Hesse-Honegger is a researcher who is attracted to bugs—especially the malformed and mutated kind. Looking at the insects through a microscope, she takes days or even months to paint their texture, color and measurements as precisely as possible….

Continue Reading…

Cool Hunting

Russian law orders bloggers to register, restricts pornography and obscene language

A new Russian law, adopted by the Duma on Tuesday, is placing serious restrictions on the nation’s bloggers. Any online writer with more than 3000 visitors a day is required to declare their family name, initials and email address, and is then officially considered an “internet user called blogger.” Once registered, they are subject to the same regulations as the mass media, including provisions against libel, pornography and obscene language. An initial violation will result in a fine; second violations will result in a website being suspended for a month.

Continue reading…

The Verge – All Posts

The Art Lover’s Guide to Japanese Museums: The first English language guide of its kind to be published in 30 years

The Art Lover's Guide to Japanese Museums

Across 176 full-color pages, author and historian Sophie Richard delivers comprehensive insight on over 50 art museums and galleries throughout Japan, in her first book “The Art Lover’s Guide to Japanese Museums.” Filled with practical knowledge,…

Continue Reading…

Cool Hunting

Using Kit Language in Windows and Linux

In the previous post, we have discussed about Kit, a very simple HTML templating language. If you had been following this, you should find that the GUI application which is capable of compiling Kit into browser-compliant HTML format is Codekit.

Unfortunately, Codekit, is only available for OS X, there is currently no similar application for Windows and Linux that support Kit.

If you are working in Windows and Linux machine, yet would like to use Kit, you can use Grunt as an alternative. Grunt has a massive collection of plugins, contributed by generous developers around the world — this includes the plugin to compile Kit language, grunt-codekit. Let’s check it out.

Note: Even though the following tip is primarily aimed to show Windows and Linux users an alternative to Codekit, OS X user can also use it.

Getting Started

First, we will create a directory for our project. Let’s launch Terminal or Command Prompt, and type the following command lines:

 mkdir kit-grunt cd kit-grunt 

We have created a new directory named kit-grunt; the second line lets us enter it. But if you have previously created a project directory, you may skip the first line, and immediately navigate to your own directory in Terminal with the cd command.

Within the project directory, we create a new folder named kit where we will put the .kit files. Type this command below:

 mkdir kit 

We then also install both Grunt and the plugin, with these commands. Note that you have to install Node.js in your system first.

 npm install grunt --save-dev npm install grunt-codekit --save-dev 

Once the process is completed you will find a new folder, node_modules, containing the modules that we have installed.


Create a new file named Gruntfile.js in the project directory, and put the following code in. This code is a Grunt Wrapper where we will register, configure and execute Grunt task. If you are using Sublime Text, you can easily insert this code using the Grunt Snippets.

 module.exports = function(grunt) { grunt.initConfig({ }); } 

Then we define the codekit task within the grunt.initConfig, like so.

 module.exports = function(grunt) { grunt.initConfig({ codekit: { your_target: { files : { 'index.html' : 'kit/index.kit', } }, }, }); } 

This configuration will compile index.kit into index.html. To try this out, we can add this in index.kit.

 <!-- @var = This is the variable --> <p><!-- @var --></p> 

…and run grunt codekit in Terminal.

The index.html is successfully generated and as you can see below, the variable’s value is also successfully applied within the paragraph tag.

File Inclusion

As we have mentioned in our previous post, we can include/import files into a Kit file. Given that we have header.kit, sidebar.kit, and footer.kit (I assume that we have added corresponding content within these files), we can include them into index.kit, like so.

 <!-- @include inc/header.kit --> <div class="container"> <div class="header row"> <h1>This is the header</h1> </div> <div class="row"> <div class="col-md-8"> <p>This is the content</p> </div> <!-- @include inc/sidebar.kit --> </div> </div> <!-- @include inc/footer.kit --> 

Let’s run the grunt codekit command again in Terminal. And here we go! The content from those files are put together into index.html. Nice!


Grunt is a great alternative to many web development tools, including compiling Kit file. I hope this tip is useful, particularly for Windows and Linux users who want to get their hands on Kit language.

Hack – The Language Behind Facebook

Hack is the new language behind Facebook, which is still the most popular social network to date. It’s a web programming language invented and (recently) open-sourced by Facebook. The company claims that the language helps programmers to code programs faster and avoid errors early and easily.

(Image credit:

Hack is a language used to build complex websites at great speeds while still ensuring that the site’s source code is well organized and comparatively free of errors. Its "safety net" features allow programmers to write safer code which reduces the chances of later stepping into troubles.

In this post, we’ll look into Hack and some of its features which are arguably better than PHP, currently the most popular web programming language driving most websites. Hack is built to run on the Facebook’s HHVM virtual machine, which is known to deliver superior performance.

The Dynamics Of A Problem

Back in 2003, when Mark Zuckerberg started building Facebook, he used a web development language called "PHP". It was the most popular and (relatively) easy programming language at the time to create dynamic websites, with great speed.

PHP is a dynamically-typed language, which means you need not spend time in defining variables and once you finish your code, you can almost run it instantly. This eases the coding and decreases the development time and effort, but heavily increases the chances of getting into errors, which only shows its ugly head at the time of execution.

Can’t Afford To Have Mistakes

This further intensifies the problem as you need to run the code in order to find errors (unlike statically-typed languages). Thee errors continue to grow with the growth of the codebase. Small projects may not face a big issue, but with a large codebase with 5 errors per thousand-line code potentially carrying up to 5000 errors – that’s a lot to debug.

The situation worsens with Cloud-scale companies like Facebook when thousands of programmers write and ship new code every day. They also can’t afford to have errors in their code, which may lead to user data being compromised. So what is there to do?

Reinventing The Wheel

Since Facebook’s front-end was mostly written in PHP, switching to a new language would mean having to migrate the whole site code, which is not just impractical but also not feasible. Plus, if the programmers are already used to PHP, this calls for a massive reboot in human resource.

Luckily there is a better solution – they re-invented a language, derived from PHP, which can co-exist with this traditional language.

"Thus, Hack was born. We believe that it offers the best of both dynamically typed and statically typed languages, and that it will be valuable to projects of all sizes," it was announced on Facebook’s Engineering blog.

Hack Is Simply Better PHP

Essentially, Hack is "better PHP". Derived from PHP, it inter-operates seamlessly with PHP for faster and safer web development. You can have a project containing PHP and Hack code side-by-side and still, the project runs as required. This is the key feature that is going to attract PHP developers to try Hack. And possibly encourage them to gradually migrate their PHP code to Hack.

Hack primarily adds to PHP the power of static typing along with many more features found in other modern programming languages. It’s a language developed for HHVM (HipHop Virtual Machine), an open-source runtime platform built by Facebook to execute programs written in Hack and PHP.

The Hack and HHVM combo is targeting one of the foundations of modern web: rapid app development. It’s never been easy to test and debug web applications, but Hack is changing that by allowing programmers to detect errors early on without compromising the development cycle of PHP. The conclusion from several tech sites has been that Hack is good news.

Advantages Of Hack

The greatest enhancement that Hack provides over PHP is the removal of unnecessary and error-prone features. Hack adds safety nets (without slowing you down) so you make less errors. It also adds various features found in modern programming languages which makes writing code in Hack enjoyable.

Hack is both a dynamically typed and statically typed web development language, thus bringing the best of both typed languages. This is actually called "gradual typing," a type system which allows variables to be typed either at compile-time or at run-time. It can run your code without compiling – you can edit a file and reload the webpage and see the changes instantly.

Other Features

Hack brings in features such as collections, lambda expressions, and run-time enforcement of return types and parameter types, addition of generics, asynchronous programming, etc.

These new features are non-obstructive, thus the code written using Hack will still look and feel like the traditional dynamic code created using PHP. Moreover, engineers will better understand the code as static typing acts a lot like documentation.

What’s Not So Advantageous

The greatest disadvantage of Hack is that it has abandoned the features that make PHP a simpler language for beginners. You cannot embed the HTML directly in your source code, and you can’t have a code written outside of a function or class. But this is a relatively small problem. While it may deter beginners, PHP programmers would not find it hard to adapt to Hack and will probably deem the advantages of Hack convincing enough for adoption.

Facebook has already deployed Hack on its website, which serves more than 1.2 billion people in the world. "We have deployed Hack at Facebook and it has been a great success. Over the last year, we have migrated nearly our entire PHP codebase to Hack," stated the article on the Facebook Engineering blog.

The Future

It’s going to be interesting to see how the PHP community at large will adopt this new language. We hope to see Hack supported on other PHP virtual machines and parsers, which will simplify code migration.

An open source project also means it’s not dependent on its original creators for new features and bug corrections. We may encounter some awesome feature in the future suggested or added by the open source developers community to this new language.

Moreover, Facebook is also working to improve Hack. They did create the language after all. "This is just the first step, and we are dedicated to continuing to evolve this software to make development even easier for both our own engineers and the broader community," as posted on the Facebook Engineering blog.

What do you think about Hack? Do you think Hack is better than PHP? Can it replace PHP? Please post your answers through comments.