[ModernFamily by BabyShark Ultd] A pentalingual solution!

Why settle for one programming language when you can have five? Using one language for all devices might actually be a bit tricky, so we have decided to use optimized languages for several of our features. Let’s go through them!

Python

Our favourite language is of course python. The simple yet beautiful language that is possible to use in so many ways! In our solution it is used on the raspberry pi to read sensor data from the arduino and push it to the cloud.

A sample of our python code for reading sensor data

C++

Moving on we have C++ on our Arduinos. This is the language we use to write the sketches that read data from our many, many sensors!

Sample of arduino code that reads from two sensors

Go!

It may sound easy to simply “Go” but do not let the name of the language fool you. Go is the language that we use for our cloud function that loads data from pub/sub into our Cloud SQL database.

Sample of Go code that reads from pub/sub

Swift

Programming an iOS application without using swift is just plain wrong, so of course we use swift. This is used for the design of the app and some of the logic in getting the data from our App engine API.

Swift sample

Objective-C

But why settle for Swift in an application? We like to use some objective-C as well, just to mix it up a bit! We use objective-C to convert our temperature from celsius to fahrenheit, to appeal to our american users as well as the european.

Objective C sample converting temperature values

Applying for: Babelfish

Leave a Reply

Your e-mail address will not be published. Required fields are marked *