KillerPHP Blog

Javascript

What JS framework should you learn?

January 30, 2016

javaScript

PHP developers have to learn some JavaScript. There is no debate there, given that JS is the most important programming language in the world, and since when it comes to browser scripting, there is no other option.

JavaScript, like PHP, has several frameworks/libraries to choose from: jQuery, AngularJS, ReactJS … etc. With that in mind, I had someone put this question to me recently: “Is there JS framework you would recommend or to think about ?”

My answer:

Whatever you do, learn jQuery … although, you don’t have to learn everything about it. Just get an overview and understand the basics. jQuery is big and trying to learn everything might be a waste of time.

… It’s good to know WHAT a framework can do, so you can consider it for projects you are working on. But don’t use a framework for the sake of using it. People often think that they should be looking for a way to use a framework. No … use a framework only if you need to.

So much, and too much to learn!

The thing about learning tech skills, is that you have to learn to filter – there is so much to learn, you can never keep up. You have to pick and choose.

My advice is to first learn the basic concepts and techniques that are universal. Things like OOP, MVC design pattern (and others), separation of concerns etc … then get into more advanced programming concepts. Once you have that, you can poke around some frameworks, keep your eye on what is out there, but keep in mind that it is not possible to learn all things.

I lost 10% of my hair in the 1990’s, trying to learn too much!

Back in the 1990’s when I first cut my coding teeth, I used to drive myself bat shit crazy trying to keep up with all the ‘hot’ amazing nerd-tech hitting the Web. Most of the time, the new amazing thing wasn’t really much better than what was already there, and many a times, you would sacrifice some advantage in one library, framework or language … for another.

Again, know the basics well, learn the key libraries/frameworks so you at least know what they can do. But don’t go nuts. Personally, in the JS world, I would learn jQuery first and foremost. But not all of it.

Thanks for reading.

Stefan Mischook
Killerphp.com

read more


Should you use JQuery less and do more raw Javascript?

April 13, 2014

Yo!

Not strictly PHP … actually, this is not PHP at all! But it is still relevant to any active PHP coders because you will need to use JavaScript with PHP – that is almost a certainty.

Someone put this question to me recently:

What’s your opinion on using pure JavaScript over that of Jquery and other libraries, do you think having a strong understanding of pure JavaScript is vital when using Jquery and other libraries?

My Personal opinion is that you should use pure JavaScript regularly because more likely then not you are going to be doing either edits to Jquery or making custom Jquery plugins. I ask this because i feel we are becoming dependent on Jquery and missing the point that it is just JavaScript at its core. ?

My answer:

That’s a great question! My instinct is to say we need to know mechanics of things and so it makes sense to not rely too heavily on JQuery. But the reality is different!

You see, just about every language and framework we use today, builds upon some lower level base that most of us are not even aware of. So for instance, Ruby and PHP are written in C, so shouldn’t we go down to C and learn that? No!

Back to JavaScript; you need to know basic JavaScript and how to manipulate the DOM without JQuery. But in day-to-day coding work, you SHOULD use JQuery and other libraries because they’ve been debugged and handle a bunch of boilerplate tasks … things that you should not have to deal with.

If by chance you see a need to create a JQuery plugin or you need to do some highly custom JavaScript … then go deeper into then. For now though, you have too many things on your plate to worry it!

Stef

I am not sure if I should be quoting myself?

😉

Stefan Mischook
killerPHP.com

read more


A Million Lines of JavaScript!

March 28, 2013

Hi,

I recently read an article (in Techcrunch,) where the author suggest that JavaScript may have problems with projects with over a million lines of code … and because of that, you should consider alternatives.

WHAT!?

This is a silly thing to say because for 99% of us, we will never even come close to writing that much JavaScript in a single application.

… This is a rare project indeed!!

Experience has taught me that you should not make big technology changes based on rare events or rather, rare potential needs. Instead, your choices should be made based on common day-to-day needs.

Today, JavaScript is king of the client side, as it is supported by all browsers and on all operating systems. In addition, JavaScript has a huge community behind it with amazing frameworks (like JQuery) that you can leverage as a web programmer for free.

So don’t listen to crazy nerds who try to strike fear in you, with stories of massive meteors crashing into earth destroying the planet. Instead of worrying about that and other crazy lottery ticket like events, just pay attention to when you are crossing a busy street, and you should be fine.

Thanks for reading,

Stefan Mischook
killerPHP.com

read more


Learn More Than PHP

March 5, 2013

Hi,

I am HUGE advocate of learning alternative languages and frameworks. So that means if you are a PHP Zend man, I would suggest learning another MVC framework like Laravel or any other PHP framework that looks interesting to you – there are many to choose from:

… Etc

PHP programmers should learn a competing language

These days, it’s pretty clear all PHP programmers must learn some JavaScript … the Web is driven by that silly little client-side language! Besides, PHP and JavaScript go hand-in-hand … think of Json for example.

But … this may shock some of you hardcore PHP nerds, it’s also a good idea to learn another competing language too! Personally, these days, I would suggest learning a little Ruby. Ruby is very popular, sophisticated and by comparing how Ruby does things vs PHP … you will become a better PHP programmer because of it.

