Jason Swett

codewithjason.com · Personal blog · on HN since 2018

Jason Swett writes about Ruby on Rails, RSpec testing, TDD, code design, and running engineering teams.

What HN saysHN commenters cite it for examples of pointless RSpec tests, Rails integration testing without staging, and a podcast on OOP design in Rails; the author replies to criticism himself.
23HN people shared it
4linked it in comments
49stories submitted
216story points
8 months agolast shared
2018people per year2026

Most-shared posts

  1. 1
  2. 2
    Examples of pointless types of RSpec tests
    3 people · 2 points · first shared 2019 · discussion on HN
  3. 3
    Abstraction in Rails
    2 people · 20 points · first shared 2022 · 2 comments on HN
  4. 4
    How to Defend Good Code
    2 people · 13 points · first shared 2021 · discussion on HN
  5. 5
    Programming principles as memes
    2 people · 3 points · first shared 2025 · discussion on HN
  6. 6
    How to Get Traffic for a Technical Blog
    2 people · 3 points · first shared 2018 · discussion on HN
  7. 7
    Duplication
    2 people · 1 points · first shared 2023 · discussion on HN
  8. 8
    When I do TDD and when I don’t
    1 people · 71 points · first shared 2022 · 109 comments on HN
  9. 9
  10. 10
  11. 11
  12. 12
    Variable Name Anti-Patterns
    1 people · 4 points · first shared 2018 · discussion on HN
  13. 13
    Ruby Testing Micro-Course
    1 people · 3 points · first shared 2018 · discussion on HN
  14. 14
  15. 15
    What should I NOT write tests for? (2021)
    1 people · 3 points · first shared 2025 · discussion on HN

What HN people wrote when they linked it

jihadjihad · 2026-03-04
Among many other possible examples, here are a few [0] from Ruby that I've seen in the wild before LLMs, and still see today spat out by LLMs. 0: https://www.codewithjason.com/examples-pointless-rspec-tests/
jasonswett · 2023-08-29
> One of the biggest benefits of duplication that the author fails to identify the locality of logic There are a lot of things in the post that I fail to identify. There are also some things I wrote there that I no longer completely agree with. Here's a newer post in which I go deeper, and in which I do address the locality of logic. https://www.codewithjason.com/duplication/
brianzelip · 2022-11-30
danmaz74 · 2019-11-21
With many "monolithic" frameworks - eg Ruby on rails - you can do end to end automated testing without having to create a staging environment. https://www.codewithjason.com/rails-integration-tests-rspec-capybara/

Keyboard shortcuts

/Search
j kNext / previous blog
EnterOpen selected blog
vVisit the blog site
fFollow / unfollow
lSwitch grid / list view
dSwitch dark mode
g hHome
g pTop posts
g tTopics
g fFollowing
g lLiked
g yHistory
g qFAQ
EscBack / close