latest news

in this website, we will provide you all new latest news

  • Home
  • Business
    • Internet
    • Market
    • Stock
  • Parent Category
    • Child Category 1
      • Sub Child Category 1
      • Sub Child Category 2
      • Sub Child Category 3
    • Child Category 2
    • Child Category 3
    • Child Category 4
  • Featured
  • Health
    • Childcare
    • Doctors
  • Home
  • Business
    • Internet
    • Market
    • Stock
  • Downloads
    • Dvd
    • Games
    • Software
      • Office
  • Parent Category
    • Child Category 1
      • Sub Child Category 1
      • Sub Child Category 2
      • Sub Child Category 3
    • Child Category 2
    • Child Category 3
    • Child Category 4
  • Featured
  • Health
    • Childcare
    • Doctors
  • Uncategorized

Monday, 2 February 2026

New top story on Hacker News: Show HN: PolliticalScience – Anonymous daily polls with 24-hour windows

 Champ     11:21     Hacker News     No comments   

Show HN: PolliticalScience – Anonymous daily polls with 24-hour windows
3 by ps2026 | 0 comments on Hacker News.
I have been building a Blazor WASM enterprise app for a few years now. I wanted a break from it and had an idea for a side project that had been in the back of my mind for a few years. A daily political poll where anyone can participate and privacy is a product, not a checkbox. This is how it works. One question per day about current events. Agree or Disagree. Each poll runs for 24 hours (midnight to midnight ET) and then close permanently. You do not need an account to vote. The main idea is to capture sentiment at a specific point in time, before the news cycle moves on and people's opinions drift. For this app, I tried to make privacy the point and not just a feature. I originally used a browser fingerprint for anonymous voting, but recently changed it to a simple first-party functional cookie. It uses a random string and the PollId to see if your browser had voted before. The server stores a hash of the cookie to check for duplicates while the poll is live, then deletes all hashes when the poll closes. Only the aggregate counts remain. The browser fingerprint had way too many device collisions where it would show someone they voted even though they had not (an odd thing to see when you go to a poll). The HttpOnly cookie is also available during prerender, which helped eliminate loading flashes I was getting. This app was built with .NET 10 Blazor with a hybrid Static SSR + Interactive Server. The static pages (about, privacy, terms, etc...) don't need SignalR connections. The interactive ones (voting, archive, results, etc...) do. Mixing these modes was a new experience for me and ended up being pretty tricky. I ended up with data-enhance-nav="false" on most links to prevent weird state issues. The two biggest things I learned during building this app was how to prevent weird blazor flashes and duplicate queries during pre-render, hydration, and state changes. I used the _ready pattern from preventing the hydration flashes (gate rendering until data is loaded by setting the flag before the first await). Preventing the duplicate queries was possible by using a 2-second static caching during prerender to hydration. This isn't scientific polling and these are obviously not representative samples. The 24-hour window means smaller numbers than longer surveys and it's only a survey of those who choose to participate. The Agree/Disagree binary choice basically flattens nuance (like I sort of agree), but I am okay with all of this as I think a lot of people feel they never get to participate in these sorts of polls. I recently also added discussions with AI moderation (Claude Haiku 4.5 as a "first-pass" filter which flags things clearly out of the community guidelines for human review), a reaction system where counts stay hidden until the discussion closes, and news coverage from across the political spectrum shown after you vote for more perspective on the topic. Thanks for checking it out and happy to dig into any of the Blazor SSR patterns or anything else that sounded interesting. I know Blazor is less frequently used and especially for a public facing website. It did have its challenges, but so far, it has been a blast to work with overall.

  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

0 comments:

Post a Comment

