Loading content…
Loading…
Transcript

16 Programming Languages

Why?

Why?

  • New possibilities
  • New concepts
  • It is fun

What?

Will skip

Will cover

What?

  • Classes
  • Advanced structures
  • Advanced features
  • Math
  • Strings
  • Arrays
  • Conditionals
  • Loops
  • Functions

How?

How?

https://bit.ly/2G1hp5n

(because I am Batman)

Problem

Joker hid a bomb

And Batman has to find it inside this building.

At the start of the game we get:

  • Building size (W & H)
  • Turns until BOOM! (N)
  • Batman coordinates (x & y)

Help?

Alfred has a gadget

Every turn it tells Batman general direction of the bomb.

Then Batman can jump to any window of the building using his grappling hook (output x and y).

  • U (Up)
  • UR (Up-Right)
  • R (Right)
  • DR (Down-Right)
  • D (Down)
  • DL (Down-Left)
  • L (Left)
  • UL (Up-Left)

Solution

Solution

Binary search

Demo time!

Let's start with C++

Let's Batman!

https://github.com/Laruxo/16-languages

Traditional Languages

Traditional

C

C

C#

C#

Java

Java

Modern Languages

Modern

Kotlin

Kotlin

Dart

Dart

JavaScript

JavaScript

Swift

Swift

Quirky Languages

Quirky

Go

Go

PHP

PHP

Python

Python

Rust

Rust

Functional Languages

Functional

F#

F#

OCaml

OCaml

Haskell

Haskell

Clojure

Clojure