Readit News logoReadit News
oldboyFX commented on What’s so great about functional programming anyway?   jrsinclair.com/articles/2... · Posted by u/redbell
fleddr · 3 years ago
I'm sure this is a wonderful intellectual exercise in computer science and math, but if this is to be the advertisement in favor of functional programming, I wouldn't consider myself a customer.

You start out with code that will not win any beauty awards but it gets the job done. It's easy to understand by programmers of any seniority, it's simple to debug and reasonably easy to put in an automatic unit test.

Next, you add all kinds of vague, poorly named meta utilities that don't seem to solve any tangible real world problem. You even mess with built-in JS methods like map. The code is now harder to understand and more difficult to debug.

A massive pain is added for some theoretical purity that few even understand or will benefit from. I'll double down on my rebellion by stating that the portability of code is overrated.

Here we're writing code to format notification objects. In our overengineering mindset, we break this down into many pieces and for each piece consider reusability outside this context to be of prime importance.

Why though? Why not just solve the problem directly without these extra self-inflicted goals? The idea that this is a best practice is a disease in our industry.

Most code that is written prematurely as reusable, will in fact never be reused outside its original context. And even if it is reused, that doesn't mean that outcome is so great.

Say that the sub logic to format a user profile link turned out to be needed outside this notification context. Our foresight to have made it reusable in the first place was solid. Now two completely different functional contexts are reusing this logic. Next, the marketing department goes: well actually...you need to add a tracking param specifically for links in the notification context, and only there.

Now your "portability" is a problem. There's various ways to deal with it, and I'm sure we'll pick the most complicated one in the name of some best practice.

After 20 years in the industry, you know how I would write the logic? A single method "formatNotification". It wouldn't weirdly copy the entire object over and over again, it would directly manipulate the object, one piece at a time. Error checking is in the method as well. You can read the entire logic top to bottom without jumping into 7 files. You can safely make changes to it and its intuitive to debug. Any junior would get it in about 2 minutes.

Clear, explicit code that requires minimum cognitive parsing.

oldboyFX · 3 years ago
Thank you for writing this. I've come to exactly the same conclusion after a decade of building and delivering complex tangible applications which others have to maintain after I'm gone.
oldboyFX commented on Ask HN: Freelancer? Seeking freelancer? (January 2021)    · Posted by u/whoishiring
oldboyFX · 5 years ago
SEEKING WORK | Central Europe(EU, CET+0) | Remote | https://getivor.com

I'm a seasoned web development expert with a knack for UX design. I specialize in front-end(React), but also do back-end(Node).

I have extensive experience in architecting, building, and delivering large custom-made web applications.

Over the last decade I helped several US/EU based clients build Airbnb-like platforms, real-time GPS vehicle tracking suites, healthcare/finance/construction apps, and more.

I mostly collaborate with tech companies, but also have a lot of positive experiences assuming CTO-for-hire roles to work with non-technical founders.

Tech stack: React.js, JS/TypeScript/Babel, Node, Webpack, GraphQL, ESLint, Cypress.io, styled-components etc.

• Read more on my website: https://getivor.com

• View recent project - Jira Clone (6,4k stars): https://github.com/oldboyxx/jira_clone | Live demo: https://jira.ivorreic.com

• Passion project from 2014 (100k monthly visitors): https://movieo.me/movies

RATE: $150/hour with a minimum budget of $30k.

Get in touch: ivor@codetree.co

oldboyFX commented on Ask HN: Freelancer? Seeking freelancer? (December 2020)    · Posted by u/whoishiring
oldboyFX · 5 years ago
SEEKING WORK | Central Europe(EU, CET+0) | Remote | https://getivor.com

I'm a seasoned web development expert with a knack for UX design. I specialize in front-end(React), but also do back-end(Node).

I have extensive experience in architecting, building, and delivering large custom-made web applications.

Over the last decade I helped several US/EU based clients build Airbnb-like platforms, real-time GPS vehicle tracking suites, healthcare/finance/construction apps, and more.

I mostly collaborate with tech companies, but also have a lot of positive experiences assuming CTO-for-hire roles to work with non-technical founders.

Tech stack: React.js, JS/TypeScript/Babel, Node, Webpack, GraphQL, ESLint, Cypress.io, styled-components etc.

• Read more on my website: https://getivor.com

• View recent project - Jira Clone (6,4k stars): https://github.com/oldboyxx/jira_clone | Live demo: https://jira.ivorreic.com

• Passion project from 2014 (100k monthly visitors): https://movieo.me/movies

RATE: $150/hour with a minimum budget of $30k.

Get in touch: ivor@codetree.co

oldboyFX commented on Ask HN: Freelancer? Seeking freelancer? (November 2020)    · Posted by u/whoishiring
oldboyFX · 5 years ago
SEEKING WORK | Central Europe(EU, CET+0) | Remote | https://getivor.com

I'm a seasoned web development expert with a knack for UX design. I specialize in front-end(React), but also do back-end(Node).

I have extensive experience in architecting, building, and delivering large custom-made web applications.

Over the last decade I helped several US/EU based clients build Airbnb-like platforms, real-time GPS vehicle tracking suites, healthcare/finance/construction apps, and more.

I mostly collaborate with tech companies, but also have a lot of positive experiences assuming CTO-for-hire roles to work with non-technical founders.

Tech stack: React.js, JS/TypeScript/Babel, Node, Webpack, GraphQL, ESLint, Cypress.io, styled-components etc.

• Read more on my website: https://getivor.com

• View recent project - Jira Clone (6,4k stars): https://github.com/oldboyxx/jira_clone | Live demo: https://jira.ivorreic.com

• Passion project from 2014 (100k monthly visitors): https://movieo.me/movies

