proomt

Search

Search posts, papers, and topics

All posts

The Daily WTFRemy Porter1 min readintro

CodeSOD: Extremely One Line

Summary

The article spotlights a legacy ASP.NET page where the Page_PreInit method is crammed onto one line, mixing user‑agent sniffing and magic strings, illustrating how such code hurts readability and maintainability.

  • One‑line method bodies hurt readability; keep each method on its own lines.
  • Avoid user‑agent string sniffing; use feature detection instead.
  • Prefer enums or constants over magic strings like "uplevel".

Engineers maintaining or refactoring old ASP.NET applications should care because these anti‑patterns make the codebase harder to understand and evolve.

4/10

Related reading

  1. Article: Your Next DSL Author Is a Language Model

    Typed Domain Grounding (TDG) embeds a DSL inside a mainstream language the LLM already knows (e.g., Kotlin) and uses the host compiler as an oracle. The author describes five building blocks—embedding, choosing a host language with high training‑data frequency, compiler‑driven type safety, a generate‑compile‑repair loop, and an on‑demand teaching tool—and shows measured results from kUML, a Kotli…

    InfoQinfoq.com18 min
  2. App Hardening: One Obfuscation Pipeline Across Every Port

    Codename One adds a cloud‑side hardening step that runs on the merged JAR before it is split into Android, iOS, JavaScript, and desktop binaries. It can rename symbols, encrypt string literals, and insert opaque‑predicate control‑flow guards at configurable levels (off → standard → aggressive → paranoid). The transforms are selective per platform to avoid breaking optimizers, and a mapping is kep…

    CodeName Onecodenameone.com6 min
  3. CodeSOD: Vintage 2013

    A tongue‑in‑cheek post highlighting an absurd GPL header that repeats "2013" dozens of times, questioning the reliability of the surrounding code.

    The Daily WTFthedailywtf.com10 min
  4. Fill an SMS Verification Code Without Reading the Inbox

    Codename One adds a one‑time‑code autofill component that leverages iOS, Android, and browser autofill APIs, eliminating the need for SMS‑reading permissions. The new `PhoneVerification` component handles phone entry, code entry, resend timing, and server callbacks, while the UI uses a single hidden editor to back six visual boxes, improving typing, paste, and accessibility. The post explains the…

    CodeName Onecodenameone.com3 min