Showing 11 to 20 of 51 posts.

What are JavaScript generators, function* generator?

Posted on April 27th, 2020 in JavaScript by George

Find out what a function generator looks like and what it is, with examples.

➜  jsstuff node generators.js
First Next Promise { <pending> }
{ name: 'George', age: 30, activityList: [ 'Coding', 'Running' ] }
Second Next { value: 1, done: false }
Third Next { value: '2', done: false }
Fourth Next { value: 'I am done here!', done: false }
Fifth Next { value: undefined, done: true }



JavaScript Factory Design Pattern (using ES6 class)

Posted on April 16th, 2020 in JavaScript, NodeJS by George

A quick example of how to implement the factory pattern in Javascript using ES6 classes.


JavaScript Singleton (using ES6 class)

Posted on April 16th, 2020 in JavaScript by George

An example of how to implement the Singleton pattern in JavaScript using ES6 class abstraction.


4 NodeJS useful things to know

Posted on April 15th, 2020 in NodeJS by George

Useful commands and facts, for and about NodeJS.


DNS Explained, Domain Name System

Posted on April 14th, 2020 in Miscellaneous by George

Short Explanation for Domain Name System ( DNS )


React Redux Firebase SPA.

Posted on April 7th, 2020 in Miscellaneous by George

Visit to check out my latest SPA application.


How to locate Sql sqlite / .sqlite file for IOS Core Data application , SwiftUI Core Data Debug

Posted on February 23rd, 2020 in Swift by George


Sometimes you want to observe the database entries in your Core Data application.

You may want to use An Sqlite editor to debug but you don't know where to locate the .sqlite file.

Here is how to find the file and more!


How to clear Core Data store/objects from device, Delete Core Data data Swift UI

Posted on February 22nd, 2020 in Swift by George

If you are developing with Core Data chances are you have added some object and then you have modified the model of the Entity. Now you have errors in XCode and you want to clear all the objects from Core Data persistent storage.

How to do it? Check this post out 


Swift 5, Swift 5.1 Bubble Sort algorithm implementation

Posted on January 31st, 2020 in Swift by George

Bubble sort algorithm implementation in Swift 5 and Swift 5.1 with explanatory comments and  explicit expanded output


Closures JavaScript vs Swift

Posted on January 12th, 2020 in JavaScript by George

Today I would like to bring forward comparison between closures in JavaScript to closures in Swift. 

Just to make it clear, Swift is not the same or like JavaScript. 

Swift, it is a static typed multi-paradigm, object-orientated language, JavaScript is object-orientated prototype-based language (despite the syntactic sugar added with ES6 class, constructor, etc) 

Whenever you get to use one of the main frameworks abstracted on top of each of these two programming languages you will feel the difference.

They have a very different history and different purposes (of course there are some middle grounds, as a matter of perspective).

Both languages are borrowing syntax and programing methodologies from other programming languages. And that is a good thing.

This is not the topic of this post though.

Let's get started.