Photo courtesy of Ivan Henao at Unsplash

From my blog post and creating Crockford style constructors.

In a previous post, I discussed how we can create objects from a function using a closure. I based this example on a presentation Douglas Crockford made at JS Fest 2018.

Constructors

Constructors are functions or methods that are used for initializing an object with the values it needs to encapsulate at object creation. If you are using the syntax in JavaScript, there is actually a built in method for constructors called .

One of the things that Crockford discussed in this presentation was how we define the constructor parameters to…


Image courtesy of David Fekke

From my original blog post.

Apple and Google are both large companies. When issues crop up with their technology, and we file bugs, it can sometimes take years to be addressed. For individual developers, this can be unbelievably frustrating.

Even though it is highly encouraged for developers to build mobile apps natively, there are lots of apps and frameworks that require the use of web-based components.

Cordova, Phonegap, and Ionic are all examples of SDKs that let developers build mobile apps using HTML, CSS, and JavaScript using native WebViews.

On iOS, there are several choices. The ‘UIWebView’ has been deprecated…


Photo courtesy of Alex Braken on Unsplash

I wrote a post yesterday on how to use a WebView on iOS without using Cordova. I got a couple of requests to show how to do this on Android using Kotlin and the WebView widget. Like on iOS, this is a very easy task to accomplish on Android.

The first thing we are going to do is create a new Android project using Android Studio. Select ‘File’ -> ‘New’ -> ‘New Project’ from the menu. Android Studio will display a wizard giving you a choice of which Project Template to base your app from.


Photo courtesy of Alex Braken on Unsplash

From my blog post and using WebViews.

Cordova is a very popular framework for creating mobile applications that are based on web technologies. It allows developers to create apps that are based on HTML, CSS and JavaScript. There are a number of different software development kits that are based on Cordova. These include Ionic and PhoneGap.


Photo by Sebastian Klein on Unsplash

From my blog post on JavaScript loops.

One of my favorite expressions is “there is more than one way to skin a cat”. Don’t get me wrong, I love cats, but this will illustrate my point.


Photo courtesy of Markus Spiske on Unsplash

From my blog post on Crockford Objects.

I was watching a video from JSFest 2018 where Douglas Crockford gave a presentation on the Power of the Paradigm. It is an excellent presentation if you have a spare hour to watch. Doug also wrote a book that every JavaScript developer should read called JavaScript: The Good Parts. The whole presentation was great, but I really liked the part where he talked about object creation in JavaScript.


Photo by Erda Estremera on Unsplash

From my blog

One question that might come up in a C# job interview is what is boxing and unboxing. In .NET there are three different types of objects, value types, reference types and pointer types.

The two common types that are usually used are reference types and value types. Value types are normally used for simple values like integers, floats and chars. Reference types are usually used for more complex types that are based on classes. A string in .NET is an example of a reference type.

When you take a value type and make it a reference…


Graphic by David Fekke

From my blog

I am currently creating a series of videos going over potential interview questions that might come up for a technical interview. I decided to do my first video on the three characteristics of Object-Oriented Programming.

The term Object-Oriented Programming was coined by Alan Kay while developing SmallTalk at Xerox PARC. The key feature is that you can write software in the form objects that can speak to each other, or call on each other.

The three characteristics that actually make Object-Oriented Programming are Encapsulation, Inheritance and Polymorphism.

Encapsulation

Encapsulation is about hiding the implementation details of…


From unspash, graphic by Lucas Benjamin

From my blog

I upgraded my website to the newest version of Gatsby JS. If you are not familiar with Gatsby or the JAMSTACK, it is a framework for creating static websites using the React framework. Last month Gatsby 3.0 was released, the first major upgrade since 2.0 in 2018.

They have included a Gatsby 3.0 Migration Guide in their docs, but I wanted to cover the changes I had to make in order to upgrade mu site to 3.0.

The first step I did was create a git branch for the upgrade that I could blow away if the…


The US News & World Report on diets is not worth the paper it is printed on. The people who review the different diets for that publication are proponents of 'Plant-based' or Vegan diets. They are also on the payroll of big food companies like Unilever and Nabisco.

Ketogenic diets or low carb diets are the kind of diets that Humans ate for millions of years, and is one of the healthiest diets you can possible eat.

Even Walter Willett of Harvard, who is a big proponent of 'Plant-based' diets, says that Carbs make you fat. If something makes you fat and sick, maybe you should not eat that food.

David Fekke

I am a software engineer and commercial pilot in jacksonville, Fl. I also produce videos for the Polyglot Engineer Channel on YouTube.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store