Open in app

Sign In

Write

Sign In

Homam
Homam

109 Followers

Home

About

May 18, 2019

Reduce

Recently I needed to parse a semi-structured long text document and convert it into a data structure. As a lazy programmer I did not want to copy and paste the text a thousand times by hand. My solution was quite simple: read the document line-by-line, keep track of each line…

Java Script

12 min read

Java Script

12 min read


Sep 24, 2016

Making almost every non-interactive Web page work offline

Recently I spent a good part of two working days decoding service workers to make an app work offline. I hope this post clarifies some tricks and techniques for dealing with Cache Storage and Service Worker APIs and saves you some time. function fetch (req : Request) : Promise<Response> Fetch API provides a rich interface for creating…

Java Script

5 min read

Java Script

5 min read


Jul 8, 2016

Composability: from Callbacks to Categories in ES6

Promises are a well known solution to the Callback hell problem that arises in asynchronous JavaScript programs. Borrowing some ideas from Functional languages, I am exploring a different approach to address callback hell in this post. …

Java Script

13 min read

Java Script

13 min read


Jun 25, 2016

Timing asynchronous functions in JavaScript ES6

In this post I’ll present a reusable function for timing async operations in JavaScript. calc is an async function that we like to profile. By convention its last argument is a callback. We use calc like this: calc(arg, (err, res) => console.log(err || res)) Perhaps the easiest way of profiling…

Java Script

3 min read

Java Script

3 min read


Jan 30, 2016

Detecting Low Converting Web Traffic Early

We usually breakdown the traffic of a campaign into its sources: the publishers (apps or websites) which display our ads. Often the quality of traffic from different sources varies. Some sources never convert while some have a few times higher conversion rate than the campaign’s average. We like to detect…

Statistics

3 min read

Detecting Low Converting Web Traffic Early
Detecting Low Converting Web Traffic Early
Statistics

3 min read

Homam

Homam

109 Followers

Me: http://homam.me/ | My code: https://github.com/homam/

Following
  • John Rampton

    John Rampton

  • Bloom Intelligence

    Bloom Intelligence

  • Daishi Kato

    Daishi Kato

  • David Gilbertson

    David Gilbertson

  • Alchimie GmbH

    Alchimie GmbH

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech