Henrik Joreteg

@HenrikJoreteg

PWA developer, consultant, author, and immigrant. Architected Starbucks' PWA. Owner: My latest book:

Spokane, WA
Joined June 2008

Tweets

You blocked @HenrikJoreteg

Are you sure you want to view these Tweets? Viewing Tweets won't unblock @HenrikJoreteg

  1. Pinned Tweet
    6 Aug 2013

    If you don’t actively fight for simplicity in software, complexity will win. …and it will suck.

    Undo
  2. Retweeted
    Jan 20

    Junior dev: My code is simple and easy to understand. Mid-level dev: My code is subtle, clever, innovative, expressive, hyper-optimized, and ingenious. Senior dev: My code is simple and easy to understand.

    Show this thread
    Undo
  3. Jan 29

    The "const" in the first case is not scoped to just that case statement. So the first const is already available in the second case. Solutions: 1. Add curly statements to case to create a block scope (lint rules exist for this). 2. Don't use switch (aka, the Python solution 😅)

    Show this thread
    Undo
  4. Jan 29

    For the curious, this was in part to provide data for a conversation on a project about switch statements versus multiple "if" statements. Turns out variable scoping in case statements is not generally well understood. Only half saw an error. IMO "switch" is a trap.

    Show this thread
    Undo
  5. Jan 28

    The following code is... switch (type) { case SELECTED: const current = 'a' // ... other code then return case UN_SELECTED: const current = 'b' // ... other code then return }

    Undo
  6. Jan 23
    Undo
  7. Jan 21

    I liked the Twitter PWA better without all these promoted tweets 😅

    Undo
  8. Retweeted
    Jan 21

    Using node/babel/webpack/ts/react is like playing chess: Within 13 steps, you're debugging a unique error no one else in the universe has ever encounteed.

    Undo
  9. Retweeted
    Jan 18
    Replying to

    Until around eight years ago I did, which was around the time y'all shoulda stopped using it.

    Undo
  10. Retweeted
    Jan 18

    I don't know who needs to hear this, but... don't use Internet Explorer to browse the web.

    Undo
  11. Jan 18

    I want a GraphQL API in a function-as-a-service type setup with no cold-start lag issues... How can this be accomplished? What do I need to understand, what do I need to read? Is this even possible?

    Undo
  12. Jan 16

    Software engineering's natural state is entropy. Unchecked, this entropy will grow to consume all available engineering resources. Rapid growth of a development team is a metric to be cautious about, not necessarily something to be proud of.

    Undo
  13. Jan 15
    Undo
  14. Jan 12

    I really want a browser API that is just: "give me the print view of this webpage as a PDF." Basically I want to be able to let users download the report they're already looking at as a PDF without having to run puppeteer on a server somewhere else.

    Undo
  15. Jan 10

    Snow is dumping outside... Current status:

    Undo
  16. Jan 10

    So awesome to see Microsoft pushing the web forward instead of holding it back. (Yes, I know Chromium != web). Of the bugs in "Web Capabilities Project" that have assigned owners: 38 are Chromium email addresses *8 are Microsoft* 1 is Intel Not bad!

    Undo
  17. Jan 10
    Undo
  18. Jan 8
    Undo
  19. Retweeted

    Be prepared, there is a small chance that our horrendous leadership could unknowingly lead us into World War III.

    Undo
  20. Jan 7
    Undo
  21. Jan 7

    Sometimes on Twitter I wish I could *like* the fact that somebody liked a certain tweet 😅 Capturing the nuance of real life social interactions on tech platforms is clearly still pretty rudimentary.

    Undo

Loading seems to be taking a while.

Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.

    You may also like

    ·