Lasso

Lasso

Measuring performance: Timing your code


Being concerned for the performance of your code should be important to you… but if you’re not using a dedicated profiler, getting metrics isn’t something well understood. Here are some basic techniques to get you equipped with the tools to improve the responiveness of your code. Isn’t this just a matter of pride? Everyone should

Read More

Lasso

Creating Client Side API’s


The strength of the Net isn’t just what you put on it – it’s also how you interact with the world around you. According to the great oracle Wikipedia: An application programming interface (API) specifies how some software components should interact with each other. […] In practice, many times an API comes in the form

Read More

Lasso

Dealing with web_request->param in Lasso 9


Lasso 9’s new “web_request->param” behaves quite differently to action_param found in previous versions of Lasso. It’s lower-level, and a little more verbose, but significantly faster – which makes it an obvious tool to master. Simple usage: web_request->param(‘myparam’) … returns the GET or POST param “myparam”. However, it returns it as a “bytes” type, which for

Read More

Lasso

Effective Error Control


Appropriate error handling is essential to any code – and yet it’s often included as an afterthought to systems large and small. I’m 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

Read More

Lasso

Making JSON Simple


JSON is the communications backbone of the modern data-responsive web. It is actually quite simple – and yet I’ve 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: What is

Read More

Lasso

Conquering Internet Explorer Double Cookie Madness


A while ago my company experienced a weird problem where users were logging into a system we’d 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 wasn’t the whole story.

Read More

Lasso

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

Read More

Lasso

Protecting Lasso and JavaScript from one another


I got asked recently about how to use Lasso and JavaScript together, and while it’s a technique we’ve been coping with for years it’s one of those things we just assume people know and therefore it’s not “out there” in the public domain as to how. Lasso can use square brackets for including code in

Read More