Shineyrock web design & consultancy

Shineyrock

Searched for: "test" / 634 results

Refactoring Legacy Code: Part 4 - Our First Unit Tests

…tests for those small pieces. But this can be quite difficult, especially when you have code that is written so that it would be hard to compile or run if pieces of it are missing. We can't safely do large surgeries on a code we still barely understand and only…


Working With Intl

…test1.html: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> </head> <body> <h2>Current Stats</h2> <table id="stats"> <thead> <tr> <th>Date</th> <th>Visits</th> </tr> </thead> <tbody></tbody> </table> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script> <script src="app1.js"></script> </body> </html> Make note of the empty table. That's where we will be dumping…


Getting Started With Phpspec

…testing your application, BDD is more about describing its behavior. Using a BDD approach will force you to constantly consider the actual requirements and desired behavior of the software you're building.Two BDD tools have gained a lot of attention in the PHP community recently, Behat and phpspec. Behat helps you describe the…


Don’t Forget to Cover Your Client Side!

…tested, you are able to reduce the amount of bugs you find in your code, increase the maintainability of your application, and design well structured code. Client side unit testing presents different challenges than server side testing. When dealing with client side code, you will find yourself struggling to separate application…


Refactoring Legacy Code: Part 3 - Complex Conditionals

…tests. Now this is quite complicated. However, the extract method is arguably the most frequently used refactoring, except for renaming maybe. So you must understand its mechanics. Luckily for us, modern day IDEs like PHPStorm provide great refactoring tools, as we've seen in the tutorial PHPStorm: When the IDE Really…


Gulp as a Development Web Server

…tests, simultaneously. gulp-connect also provides the possibility to use several directories as a root folder. For example, when you're using CoffeeScript and you want to save the compiled JavaScript files in a temporary folder, you can then mount this folder without polluting your source folder. For more examples, please checkout…


Sharing Polymer Components: Part 1

…testing, this actually works perfectly but unfortunately the path specified will actually prevent you from sharing this component. The reason for this is because if another user tries to install your element with Bower (which is the preferred installation method), it's going to end up as a sibling of Polymer…


Setting Up Firebase for Your Next Project

…test comment at our data location and that would be no fun. To do this, let's jump back to the JavaScript that we previously added to our page. We now need to push the comment value to our data location. Now keep in mind that there are different push methods that allow us to push…


JavaScript Tools of the Trade: CodePen.io

…testing of code snippets. In addition to the UI similarities, both editors allow users to: Reference third party libraries Save code snippets for future use Share snippets via custom links Collaborate with other developers on the same code Embed the code snippets into other pages JavaScript linting From my perspective,…


Setting Up User Authentication in Laravel Using Confide

…test stable release of Laravel at the time of this writing. What We Are Going to Do In this tutorial, we’ll start from the very beginning by creating our Laravel app using Composer and then: create a signup form with a full set of validation rules a login form with…


Refine Search

Save This Search?

Saved Searches

You have not saved any searches yet.