seenfil
Community cover Questions-about-programming
Community logo Questions-about-programming

Questions-about-programming

@Questions-about-programming
41 members
9 posts
Creator: @Everybody

Best learning roadmap for Rust if you already know Go or TypeScript?

Looking to add Rust to my backend toolbelt this year. I've been writing Node/TS and Go for 5+ years. The borrow checker and memory management seem intimidating from the outside.

What resources or project ideas helped you get productive in Rust the fastest without getting stuck in theoretical weeds?
128
Open full discussion (5 comments)

How to optimize slow SELECT COUNT(*) queries on large MySQL InnoDB tables?

Our posts and activity tables passed 5 million rows and SELECT COUNT(*) FROM posts WHERE community_id = ? is taking over 450ms. Indexes are present on community_id.

What is the recommended architecture to make count lookups sub-millisecond without killing database CPU?
122
Open full discussion (3 comments)

Docker vs Podman in 2026: Is it finally worth ditching Docker Desktop?

With Docker Desktop licensing restrictions for enterprise and high memory footprint on macOS/Windows, a lot of teams have been discussing Podman.

For those who migrated to Podman for local fullstack dev (containers, compose, volumes), what was your real experience? Any breaking dealbreakers?
133
Open full discussion (2 comments)

Is PDO prepared statements 100% safe against SQL injection in PHP?

Building an API authentication layer in PHP. We are using PDO with prepared statements everywhere for user input.

Are parameterized prepared statements completely immune to SQL injection, or are there edge cases (like table names, order by clauses, or charset issues) where injection is still possible?
146
Open full discussion (2 comments)

How to fix "Hydration failed because the initial UI does not match" in React & Next.js?

I keep running into the classic React hydration error: 'Hydration failed because the initial UI does not match that rendered on the server'. It seems to trigger randomly when rendering dynamic timestamps and localStorage items on initial page load.

What is the cleanest, production-ready pattern to prevent hydration mismatches without disabling SSR completely?
172
Open full discussion (4 comments)

How do I start a live stream on my own website?

Using OBS, I want to regularly stream live on my own website. I don't want to use third-party live streaming services like YouTube or Twitch, or anything similar. I just want users to click the "Live" tab on my website and be redirected to a page where they can simply watch the live video. How do I do this?
491
Open full discussion (2 comments)

How to check a checkbox in JS

CODE
<input type="checkbox" id="myCheckbox" />
<button onclick="checkCheckbox()">Check</button>

<script>
  function checkCheckbox() {
    const checkbox = document.getElementById('myCheckbox');
    if (checkbox.checked) {
      console.log('Checkbox is checked');
    } else {
      console.log('Checkbox is not checked');
    }
  }
</script>
493
Open full discussion (2 comments)
Photo
1 / 1
likes
❤️ 🔥 😂 😍 👍 👏 🎉 🚀 🥳 💯

Create Post

You are not a member of any community yet. Posts can only be published in communities you have joined. Browse Communities