Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active December 17, 2024 19:27
Show Gist options
  • Save wilmoore/cd2bdc128af70eb58251793946ac6065 to your computer and use it in GitHub Desktop.
Save wilmoore/cd2bdc128af70eb58251793946ac6065 to your computer and use it in GitHub Desktop.
Personal Brand :: Social Media :: LinkedIn :: Post :: » How Experienced Software Engineers Watch Software Engineering Tutorials «

Personal Brand :: Social Media :: LinkedIn :: Post :: » How Experienced Software Engineers Watch Software Engineering Tutorials «

⪼ Made with 💜 by Polyglot.

reference

» How Experienced Software Engineers Watch Software Engineering Tutorials «

» How Experienced Software Engineers Watch Software Engineering Tutorials «

I got good with building software by assuming I could do it.

I always assume I'll figure it out.

I step through each piece of code, being patient with each step.

I try not to skip any step and I try not to get too excited about moving to the next step.

I do the first simplest thing that can work, then, I iterate from there.

I watch the first few seconds of the video...

I only watch until the point where they've introduced the problem. https://youtu.be/1bfK1EswPUY?t=12

const orders = [
  { countryCode: 'US', name: 'John', product: 'stickers' },
  { countryCode: 'CA', name: 'Sarah', product: 'shirt' },
  { countryCode: 'MX', name: 'Carlos', product: 'skateboard' },
  { countryCode: 'FR', name: 'Marie', product: 'hoodie' },
  { countryCode: 'JP', name: 'Yuki', product: 'basketball' },
  { countryCode: 'US', name: 'Emily', product: 'stickers' },
  { countryCode: 'US', name: 'Scott', product: 'shirt' },
  { countryCode: 'CA', name: 'David', product: 'shirt' },
  { countryCode: 'MX', name: 'Juan', product: 'skateboard' },
]

... Then I pause the video and I open up a couple terminal windows and setup both a test file and a code file.

// orders.spec.ts

import { expect, test } from "bun:test"
import { groupedOrders } from "./orders"

test("groupedOrders", () => {
  expect(groupedOrders([])).toEqual({})
})
// orders.ts

const orders = [
  { countryCode: 'US', name: 'John', product: 'stickers' },
  { countryCode: 'CA', name: 'Sarah', product: 'shirt' },
  { countryCode: 'MX', name: 'Carlos', product: 'skateboard' },
  { countryCode: 'FR', name: 'Marie', product: 'hoodie' },
  { countryCode: 'JP', name: 'Yuki', product: 'basketball' },
  { countryCode: 'US', name: 'Emily', product: 'stickers' },
  { countryCode: 'US', name: 'Scott', product: 'shirt' },
  { countryCode: 'CA', name: 'David', product: 'shirt' },
  { countryCode: 'MX', name: 'Juan', product: 'skateboard' },
]

export const groupedOrders = (orders) => ({})

Țechśavvy CEO

CleanShot 2024-12-17 at 12 15 11@2x


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment