jono.guthrie.net.nz
Making JSON Simple
http://jono.guthrie.net.nz/Making-JSON-Simple
Brought to you by LEAP™ 5. JSON is the communications backbone of the modern data-responsive web. It is actually quite simple - and yet Ive been surprised how many devs are daunted by it. So lets demystify it and make it simple :). First, lets get out of the way the two most common questions I get about JSON:. JSON stands for JavaScript Object Notation. It does much of the same job as we used to use XML for, but where XML was verbose and the standards varied. No, really, why is JSON so cool? Local( resul...
jono.guthrie.net.nz
Rosetta Code - Language Popularity
http://jono.guthrie.net.nz/Rosetta-Language-Popularity
Brought to you by LEAP™ 5. Rosetta Code - Language Popularity. A challenge was issued recently by Sean Stephens, LassoSoft Inc.s CEO. and it boils down to this: the person who amasses the most meaninful contribution to Lasso on Rosetta Code. In the month of November 2013 will win cold hard cash. I couldnt resist :). One of the challenges I did was this one: Rosetta Code/Rank languages by popularity. The code I used is below, as well as the live output (takes a while to load as its not cached). Title=Spec...
jono.guthrie.net.nz
Measuring performance: Timing your code
http://jono.guthrie.net.nz/Measuring-performance-Timing-your-code
Brought to you by LEAP™ 5. Measuring performance: Timing your code. Being concerned for the performance of your code should be important to you. but if youre not using a dedicated profiler, getting metrics isnt something well understood. Here are some basic techniques to get you equipped with the tools to improve the responiveness of your code. Isnt this just a matter of pride? Everyone should care about how quick your code is! 47% of consumers expect a web page to load in 2 seconds or less. One fact tha...
jono.guthrie.net.nz
Dealing with web_request->param in Lasso 9
http://jono.guthrie.net.nz/Dealing-with-webrequest-param-in-Lasso-9
Param in Lasso 9". Brought to you by LEAP™ 5. Dealing with web request- param in Lasso 9. Lasso 9s new web request- param behaves quite differently to action param found in previous versions of Lasso. Its lower-level, and a little more verbose, but significantly faster - which makes it an obvious tool to master. Web request- param(myparam)- asString. For the backwards looking people out there, thats equivalent to [string(web request- param(myparam)]. Dealing with checkbox and multi-select inputs. Honestl...
jono.guthrie.net.nz
Conquering Internet Explorer's Double Cookie Madness
http://jono.guthrie.net.nz/Conquering-Internet-Explorer-double-cookie-madness
Brought to you by LEAP™ 5. Conquering Internet Explorer Double Cookie Madness. A while ago my company experienced a weird problem where users were logging into a system wed built for a client and yet -inexplicibly- then told them they could not view their content because they were not logged in. The common theme: every affected user was using Internet Explorer, but that wasnt the whole story. Joe Bloggs uses MSIE v.X as his every day browser (please no jokes Im being serious here). Heres the catch: In so...
jono.guthrie.net.nz
Creating reusable code with Lasso 9 Traits
http://jono.guthrie.net.nz/Creating-reusable-code-with-Lasso-9-Traits
Brought to you by LEAP™ 5. Creating reusable code with Lasso 9 Traits. When Kyle Jessup first introduced to me the concepts of Traits in Lasso 9, I thought cool, that will be really useful, then promptly forgot about the feature amongst all the other awesome new things in Lasso 9. Many months later I was getting tired of adding a delete method to every object on a sizable project, and I remembered traits! Building our demonstration type. Of these, I usually combine "Add" and "Update" into the same method...
jono.guthrie.net.nz
Portfolio of work by Jono Guthrie
http://jono.guthrie.net.nz/portfolio
Brought to you by LEAP™ 5. LEAP5 Content Management System. Mergini Business Operating System. Courier Booking / Management System. International Marine Research System. Database, uploads, storage, search, retreival). Programming language and server admin management system). Roll up the Rim tracker. Random things by Jonathan Guthrie. Developer and Application Architect, Ontario Canada. Rosetta Code - Language Popula. Measuring performance: Timing . Dealing with web request- para. A Lasso 9 Markdown Parser.
jono.guthrie.net.nz
Effective Error Control
http://jono.guthrie.net.nz/Effective-Error-Control
Brought to you by LEAP™ 5. Appropriate error handling is essential to any code - and yet its often included as an afterthought to systems large and small. Im going to cover some basic Lasso 9. Techniques for handling errors in this article that you can easily add to existing code as well as use as you construct your systems from the ground up. No developer likes to have their client emailing them with something this:. A Failure Error Code: -1 Error Msg: Position was out of range: 10 max is 3. This output...
jono.guthrie.net.nz
Twitter and jQuery
http://jono.guthrie.net.nz/Twitter-and-jQuery
Brought to you by LEAP™ 5. Twitter, jQuery and LEAPâ 5. Today I was reminded again about the quiet revolution for the web - jQuery. A lot of you might not realize, but so much of the new web experience that has made the net so much more accessible for Jane and Joe Public has come about by the widespread adoption of better JavaScript techniques and libraries. So rather than just turn on the cache, I wanted to add an option to the plugin to get the twitter feed after the page loads. Then came along JS libr...
jono.guthrie.net.nz
Protecting Lasso and JavaScript from each other
http://jono.guthrie.net.nz/Protecting-Lasso-and-JavaScript-from-each-other
Brought to you by LEAP™ 5. Protecting Lasso and JavaScript from one another. I got asked recently about how to use Lasso and JavaScript together, and while its a technique weve been coping with for years its one of those things we just assume people know and therefore its not out there in the public domain as to how. Lasso can use square brackets for including code in HTML, and yet JavaScript uses square brackets for arrays. Arguably simpler is the use of HTML comments inside the JavaScript. Its more...
SOCIAL ENGAGEMENT