Popular Posts

  • 简报:中美发表应对气候危机联合声明;医生称纳瓦尔尼病危
    By BY EMILY CHAN AND KONEY BAI from NYT World https://ift.tt/3dva1lP via IFTTT
  • New York Post Reporter Who Wrote False Kamala Harris Story Resigns
    By BY MICHAEL M. GRYNBAUM from NYT Business https://ift.tt/3aKd8Ex via IFTTT
  • New top story on Hacker News: Visa and Mastercard are getting overwhelmed by gamer fury over censorship
    Visa and Mastercard are getting overwhelmed by gamer fury over censorship 181 by mrzool | 134 comments on Hacker News.
  • New top story on Hacker News: The Power of Starting Again
    The Power of Starting Again 10 by memorable | 2 comments on Hacker News.
  • United Nations at 75 plagued by new crises and cash crunch
    Faced with wars, climate change and a pandemic, the United Nations is struggling to make an impact. from BBC News - World https://ift.tt/2...
  • New top story on Hacker News: My Experience with Claude Code After 2 Weeks of Adventures
    My Experience with Claude Code After 2 Weeks of Adventures 3 by dejavucoder | 0 comments on Hacker News.
  • New top story on Hacker News: Instrumenting Next.js with runtime secret injection
    Instrumenting Next.js with runtime secret injection 6 by nimishk | 3 comments on Hacker News.
  • Wildlife Tourism: सैलानियों की पहली पसंद बना ये टाइगर रिजर्व, तीन गुना हुए बाघ
    यहां बाघों की संख्या बढ़ने से वह अब आसानी से दिख जाते हैं। ये पार्क एशियाई हाथियों के लिए भी प्रसिद्ध है। लिहाजा यहां दो साल में पर्यटकों की...
  • New top story on Hacker News: Memoirs from a Japanese Internet Cafe
    Memoirs from a Japanese Internet Cafe 18 by bemmu | 1 comments on Hacker News.
  • New top story on Hacker News: Nuclear Waste Reprocessing Gains Momentum in the U.S.
    Nuclear Waste Reprocessing Gains Momentum in the U.S. 14 by rbanffy | 4 comments on Hacker News.

Recent Posts

Categories

  • BBC News
  • BBC News - Technology
  • BBC News - World
  • BOLLYWOOD Jagran Hindi News - entertainment:bollywood
  • CBNNews.com
  • CLASS 10 BEST BOOKS FOR BECOME A TOPPER
  • CRICKETJagran Hindi News - cricket:headlines
  • FOX NEWS
  • Hacker News
  • INDIAJagran Hindi News - news:national
  • NYT
  • Reuters: World News

Unordered List

Pages

  • Home

Text Widget

Blog Archive

  • ▼  2026 (383)
    • ►  July (55)
    • ►  June (55)
    • ►  May (54)
    • ►  April (52)
    • ►  March (52)
    • ▼  February (58)
      • A 'delicate' balance for Canada and a 'win-win' fo...
      • New top story on Hacker News: Werner Herzog Betwee...
      • New top story on Hacker News: Theory of Constraint...
      • New top story on Hacker News: Show HN: Mission Con...
      • New top story on Hacker News: Why isn't LA repavin...
      • New top story on Hacker News: HuggingFace Agent Sk...
      • Ramaphosa thanks Putin for release of South Africa...
      • Zelensky tells BBC Putin has started WW3 and must ...
      • New top story on Hacker News: ASML unveils EUV lig...
      • New top story on Hacker News: Fresh File Explorer ...
      • Armed man killed after entering secure perimeter o...
      • New top story on Hacker News: Loon: A functional l...
      • Giant tortoises return to Galápagos island after n...
      • New top story on Hacker News: KFC, Nando's, and ot...
      • New top story on Hacker News: Blue light filters d...
      • New top story on Hacker News: DOGE Bro's Grant Rev...
      • US-Iran tension: Why Tehran may choose confrontati...
      • New top story on Hacker News: DNS-Persist-01: A Ne...
      • I would scream in my sleep: Women from Syria's Ala...
      • New top story on Hacker News: Russia's economy has...
      • New top story on Hacker News: Discord Rival Gets O...
      • New top story on Hacker News: Sub-Millisecond RAG ...
      • Family of Zambia's ex-President Lungu dismiss pois...
      • New top story on Hacker News: Use Protocols, Not S...
      • New top story on Hacker News: Privilege Is Bad Gra...
      • New top story on Hacker News: Show HN: Jemini – Ge...
      • New top story on Hacker News: Show HN: Nerve: Stit...
      • New top story on Hacker News: Scientists observe a...
      • New top story on Hacker News: Towards Autonomous M...
      • New top story on Hacker News: (Ars) Editor's Note:...
      • New top story on Hacker News: Soviet Tektronix 700...
      • New top story on Hacker News: A header-only C vect...
      • New top story on Hacker News: uBlock filter list t...
      • 'Canadians are with you,' says PM at Tumbler Ridge...
      • New top story on Hacker News: Show HN: Moltis – AI...
      • Leak damages 19th Century painting in latest Louvr...
      • New top story on Hacker News: Show HN: Pgclaw – A ...
      • Kenya's border with Somalia set to re-open after a...
      • New top story on Hacker News: NetNewsWire Turns 23
      • New top story on Hacker News: Show HN: HN Companio...
      • Venezuelan opposition politician under house arres...
      • New top story on Hacker News: Eight more months of...
      • No big names. No big budget. But Heated Rivalry is...
      • New top story on Hacker News: The Little Bool of Doom
      • New top story on Hacker News: U.S. Jobs Disappear ...
      • 'I don't want to imagine what happened' - Shock an...
      • New top story on Hacker News: How to effectively w...
      • Coin portrait of late Queen draws criticism in Aus...
      • New top story on Hacker News: Unsealed Court Docum...
      • Israeli intelligence chief's brother charged with ...
      • New top story on Hacker News: Arcan-A12: Weaving a...
      • How plans for Trump International hotel in Belgrad...
      • New top story on Hacker News: Show HN: PII-Shield ...
      • US says it shot down Iranian drone flying towards ...
      • Ghana suspends citizenship process for people of A...
      • New top story on Hacker News: Show HN: PolliticalS...
      • Teenager dies from Swiss bar fire injuries, bringi...
      • New top story on Hacker News: Clearspace (YC W23) ...
    • ►  January (57)
  • ►  2025 (738)
    • ►  December (53)
    • ►  November (52)
    • ►  October (60)
    • ►  September (61)
    • ►  August (63)
    • ►  July (71)
    • ►  June (64)
    • ►  May (71)
    • ►  April (61)
    • ►  March (66)
    • ►  February (51)
    • ►  January (65)
  • ►  2024 (756)
    • ►  December (73)
    • ►  November (69)
    • ►  October (64)
    • ►  September (58)
    • ►  August (71)
    • ►  July (63)
    • ►  June (63)
    • ►  May (64)
    • ►  April (64)
    • ►  March (66)
    • ►  February (35)
    • ►  January (66)
  • ►  2023 (1593)
    • ►  December (64)
    • ►  November (69)
    • ►  October (80)
    • ►  September (112)
    • ►  August (111)
    • ►  July (129)
    • ►  June (135)
    • ►  May (181)
    • ►  April (173)
    • ►  March (189)
    • ►  February (166)
    • ►  January (184)
  • ►  2022 (2295)
    • ►  December (177)
    • ►  November (178)
    • ►  October (202)
    • ►  September (194)
    • ►  August (194)
    • ►  July (198)
    • ►  June (184)
    • ►  May (186)
    • ►  April (195)
    • ►  March (184)
    • ►  February (183)
    • ►  January (220)
  • ►  2021 (7845)
    • ►  December (335)
    • ►  November (635)
    • ►  October (656)
    • ►  September (636)
    • ►  August (713)
    • ►  July (713)
    • ►  June (690)
    • ►  May (707)
    • ►  April (690)
    • ►  March (713)
    • ►  February (644)
    • ►  January (713)
  • ►  2020 (8315)
    • ►  December (713)
    • ►  November (688)
    • ►  October (614)
    • ►  September (690)
    • ►  August (713)
    • ►  July (713)
    • ►  June (690)
    • ►  May (713)
    • ►  April (690)
    • ►  March (711)
    • ►  February (667)
    • ►  January (713)
  • ►  2019 (19506)
    • ►  December (712)
    • ►  November (689)
    • ►  October (712)
    • ►  September (681)
    • ►  August (712)
    • ►  July (713)
    • ►  June (689)
    • ►  May (2935)
    • ►  April (2907)
    • ►  March (3014)
    • ►  February (2731)
    • ►  January (3011)
  • ►  2018 (21108)
    • ►  December (3036)
    • ►  November (2927)
    • ►  October (3024)
    • ►  September (2931)
    • ►  August (3016)
    • ►  July (3033)
    • ►  June (2790)
    • ►  May (350)
    • ►  March (1)

About Me

Champ
View my complete profile
Powered by Blogger.

Sample Text

Copyright © latest news | Powered by Blogger
Design by Hardeep Asrani | Blogger Theme by NewBloggerThemes.com