Skip to content

Instantly share code, notes, and snippets.

View chooie's full-sized avatar
🌍
Available for hire

Charlie Hebert chooie

🌍
Available for hire
View GitHub Profile
@use "styles/constants";
$navbar: ".IIT-navbar";
$markerClass: ".active-marker";
:root {
--navbar-height: 50px;
--menu-inset: -8px;
}
import styles from "#styles/routes/contact.css";
import React from "react";
import { Form, useActionData, useLoaderData } from "@remix-run/react";
import type { ActionFunction } from "@remix-run/server-runtime";
import { json } from "@remix-run/server-runtime";
import invariant from "tiny-invariant";
import { sendEmail } from "~/server/mail.server";
@chooie
chooie / 3_things_ive_learned_in_5_years_of_javascript_software_development.md
Last active January 4, 2022 01:17
3 things I've learned in 5 years of JavaScript Software Development

3 things I've learned in 5 years of JavaScript Software Development

Code should lead with the higher-level concepts. The lower-level pieces should follow

Don't force the reader of your code to scroll past the minutiae.

function makeBreakfast() {
  const ingredients = fetchIngredients();
  const friedBacon = fryBacon(ingredients.bacon);
  const cookedScrambledEggs = whiskEggsAndFryThem(ingredients.eggs);
 const preparedMeal = plateAndSeasonMeal(friedBacon, cookedScrambledEggs);