Skip to content

Instantly share code, notes, and snippets.

View leifarriens's full-sized avatar
🛠️

Leif Arriens leifarriens

🛠️
View GitHub Profile

The State of AI Assisted Coding

TLDR: Vibe coding is fun but not sustainable. LLMs work like non-deterministic compilers and expecting them to replace engineers does not work. AI works best as an accelerator, not a replacement for thinking. Ignore it and you fall behind. Rely on it blindly and you create technical debt. The productive path is structured workflows, planning, and knowing when to delegate versus when to write the code yourself.


Vibe Coding Is Not AI Assisted Coding

Let me start with a distinction that often gets missed. Vibe coding is when you feed requirements into a large language model and hope for the best. It is fast and can be enjoyable. It works well for prototypes and starting new projects.

@leifarriens
leifarriens / github-multi-account.md
Created March 11, 2025 18:57
Multiple GitHub accounts on a single computer

Step 1: Generate SSH keys for each GitHub account

  1. Open a terminal on your computer.

  2. Generate a new SSH key for your first GitHub account. Replace your_email@example.com with the email associated with your GitHub account.

    ssh-keygen -t ed25519 -C "your_email@example.com"

When prompted, save the key with a descriptive name, such as id_ed25519_first_account.

export function useDebounceEffect(
effect: React.EffectCallback,
delay = 500,
deps?: React.DependencyList | undefined,
) {
useEffect(() => {
const debounce = setTimeout(() => {
effect();
}, delay);
return () => clearTimeout(debounce);
@leifarriens
leifarriens / react-use-script.js
Created July 30, 2022 04:59
React Hook to load script
function useScript(id, src, options = {}) {
const { persist = true, onLoad } = options;
const [ready, setReady] = useState(false);
useEffect(() => {
const domScript = document.getElementById(id);
if (!domScript) {
const script = document.createElement('script');
@leifarriens
leifarriens / inferPropTypes.tsx
Last active May 31, 2022 03:33
NextJS infer prop types from getServerSideProps
import type { GetServerSidePropsContext, InferGetServerSidePropsType } from 'next';
import Head from 'next/head';
const Home = ({ host }: InferGetServerSidePropsType<typeof getServerSideProps>) => {
return (
<>
<Head>
<title>Home Page</title>
</Head>