Skip to content

Instantly share code, notes, and snippets.

View yskooo's full-sized avatar
🦅
you got this!

Harold Martin Patacsil yskooo

🦅
you got this!
View GitHub Profile
@yskooo
yskooo / clean_code.md
Created July 2, 2023 08:00 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@yskooo
yskooo / ProfileMenu.tsx
Created June 25, 2023 01:00 — forked from adrianhajdin/ProfileMenu.tsx
Build and Deploy a Full Stack Next.js 13 Application | React, Next JS 13, TypeScript, Tailwind CSS
"use client"
import Link from "next/link";
import Image from "next/image";
import { signOut } from "next-auth/react";
import { Fragment, useState } from "react";
import { Menu, Transition } from "@headlessui/react";
import { SessionInterface } from "@/common.types";