Generating SSH Keys on MacOSX

Generating SSH Keys on MacOSX

If you’ve been programming for a while now, even if you consider yourself a novice, you’ve probably run into the SSH (Secure Shell) protocol. Now, don’t get intimidated by this technical term, this is just another protocol like FTP (File Transfer Protocol) or HTTP (Hypertext Transfer Protocol). So look, you’ve already engaged with a protocol at one point in your dev career. In simple terms, protocol’s are just a set of instructions to complete a given task.

Continue reading “Generating SSH Keys on MacOSX”

substr() vs preg_match() using PHP

substr vs preg_match

Greetings fellow developers, I hope you’ve continued to immerse yourself in something interesting whether it’s programming, physics, math – or whatever. The point is – just keep pushing forward and don’t be afraid to fail. Seriously though, enjoy the journey of making mistakes.

This post is about two functions – PHP’s substr() and preg_match() functions.

Continue reading “substr() vs preg_match() using PHP”

Distributed Systems in One Lesson

Distributed Systems in One Lesson

Alright, this is a continuation of System Architecture, a super broad subject I’ve been recently immersing myself in. I must admit, my last post was a bit poor in quality – I even left things hanging in the end. So I felt compelled to dive in deeper into an architecture known as “Distributed Systems”, yes in one lesson by Tim Berglund.. As the name of this blog post suggests, this is based off a youtube video I found – Distributed Systems in One Lesson.

Continue reading “Distributed Systems in One Lesson”

Architecture vs Design Pattern

Architecture vs Design Pattern - System Architecture

I’ve decided to take a break from some lower level stuff – server side languages, scripts and front end stuff. As in “break” – I meant in my blog posts. My thirst for more Javascript and PHP is unending so that is still quite active.

I’ve developed a sudden interest in system architecture – I think this was ignited off a job requirement I’ve recently run across. Almost everything listed as a requirement I had covered and even the ones I wasn’t quite savvy with I knew I could pick up pretty fast – ie frameworks and libraries. When I look at job requirements, I look at the underlying fundamentals or lack thereof with regards to my toolbelt.

Continue reading “Architecture vs Design Pattern”

Top 10 Javascript Interview Questions

Javascript Top 10 Interview Questions

This is my very first post on anything interview related. I figure it would be helpful to cover common Javascript questions during an interview. As mentioned in a previous posts, Javascript is totally different beast. From my experience, my interviews have been pretty tame. They were mainly OOP related questions but this was before ES6, before Javascript classes and constructors were introduced. I remember having to write literal objects on a white board and explaining this object’s properties and methods.

Continue reading “Top 10 Javascript Interview Questions”

Using the Promise Object with Javascript

Using the Promise Object in Javascript

I haven’t had to use the Promise function constructor much, I think maybe I’ve used it a handful of times. I don’t know if this is a bad thing. To be honest, the concept of promises is still a bit fuzzy to me. I’d like to build more applications utilizing this construct but I haven’t had to write any programs that run too many asynchronous operations. Or, the need for it wasn’t necessary and I got away with writing a bunch of function callbacks. But that’s what Promises were made for – to eliminate what developers describe as “callback hell” – basically what you get is a chain of nested callbacks which makes for “unnecessary inefficient bloat”. Yeah that’s exactly what I called it.

Continue reading “Using the Promise Object with Javascript”

Using var in Javascript

Using var in javascript

So a little bit of history 101 when it comes to the ‘var’ keyword in Javascript. Back when Javascript was super weird, I mean Javascript is still weird don’t get me wrong. For this reason I started liking Javascript – I used to think it was just to messy of a language to write in. I had some major trust issues with it, my relationship with PHP was far better. Alright enough with relationships, let’s dive right in.

Continue reading “Using var in Javascript”

Javascript Closures

Javascript Closures

Yeah. Closures. I know I’m kind of late in getting to this. Closures have been widely discussed subject among developers and I feel like I should get a good handle on it myself. First things first though, it’s important to understand that closures in javascript are a feature not a built in construct. If you’ve been writing in Javascript you’ve already encountered closures you just weren’t aware of it. I think the concept of closures tends to intimidate or confuse a lot of beginners and even self proclaimed experts in javascript.

Continue reading “Javascript Closures”

Javascript Creation Patterns

Javascript Object Creation Patterns

I’ve taken a long break due to consulting work and a few lazy summer days. I’ve also taken a long break from writing any PHP but I’m itching to getting back to writing more PHP related articles. I just haven’t seen anything new with PHP lately except for some frameworks I haven’t dabbled with yet like Laravel, CodeIgniter and others. Perhaps I’ll find interest in these at a later time – it might worth dissecting these architectures, there’s always something new to learn.

Continue reading “Javascript Creation Patterns”