Three Technical Things That I Learned This Year

Date published: Sunday 19th of November 2017

Web development is a career that's all about cycles. There are learning cycles and there are earning cycles.

For me, it usually works out that I spend a year learning and then four years earning. It wasn't the way I planned things. It just seems to always work that way.

So, if you learn all of the latest cutting edge web development technologies today then my observation is that you can expect to get four years worth of mileage out of your skillset - then you'll have to learn all over again, as new things come out. It's kind of a good thing in a way because learning is a positive thing. It's like exercise for your brain. However, when you go through those intense learning cycles it does - unfortunately - hit your earnings.

This year, for example, I've probably earned less than 20k in total. As a matter of fact, right now I'm earning nothing. That's right. Nothing at all. I have no clients, no leads, no products... nothing. All I've been doing this year is spending almost every waking minute learning about new technologies. I'm really hoping that this learning phase will come to an end in about two or three weeks and that I can hopefully go back to earning an honest buck in our great profession.

Anyway, here are...

Three Technical Things That I Learned This Year



ONE: Separation of front end and back end
All web development building should now have a clear separation of concerns between front end and back end. Now, I know that most of you are nodding your heads right now and thinking, 'tell me something I don't know'. But ask yourself,

"When you build an app, are you spending (let's say) three weeks working ONLY on the back end, without a browser in sight?"

If the answer is no, then you're probably old school. There's nothing wrong with that, by the way, and I'm not saying you should change. However, for me and from now on I'll be doing a very clear separation of front-end and back-end development. Specifically, this means that when I build something (let's say the new version of the Insider Club website), then I'll be spending about three weeks working on the back end before I even think about how it all looks.

TWO: Sessions and cookies are dead
This is just a personal thing and, again, you certainly do not need to copy what I'm doing. However, I have to be honest and tell you that I never had much luck with sessions and cookies. Even at the best of times they were temperamental.

Moving forward, I won't be using sessions and / or cookies any more. I'll be using either local storage or Chrome storage.

This obviously has huge implications for how security is handled. I'll spare you a speech about this but the upshot is, on the database side of things nothing has changed. However, the sessions and cookies are out and it'll be tokens all the way, as far as authentication and authorisation goes.

THREE: It's a bad idea to turn NodeJS into PHP
Right now there are thousands of Laravel developers, trying out NodeJS - and they cannot wait to build their MVC 'Laravel-type' frameworks for NodeJS. Every week there is a new NodeJS framework and they all seem to be unashamedly copying PHP frameworks like Laravel. Here's an example. Folks, this kind of thing is a REALLY BAD IDEA.

NodeJS is asynchronous and PHP isn't. The key defining feature of a decent NodeJS app is the callback - a special kind of function that does a task (that may take 'x' seconds to complete) that reports back (or calls back!) when the task is complete. The focal point and the reason for learning NodeJS is speed and asynchronous callbacks are the means by which NodeJS developers can enjoy fast apps that can easily handle huge loads of traffic. The moment you attempt to tether NodeJS to an object oriented/Laravel type structure then you've just defeated the point of using NodeJS in the first place.

If the last paragraph has left you feeling a little bit confused then don't worry. Here's your takeaway. NodeJS does not perform well, when it gets crowbarred into an OOP type structure. Trying to structure your NodeJS app like a Laravel app is like putting a shirt and tie on a tiger. It's a bad idea and it's not going to work.

By the way, just so you know:

People still aren't paying enough attention to site structure. After all these years, we can't agree on how to structure apps! Let me give you my two cents:

* If you're using PHP then I recommend HMVC all the way. That means either Codeigniter or your own custom HMVC framework. Those Codeigniter tutorials that I put out are still good and I think it's a good way to build apps, even now.

* If you're using NodeJS then I recommend using Loopback. It's very fast, backed by IBM and it'll enable you to quickly build NodeJS apps the right way.

Okay, I'm done. This has been three things that I learned this year.

Thanks for reading.

Stay cool,

DC

Previous Articles

Everything that we knew about web development was WRONG!

Folks,

I have spent the best part…

Read More

New Tutorial Series - Build YOUR OWN Udemy Website!

Just to let you know, I've just…

Read More

Thank you!

Some of you who follow my YouTube…

Read More

It's Time To Rethink Social Media

And no, this is not a conversation…

Read More

The Golden Secret

Did you know that since the dawn…

Read More

The forum is back.

That's the forum back up and running.…

Read More

I Knew I Said That I Wouldn't Talk About Politics But...

Right now on Twitter, the phrase '#ResignMay'…

Read More

What's going on with the forum?

Some of you may have noticed that…

Read More

Response To Meryl Streep

Today, all of Hollywood and all of…

Read More

What The Modafinil Keeps Telling Me

Right now, I am about four times…

Read More

DC 2.0 is here - Happy New Year

Happy new year.

I've been testing out…

Read More

Where have all the cowboys gone?

This song...

Read More

Let's Talk About Swearing

You know, it's hard to imagine -…

Read More

What you need to learn

We've been enjoying a conversation this week…

Read More

What about PSR, namespaces and all that stuff?

Today's Inside Scoop is inspired by Yavor…

Read More

Alex Jones == Controlled Opposition

Here's your phrase of the day, folks:…

Read More

Motivation Is On The Way!

This is a big week for the…

Read More

End Of Year Advice For Web Developers

Fellow Insiders,

We're now moving into a…

Read More

Just Be Yourself!

I recently rejoined Facebook, after a five-year…

Read More

Brilliant New App From The Rock

The Rock has just released a new…

Read More

Goodbye Politics - Hello Web Development

Isn't it nice to get those elections…

Read More

Congratulations America | Congratulations Trump!

* I APOLOGISE FOR TYPOS. I'VE BEEN…

Read More

Waiting For America To Bottle It

Well, as I write the election hasn't…

Read More

They're ALL Lying!

Like many of you, I've been following…

Read More

The Best IT Gig On Earth (clue - it's not building mobile apps!)

Two days ago, I had a call…

Read More

What 'They' Are Not Telling You About Russia

Yesterday, the mainstream media flooded us with…

Read More

A New Kind Of Wealth

Last week my car was due to…

Read More

Trump Strikes Back!

Last night's debate was incredible!

Initially I…

Read More

Why I Am Withdrawing Support For Donald Trump

Over the past three or four months,…

Read More

Airbnb might just be your ultimate auto-income generator

Over the last 24 hours I've been…

Read More

Black Lives Matter: An Outsider's Perspective

Once again another black person has been…

Read More

Social Justice Warriors

For years (decades actually) I've been in…

Read More

What the Hell is going on in Syria?

Okay, we all knew that the place…

Read More

I think I've figured out what happens when you die

Congratulations. You've just read the most gloriously…

Read More

Steve Irwin

Spare a moment to appreciate and think…

Read More

The Universe Owes You Nothing

One of my strange addictions in life…

Read More

Bruce Dickinson

Sometimes people appear on the scene who…

Read More

Self-Imposed News Blackout

It's all getting a bit too heavy.…

Read More

The Big Media Cover Up

Words escape me.

Read More

How Burt Reynolds Movies Could Hold The Key To Defeating Radical Islam

Another weekend. Another terrible Muslim terrorist attack.…

Read More

How The Bastille Day Attacks Change Everything

Hello fellow Insiders.

What a heavy weekend…

Read More

Post Brexit Blues

There is no doubt that the Brexit…

Read More

The Calm Before The Storm?

Within the last 20 minutes, I can…

Read More

The Next 30 Days Are Critical

Following the shock result of the EU…

Read More

It's Time To Say Goodbye To Your Three Month Fantasy

Have you ever noticed that whenever you…

Read More

Light at the end of the tunnel for Yii2 learners

This Yii2 business has been a challenge…

Read More

An (almost!) perfect meritocracy

Today's Inside Scoop is dedicated to Martyn,…

Read More

Why I'll Never Use Or Teach Laravel

As some of you folks may have…

Read More

More Politics - More Disappointment

Yesterday, here in the UK, we had…

Read More

Never Accept A Cheap Thrill

Today's Inside Scoop is one for the…

Read More

Let's Have A Limitless Week

It's Tuesday 3rd May and here in…

Read More

If you're a guy and you're worried about hair loss then you need to read this!

I want to talk about some things…

Read More

Everything that we have been told about weight loss is wrong

This is big. If you struggle with…

Read More

Rejoice - The DCRN Is Coming Back

I'm very excited to tell you that…

Read More

Forget about oil. Here comes the water wars.

Oil. We depend on it to live…

Read More

Fighting Negative Energy With Positive Energy

Occasionally I post something on the Insider…

Read More

Are Ye Ready For Yii?

On the first week of April, I'm…

Read More

My Big Pound Short

I was working over at a client's…

Read More

PREDICTION: Codeigniter 4 will NEVER be released

Here at the Inside Scoop, I like…

Read More

You probably know more about web development than you think

I was just on YouTube watching a…

Read More

Why You Should Say No To Deodorant And Yes To Early Morning Showers

Skin cancer rates are going through the…

Read More

I'm Getting Killed Out There

As some of you know, I've been…

Read More

Have you joined the 5am Club yet?

We are now entering into that time…

Read More

Udemy's Dirty Little Secret

Don't you just love Udemy? I do!…

Read More

A time for earning, a time for learning

Twenty years ago I sold my first…

Read More

Happy Birthday Johnny Driesen!

Yo ho ho! I just want to…

Read More

CodeIgniter is dead. Now what?

I was looking at the CI site…

Read More

Check Out Charles Bradley

I've been listening to a lot of…

Read More

Leaving Politics To The Politicians

For a while I've had the feeling…

Read More

(re)Introducing Stock Market Alerts

Hi,

I'm pleased to declare that the…

Read More

Just turned 40

Well, it finally happened. Yesterday was my…

Read More

Insider Club Update

I thought I'd give you a quick…

Read More

Welcome To The Inside Scoop

Hello there!

Welcome to this brand new…

Read More

test page title

Hey man, this is just a test…

Read More


© Copyright 2013 - 2017 David Connelly | www.davidconnelly.com | www.dcradionetwork.com