Skip to content

Commit

Permalink
add this weeks newsletter (#989)
Browse files Browse the repository at this point in the history
* add this weeks newsletter

* fix prettier issue
  • Loading branch information
NiallJoeMaher authored Aug 13, 2024
1 parent c55e43b commit 6aff8bb
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/(app)/alpha/settings/_client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import type { saveSettingsInput } from "./profile";
import { saveSettingsSchema } from "./profile";

import { uploadFile } from "@/utils/s3helpers";
import { user } from "@/server/db/schema";
import type { user } from "@/server/db/schema";

function classNames(...classes: string[]) {
return classes.filter(Boolean).join(" ");
Expand Down
2 changes: 1 addition & 1 deletion app/(app)/hub/[community]/_CommunityPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { trpc } from "@/utils/trpc";
import { toast } from "sonner";
import { useRouter, useSearchParams } from "next/navigation";
import { PlusSmallIcon, PencilIcon } from "@heroicons/react/20/solid";
import { event, r_s_v_p, user } from "@/server/db/schema";
import type { event, r_s_v_p, user } from "@/server/db/schema";

function getDomainFromUrl(url: string) {
const domain = url.replace(/(https?:\/\/)?(www.)?/i, "");
Expand Down
2 changes: 1 addition & 1 deletion app/(app)/hub/[community]/events/[event]/_EventPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { trpc } from "@/utils/trpc";
import { toast } from "sonner";
import { notFound, useRouter, useSearchParams } from "next/navigation";
import { PencilIcon } from "@heroicons/react/20/solid";
import { r_s_v_p, user } from "@/server/db/schema";
import type { r_s_v_p, user } from "@/server/db/schema";

function getDomainFromUrl(url: string) {
const domain = url.replace(/(https?:\/\/)?(www.)?/i, "");
Expand Down
111 changes: 111 additions & 0 deletions app/(app)/letters/stop-self-selecting-out-of-opportunities/page.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
Tue, Aug 13, 2024 • Niall Maher

# Stop self-selecting out of opportunities!

**Stop self-selecting out of opportunities!**

So many people see a dream job, a life, a dream girl or a guy, and before they even get close, they say, "no, that's not for me; that's for other people."

"I'm not smart enough."

"I'm not experienced enough."

"In a few years, that's what I will do!"

_But why?_

Yes, you know all of your flaws (of some which you have fabricated in your head), but the fun part is nobody else does.

If you dream of a promotion or are generally frustrated with your progress, you have to start sometime.

**Why not try today?**

Yes, you will fail, but you will also surprise yourself.

It's an overused quote, but it's true; "you miss 100% of the shots you don't take".

I made significant steps in my career early and quickly by showing up for interviews for which I was sure I was unqualified.

I went in with the attitude of "let's see what they ask a Senior Engineer," and then I could learn that.

But something extraordinary started happening.

**I got offers.**

That gave me the confidence to reach for larger opportunities than I would have usually self-selected myself from and take much more significant steps towards my greater goals.

**Do it today.**

Don't just read this and get a momentary confidence boost; live it!

You will hit plenty of no's, bumps, and bruises on the way, but the occasional yes for something we didn't think was possible will make it all worth it, I promise.

## Codú Articles

**[next-safe-action: Type-Safe Server Actions Made Easy (3 min)](https://www.codu.co/articles/next-safe-action-type-safe-server-actions-made-easy-kaayfrkk)**

Ready to take your Server Actions game to the next level? Let's dive into next-safe-action and see how it can make your life easier (and your code safer)!

**[Building a Simple Read Time Calculator in JS/TS (3 min)](https://www.codu.co/articles/building-a-simple-read-time-calculator-in-js-ts-fpmsy_hy)**

I've been tinkering as usual and thought I'd share a cool little script I created---a read-time calculator that works with HTML and Markdown.

**[Python Type Safety at Compile Time (2 min)](https://www.codu.co/articles/type-safety-at-compile-time-ezhfk-rm)**

Achieving type safety at compile time in a superset of Python.

**[Slugify Your Article Names with TS/JS (2 min)](https://www.codu.co/articles/slugify-your-article-names-with-ts-js-tzexp4qf)**

Need to create neat, clean URLs for your articles or blog posts? Today, we're diving into slugification (yes, that's a word now).

**[Preview an Image Before it is Uploaded - React.js (2 min)](https://www.codu.co/articles/preview-an-image-before-it-is-uploaded-react-js-nv9kprq4)**

Ever wanted to show your users a sneak peek of their image before they upload it? Here's how:

**[Routing in .NET (5 min)](https://www.codu.co/articles/routing-in-net-1_6djwo9)**

Routing is one of those fundamental pieces that any .NET developer needs to master.

## Other Articles/Resources

**[How to Build Anything Extremely Quickly (4 min)](https://learnhowtolearn.org/how-to-build-extremely-quickly/)**

Don't just read this article and move on. Go out and do this for the very next thing you make so you can get in the habit of doing it.

**[React Native & Expo Router Course -- Build a Meditation App (video)](https://www.youtube.com/watch?v=9UKCv9T_rIo)**

Improve your React Native skills by building a meditation app using Expo. Learn to utilize TypeScript, React, NativeWind, React Native, and Expo to develop a simple mobile app.

**[Interview Warmup by Google (tool)](https://grow.google/certificates/interview-warmup/)**

A quick way to prepare for your next interview. Practice key questions, get insights about your answers, and get more comfortable interviewing.

**[We can now transition to and from display: none (video)](https://www.youtube.com/watch?v=vmDEHAzj2XE)**

Something all CSS animators have wanted for a long, long time...

**[Common Sense Refactoring of a Messy React Component (23 min)](https://alexkondov.com/refactoring-a-messy-react-component/)**

A deep dive into how to refactor your messy React components.

**[Perplexity.ai (tool)](https://www.perplexity.ai/)**

An AI-powered search engine was recommended. Gives me some excitement about SearchGPT.

## Something I've been enjoying

**[Pattern Breakers - The Secrets Behind the World's Most Successful Start-ups](https://amzn.to/4fHnRzs)**

I read this on a lazy day last week.

This book dives into the unconventional strategies of folks who've crushed it in their fields by ditching the usual playbook. It's packed with real-world examples that'll get your wheels turning.

Whether you're stuck in a rut or just hungry for some inspiration, give it a read. Trust me, it might just be the kick you need to shake things up!

**If you have any ideas or feedback, reply to this email.**

Thanks, and stay awesome,

Niall

_Founder @ [Codú](https://www.codu.co/?ref=newsletter)_
4 changes: 1 addition & 3 deletions server/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ const drizzlelogger: Logger = {
},
};

const connection =
globalForDb.connection ??
postgres(env.DATABASE_URL);
const connection = globalForDb.connection ?? postgres(env.DATABASE_URL);

if (env.NODE_ENV !== "production") globalForDb.connection = connection;

Expand Down

0 comments on commit 6aff8bb

Please sign in to comment.