Suraj Kapoor


Director of Product @WayUp, formerly @Lerer Hippeau. Technologist, Optimistic Contrarian.


  1. Building a URL link shortener in Python

    I recently built a link shortener in Python. The crux of the shortener is a function that condenses a long URL into something much shorter: http://bit.ly/1j469oO How is it possible to condense a 100+ length character string into a unique 6 length string? How's it possible to…

    on programming, python

  2. List, Set & Dictionary Comprehensions in Python

    Comprehensions in python are pretty cool. If you don't use them, I suggest you start right now. Most are familiar with list comprehensions, but set and dictionary comprehensions are available too. Here are simple examples of each. List Comprehension: As an example, say you have a list of numbers: l…

    on python

  3. Concurrency: Threading vs Multiprocessing in Python

    As programs become larger and more complex, they need to do more computations while maintaining speed. Concurrency is when multiple computations are performed in parallel, and there are techniques that enable us to do this such as Threading and Multiprocessing. What is Threading? Threading is when several programs run concurrently…

    on python, programming