# Federico Cargnelutti

Posts from 2008 - 2018

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Intercepting class method invocations using metaclass programming in Python

DevFeed: [Intercepting class method invocations using metaclass programming in Python](<https://devfeed.tech/articles/intercepting-class-method-invocations-using-metaclass-programming-in-python-20740.md>)

Original publisher: [Read original article](<https://blog.fedecarg.com/2018/10/08/intercepting-class-method-invocations-using-metaclass-programming-in-python/>)

Author: Federico

Published: 2018-10-08T19:52:00Z

Content type: tutorial

Language: en

Sources: [Federico Cargnelutti](<https://devfeed.tech/sources/federico-cargnelutti.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [class](<https://devfeed.tech/topics/class.md>), [Ruby](<https://devfeed.tech/topics/ruby.md>)

Tags: [class](<https://devfeed.tech/tags/class.md>), [programming](<https://devfeed.tech/tags/programming.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

The excerpt describes using Python metaclass programming to intercept class method calls, in a way compared to Ruby's `method_missing`. Python uses `type` by default to create classes; a class's `__metaclass__` can instead control its creation and modify it automatically. The excerpt cautions that Python does not distinguish methods from attributes as Ruby does: it presents a method as a property whose type is `instancemethod`. The example's implementation details are not included in the supplied text.

### Source excerpt

In Ruby, objects have a handy method called method_missing which allows one to handle method calls for methods that have not been defined. Most examples out there explain how to implement this in Python using __getattr__, however, none of them (honestly, none) explain how to intercept class method (@classmethod) invocations using __metaclass__. And this is [...]

## API Development Tips

DevFeed: [API Development Tips](<https://devfeed.tech/articles/api-development-tips-20739.md>)

Original publisher: [Read original article](<https://blog.fedecarg.com/2018/06/18/api-development-tips/>)

Author: Federico

Published: 2018-06-18T12:45:00Z

Content type: tutorial

Language: en

Sources: [Federico Cargnelutti](<https://devfeed.tech/sources/federico-cargnelutti.md>)

Topics: [programming-tips](<https://devfeed.tech/topics/programming-tips.md>), [API](<https://devfeed.tech/topics/api.md>), [versioning](<https://devfeed.tech/topics/versioning.md>), [API Logging](<https://devfeed.tech/topics/api-logging.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [health check](<https://devfeed.tech/topics/health-check.md>), [Back end](<https://devfeed.tech/topics/backend.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [api-development](<https://devfeed.tech/tags/api-development.md>), [apis](<https://devfeed.tech/tags/apis.md>), [back-end](<https://devfeed.tech/tags/back-end.md>), [black](<https://devfeed.tech/tags/black.md>), [box](<https://devfeed.tech/tags/box.md>), [cables](<https://devfeed.tech/tags/cables.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [development](<https://devfeed.tech/tags/development.md>), [failure](<https://devfeed.tech/tags/failure.md>), [future](<https://devfeed.tech/tags/future.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [open-web](<https://devfeed.tech/tags/open-web.md>), [pitfalls](<https://devfeed.tech/tags/pitfalls.md>), [plan](<https://devfeed.tech/tags/plan.md>), [releases](<https://devfeed.tech/tags/releases.md>), [software-architecture](<https://devfeed.tech/tags/software-architecture.md>), [standards](<https://devfeed.tech/tags/standards.md>), [test](<https://devfeed.tech/tags/test.md>), [tips](<https://devfeed.tech/tags/tips.md>), [web](<https://devfeed.tech/tags/web.md>), [web-api](<https://devfeed.tech/tags/web-api.md>), [web-services](<https://devfeed.tech/tags/web-services.md>)

### AI overview

The excerpt recommends designing open web APIs for failure across back-end systems, network interconnections, and external dependencies. It advises testing user-visible behavior with end-to-end black-box tests, replaying access logs, and validating response payloads; planning and announcing versions; and following standards to keep APIs predictable and avoid difficult migrations. It also recommends monitoring trends, communicating honestly, returning well-formed errors, making monitoring easy, and limiting the impact of failures by considering who is affected most.

### Source excerpt

Organisations who are paying attention already know they need to have an open web API, and many already have under development or in the wild. Make sure you haven't been caught by the pitfalls of many early API releases. Multiple points of failure: The 5 tips Test it all Plan for future versions Embrace standards [...]

## Collective Wisdom from the Experts

DevFeed: [Collective Wisdom from the Experts](<https://devfeed.tech/articles/collective-wisdom-from-the-experts-20738.md>)

Original publisher: [Read original article](<https://blog.fedecarg.com/2018/06/06/collective-wisdom-from-the-experts/>)

Author: Federico

Published: 2018-06-06T23:06:00Z

Content type: article

Language: en

Sources: [Federico Cargnelutti](<https://devfeed.tech/sources/federico-cargnelutti.md>)

Topics: [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [engineering-leadership](<https://devfeed.tech/topics/engineering-leadership.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [Self-organizing Team](<https://devfeed.tech/topics/self-organizing-team.md>)

Tags: [advice](<https://devfeed.tech/tags/advice.md>), [architect](<https://devfeed.tech/tags/architect.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [book](<https://devfeed.tech/tags/book.md>), [communication](<https://devfeed.tech/tags/communication.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [developer](<https://devfeed.tech/tags/developer.md>), [developers](<https://devfeed.tech/tags/developers.md>), [development](<https://devfeed.tech/tags/development.md>), [disaster](<https://devfeed.tech/tags/disaster.md>), [effective-communication](<https://devfeed.tech/tags/effective-communication.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [essential](<https://devfeed.tech/tags/essential.md>), [experience](<https://devfeed.tech/tags/experience.md>), [failure](<https://devfeed.tech/tags/failure.md>), [frameworks](<https://devfeed.tech/tags/frameworks.md>), [interfaces](<https://devfeed.tech/tags/interfaces.md>), [patterns](<https://devfeed.tech/tags/patterns.md>), [performance](<https://devfeed.tech/tags/performance.md>), [software](<https://devfeed.tech/tags/software.md>), [software-architecture](<https://devfeed.tech/tags/software-architecture.md>)

### AI overview

The excerpt presents *97 Things Every Software Architect Should Know* as a collection of experience-based lessons for software project leaders, covering stakeholder communication, complexity, and developer empowerment. Its examples advise architects to use frameworks that address specific problems without adding unnecessary complexity, recognize that people can be central to project success or failure, and communicate goals and decisions clearly while involving developers in the architecture process. The book is described as broadly useful beyond technical design, but, as a compilation, it is not intended to provide in-depth or theoretical treatment of architecture and software engineering.

### Source excerpt

I've finally had a chance to read a book I bought a while ago called "97 Things Every Software Architect Should Know - Collective Wisdom from the Experts". Not the shortest title for a book, but very descriptive. I bought this book at the OSCON Conference in Portland last year. It's an interesting book and [...]

## How to create a Data Container Component in React

DevFeed: [How to create a Data Container Component in React](<https://devfeed.tech/articles/how-to-create-a-data-container-component-in-react-20737.md>)

Original publisher: [Read original article](<https://blog.fedecarg.com/2018/03/24/react-data-container-component-pattern/>)

Author: Federico

Published: 2018-03-24T14:31:38Z

Content type: tutorial

Language: en

Sources: [Federico Cargnelutti](<https://devfeed.tech/sources/federico-cargnelutti.md>)

Topics: [React](<https://devfeed.tech/topics/react.md>), [User Interfaces](<https://devfeed.tech/topics/user-interfaces.md>), [Redux](<https://devfeed.tech/topics/redux.md>)

Tags: [component](<https://devfeed.tech/tags/component.md>), [design-patterns](<https://devfeed.tech/tags/design-patterns.md>), [frameworks](<https://devfeed.tech/tags/frameworks.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [react](<https://devfeed.tech/tags/react.md>), [redux](<https://devfeed.tech/tags/redux.md>), [ui](<https://devfeed.tech/tags/ui.md>), [ui-components](<https://devfeed.tech/tags/ui-components.md>)

### AI overview

A tutorial on the Data Container pattern in React. It explains how to separate data access and behavior from presentational components, compares inheritance with composition, and mentions Redux and other data-store options.

### Source excerpt

One pattern I've used quite a lot while working with React at the BBC and Discovery Channel is the Data Container pattern. It became popular in the last couple of years thanks to libraries like Redux and Komposer. The idea is simple. When you build UI components in React you feed data into them via [...]

## How to pass variables to a Docker container when building a Node app

DevFeed: [How to pass variables to a Docker container when building a Node app](<https://devfeed.tech/articles/how-to-pass-variables-to-a-docker-container-when-building-a-node-app-20736.md>)

Original publisher: [Read original article](<https://blog.fedecarg.com/2016/11/05/how-to-pass-variables-to-a-docker-container-when-building-a-node-app/>)

Author: Federico

Published: 2016-11-05T21:42:00Z

Content type: tutorial

Language: en

Sources: [Federico Cargnelutti](<https://devfeed.tech/sources/federico-cargnelutti.md>)

Topics: [Environment Variables](<https://devfeed.tech/topics/environment-variables.md>), [Dockerfile](<https://devfeed.tech/topics/dockerfile.md>), [Container Image Building](<https://devfeed.tech/topics/container-image-building.md>)

Tags: [arguments](<https://devfeed.tech/tags/arguments.md>), [build](<https://devfeed.tech/tags/build.md>), [builder](<https://devfeed.tech/tags/builder.md>), [building](<https://devfeed.tech/tags/building.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [docker](<https://devfeed.tech/tags/docker.md>), [dockerfile](<https://devfeed.tech/tags/dockerfile.md>), [http-server](<https://devfeed.tech/tags/http-server.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [linux](<https://devfeed.tech/tags/linux.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [npm](<https://devfeed.tech/tags/npm.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [programming](<https://devfeed.tech/tags/programming.md>), [shell](<https://devfeed.tech/tags/shell.md>), [variables](<https://devfeed.tech/tags/variables.md>)

### AI overview

The excerpt distinguishes Docker build arguments from environment variables: ARG defines values users can supply with --build-arg when building an image, while ENV sets a value that persists when a container runs from the resulting image. It also notes that a set NODE_ENV can be used by the shell when running an NPM script, then mentions exposing a port and starting the HTTP server. The code examples are omitted.

### Source excerpt

Environment variables are declared with the ENV statement and are notated in the Dockerfile either with $VARIABLE_NAME or ${VARIABLE_NAME}. Passing variables at build-time The ENV instruction sets the environment variable to the value. The environment variables set using ENV will persist when a container is run from the resulting image. For example: The Dockerfile allows you to specify arguments [...]

## Website performance monitoring tool

DevFeed: [Website performance monitoring tool](<https://devfeed.tech/articles/website-performance-monitoring-tool-20735.md>)

Original publisher: [Read original article](<https://blog.fedecarg.com/2016/08/01/website-performance-monitoring-open-source-tool/>)

Author: Federico

Published: 2016-08-01T16:54:00Z

Content type: article

Language: en

Sources: [Federico Cargnelutti](<https://devfeed.tech/sources/federico-cargnelutti.md>)

Topics: [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [Monitoring & Alerting](<https://devfeed.tech/topics/monitoring-alerting.md>), [synthetic monitoring](<https://devfeed.tech/topics/synthetic-monitoring.md>), [dashboards](<https://devfeed.tech/topics/dashboards.md>), [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>), [hosting](<https://devfeed.tech/topics/hosting.md>)

Tags: [apps](<https://devfeed.tech/tags/apps.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [performance](<https://devfeed.tech/tags/performance.md>), [performance-monitoring](<https://devfeed.tech/tags/performance-monitoring.md>), [tool](<https://devfeed.tech/tags/tool.md>), [tools](<https://devfeed.tech/tags/tools.md>), [web-services](<https://devfeed.tech/tags/web-services.md>), [website](<https://devfeed.tech/tags/website.md>), [website-performance](<https://devfeed.tech/tags/website-performance.md>)

### AI overview

SpeedTracker is an open-source, MIT-licensed, self-hosted monitoring tool that runs periodic WebPageTest checks and charts website performance metrics over time. It stores WebPageTest data in a GitHub repository, which can be served through GitHub Pages or a private or public repository, and supports performance budgets with email or Slack alerts when a budget is exceeded. The excerpt presents it as a lower-cost alternative to professional services such as Calibre or SpeedCurve, but gives no pricing or detailed setup requirements.

### Source excerpt

Monitoring systems allow you to monitor changes to your front-end code base over time, catching any regression issues and monitoring the ongoing effects of any performance optimisation changes. Easy to use dashboards are a must when it comes to monitoring the state of your web apps. Companies like Calibre or SpeedCurve offer this as a [...]

## Recommender Systems: Content-based, Social recommendations and Collaborative filtering

DevFeed: [Recommender Systems: Content-based, Social recommendations and Collaborative filtering](<https://devfeed.tech/articles/recommender-systems-content-based-social-recommendations-and-collaborative-filtering-20733.md>)

Original publisher: [Read original article](<https://blog.fedecarg.com/2016/06/26/recommender-systems-content-based-social-recommendations-and-collaborative-filtering/>)

Author: Federico

Published: 2016-06-26T13:50:00Z

Content type: article

Language: en

Sources: [Federico Cargnelutti](<https://devfeed.tech/sources/federico-cargnelutti.md>)

Topics: [recommendation systems](<https://devfeed.tech/topics/recommendation-systems.md>), [personalization](<https://devfeed.tech/topics/personalization.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-ml](<https://devfeed.tech/tags/ai-ml.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [app](<https://devfeed.tech/tags/app.md>), [approach](<https://devfeed.tech/tags/approach.md>), [apps](<https://devfeed.tech/tags/apps.md>), [behaviour](<https://devfeed.tech/tags/behaviour.md>), [challenge](<https://devfeed.tech/tags/challenge.md>), [content-marketing](<https://devfeed.tech/tags/content-marketing.md>), [convenient](<https://devfeed.tech/tags/convenient.md>), [information](<https://devfeed.tech/tags/information.md>), [online](<https://devfeed.tech/tags/online.md>), [quality](<https://devfeed.tech/tags/quality.md>), [recommendations](<https://devfeed.tech/tags/recommendations.md>), [recommender-systems](<https://devfeed.tech/tags/recommender-systems.md>), [services](<https://devfeed.tech/tags/services.md>), [social](<https://devfeed.tech/tags/social.md>), [software-architecture](<https://devfeed.tech/tags/software-architecture.md>), [streaming](<https://devfeed.tech/tags/streaming.md>), [switching](<https://devfeed.tech/tags/switching.md>), [video](<https://devfeed.tech/tags/video.md>), [web-development](<https://devfeed.tech/tags/web-development.md>)

### AI overview

Recommendation engines predict how much a viewer may like movies or videos, helping them find content without searching or browsing a guide. The excerpt identifies three approaches: content-based systems use item features such as genre, cast, and age; social recommendations draw on other people's personal choices; and collaborative filtering uses user behavior, preferences, and ratings. It says platforms often combine these sources in a hybrid approach. The excerpt begins to note that content features may be weak predictors of viewer preference, but ends before explaining further limitations.

### Source excerpt

With the proliferation of video on-demand streaming services, viewers face a big challenge: finding content across multiple screens and apps. There may be quality information available online but it may be difficult to find. Traditionally, viewers resort to "app switching" which can be frustrating when it comes to finding quality content. With the emergence of [...]

## Installing multiple versions of Ruby using RVM

DevFeed: [Installing multiple versions of Ruby using RVM](<https://devfeed.tech/articles/installing-multiple-versions-of-ruby-using-rvm-20731.md>)

Original publisher: [Read original article](<https://blog.fedecarg.com/2014/08/26/installing-multiple-versions-of-ruby-using-rvm/>)

Author: Federico

Published: 2014-08-26T23:26:22Z

Content type: tutorial

Language: en

Sources: [Federico Cargnelutti](<https://devfeed.tech/sources/federico-cargnelutti.md>)

Topics: [Ruby](<https://devfeed.tech/topics/ruby.md>), [Ruby on Rails](<https://devfeed.tech/topics/ruby-on-rails.md>)

Tags: [applications](<https://devfeed.tech/tags/applications.md>), [download](<https://devfeed.tech/tags/download.md>), [environment](<https://devfeed.tech/tags/environment.md>), [install](<https://devfeed.tech/tags/install.md>), [interpreter](<https://devfeed.tech/tags/interpreter.md>), [latest](<https://devfeed.tech/tags/latest.md>), [manager](<https://devfeed.tech/tags/manager.md>), [multiple](<https://devfeed.tech/tags/multiple.md>), [programming](<https://devfeed.tech/tags/programming.md>), [rails](<https://devfeed.tech/tags/rails.md>), [rbenv](<https://devfeed.tech/tags/rbenv.md>), [ruby](<https://devfeed.tech/tags/ruby.md>), [rvm](<https://devfeed.tech/tags/rvm.md>), [set](<https://devfeed.tech/tags/set.md>), [switch](<https://devfeed.tech/tags/switch.md>), [system](<https://devfeed.tech/tags/system.md>), [tool](<https://devfeed.tech/tags/tool.md>), [version](<https://devfeed.tech/tags/version.md>), [want](<https://devfeed.tech/tags/want.md>)

### AI overview

RVM lets you maintain multiple Ruby versions for applications that require different interpreters. The excerpt lists installing Ruby versions, creating a gemset for an older Rails release, switching between the system Ruby and an RVM environment, and deleting a gemset to remove its Rails installation. It also mentions rbenv as an alternative, without comparing the tools.

### Source excerpt

Ruby Version Manager (RVM) is a tool that allows you to install multiple versions of Ruby and have multiple versions of the same interpreter. Very handy for those who have to maintain different applications using different versions of Ruby. To start, download RVM and install the latest stable version of Ruby: $ echo insecure >> [...]