Lucas Fernandes

Lucas Fernandes

@vulgofoobar.bsky.social

Hello there! My name is Lucas, from São Paulo - Brazil, and I'm a Software Engineer with over 5 years of experience specializing in Ruby on Rails and SaaS products.

28 followers64 following87 posts

✅ I've signed off on: github.com/Plan-Vert/op... rails creator is enabling the spread of dangerous and harmful political ideologies that will continue to result in further violence and death. never too late to boycott some fascism. ✨ #ruby #devlife

github.comGitHub - Plan-Vert/open-letter: An open letter calling for a hard fork of Rails to remove DHH's influenceAn open letter calling for a hard fork of Rails to remove DHH's influence - Plan-Vert/open-letter

the regime of information in opposition to the disciplinary regime doesn't exploit bodies and energies, but rather information and data. the people of the information regime is neither docile nor obedient. instead, they are supposed to be free, authentic, and creative. by Byung-Chul Han #infocracy

query count is also something that degrades under production conditions. recently I've been diggin into N+1 query problems in Rails and here are my discoveries and learnings. ✨ check it out: vulgofoobar.tech/taxing-the-d... #devlife #learninpublic #database #performance #ruby

vulgofoobar.techTaxing the database with many queries also matters | FoobarIntroduction Recently, I've taking some mentoring classes and we've been discussing the N+1 query problems in Rails. Did you know that in…

TIL: what features expand the context window? memory; multi-agent, each agent has it own memory; larger context window; summarization; projects n workspaces; skills n claude.md I'm still available for hire. let's talk! #ai #devlife #ruby #fediHire

TIL: why N+1 is bad every query pays network latency (worse across regions); CPU/IO spikes = rails framework overhead + db parse/plan/execute per query; db connection is expensive and hold it is bad for concurrent envs we really want to talk little to db! #performance #ruby #devlife

TIL: what is n+1 query? when collection access associations; additional query for each collection item; like sql being called inside a loop; we want to talk little to database as possible #devlife #performance

TIL: what are the pros n cons of open source ai? pros: full control (privacy/run anywhere), cheaper, customizable, no vendor lock-in, auditable n innovation multiplier; cons: complex setup, hardware intensive, fewer out of the box capabilities n you manage security, scale and uptime #ai #devlife

TIL: why do llms hallucinate? llms are trained to predict text; they don't check facts against the training data and have no knowledge; training data has gaps, inconsistencies, and underrepresented topics. there is no intelligence in artificial intelligence 🙃 #ai #devlife #softwareengineering

TIL: what are ai's capabilities and limitations? capabilities: conversational awareness, context switching without retraining and external tool integration. limitations are: hallucination potential, knowledge cutoff dates, complex reasoning challenges and context window constraints #ai #devlife

TIL: should I use single or double quotes in git commit messages? both works fine, but go for the single; double quotes might trigger "command substitution" on unix-like systems for example: ```bash echo "`ls`" ./docs/ ./node_modules/ ./package-lock.json ./package.json ./pages/ ``` #git #devlife

I've been playing around with the `gum` gem from the `charm-ruby` ecosystem to glam up my scripts and aliases. I wrote a script that makes your scripts available from anywhere on your system. #ruby #gum #charmruby #devlife #nasa

what are the exciting features in ruby 4 release? experimental `Ruby::Box` isolation mechanism; new zjit compiler; performance improvements for class instantiation; `Set` and `Path` classes promoted to core classes #ruby #devlife #softwareengineer

TIL: what's git commit amend? does it modify the previous commit? it's like a time travel; rewrites the repo timeline; amend staged files to "previous" commit; previous commit is actually replaced and not modified; commits are immutable #git #softwareengineer #learninginpublic #devlife

does privacy matter to you? do you want to be in control of your services? in this post, I’ll show you how to self-host your apps with minimal effort. the possibilities are endless! ✨ check it out: jaggies-weekly.netlify.app/how-to-self-... #devlife #learninpublic #selfhosting #linux #umbrel

jaggies-weekly.netlify.appHow to self-host your apps locally | Jaggies WeeklyTLDR 1. Prepare a bootable USB with the umbrelOS .iso and Balena Etcher 2. Boot your server device from USB 3. Install umbrelOS and remove…

if someone asks me “why linux?” bc I'm the one in control; I can choose my desktop experience. want to look like Windows 98? that's possible too; no bloatware, no surprises; my data stays offline by default and no gossip behind my back; better performance #devlife #linux #wslisntlinux

TIL: about pure functions in functional programming depends only in its inputs; same input = always same output; no hidden state, no side effects, immutable (return a new thing instead of changing state) #ruby #functionalprogramming #devlife

TIL: ruby, though dynamic, benefits from static type checking type checking occurs in runtime; ruby 3 adds .rbs files for type info; offers levels of checking; can use type profiler to detect type conflicts ruby abstracts type checking, keeping benefits without redundant declarations #ruby

✨today I found out that I can theme vscode with CSS and inspect elements with devtools, just like we do in browsers. how cool is that? 🤓 an editor is a software that we use regularly in our daily lives. for me, any effort to make it appealing and easy to navigate is worth doing. #devlife #vscode

TIL: automatic memory management with reference counting each memory has a reference count; when variables refers to it, increase count; stopping, decreases it; count == 0, memory freed; needs extra space per object; good for real-time apps, but can cause memory leaks #memorymanagement #devlife

TIL: when system detects programs running low memory, it pauses program & runs garbage collector GC compacts heap, updates references & releases unreachable memory; uses "generations" where long-lived memory cleared less often; causes program random pauses; unsuitable for real-time apps #devlife

TIL: about memory leak it's when an allocated memory isn't deallocated and OS can't reclaim it; becomes unusable until program ends; long-running programs, leaks cause crashes; double-deallocation can corrupt active memory, causing security risks & unpredictable crashes #devlife #memorymanagement

TIL: about memory management systems allocate and free memory during program execution; older languages lack automatic memory management, so programmers must explicitly handle it; one allocation = one deallocation; uses ram, cpu registers, cpu cache, and virtual memory #devlife #memorymanagement

TIL: every CDN server has its own local cache with two main strategies to populate it pull CDN (most common): lazily fetches content, requires low maintenance, but the first request is slower and assets can become stale. cache busting helps if we don't want stale content #softwareengineer #cdn

TIL: CDNs minimize latency for distant clients because there's always a CDN server nearby CDN = content delivery network; geographically distributed servers that cache assets from origin server efficiently; reduces bandwidth usage and server load; essential for global scale #softwareengineering

Hey folks! 👋🏻 I'm available for hire! I can communicate effectively, I'm a passionate learner and love sharing knowledge. I'm looking for remote or on-site Mid-level or Semi-Senior Software Engineer roles, either part-time or full-time. Find out more: jaggies-weekly.netlify.app/im-available...

jaggies-weekly.netlify.appI'm available for hire | Jaggies WeeklyI'm a Software Engineer with over 5 years of experience with a special focus on Ruby on Rails and SaaS products. I can communicate…

TIL: nginx isn't just a load balancer, it's a web server, reverse proxy, cache, mail proxy & A/B testing tool. Despite its performance, misconfigs can actually add latency. watch settings: caching, proxy rules, complex routing, decryption, rate limiting. #softwareengineering #softwarearchitecture