Stefan Mischook
killerPHP.com

read more


Form Validation with PHP and Javascript – mini Video Course.

February 13, 2013

Hi,

I want to announce that we just released a new mini video course on form validation with PHP and Javascript.

Some details about the video course:

In this Mini Course, learn how to use both PHP and Javascript to validate HTML forms.

Proper form validation is helpful to everyone involved:

  • It allows the web developer to double check the data being sent to the server
  • Its helpful for the user, as they can be assured that any data entered into the form is mistake free
  • It is also helpful for the site owner, as they can be assured that any data they receive is valid

This is another one of my mini video courses – short courses designed to teach very specific things, they cost only $4.99 and run about 30-60 minutes depending on the course.

Thanks,

Stefan
KillerPHP.com

read more


iOS Programming is going to go Niche … then Ultra Niche!

January 14, 2013


Hi,

One of the things that I see time and time again, is a (once hot) technology … fall into a niche.

This time, I think it is native iOS programming that will slowly fade away. Why?

Here are my top five reason why native iOS programming will become niche:

  1. iPhone penetration is falling – Android is now king of mobile.
  2. HTML5 and CSS3 based apps can can do just about everything native iOS apps can.
  3. HTML5, CSS3 and JavaScript are easier to learn than objective C.
  4. HTML5 and CSS3 apps are cross platform – iOS apps are not.
  5. There are a lot of JavaScript programmers out there ready to roll – no need to learn another language!

So think about it from a clients perspective; if you can build your application with HTML5, CSS3 and JavaScript and have your app work on Android, iOS, OSX, Windows 8 etc … why would you invest in an app that runs only on iOS?

… Most businesses wont.

Stefan Mischook
killerPHP.com

read more


HTML5 and the Rise of Pragmatism

April 21, 2012

Hey,

Anyone who has read anything I’ve written (or watched my video blogs,) knows I can’t stand academics. I was particularly vocal against the early 2000’s Web Standards movement’s zealotry, wherein reality was pushed aside in favor of code purity.

These nerds would ignore reality – for example:

  • They would ignore how the most popular browsers where interpreting code – often times in a method contrary to their nerd wet-dreams. And they would come up with harebrained hacks to jam in their ‘compliant’ code. Hacks that eventually broke in many cases, defeating the supposed original purpose of the Web Standards movement!
  • They would obfuscate what the actual browser use was in terms of real people surfing the Web. They would come out with numbers that did not reflect the reality they were desperately trying to ignore: that the vast majority of people surfing the Web were using web browsers (Internet Explorer) that did not play nice with their ideas of how a web browser should read code.

Read more

read more


Windows is quickly getting replaced by iOS and Android on the Web

December 9, 2011

As a web developer or web designer, you have to mindful of who your audience is when you are putting up a new web site or web application.

Back in the 1990’s when I started, you had to consider which web browser but you were pretty safe to assume that people would be visiting your website on a desktop computer and 95% of the time, it was Windows.

… Things have changed and will continue to change.

Check out what a well known hedge fund analyst is saying – Roger McNamee of Elevation Partners told CNBC:

The explosion of mobile platforms, particularly iOS and Android, means that Windows will account for less than 50% of all Internet-connected devices in 2011.

Now that doesn’t mean 50% of the people visiting your site will be using iOS or Android … at least not yet. But it does speak of a powerful trend that will not stop. That trend is toward smartphones, tablets and the death of the desktop. Since Windows on the smartphone and tablet is a non-starter, I think as a web application developers, we have to see Android and iOS as being the future.

What does that mean for PHP developers?

I think PHP programmers are going to have understand the new front end … the mobile device. As such, PHP’rs are really going to have to get into the client-side technologies because they have an impact how we write PHP code. I’m thinking:

– HTML 5
– CSS 3
– Javascript
– JSON
– Jquery

… You better understand how these technologies work with PHP if you want a job (or contracts) as a PHP programmer.

Stefan Mischook
www.killersites.com

read more


Beginner's Javascript Closed Captioned Training Video – Toggle Menu Part 1

February 28, 2011

This is part 1 of a 2 part closed captioned video tutorial on creating the Javascript toggle menu, from our Beginner’s Javascript Course.
We are happy to announce that we are well on our way to closed captioning all of our Web Design and Web Programming related video training courses.

To find more courses on Javascript, check out our Killersites Video Tutorial Library!
Note that all of our videos are in a higher quality when purchased from our Killer Video Store or by subscription to our Video Tutorial Library!

Thanks,

Jody
killersites.com

read more


Beginner's Javascript Closed Captioned Training Video – Functions Part 5

February 23, 2011

This is fifth closed captioned video tutorial in an 8 part series, where we continue to look deeper at Javascript functions, from our Beginner’s Javascript Course.
We are happy to announce that we are well on our way to closed captioning all of our Web Design and Web Programming related video training courses.

To find more courses on Javascript, check out our Killersites Video Tutorial Library!
Note that all of our videos are in a higher quality when purchased from our Killer Video Store or by subscription to our Video Tutorial Library!

Thanks,

Jody
killersites.com

read more