Roger Leite (@rogerleite) header
Roger Leite (@rogerleite) profile picture

Living life with family and friends. Philosopher developer without fear to remix good ideas. 😎 | Software Engineer @Nubank he/him

São Paulo / Brazil
Joined October 2008
Photo by Roger Leite (@rogerleite)Photo by Roger Leite (@rogerleite)Photo by Roger Leite (@rogerleite)Photo by Roger Leite (@rogerleite)Photo by Roger Leite (@rogerleite)Photo by Roger Leite (@rogerleite)Photo by Roger Leite (@rogerleite)Photo by Roger Leite (@rogerleite)Photo by Roger Leite (@rogerleite)Photo by Roger Leite (@rogerleite)
Roger Leite retweeted
Quanto custa o twitter?
4,989
17,785
6,440
163,718
6,019,532
Roger Leite retweeted
Best way to discuss a code change: create a PR that goes in the direction you need it to go. It doesn't really matter if it's wrong, it just needs to go in the right direction and mention the people involved. They will be right in context for the discussion and bring ideas.
1
1
8
393
Bom, enquanto não morre isso aqui, vou mandar o que eu tava planejando pro começo da semana que vem Estamos abrindo uma vaga de BACKEND PLENO ELIXIR na Cumbuca Deem um RT aqui para que chegue nas pessoas antes do apocalipse Requisitos: - 1 ano de experiência com programação - Experiência prévia com frameworks web - Interesse em programação funcional - Interesse em sistemas financeiros Diferenciais: - Experiência prévia com programação funcional - Experiência prévia com sistemas financeiros Interessados enviar email com currículo e um parágrafo explicando por que você é um(a) bom(boa) candidato(a) para [email protected] com o assunto "Vaga Backend Pleno"
4
37
1
107
12,249
Here's a super dangerous (never evaluate code from LLMs folks) tool for using LiveView + LLMs to generate LiveViews, incrementally making changes and allowing you to see the generated code. Discarded lightning talk. Have fun! #myelixirstatus gist.github.com/cigrainger/9…
1
11
1
56
3,796
Roger Leite retweeted
any 😂😏
22
98
8
1,060
63,559
If anyone in my network is looking for work as an Elixir engineer, we have an opening at Draft Kings working on our lottery product. DM me if you want to know more. #myelixirstatus
6
7
1
46
5,739
Stop by the @DockYard booth at @ElixirConf and see how you can create immersive games with LiveView Native running on the @Apple Vision Pro! #myelixirstatus
1
4
16
1,166
Database caching strategies explained. Let's look at five of the most common methods: 🔹 Cache-aside strategy This strategy grants applications explicit control over the caching process. Applications check the cache before the database, enabling precise control suited to dynamic data or irregular access patterns. However, this approach requires manual cache management, which can increase complexity. 🔹 Write-through strategy By simultaneously writing to the cache and the database, this technique guarantees data consistency. For applications requiring high data reliability, it eliminates inconsistencies and ensures immediate cache availability, despite increased write latency. 🔹 Write-behind strategy Write performance is improved by caching data first and updating the database asynchronously—a strategy that prioritizes speed over immediate consistency. This approach boosts responsiveness and reduces database load but risks data loss if the cache expires before syncing. Applications that can handle delayed data consistency and demand fast write speeds are best suited for it. 🔹 Read-through strategy When a cache misses, this strategy stores data in the cache by automatically retrieving it from the database. While this method simplifies application code by abstracting caching procedures, initial cache misses can delay data retrieval. It supports applications with stable data sets and high read demands by efficiently reducing database load. 🔹 Write-around strategy This method bypasses the cache, which is only refreshed upon further read requests, and writes data straight to the database. It keeps space for frequently accessed data by postponing cache updates, preventing premature cache saturation. Cache efficiency is maximized in write-intensive applications where instantaneous read access to fresh data is not essential. Database caching greatly improves application performance by reducing latency, increasing scalability, and enhancing user experiences. By selecting and implementing the optimal database caching solutions, we can meet unique application demands efficiently while maintaining high speed and resource efficiency. ~~ Thank you to our partner Postman who keeps our content free to the community. Do you have team members who are blocked because they're waiting for you to ship a new API? Unblock them using mock servers. Learn more here: drp.li/postman-mock-servers-…
7
108
1
428
20,901
I wrote up a complete guide to deploying Ollama on Fly.io if you've ever been curious about self-hosting an LLM! github.com/fly-apps/self-hos…
3
16
3
108
11,564
I remember when a computer didn't automatically connect to the internet, it used to make a screaming noise. We should have listened.
88
6,096
234
39,286
2,793,553
Roger Leite retweeted
Bad data is the root of all evil. SQL constraints will help you prevent it. Here are 6 Constraints simply explained. PRIMARY Key Constraint This means that the column's values are not null and unique. Each table in the database should have a primary key to identify its records. FOREIGN Key Constraint This means the column's values must match those in another table column, which is usually a primary key. Establishes a relationship between two tables using a column or set of columns. UNIQUE Constraint This means the column cannot have duplicate values across the whole table. Great for a username or email field on a User's table. CHECK Constraint The data must meet a custom expression for acceptance. For example, if you have a Score percentage column with values between 0 and 100, you can use a check constraint to enforce that. NOT NULL Constraint Ensures that a column does not contain NULL values. The column must have a value for each row. Define NOT NULL columns when your application assumes the existence of a value. DEFAULT Constraint The system assigns a default value to the column if you don't provide an explicit one. It is Useful when you want to provide a default value instead of leaving it NULL. Better Data = Better Software!
13
108
2
520
47,538
Elixir Radar issue 440 is out! 📣 You can read it here: buff.ly/472iwPo This issue comes with content from @atimberlake @flo_arens @sean_moriarity @josevalim @RootCert and Mateusz Tatarski . Thank you! #MyElixirStatus
5
5
726
Roger Leite retweeted
New blog post is out: elixir-lang.org/blog/2024/08… We explore how several Elixir idioms will interact with Elixir's upcoming type system. A huge thank you to @remote, @CNRS, @heyfresha, @starfish__team, and @dashbit for their continuous sponsoring of the type system work!
4
52
3
237
10,645
I've published the first release of tremorx, a phoenix component library. Its also been about 1 year since I wrote my first line of code in elixir 🤩. Check it out at: hexdocs.pm/tremorx/ #myelixirstatus
3
9
1
54
3,643
Promotions and Stretch Assignments
3
187
9
1,408
86,354
Roger Leite retweeted
the truth hurts.
37
276
51
5,303
385,333