Hacker Newsnew | past | comments | ask | show | jobs | submit | emigre's commentslogin

It's possible to satisfy a set of requirements with code that's low quality. There's the maintainability of the code, for example, or the performance of the system.


The set of requirements TDD encourages code to meet happen to be ones that increase code quality.

Code that is easy to test tends to be well-structured.

Code that is badly structured tends to be hard to test.

TDD is not a QA methodology, it is a design methodology. It also tends to help quality out a lot, but that's a secondary effect.


At this time of the year?

... At this time of the day?

... In this part of the country?

... Localized entirely within your kitchen?


This is fantastic. Thanks!


It's meant as an example. The function receives something, which we call v, and returns something else, which we call e. It's not meant to be taken literally as the variable names - otherwise, you are right, e is undefined in that example.

He is just showing how the syntax of a Scheme function corresponds to the structure of a JavaScript function.


Inditex, Mercadona, Movistar?...


It’s academic and comprehensive, that’s the issue. It’s not about writing a production grade compiler, though, in my humble opinion. There are more things to learn for that, unfortunately… is just a pretty big topic with lots of stuff to learn.


the dragon book is all i have on the topic. it was a big investment for me.

it taught me to think very differently but i am sure i am still not ready to write a compiler :D


'Engineering a Compiler' by Cooper & Torczon is a great resource. It gives context on each topic, explains them clearly, and at the same time, I think, it is a really good resource from an academic point of view. It still requires some investment in terms of time and effort, but I found it more approachable than the Dragon book. I would say that both cover more or less the same introductory stage to compilers construction. If you have read the Dragon book, I have the feeling that you are perfectly well prepared to write your own compiler.


I imagine that he is not that committed to open source, when he chooses to post on X.


Most open source licenses have strings attached, the terms of the licence say what those “strings” are. Like requiring attribution.


Disgusting AI-generated slop. Lacks style, effort and authenticity.


Thanks for pointing this out


Remember to thank @vitus [1] as well for being the first to notice.

[1] https://news.ycombinator.com/item?id=47196505


Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: