<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Programming Languages on Ghafoor's Personal Blog</title><link>http://ghafoorsblog.com/categories/programming-languages/</link><description>Recent content in Programming Languages on Ghafoor's Personal Blog</description><generator>Hugo</generator><language>en</language><managingEditor>noreply@example.com (AG Sayyed)</managingEditor><webMaster>noreply@example.com (AG Sayyed)</webMaster><copyright>Copyright © 2024-2026 AG Sayyed. All Rights Reserved.</copyright><lastBuildDate>Mon, 18 May 2026 04:43:48 +0100</lastBuildDate><atom:link href="http://ghafoorsblog.com/categories/programming-languages/index.xml" rel="self" type="application/rss+xml"/><item><title>What and why in JS</title><link>http://ghafoorsblog.com/posts/js/09-what-and-why/</link><pubDate>Wed, 03 May 2017 23:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/09-what-and-why/</guid><description>&lt;h2 id="10-since-js-has-no-interfaces-how-it-is-implemented"&gt;1.0 Since JS has no interfaces how it is implemented&lt;/h2&gt;
&lt;p&gt;To understand what interface do and what is required one needs to have some object oriented programming knowledge. It is similar to class but can not be instantiated. It only exposed methods that interested object or class can implement the way they want. When a class implements an interface it is said to inherits the abstract functions, along with any other members defined in interface. e.g, any constant , methods , static methods and any nested types. NOte&amp;gt; Abstract methods do not have any code that are only blue prints for those who inherit them so provide the body by writing the code.&lt;/p&gt;</description></item><item><title>JavaScript Modules</title><link>http://ghafoorsblog.com/posts/js/08-modules/</link><pubDate>Tue, 11 Apr 2017 23:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/08-modules/</guid><description>&lt;h2 id="10-what-are-modules"&gt;1.0 What are modules&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Modules play a crucial role in organizing and structuring code within an application. They allow developers to break down large codebases into smaller, manageable pieces. In this article, we&amp;rsquo;ll delve into the concept of modules, their evolution, and how JavaScript and TypeScript handle them.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It is a technique which keep the code organizes in any programme. Java Script default way of creating object using literals is one of the ways of module pattern.&lt;/p&gt;</description></item><item><title>How to Understand Functional Programming</title><link>http://ghafoorsblog.com/posts/js/07-functional-programming/</link><pubDate>Fri, 31 Mar 2017 23:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/07-functional-programming/</guid><description>&lt;h2 id="functional-programming"&gt;Functional programming&lt;/h2&gt;
&lt;p&gt;Early languages like C, BASIC were not functional languages. Then came OOP C++ was a super set of C with Object Oriented approach the came Java but none of them offered functional programming technique. The only functional programming from early days was and still is LISP and its descendant like PROLOG. When Brenden Eich was hired by Netscape to write a language that can be embedded in their web browser. He came up with JavaScript, which was not an object oriented language but object based prototype language. But it was not all, there were some features of functional programming. As JavaScript evolved it turned out that functional programming technique can prove to be more powerful than its counterparts. To understand these techniques, one has to have at least some concept of what a function is and how it works. The term function has come from Mathematics.&lt;/p&gt;</description></item><item><title>JavaScript Objects</title><link>http://ghafoorsblog.com/posts/js/06-objects/</link><pubDate>Wed, 22 Feb 2017 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/06-objects/</guid><description>&lt;h2 id="10-object-oriented-programming"&gt;1.0 Object Oriented Programming&lt;/h2&gt;
&lt;p&gt;JavaScript was not at all intended to be an Object Oriented Programming Language. At the time of its creation there were already other languages present which were doing this task, namely C++ was the modified version of C with Classes and other object oriented features. Another language which took the grounds was Java which was basically designed to serve the concept revolving around Object Oriented Programming and to overcome the shortcomings present in C++.&lt;/p&gt;</description></item><item><title>Introduction to Functions</title><link>http://ghafoorsblog.com/posts/js/05-functions/</link><pubDate>Thu, 05 Jan 2017 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/05-functions/</guid><description>&lt;h4 id="objectives"&gt;Objectives&lt;/h4&gt;
&lt;p&gt;At the end of this chapter you will learn to :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Define all different kinds of functions&lt;/li&gt;
&lt;li&gt;Distinguish between an statement and the expression&lt;/li&gt;
&lt;li&gt;Handle functions from JS perspective&lt;/li&gt;
&lt;li&gt;Invoke functions directly and indirectly&lt;/li&gt;
&lt;li&gt;Understand how functions inherits properties too&lt;/li&gt;
&lt;li&gt;Appreciate functions role in object creation&lt;/li&gt;
&lt;li&gt;Explore the power of functional programming&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="introduction-to-javascript-functions"&gt;Introduction to JavaScript Functions&lt;/h3&gt;
&lt;p&gt;They are main building blocks of JavaScript, usually assigned a name so that they can be used time and time again by identifying with the given name.They are self-contained modular units.The structure of the function is shown below.&lt;/p&gt;</description></item><item><title>JavaScript Conditionals</title><link>http://ghafoorsblog.com/posts/js/04-conditionals/</link><pubDate>Sat, 10 Dec 2016 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/04-conditionals/</guid><description>&lt;h2 id="what-are-conditions"&gt;What are conditions&lt;/h2&gt;
&lt;p&gt;Programming is all about using logic of &lt;code&gt;if and then&lt;/code&gt;. No matter what computer language you are using the rules always revolves around if and then. If this happens do that otherwise do something else, and so on&lt;/p&gt;
&lt;p&gt;JavaScript is not different from other languages, in fact it is a c-based language and most of its syntax is like c language. But it is not a high level language like C. It has almost same procedure to check the conditions of any statement like the way it is done in c-language.&lt;/p&gt;</description></item><item><title>JavaScript Arrays</title><link>http://ghafoorsblog.com/posts/js/03-arrays/</link><pubDate>Sat, 26 Nov 2016 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/03-arrays/</guid><description>&lt;h2 id="arrays"&gt;Arrays&lt;/h2&gt;
&lt;p&gt;Array is a topic of data structure and deals with collecting of data known as data collection. Data can be homogeneous or heterogeneous, arrays usually deal with homogeneous items. The item in an array or a component (element stored) in an array is accessed by its position using index. Thus there is one-to-one relationship between each index and its component. Take an example of student marks achieved in five subjects &lt;code&gt;var result = [70,69,83,93,73]&lt;/code&gt;. Marks are stored in an array which is referenced by the identifier &lt;code&gt;result.&lt;/code&gt; Thus the relationship b/w its index and value can be shown as below.&lt;/p&gt;</description></item><item><title>JavaScript Variables</title><link>http://ghafoorsblog.com/posts/js/02-variables/</link><pubDate>Tue, 08 Nov 2016 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/02-variables/</guid><description>&lt;h2 id="introduction-to-variables"&gt;Introduction to variables&lt;/h2&gt;
&lt;p&gt;In computer programming, a variable represents a very small chunk of memory which is a part of memory pool reserved for a program in which it is declared to allow the manipulation of its value.&lt;/p&gt;
&lt;p&gt;For example, if you want to add two numbers, say 5 and 8 and would like to see the result displayed on your standard output. You would ideally need to have three variables so that you can hold their values into these variables. Let&amp;rsquo;s say &lt;code&gt;x,y and z&lt;/code&gt; are those variables which will hold the values of 5,8 and their sum respectively.&lt;/p&gt;</description></item></channel></rss>