Personal Brand :: Social Media :: LinkedIn :: Post :: » How Experienced Software Engineers Watch Software Engineering Tutorials «
⪼ Made with 💜 by Polyglot.
» 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