How to setup Google reCAPTCHA in a ReactJS app?

Google’s reCAPTCHA is an industry standard when it comes to fighting bots. Integrating it in a regular web app has almost become a no-brainer, thanks to plugins available on almost every platform to do the job. With this¬†expectation, I started¬†integrating it in my latest app built on ReactJS but¬†encountered many roadblocks. Without going into details, I’m sharing here fastest recipe for integrating it with your ReactJS app.
Continue reading How to setup Google reCAPTCHA in a ReactJS app?

The BackboneJS Way of Thinking

So you are frustrated tackling BackboneJS and wondering why it isn’t solving your problems as you had expected it to, after hearing about its glorious penetration in many high profile projects. Well, join the club, you are not alone. Here I’ll share my expectations when I imported BackboneJS for the first time in my project and my learning that I gained after weeks of trial and error and frustration.
Continue reading The BackboneJS Way of Thinking

JavaScript: Using Double Exclamation Marks !!

I have found JavaScript to be a super intuitive language: you learn the basics well, rest of the things will crawl up to your mind themselves. Recently I had to write a function that would tell me if a string is null or empty. Of course you can directly use the string reference to test if it contains anything:
Continue reading JavaScript: Using Double Exclamation Marks !!

Regular Expressions For Beginners: Lesson 1

A regular expression defines a search pattern for strings. This pattern may match one or several times or not at all for a given string. The abbreviation for regular expression is regex.

Regular expressions can helps in

  • Searching and pattern matching
  • Text replacement
  • Collecting information ( word count, no. of spaces, no. of lines)
  • Available in almost all languages (Perl, PHP, Java, .Net, JavaScript)
  • Many default operating system programs support regex ( grep, windows search). Some other programs like syntax highlighters and Eclipse Search also use regex power.

Continue reading Regular Expressions For Beginners: Lesson 1