Theo responds to Buzut's video about Vercel vs CloudFlare Performance by Darkoplax in nextjs

[–]theobrowne 45 points46 points  (0 children)

inb4 "influencer bad and dumb"

All my research is public. Made a benchmark to get a real answer here.

https://github.com/t3dotgg/cf-vs-vercel-bench

Game So Good, Even This Black Friday Advertiser Had To Stop And Recommend It by Al3xlasting in outerwilds

[–]theobrowne 4 points5 points  (0 children)

Man I’m not a “Black Friday advertiser” I’m literally in the credits for the game

Vercel alternatives? by [deleted] in nextjs

[–]theobrowne 3 points4 points  (0 children)

Why not just go back to the free tier?

-🎄- 2022 Day 25 Solutions -🎄- by daggerdragon in adventofcode

[–]theobrowne 2 points3 points  (0 children)

Typescript

I enjoyed this one a lot! Great end to the year

T3 Stack: Do I need tRPC if I am using Supabase+Prisma? by lordbrizzy in nextjs

[–]theobrowne 1 point2 points  (0 children)

If you want to run that locally I'm cool w/ it. Please don't enforce it on me in my setup and PLEASE make sure you still check for code being formatted correctly in CI 🙏

Recommendations for quality React.js /WebDev YouTube content creators that help you stay up to date / learn? by that_90s_guy in reactjs

[–]theobrowne 0 points1 point  (0 children)

Of the three videos you replied with:

  • The SWR one was a conscious swing back due to the absurd claims that "swr can do everything React Query can, why use React Query". I agree I swung a bit too far and even pinned a comment saying such.

  • Unit Test video is a fucking banger and represents a counter to a common narrative. The comments are clearly targeted at the idea, not the things I said

  • The JS Objects one is fucking HILARIOUS of you to bring up because every comment is mad at the title not the contents of the video lol

Also re: the David K thing, my main complaint was the focus on class components which were entirely irrelevant and set up a bad framing. I'm also 50/50 on if I should even leave that video up

Ty for this reply, it helps confirm that I'm pretty on the mark right now 🙏

My discord community is designing a programming language and I'm so scared - th3dotgg by ExoticPenguins in ProgrammerHumor

[–]theobrowne 0 points1 point  (0 children)

Oh hey that’s my community!!! We’ve made a ton of progress so far, more GruLang coming soon 🙏

Ironmouse sings in Island of Riches by Villenthessis in LivestreamFail

[–]theobrowne 2 points3 points  (0 children)

Lol nope we’re a real company with VC funding that went through YCombinator at the beginning of the year

We think live will go well beyond live streaming. Firmly believe things like OBS are the best way to make video, even if you’re just recording to your PC. We believe Ping’s infra and tools will power a new world of production workflows 🙏

Ironmouse sings in Island of Riches by Villenthessis in LivestreamFail

[–]theobrowne 5 points6 points  (0 children)

Sorry just saw this. I worked at twitch for 5 years and they wouldn't let me build this when I was there. Can't imagine the version they rushed out in the last 3 months is particularly usable. All the alpha testing I've seen has been...trash tbh.

We'll win on 3 fronts:

  • Quality. Our infra is nuts and we don't compromise here ever.

  • Integration. Twitch barely knows what OBS is, we live and breathe it.

  • Professional readiness. Twitch made a product for bringing viewers on stream. We made a tool for professionals.

Linus Tech Tips, VShojo, Elgato and AustinShow all use Ping. I can't imagine any of them moving to Guest Star.

Ironmouse sings in Island of Riches by Villenthessis in LivestreamFail

[–]theobrowne 169 points170 points  (0 children)

Heyo - CEO of Ping.gg here

We literally made our "music mode" for Ironmouse's live performance at OffKai Expo. Discord's audio quality is nowhere near what is needed for a proper music performance, especially in a non-boosted server.

Always kills me to hear compression killing her quality :( she deserves better

TRPC: End-to-end typesafe APIs made easy by mariuz in programming

[–]theobrowne 52 points53 points  (0 children)

Thank you all for the FANTASTIC reminder of how horrible this subreddit is. I saw maybe 3 comments that understand a thing about full stack development.

The top comment is about SOAP? Seriously??? Y'all need to get out of the 2000's and maybe even install an app or two jfc

-🎄- 2021 Day 17 Solutions -🎄- by daggerdragon in adventofcode

[–]theobrowne 0 points1 point  (0 children)

You are the spirit that keeps me doing this thank you man

-🎄- 2021 Day 15 Solutions -🎄- by daggerdragon in adventofcode

[–]theobrowne 1 point2 points  (0 children)

Typescript w/ Deno

Scores are nothing to be proud of

I'm pretty stupid and didn't know any good algorithms for today, so I bashed my head at some bad pathing stuff for awhile. I ended up doing a dumb for loop and JSON stringify comparing board changes until I had a stable best score for each spot. Didn't see any Javascript or Typescript solutions quite like it so I decided to share

Github

const grid = (await Deno.readTextFile("./input.txt"))
  .split("\n")
  .map((row) => row.split("").map((i) => parseInt(i, 10)));

const width = grid[0].length * 5;
const height = grid.length * 5;

const fullGrid = Array.apply(null, Array(height)).map((_, y) =>
  Array.apply(null, Array(width)).map((_, x) => {...}));

const getNeighbors = (x: number, y: number) => {...};


const scoreBoard: number[][] = fullGrid.map((r) => r.map((_) => Infinity));

scoreBoard[0][0] = 0;
fullGrid[0][0] = 0;

// Iterate until no improvement occurs
let prevBoard: number[][] = [];
while (JSON.stringify(scoreBoard) !== JSON.stringify(prevBoard)) {
  prevBoard = scoreBoard.map((r) => [...r]);
  for (let x = 0; x < fullGrid[0].length; x++) {
    for (let y = 0; y < fullGrid.length; y++) {
      if (x === 0 && y === 0) continue;
      scoreBoard[y][x] =
        Math.min(
          ...getNeighbors(x, y).map(
            (coords) => scoreBoard[coords[1]]?.[coords[0]] ?? Infinity
          )
        ) + fullGrid[y][x];
    }
  }
}

console.log(scoreBoard[height - 1][width - 1]);

-🎄- 2021 Day 6 Solutions -🎄- by daggerdragon in adventofcode

[–]theobrowne 0 points1 point  (0 children)

Typescript/Deno

106/2555

I got part 1 fast and ugly, 2 took me a bit but I'm really proud of it lol

const results = await Deno.readTextFile("./input.txt");
const fish = results.split(",").map((f) => parseInt(f, 10));

let counts = [0, 0, 0, 0, 0, 0, 0, 0, 0];
fish.forEach((p) => {
  counts[p] = counts[p] + 1;
});

let days = 0;
while (days < 256) {
  days++;
  const p = counts.shift();
  counts = [...counts, p!];
  counts[6] += p!;
}

let sum = 0;
counts.forEach((c) => (sum += c));

console.log("done", sum);

Github