ON­LINE TOOLS FOR TEST­ING CODE

Maximum PC - - R&D -

Be­fore you start set­ting all this up on your home sys­tem, and if you want to play with small snip­pets of code, try on­line so­lu­tions, such as Code­pen and Js­fid­dle.

Code­pen has a pleas­ing de­sign and it’s easy to move around the desk­top. For com­plete­ness, you have a win­dow for HTML, one for CSS, and fi­nally one for JavaScript. Each win­dow also has op­tions to an­a­lyze your code in dif­fer­ent ways. The fea­tures are Tidy, An­a­lyze, and Show Com­piled. These are use­ful if you have a bad habit of in­dent­ing poorly, or just can’t fig­ure out what you’ve done wrong. You can choose where you want your code to show. The three win­dows with code can be on the right, left, or bot­tom. When you want to start your own project, you have sev­eral tem­plates avail­able to get started. Your fin­ished project can be down­loaded as a zip ar­chive.

Js­fid­dle is sim­i­lar to Code­pen, but has more view op­tions and tem­plates. It also has a neat drop-down list where you can choose lan­guage, li­brary, and other val­ues for your code. In Js­fid­dle, you also have a col­lab­o­rate func­tion. When you ac­ti­vate this fea­ture, you cre­ate a link that you share with some­one you trust, and you can both work on the same code to­gether.

These tools are great for test­ing new ideas and build­ing the ini­tial code. How­ever, if you al­ready have code on GitHub, then you can link di­rectly to it on Js­fid­dle.

Newspapers in English

Newspapers from Australia

© PressReader. All rights reserved.