Do you want to know how to develop your skillset to become a Web Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. Building web apps with Node.js
2. HTML5 Programming Cookbook
3. CSS Programming Cookbook
4. AngularJS Programming Cookbook
5. jQuery Programming Cookbook
and many more ....
I agree to the Terms and Privacy Policy

JavaScript String Split Example

When building or maintaining an interactive website, it may happen that the input you get from the user can be correct in meaning, but written as a long string separated by special characters such as commas or semicolons. In these cases, JavaScript string split functions come to the rescue. You can split the long string into small ones and save ...

Read More »

Learning Angular: Unit Testing watch expressions

Today I wanted to write a unit test for a watch expression on my controller. What seemed quite obvious initially, turned out to be quite nasty. Anyway, thx to a nice community member on the Angular IRC, I was able to quickly resolve the issue. So, here’s the story.   This article is part of my “Learning NG” series, presenting ...

Read More »

Promises you can trust

JavaScript Promises provide a strong programming model for the future of JavaScript development. So here I’m playing with promises. First I need a bit of a package.json file:           Now I can write my first test (test/promises_test.js): Notice that the “it” function takes a “done” function parameter to ensure that the test waits until the promise ...

Read More »

Many Web.config have merged together

You can have more than one Web.config in an application and they will all be merged in the end, which is fine. Also, if you have a problem with the configuration for a given project it will usually show up in your development environment right away and will not make it to production. But here is a problem that occurred ...

Read More »

JavaScript String Contains Example

EDITORIAL NOTE: In this post, we feature a comprehensive JavaScript String Contains Example. We will see some methods that can determine whether a string contains the characters of a specified string. Usually, programming languages have a special pre-processed function to find a sub-string of a string. But what happens when you language of choice doesn’t have one? Well the answer ...

Read More »

Avoid test code duplication in Jasmine tests

Test code has to be treated like production code. Obviously we cannot charge the customer for it, it’s something that helps us developers to make sure we keep our codebase healthy, which ultimately is the responsibility we have towards our customers. Thus we need to apply the same best practices principles as we do for our production code, where, code ...

Read More »

Watch file changes and propagate errors with Gulp

Gulp fever infected me. Streaming model is very interesting and modern. After initial excitement, I started to experience first pitfalls. This is understandable for such young project. I am going to describe my problem with watching file changes and propagating errors. Error in Gulp by default breaks the pipe, terminates the build/test and whole Gulp process with some error code. ...

Read More »

JavaScript Form Validation Example

EDITORIAL NOTE: In this post, we feature a comprehensive JavaScript Form Validation Example. Validation is the process of ensuring that user input is clean, correct, and useful. If you’re looking to build an interactive website, which contains any form of input, then you should validate the data you get from the users. If it’s a registration form you have to ...

Read More »

JavaScript Promises Essentials

JavaScript is asynchronous by definition which is what makes many server-side developers struggle initially. Many even try to avoid asynchronism as much as they can rather than to embrace it. Others end up in a callback mess. That’s where promises come into play! The following code is a typical piece of JavaScript code. Some async function is invoked, passing the ...

Read More »