Open in app

Sign In

Write

Sign In

Federico Kereki
Federico Kereki

361 Followers

Home

About

Published in

StackAnatomy

·Pinned

Forever Functional: the Series

If you’re interested in Functional Programming you’ll surely be interested in this series. Missed any articles? Here’s the updated list of all the “Forever Functional” articles on using Functional Programming with JavaScript. I’ll keep updating the list as I add new articles, the newest ones at the top! Forever Functional #26 — Simpler code through Partial Application “Partial Application” may sound like a complex thing, but it is actually quite a powerful tool that will simplify the…fkereki.medium.com

Functional Programming

3 min read

Forever Functional: the Series
Forever Functional: the Series
Functional Programming

3 min read


Published in

Globant

·Pinned

Be on guard against unguarded “if/else” statements!

Three steps to bring guarded statements to JavaScript for safer, better code, and forgo common usage of “else” statements. — Edsger W. Dijkstra, a Turing Award winner and ACM Fellow, the inventor of the “structured programming” phrase, and one of the first drivers of Computer Programming becoming a scientific discipline, made many contributions to the theory of programming. In this article we’ll be going back to a very old idea…

JavaScript

9 min read

Be on guard against “if/else” statements!
Be on guard against “if/else” statements!
JavaScript

9 min read


Published in

Cantor’s Paradise

·Pinned

A Modern Look at Square Roots in the Babylonian Way

Revisiting the Babylonian method for square roots: why and how does it work? In my A totally new, very old method for finding square roots article, I described how I discovered an algorithm that actually happened to be very old and well-known: the “Babylonian method.” (See References, at the bottom…

Math

8 min read

A Modern Look at Square Roots in the Babylonian Way
A Modern Look at Square Roots in the Babylonian Way
Math

8 min read


Published in

Cantor’s Paradise

·Pinned

A Totally New, Very Old Method for Finding Square Roots

A new iterative method to approximate square roots — actually shown to be centuries old! Isaac Asimov once wrote [1] that all his discoveries in Math were either “completely correct findings that are quite old [or] completely new findings that are quite wrong.” I just had exactly the same experience…

Math

9 min read

A Totally New, Very Old Method for Finding Square Roots
A Totally New, Very Old Method for Finding Square Roots
Math

9 min read


Published in

Globant

·Pinned

PEG away at evaluating expressions in JavaScript

Safely evaluate expressions in JavaScript in a simple yet powerful way, by using a Parsing Expression Grammar Recently, in a front-end project I was working on, the client needed to be able to define calculations by entering formulas using numbers, variables, and functions. …

JavaScript

9 min read

PEG away at evaluating expressions in JavaScript
PEG away at evaluating expressions in JavaScript
JavaScript

9 min read


Published in

Globant

·3 days ago

Solving "The Rare Card" puzzle

How to win Globant's contest with algorithms! — For the Under-20 World 2023 Cup in Argentina, Globant created a contest with a puzzle of mine, "The Rare Card", the solution of which would allow a winner to travel to the final match in the tournament.

Puzzle

11 min read

Solving "The Rare Card" puzzle
Solving "The Rare Card" puzzle
Puzzle

11 min read


May 28

Forever Functional #26 — Simpler code through Partial Application

“Partial Application” may sound like a complex thing, but it is actually quite a powerful tool that will simplify the way you work, and this article will show you how to easily implement it for your JavaScript code. When we discussed higher-order functions such as decorators, we saw several ways…

JavaScript

5 min read

Forever Functional #26 — Simpler code through Partial Application
Forever Functional #26 — Simpler code through Partial Application
JavaScript

5 min read


Published in

StackAnatomy

·Apr 26

Forever Functional #25 — Powers, through the Power of Recursion!

Recursion is a powerful tool for algorithm design, and this article will show several examples of its application to produce some math calculations. How can you calculate powers? In JavaScript, that’s easy: if you want to calculate 2^3 (also written as 2³) you can either use Math.pow(2,3) or in a…

JavaScript

9 min read

Forever Functional #25 — Powers, through the Power of Recursion!
Forever Functional #25 — Powers, through the Power of Recursion!
JavaScript

9 min read


Apr 10

Forever Functional #24 — Decorators: new style higher-order functions

In previous articles, we discussed what a higher-order function (HOF) was and how we could use them to extend the functionality of our code, both for JavaScript and for TypeScript programming. As a summary, a HOF is a function that takes functions as arguments, and possibly returns a function as…

Functional Programming

8 min read

Forever Functional #24— Decorators: new style higher-order functions
Forever Functional #24— Decorators: new style higher-order functions
Functional Programming

8 min read


Feb 12

Forever Functional #20 — Solving puzzles with recursion and JavaScript

How do you solve Kakuro or Killer Sudoku puzzles? Or create Magic Squares? Or possibly solve Cryptarithmetic puzzles? We can do all that with JavaScript, some recursive techniques, and some extra code, as we’ll see below. Some basic concepts All the puzzles we’ll be considering have to do with distinct numbers. Suppose we…

Recursion

10 min read

Forever Functional #20 — Solving puzzles with recursion and JavaScript
Forever Functional #20 — Solving puzzles with recursion and JavaScript
Recursion

10 min read

Federico Kereki

Federico Kereki

361 Followers

Computer Systems Engineer, MSc in Education, Subject Matter Expert at Globant

Following
  • Fernando Doglio

    Fernando Doglio

  • Kent Beck

    Kent Beck

  • Dimitris Papadimitriou

    Dimitris Papadimitriou

  • Node.js

    Node.js

  • Dan Abramov

    Dan Abramov

See all (16)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams