Eduardo Zepeda's latests posts
How Does a Docker Container Work Internally?
- docker
- linux and devops
- go
Containers, especially Docker containers, are used everywhere, we tend to see them as small isolated operating systems that are inside our system. Using the Docker commands we can modify them, create them, delete them and even get inside them and run commands, but have you ever w...
Read more
Autocomplete, Suggestions and Related Content: Solr and Django
- django
- linux and devops
Solr, together with Lucene, is an outstanding search engine that allows you to perform searches with advanced features. In this post I bring you a summary of some of the most interesting features of Solr and Django Haystack.
I assume you already have a configured django app w...
Read more
How to implement Solr for searches or queries in Django?
- django
- linux and devops
Previously I explained you how to implement full text search in Django and trigrams-and-search-rank using Postgres. Solr comes to offer us something better, a robust, stable and feature-rich search engine, ready to use, in exchange for a little more complexity, more dependencies ...
Read more
Understand How Git Submodules Works and its Workflow
- git
- linux and devops
A git submodule is a record within a git repository that points to a commit in an external repository. They are handled exactly as you would with a repository, they even have a .git file that points to the location where a changelog is kept.
Simplified outline of git submodul...
Read more
Top 5 Favorite Algorithm Problems at Codewars
- opinions
- algorithms
What is codewars? Codewars is a social network of programmers who get together to challenge each other to solve code challenges. Codewars is one of the best websites for practicing algorithms and solving Katas. Katas? Yes, as in Karate.
What are katas in codewars? In the spir...
Read more
REST API: Best practices and design
- software architecture
- opinions
How do I design a REST API? How many levels should I nest my related resources? Relative or full URLs? This post is a compilation of some recommendations about some good REST API design practices that I have found in books and articles on the internet. I leave the sources at the ...
Read more
REST API basic characteristics and recommendations
- software architecture
- opinions
This publication is a minimal guide of practical tips on REST API design, I don’t go too deep into the theory. On top of that, I may oversimplify many concepts in order to keep the text as short and simple as possible.
In the next post I will talk about some more subjec...
Read more
Categories in Django using ForeignKey to self
- django
Grouping by categories is quite common in web applications, from movies, courses or any other resource that presents a hierarchical relationship to another object. In Django there are different ways to model these relationships. Probably, the first that will come to your mind wil...
Read more
Debounce and Throttle in Javascript
- javascript
Debounce and throttle are design patterns used to limit the execution of functions, generally they are used to restrict the amount of times an event is fired: click, scroll, resize or other events. Patterns are not exclusive to Javascript; in a previous post I explained how to us...
Read more
How to customize the User model in Django?
- django
In this post I explain three methods to extend or customize Django’s User model, without having to rewrite it from scratch, and keeping all Django’s user management features But, before we start, let’s see where Django’s User model comes from.
Where do...
Read more