RATE: $150/hour with a minimum budget of $30k.

Get in touch: ivor@codetree.co

oldboyFX commented on Ask HN: Who wants to be hired? (October 2020)    · Posted by u/whoishiring
oldboyFX · 5 years ago
We are a two-person web development team with extensive experience in architecting, building, and managing large custom-made applications.

Recent projects: https://codetree.co/case-studies

Throughout the last decade we built Airbnb-like platforms, music streaming apps, healthcare/finance/construction apps, real-time GPS vehicle tracking suites, worked on core systems of big data platforms (millions of daily transactions) and more.

We mostly collaborate with companies, but also have a lot of positive experiences assuming CTO-for-hire roles to work with non-technical founders.

---

Location: Central Europe

Remote: Yes, since the beginning of our careers

Willing to relocate: No

Email: vedran@codetree.co

---

We specialize in in back-end, DevOps, system administration (Ruby on Rails, PostgreSQL, Elastic, Docker, AWS, etc.), and also do light React/Front-end work when necessary.

Read more on https://codetree.co/

oldboyFX commented on Ask HN: Freelancer? Seeking freelancer? (October 2020)    · Posted by u/whoishiring
oldboyFX · 5 years ago
SEEKING WORK | Central Europe | Remote web development

My partner and I have extensive experience in architecting, building, and managing large custom-made web applications.

Recent projects: https://codetree.co/case-studies

Throughout the last decade we built Airbnb-like platforms, music streaming apps, healthcare/finance/construction apps, real-time GPS vehicle tracking suites, worked on core systems of big data platforms (millions of daily transactions) and more.

We mostly collaborate with companies, but also have a lot of positive experiences assuming CTO-for-hire roles to work with non-technical founders.

We specialize in back-end, DevOps, system administration (Ruby on Rails, PostgreSQL, AWS, Docker, Elastic, etc.), and also do light React/Front-end work when necessary.

Read more: https://codetree.co/

Get in touch: vedran@codetree.co

oldboyFX commented on Ask HN: Freelancer? Seeking freelancer? (September 2020)    · Posted by u/whoishiring
oldboyFX · 5 years ago
SEEKING WORK | Central Europe | Remote web development

My partner and I have extensive experience in architecting, building, and managing large custom-made web applications.

Recent projects: https://codetree.co/case-studies

Throughout the last decade we built Airbnb-like platforms, music streaming apps, healthcare/finance/construction apps, real-time GPS vehicle tracking suites, worked on core systems of big data platforms (millions of daily transactions) and more.

We mostly collaborate with companies, but also have a lot of positive experiences assuming CTO-for-hire roles to work with non-technical founders.

We specialize in back-end, DevOps, system administration (Ruby on Rails, PostgreSQL, AWS, Docker, Elastic, etc.), and also do light React/Front-end work when necessary.

Read more: https://codetree.co/

Get in touch: vedran@codetree.co

oldboyFX commented on Ask HN: Who wants to be hired? (September 2020)    · Posted by u/whoishiring
oldboyFX · 5 years ago
We are a two-person web development team with extensive experience in architecting, building, and managing large custom-made applications.

Recent projects: https://codetree.co/case-studies

Throughout the last decade we built Airbnb-like platforms, music streaming apps, healthcare/finance/construction apps, real-time GPS vehicle tracking suites, worked on core systems of big data platforms (millions of daily transactions) and more.

We mostly collaborate with companies, but also have a lot of positive experiences assuming CTO-for-hire roles to work with non-technical founders.

---

Location: Central Europe

Remote: Yes, since the beginning of our careers

Willing to relocate: No

Email: vedran@codetree.co

---

We specialize in in back-end, DevOps, system administration (Ruby on Rails, PostgreSQL, Elastic, Docker, AWS, etc.), and also do light React/Front-end work when necessary.

Read more on https://codetree.co/

oldboyFX commented on Ask HN: Who wants to be hired? (July 2020)    · Posted by u/whoishiring
oldboyFX · 5 years ago
We are a two-person web development team with extensive experience in architecting, building, and managing large custom-made applications.

Recent projects: https://codetree.co/case-studies

Throughout the last decade we built Airbnb-like platforms, music streaming apps, healthcare/finance/construction apps, real-time GPS vehicle tracking suites, worked on core systems of big data platforms (millions of daily transactions) and more.

We mostly collaborate with companies, but also have a lot of positive experiences assuming CTO-for-hire roles to work with non-technical founders.

---

Location: Central Europe

Remote: Yes, since the beginning of our careers

Willing to relocate: No

Email: vedran@codetree.co

---

We specialize in in back-end, DevOps, system administration (Ruby on Rails, PostgreSQL, Elastic, Docker, AWS, etc.), and also do light React/Front-end work when necessary.

Read more on https://codetree.co/

oldboyFX commented on Ask HN: Freelancer? Seeking freelancer? (July 2020)    · Posted by u/whoishiring
oldboyFX · 5 years ago
SEEKING WORK | Central Europe | Remote web development

My partner and I have extensive experience in architecting, building, and managing large custom-made web applications.

Recent projects: https://codetree.co/case-studies

Throughout the last decade we built Airbnb-like platforms, music streaming apps, healthcare/finance/construction apps, real-time GPS vehicle tracking suites, worked on core systems of big data platforms (millions of daily transactions) and more.

We mostly collaborate with companies, but also have a lot of positive experiences assuming CTO-for-hire roles to work with non-technical founders.

We specialize in back-end, DevOps, system administration (Ruby on Rails, PostgreSQL, AWS, Docker, Elastic, etc.), and also do light React/Front-end work when necessary.

Read more: https://codetree.co/

Get in touch: vedran@codetree.co

u/oldboyFX

KarmaCake day730October 5, 2014View Original