Working with Different Languages

"Elegance is not a dispensable luxury but a factor that decides between success and failure"
– Edsger Dijkstra

In this chapter, we will explore Azure Function with other languages. Up to now we have seen examples of Azure Function in JavaScript.

We can write Azure Functions in many languages such as C#, Python, F#, PHP, and JavaScript.

In this chapter, we will write Azure Functions in the following languages:

  • The Python Function App
  • The PHP Function App

Python as an object-based subset is roughly equivalent to JavaScript. Like JavaScript, Python supports a programming style that uses simple functions and variables without engaging in class definitions. Python, on the other hand, supports writing much larger programs and better code reuse through a true object-oriented programming style, where classes and inheritance play an important role. Python has built-in list and dictionary data structures, which can be used to construct fast runtime data structures.

PHP is open source. It is a server-side scripting language. PHP has both procedure programming language and OOP language features. It uses C-like syntax, so for those who are familiar with C, it's very easy for them to pick up and create website scripts. It is relatively faster since it mostly uses system resources.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.245.167