Article of the day
Advanced git
Before pushing to
Before every push, review your changes with
If you've rebased your branch, avoid using
read more advanced git concepts π [ LINK ]
@devwitheyob
#TechVibe #git #ArticleOfTheDay
Advanced git
Before pushing to
main, make it a habit to sync your branch with the latest changes by rebasing on top of main. This helps you resolve conflicts early and keeps your commit history clean. If your branch has a lot of small "fix" or "oops" commits, use an interactive rebase to squash them into a few meaningful commits. A clean history makes reviewing code and debugging much easier later.Before every push, review your changes with
git diff and scan for anything that shouldn't be in the repository, such as API keys, tokens, passwords, or temporary debugging code. Then run your tests locally to make sure nothing is broken. Catching an issue before it reaches the remote repository is always easier than fixing it after deployment.If you've rebased your branch, avoid using
git push --force. Instead, use git push --force-with-lease, which checks whether someone else has updated the remote branch before overwriting it. Finally, tag important releases with versions like v1.0.0 or v2.1.0. Release tags make it easy to identify deployments, track changes between versions, and roll back quickly if something goes wrong in production.read more advanced git concepts π [ LINK ]
@devwitheyob
#TechVibe #git #ArticleOfTheDay
π₯5
Git in CI
CI runners clone your repo on every job. For a 200 MB monorepo with 50k commits and 10k refs, a naive
Shallow clone is the lazy fix. It downloads only the most recent commits, skipping history.
read more advanced git concepts π [ LINK ]
@devwitheyob
#TechVibe
CI runners clone your repo on every job. For a 200 MB monorepo with 50k commits and 10k refs, a naive
git clone burns 30-60 seconds per job before any test runs. Across a 40-job pipeline that is 30 minutes of pure clone wait per pull request. The fix is not "throw a faster runner at it", it is matching the clone strategy to what each job actually needs.Shallow clone is the lazy fix. It downloads only the most recent commits, skipping history.
git clone --depth=1 https://github.com/org/repo.gitread more advanced git concepts π [ LINK ]
@devwitheyob
#TechVibe
Git in CI
While shallow clones (
A better option is a partial clone, which downloads the commit history but only fetches file contents when they're actually needed. This keeps history available while making clones much faster and smaller.
For medium and large repos, especially monorepos, partial clones can significantly reduce clone time and disk usage without losing access to Git history.
read more advanced git concepts π [ LINK ]
@devwitheyob
#TechVibe #git #GitInCI
While shallow clones (
depth=1) are fast, they break commands that rely on Git history like git log, git blame, git merge-base, changelog generators, and release tools.A better option is a partial clone, which downloads the commit history but only fetches file contents when they're actually needed. This keeps history available while making clones much faster and smaller.
# Download history, fetch file contents on demand
git clone --filter=blob:none https://github.com/org/repo.git
# Skip blobs larger than 1 MB
git clone --filter=blob:limit=1m https://github.com/org/repo.git
For medium and large repos, especially monorepos, partial clones can significantly reduce clone time and disk usage without losing access to Git history.
read more advanced git concepts π [ LINK ]
@devwitheyob
#TechVibe #git #GitInCI
β€1π1
π10
Article of the day
LLM Integrations
Everyone gets excited when their AI feature finally works, but making one successful API call is the easiest part. What actually matters is everything around it before it reaches production. If you don't plan for failures, retries, rate limits, token budgets, or cost tracking, your application will eventually fail when real users start using it.
A production-ready LLM integration should be built with resilience in mind from day one. Abstract your provider so switching models is painless, retry only transient failures with exponential backoff, stream responses instead of making users wait, validate every tool call, and count tokens before every request to avoid expensive errors. None of these features make your demo look cooler, but they'll save you countless hours in production.
The biggest lesson is that reliability is a feature. Add observability, track your LLM costs, enforce sensible timeouts, and always have a fallback model ready. Production isn't about proving your AI worksβit's about making sure it keeps working when everything around it doesn't.
Read full article π [LINK]
@devwitheyob
#TechVibe #ArticleOfTheDay #AIEngineering #LLM
LLM Integrations
Everyone gets excited when their AI feature finally works, but making one successful API call is the easiest part. What actually matters is everything around it before it reaches production. If you don't plan for failures, retries, rate limits, token budgets, or cost tracking, your application will eventually fail when real users start using it.
A production-ready LLM integration should be built with resilience in mind from day one. Abstract your provider so switching models is painless, retry only transient failures with exponential backoff, stream responses instead of making users wait, validate every tool call, and count tokens before every request to avoid expensive errors. None of these features make your demo look cooler, but they'll save you countless hours in production.
The biggest lesson is that reliability is a feature. Add observability, track your LLM costs, enforce sensible timeouts, and always have a fallback model ready. Production isn't about proving your AI worksβit's about making sure it keeps working when everything around it doesn't.
Read full article π [LINK]
@devwitheyob
#TechVibe #ArticleOfTheDay #AIEngineering #LLM
π₯4π2β€1
Here's a simple fallback implementation in Go. Instead of failing the request when one provider is down or rate-limited, it just tries the next provider in the chain until one succeeds. It's a small pattern, but it makes a huge difference in production where outages and rate limits are normal. Graceful degradation is almost always better than showing your users an error.
@devwitheyob
#TechVibe #go #LLMIntegration
@devwitheyob
#TechVibe #go #LLMIntegration
β€4
Btw guys, today I sat at my desk at 2 PM, and it's almost 2 AM now. I literally worked for almost 12 hours straight.
I think this is the longest work session I've had this break. The good part is I finally finished the project.
The bad part... I'm not feeling my back π.
never had this kind of back pain before thoπ
@devwitheyob
#TechVibe #project #WorkSession
I think this is the longest work session I've had this break. The good part is I finally finished the project.
The bad part... I'm not feeling my back π.
never had this kind of back pain before thoπ
@devwitheyob
#TechVibe #project #WorkSession
π₯7
I realized something about myself over the past few months: when I truly believe something is necessary, I'll do whatever it takes to make it happen. I'll sacrifice my sleep, my comfort, my time, and even my money. Doing that has shown me how much I'm actually capable of in such a short amount of time, and it's boosted my confidence more than anything else.
Anyways, GN guys. βοΈ
@devwitheyob
#TechVibe #random
Anyways, GN guys. βοΈ
@devwitheyob
#TechVibe #random
β€6π3π₯3β‘1π€1
POV: Me after listening to American conspiracy theorists. π
Who built America into this great nation then? π Their arguments are wild, " the U.S. government secretly killed all the birds decades ago and replaced them with surveillance drones that spy on Americans".
@devwitheyob
#TechVibe #random
Who built America into this great nation then? π Their arguments are wild, " the U.S. government secretly killed all the birds decades ago and replaced them with surveillance drones that spy on Americans".
@devwitheyob
#TechVibe #random
π1π1
Let me share some of themπ
1. Lizard People Rule the World
2. The Earth is completely hollow inside, with hidden civilizations, giant creatures, and entrances at the North and South Poles.
3. Australia Doesn't Exist
4. The Titanic Never Sank
@devwitheyob
#TechVibe #random
1. Lizard People Rule the World
2. The Earth is completely hollow inside, with hidden civilizations, giant creatures, and entrances at the North and South Poles.
3. Australia Doesn't Exist
4. The Titanic Never Sank
@devwitheyob
#TechVibe #random
π3
Article of the day
A few years ago, I loved writing code that made me feel smart. Dense abstractions. Fancy design patterns. Generic types nested inside more generic types. APIs that looked elegant, at least until I came back six months later and couldnβt remember what I was thinking.
These days, my philosophy is much simpler...
Read full article π [ LINK ]
@devwitheyob
#TechVibe #ArticleOfTheDay #SWE
A few years ago, I loved writing code that made me feel smart. Dense abstractions. Fancy design patterns. Generic types nested inside more generic types. APIs that looked elegant, at least until I came back six months later and couldnβt remember what I was thinking.
These days, my philosophy is much simpler...
Read full article π [ LINK ]
@devwitheyob
#TechVibe #ArticleOfTheDay #SWE
Forwarded from SSC
βOur fellow student, Abel, urgently needs our help as he recovers from a severe injury. Let's come together as a school community to support him in his time of need.
Please contribute whatever you can using the bank account in the poster above and share this post across your groups and networks to help spread the word.
βEvery donation and share counts! π
Please contribute whatever you can using the bank account in the poster above and share this post across your groups and networks to help spread the word.
βEvery donation and share counts! π
β€3π1
Finished building and deploying an LMS for a client today. It's now live for testing, so hopefully they like it. One of my favorite parts was adding AI course and quiz generation. You can create an entire course from a prompt, generate quizzes from the content, save drafts, manage courses with a markdown editor, track learner progress through analytics, and issue certificates after completion. It was a fun project to build, it took me almost 6 days now
@devwitheyob
#TechVibe #project #LMS #upwork
@devwitheyob
#TechVibe #project #LMS #upwork
π₯6π2β€1