• Memoization in Python and JavaScript

    Memoization is a technique that is used a lot in Dynamic Programming and in general to speed up algorithms.
    Memoization is the same as caching but in functional programming. The Caching mechanism will store the data into a cache store, and that data can be from anywhere (HTTP page, REST call, … etc) , where memoization is specific to cache the results of a function, and it create and maintain the store inside the function itself (so the function will be pure function) and send the store as a parameter into the function arguments.



    read more ...
    Regular expression: Extract HTML Links

    Explain advanced concepts of Regular Expressions through practical recipes:
    In this recipe we are going to cover:

    • Negated Character class
    • Non-capturing group
    • Non-Greedy quantifier.
    • Python’s findall, and JavaScript’s exec


    read more ...
    Regular expression: Extract Domain Names

    Explain advanced concepts of Regular Expressions through practical recipes:
    In this recipe we are going to cover:

    • Anchors
    • Non-capturing group
    • Python’s findall, and JavaScript’s exec


    read more ...
    Regular expression: Extract Comments From Code

    Explain advanced concepts of Regular Expressions through practical receipes:
    In this recipe we are going to cover:

    • Capturing Group
    • Negated Character Class
    • Greedy / non-greedy quantifier.


    read more ...
    Advanced Regular Expression Recipes - Introduction.

    Regular expressions are implemented by many languages, and they can be used for different purposes. Mainly they are used for text processing, as well they are important tools to write an efficient algorithms, and as well they can be used by data science specially in cleaning and scrapping the data to prepare it for modeling.



    read more ...