Open in app

Sign In

Write

Sign In

Santosh Rajan
Santosh Rajan

1.1K Followers

Home

About

Published in Functional JavaScript

·Jul 8, 2016

Lambda Calculus in JavaScript — Part 1

This tutorial is for those who want to understand lambda calculus without having to use the original syntax. It is based in JavaScript. You need to know Arrow Functions in JavaScript. You can try the examples in the browser console, or NodeJS REPL. Lambda Calculus is a simple but powerful…

Functional Programming

4 min read

Functional Programming

4 min read


Published in Swift Programming

·Nov 7, 2014

Dynamic Layouts in Swift

All the code in this article is available as a Github Project. https://github.com/santoshrajan/LayoutSwift In Swift we use the Objective-C UIKit framework to layout components on the screen, using Storyboard, Constraints etc. In this article we will explore the possibilities of creating layouts without using Storyboards and Constraints, in Swift. Most…

4 min read

Dynamic Layouts in Swift
Dynamic Layouts in Swift

4 min read


Published in Swift Programming

·Oct 4, 2014

The Swift Compiler and the Standard Library

Slides of my talk at the first Bangalore Swift Meetup

1 min read

1 min read


Published in Swift Programming

·Jun 23, 2014

5. HTTP in Swift

GET, GETJSON, POSTJSON — Previous Posts Learn Swift by running Scripts Functional Swift More Functional Swift JSON in Swift In this post we will write some HTTP wrapper functions. The Objective is that you can use them even if you don’t understand Objective-C. The three most useful functions are HTTPGet, HTTPGetJSON, HTTPPostJSON. …

2 min read

2 min read


Published in Swift Programming

·Jun 19, 2014

4. JSON in Swift

JSONStringify and JSONParse functions — Previous Posts Learn Swift by running Scripts Functional Swift More Functional Swift In Swift you can use Objective-C classes. You can import builtin SDK frameworks/modules into Swift. Type the following and run the program. import Foundation Don’t be surprised if you get an error. (In case you got one). JSON.swift:1:8…

3 min read

3 min read


Published in Swift Programming

·Jun 16, 2014

3. More Functional Swift

Closures, Recursion — Previous Posts Learn Swift by running Scripts Functional Swift Take the each function from the previous post. Simplify it a little such that the callback takes one argument. We will not pass the Array index as argument, only the Array element. func each<T>(array: [T], callback: (T) -> Void) {…

4 min read

4 min read


Published in Swift Programming

·Jun 13, 2014

2. Functional Swift

Functional Programming in the Swift Language — This is a follow up to the previous post 1. Learn Swift by running Scripts Look at the last example from the previous article func square(x: Int) -> Int { return x * x } var num: Int? = nil if let newnum = num {…

5 min read

5 min read


Published in Swift Programming

·Jun 12, 2014

1. Learn Swift by running Scripts

Learn using command line Scripts without using Xcode UI — May be it is only me, or you are like me. I like to learn a language by writing little Scripts in that language. You can write and execute Swift Scripts using the immediate mode of the Swift language compiler. First download and install Xcode 7. The Swift interpreter is…

11 min read

11 min read


Published in Swift Programming

·Jun 6, 2014

Swift Video Tutorials

If you know of any more video tutorials please post link in comment so that I can add it. — Developing ios8 apps with swift — Stanford — iTunes U Swift Hello World Video Tutorial Swift WebView Swift iOS Tutorial — Build a Checklist App: Part One Swift iOS Tutorial — Build a Checklist App: Part Two Swift Timer Application

1 min read

1 min read


Published in Functional JavaScript

·Apr 11, 2014

Recursion

Recursion, Tail Calls, Proper Tail Calls, Examples — Recursion is the process in which a function is called by itself, either directly or indirectly. Recursion allows you to write some very elegant code. But when using recursion you need to be aware of the pitfals. Recursion example Here is a function that will call itself a given number of times. …

4 min read

4 min read

Santosh Rajan

Santosh Rajan

1.1K Followers

Founder www.geekskool.com. Programmer for over 30 years. Making better programmers is my passion. Bangalore. India. www.santoshrajan.com

Following
  • Eric Elliott

    Eric Elliott

  • Stellar Development Foundation

    Stellar Development Foundation

  • NextBigWhat

    NextBigWhat

  • hemanth.hm

    hemanth.hm

  • HasGeek

    HasGeek

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech