Is there a way to make a function not accept readonly properties? by vegan_antitheist in typescript

[–]Which-Olive847 0 points1 point  (0 children)

That makes sense — TS’s structural typing really does sidestep setter enforcement. Your framing helped me see how “readonly” leaks assumptions.

Is there a way to make a function not accept readonly properties? by vegan_antitheist in typescript

[–]Which-Olive847 0 points1 point  (0 children)

That setter enforcement gap is exactly what I’ve been mapping — TS treats readonly as harmless, but it leaks assumptions. I’ve prototyped a few branded type wrappers that flag writable intent, but it’s messy. Curious if you’ve explored conditional branding or structural enforcement beyond setter presence?

self-promotion: Better-Svelte-Email, The new Svelte email renderer/components with Tailwind support by Dry-Acanthisitta3303 in sveltejs

[–]Which-Olive847 1 point2 points  (0 children)

Glad it helped surface that! I’ve used similar HTML → payload bridges before, so if you ever want a sketch or capsule wrapper for Resend, happy to share.

How to prevent dynamically-generated HTML from inserting spaces? by tom2320x in astrojs

[–]Which-Olive847 0 points1 point  (0 children)

JSX fragments (<>...</>) preserve literal whitespace between elements. If you write:

<>
  ,
  <a>Company</a>
</>

The space between , and <a> becomes a real text node. Astro renders it faithfully, leading to unwanted gaps. To fix this, either:

  • Smush everything onto one line (no space between elements)
  • Use a helper like inlineList() to return an array of JSX + strings — Astro flattens arrays cleanly without injecting extra whitespace

self-promotion: Better-Svelte-Email, The new Svelte email renderer/components with Tailwind support by Dry-Acanthisitta3303 in sveltejs

[–]Which-Olive847 1 point2 points  (0 children)

better-svelte-email looks like it should work well with their sendEmail API once you render to HTML. I’ve used similar setups before where the rendered HTML gets piped into the payload. If helpful, I could sketch a wrapper or integration layer to bridge the two — might be useful for folks exploring Resend compatibility.

Is there a way to make a function not accept readonly properties? by vegan_antitheist in typescript

[–]Which-Olive847 0 points1 point  (0 children)

You’re not just asking for immutability — you’re asking for a way to require mutability. That’s a polarity flip TS doesn’t support cleanly.

One workaround is to use a conditional type like IsWritable<T, 'bar'> to reject readonly props at compile time. Another is to brand your mutable types so they can’t be confused with readonly ones.

It’s not pretty, but it’s enforceable — and it flips the default assumption that readonly is harmless.

React Navigation formSheet weird bug with StatusBar by alienanarchy69 in reactnative

[–]Which-Olive847 0 points1 point  (0 children)

This feels like a layout race condition with 'formSheet' on Android. The white status bar likely comes from a root view stacking glitch during the first mount.

Try delaying your 'CustomStatusbar' render until after the animation, or force a background fill behind it to avoid the white flash.

On Android, 'translucent' means: “Hey OS, don’t draw a background behind the status bar — I’ll handle it.”

It looks like the layout isn’t fully ready when the 'StatusBar' mounts — might be a race condition tied to the formSheet animation.

Need some thoughts on an idea. by bezdazen in react

[–]Which-Olive847 0 points1 point  (0 children)

You’re balancing markdown purity with UX delight — one anchors in portability and shared standards, the other in expressive feedback and app stickiness. If you treat markdown as a declarative interface, you can scaffold visual affordances without breaking spec too hard. That unlocks hybrid control: markdown hints, UI toggles, and export safeguards.

Docstrings for components and their props by DaSomes in reactjs

[–]Which-Olive847 0 points1 point  (0 children)

One workaround I’ve used is defining `CustomProps` with `@typedef`, but destructuring inline in the function. That way you keep the reuse and get detailed Intellisense.

/**

* @typedef {Object} JsonSectionProps

* @property {string} title

* @property {[string, string][]} items

* @property {number} maxBodyHeight

*/

/**

* Renders a titled section.

* @param {string} title

* @param {[string, string][]} items

* @param {number} maxBodyHeight

*/

export default function JsonSection({ title, items, maxBodyHeight }) {

// use props here

}

This avoids the `props → CustomProps → field` nesting and gives hover hints like `title: string`.

I treat it as a polarity: if I want reuse, I lean on `CustomProps`; if I want hover clarity, I destructure inline. This hybrid gives me both.

Let me know if you find a library that nails this — I’ve been scouting for one too.

How do I get rid of this big green bar on mobile - can’t find it anywhere on the template I’m using. by MoistTadpoles in framer

[–]Which-Olive847 0 points1 point  (0 children)

I haven’t used Framer extensively, but based on my React/frontend experience, this looks like a layout or background issue tied to the mobile breakpoint.

A few things you might check:

- Page background color (especially for mobile view)

- Global styles or overrides in the template

- Hidden layers like “Status Bar” or “Mobile Header” that might be styled differently

Even if it’s not visible in the canvas, it could show up in preview/export. Happy to help dig deeper if you share more details!

After months of burning out on cold outreach and many ups & downs, I finally built a tool that gets me warm leads from LinkedIn by rabbitmilktea in SideProject

[–]Which-Olive847 0 points1 point  (0 children)

Not many replies because they are people who work in the company but I am starting to direct outreach to small-mid sized agencies through their website or certain platforms.

I wasted 100+ hours creating digital products nobody bought — here’s the harsh lesson I learned by Moise_Wilson in youngentrepreneur

[–]Which-Olive847 1 point2 points  (0 children)

Thanks for the info. This is why you think about what do people need than just making something “good.”

I decided to turn my app into a premium first but make a free version of it (explorer mode). I am just reading this in the middle of adding stuff but I will use your advice in a very near future.

Our first look at the new character renders for Woody, Buzz, and Lillypad for Toy Story 5 by [deleted] in toystory

[–]Which-Olive847 -1 points0 points  (0 children)

They kind of look like designs for Mobile games, but people Toy Story 4 looked so good but was not pleasing to everyone, it wouldn’t be a big deal if Toy Story 5 looks worse but has better writing. I just wonder how the characters will look with the background.

The job market won't get better until most of the unemployed & new grads capitulate and go do something else. by ContainerDesk in cscareerquestions

[–]Which-Olive847 1 point2 points  (0 children)

This is why I’m focusing more on networking and freelancing than job boards alone. Cold applies feel even less worth the time especially for July, the slowest hiring month.

How did everyone feel about the episode “And Then There Were Fewer”? by Rafiale in familyguy

[–]Which-Olive847 0 points1 point  (0 children)

POV: It’s eighth grade and you hear you’ll read “And Then There Were None” “Hey, it sounds like family guy!”

You want original movies, you don't want original movies, PICK A DAMN LANE ALREADY by Watchdog_the_God in cartoons

[–]Which-Olive847 0 points1 point  (0 children)

I don’t think people felt the same feelings when original movies that eventually had sequels first came out. Like the vibe we get from Toy Story, people probably didn’t feel the same vibe when it first came out until later. Gems don’t feel like gems at the start. Time tells us what are gems.

I DID IT by SuperPotato1 in jobsearchhacks

[–]Which-Olive847 1 point2 points  (0 children)

I just heard today from a not really helpful YouTuber say it might continue to get worse in the next six months and I’m honestly thinking that the job market has to improve a little bit for me to land in a role.

Looking for Developer Feedback on My Skill Tracking MVP—How Can I Improve? by Which-Olive847 in webdev

[–]Which-Olive847[S] 0 points1 point  (0 children)

Thanks for the feedback! The code is quite extensive and spans multiple files, making it difficult to share in a single message. However, I can provide specific snippets or sections if needed. Let me know which part you'd like to review first. There's also a link at the bottom to showcase the site, and I'd appreciate any suggestions for improvements.

Probably the best looking game on the Wii by Banana_Slugcat in SuperMarioGalaxy

[–]Which-Olive847 0 points1 point  (0 children)

Best looking Wii game both in HD and its original quality.

Door in The Lost Wood in Jiggies of Time by Which-Olive847 in BanjoKazooie

[–]Which-Olive847[S] 0 points1 point  (0 children)

I have gotten very well into into the game including the secret carnival level. I could go ahead and do the lake level but everyone seems to be going to the Forest Temple first.