JavaScript for Line of Business Applications
524.0K views | +71 today
Follow
JavaScript for Line of Business Applications
Keeping track of current JavaScript Frameworks that help design your clientside Business Logic Layers.
Curated by Jan Hesse
Beam to my Inbox:
Your new post is loading...
Your new post is loading...
Scoop.it!

Regular Expressions Tools & Resources for Developers

Regular Expressions Tools & Resources for Developers | JavaScript for Line of Business Applications | Scoop.it
In this article we have gathered some Best Regular Expressions Tools & Resources that would help you to easily learn and become master of it.
more...
No comment yet.
Scoop.it!

Hand-written lexer in Javascript compared to the regex-based ones

Hand-written lexer in Javascript compared to the regex-based ones | JavaScript for Line of Business Applications | Scoop.it

However, in the real world you’ll find that most lexers (particularly lexers for real programming languages) are not written that way. They are carefully hand-written to go over the input and dispatch to the appropriate token handling code depending on the first character encountered.

This technique makes more sense for complex languages because it’s much more flexible than regexes (for instance, representing nested comments with regexes is a big challenge). But I was curious also about its performance implications.

So I hacked together a hand-written lexer for exactly the same language used in the previous benchmark and also exercised it on the same large file to make sure the results are correct. Its runtime, however, surprised me. Here’s the runtime of lexing a large-ish document (smaller is better):

more...
No comment yet.
Scoop.it!

What you should know about JavaScript regular expressions

What you should know about JavaScript regular expressions | JavaScript for Line of Business Applications | Scoop.it

Regular expressions in JavaScript may not always be intuitive. I aim to provide some clarity by providing examples about things I have found myself getting stuck on. This post covers a few topics including state in regular expressions, regular expression performance and various things that have tripped me up.

more...
No comment yet.
Scoop.it!

JavaScript Regular Expression Enlightenment

JavaScript Regular Expression Enlightenment | JavaScript for Line of Business Applications | Scoop.it

I have had a love/hate relationship with regular expressions in the past. Reading or writing a regular expression typically made me feel like I was toying with a broken Rubiks Cube. However, after I would fiddle an expression into submission, almost by accident, and it did its job, I would become enamored with its brevity and power.

more...
No comment yet.