Better HN
topnewbestaskshowjobs
Log inSign up

nephrenka

63 karma · joined Oct 11, 2012 (14y ago) · 27 submissions

Submissions

1.

Practices I Abandoned with Agents: An Ode to Test-Driven Development(adamtornhill.substack.com ↗)

2 points · by nephrenka · 2mo ago · discuss

comment 3mo ago · link · parent

> This is insanity, and at the same time, the strongest and best argument to fire all these useless humans.

Well, there's still the human in the loop, uncertainty and risk drive the reviews. From the article:

"I never read all AI-generated code. But, and this is important, make the code you _do_ read count."

The key to make this work is to establish human/agent abstraction boundaries and enforce what you don't inspect.

3.

An opinionated (and mainly correct) guide to naming(adamtornhill.substack.com ↗)

4 points · by nephrenka · 5mo ago · discuss

4.

Why Merge Conflicts Became the New Agentic Bottleneck(adamtornhill.substack.com ↗)

3 points · by nephrenka · 5mo ago · discuss

5.

Compressed Cognition: The Cost of Faster Coding(adamtornhill.substack.com ↗)

5 points · by nephrenka · 6mo ago · discuss

6.

Coding Is Dead ( But It Still Smells Funny)(adamtornhill.substack.com ↗)

2 points · by nephrenka · 7mo ago · discuss

comment 1y ago · link · parent

Fascinating! I spent the past two days at a software conference in the Barbican. (The SDD conf). The place is truly beautiful in a brutalistic way. Had lunch in the greenhouse.

comment 2y ago · link · parent

Agree -- maintainable code was always important, but even more so in the age of AI. Unless we introduce proper guardrails via reliable code quality metrics, all these AI assistants will serve more as legacy code generators than genuine help.

comment 2y ago · link · parent

> our research significance is currently limited in that it does not directly measure what code was AI-authored

There is actual AI benchmarking data in the Refactoring vs Refuctoring paper: https://codescene.com/hubfs/whitepapers/Refactoring-vs-Refuc...

That paper benchmarked the performance of the most popular LLMs on refactoring tasks on real-world code. The study found that the AI only delivered functionally correct refactorings in 37% of the cases.

AI-assisted coding is genuinely useful, but we (of course) need to keep skilled humans in the loop and set realistic expectations beyond any marketing hype.

comment 3y ago · link · parent

> 8. Your Code as a Crime Scene (Finding problems in the code using code history)

There's a brand new 2nd edition on its way: https://pragprog.com/titles/atcrime2/your-code-as-a-crime-sc...

comment 3y ago · link · parent

There are two books which I keep coming back to learn from:

* Structure and Interpretation of Computer Programs: SICP changed the way I view programming. It's an excellent intro to the mindset of solving problems with code and how to iteratively build up a software design. You need to be comfortable with Scheme, though, in order to get the most out of the book.

* The Mythical Man-Month: Not strictly about programming but more on how to succeed with software projects. Hence, The Mythical Man-Month is more about people than code, which is why it has aged so well: people is a fairly stable construct.

comment 4y ago · link · parent

I'm not John, but I'm one of the authors of the research paper. Indeed, one goal with this work is to complement DORA’s delivery metrics with similar correlations between code quality and its business impact.

Hopefully, this work can help developers when communicating with the product/business side. The sad reality is that without quantifiable metrics, short term targets will win over the long-term maintainability of the codebase. Only a minority of companies actively manage technical debt.

comment 4y ago · link · parent

This is indeed something that the academic research paper (see https://arxiv.org/abs/2203.04374) identifies as Future Work. There could be a code familiarity component that explains the large risks and variations.

From the paper: "Could it be that changes done by the main author are faster and more predictable than corresponding changes made by a minor contributor? We suspect that author experience could be a factor that impacts the predictability of changes to low quality code."

If that turns out to be the case, then it would highlight organizational dimensions of low quality code: key personnel dependencies and on-boarding challenges.

comment 4y ago · link · parent

Yes, this empowers development teams to have data-driven tech debt conversations with management.

I wish that I had this type of data myself back in the day. Would have been so much easier to push back on wishful deadlines.

comment 4y ago · link · parent

Yes, cyclomatic complexity might be a popular metric but it was never a good one. At least not for its original purpose. That said, I occasionally find cyclomatic complexity useful: cyclomatic complexity is a pretty good estimate on the number of unit tests a piece of code needs.

comment 4y ago · link · parent

I started to code 35 years ago on a Commodore 64. The beauty of those machines was that you literally had to write code to even load a game (LOAD, RUN, etc.).

As such, the barriers to start exploring programming on your own were low: the development environment was already there, you were familiar with the interface, and it booted in an instant. I haven't seen any modern day technology replicate that ease of access for beginning coders.

comment 5y ago · link · parent

That's a great visual presentation, but not really an innovation. The CodeScene tool has that built in together with a set of deep analyses on top (see https://codescene.com/).

There are several public conference talks that cover this visualization and related use cases: https://www.youtube.com/watch?v=fl4aZ2KXBsQ

comment 6y ago · link · parent

Fully agree! That's why I recommend to monitor the code health trends continuously -- the earlier we can catch any potential issues, the better: https://codescene.io/projects/167/jobs/55946/results/warning...

We have these code health trends supervised as part of our pull requests and use them as (soft) quality gates. [1]

[1] https://codescene.com/blog/measure-code-health-of-your-codeb...

comment 6y ago · link · parent

Yes, there's an on-prem version of CodeScene that can be run on private servers. The latest release is described here: https://codescene.com/blog/architectural-analyses-simplified...

To analyse Perforce, you setup an automated conversion to a read-only Git repo that you then point the analysis to.

comment 7y ago · link · parent

CodeScene isn't built on the open source tool. CodeScene's engine is implemented from scratch in order to deal with large-scale codebases. The basic metrics are the same, but CodeScene adds plenty of information and pattern detection on top of them. If you're interested, the story of CodeScene is written down here: https://empear.com/blog/happy-birthday-3-years/

comment 7y ago · link · parent

Cool - thanks! While the measures a simple in theory, there are some practical challenges; git repositories tend to be messy. So part of the practical challenge is to clean the input data (e.g. filter out auto-generated content, checked in third party libraries).

Another challenge is that version-control data is quite file centric, while many actionable insights are on a higher architectural level. In CodeScene we solve this by aggregating files into logical components that can then be presented and scored.

comment 7y ago · link · parent

A large codebase under active development presents a moving target; Even if you knew how something worked last week, that code might have changed twice since then. Detailed knowledge in the solution domain gets outdated fast.

To address this issues, I work with something I call a behavioral code analysis. In a behavioral code analysis, you prioritize the code based on its relative importance and the likelihood that you will have to work with it and, hence, needs to understand that part. Behavioral code analysis is based on data from how the organization works with the code, and I use version-control data (e.g. Git) as the primary data source. More specifically, I look to identify hotspots. A hotspot is complicated code that the organization has to work with often. So it's a combination of static properties of the code (complexity, dependencies, abstraction levels, etc) and -- more important -- a temporal dimension like change frequency (how often do you need to modify the code?) and evolutionary trends.

I have found that identifying and visualizing hotspots speeds up my on-boarding time significantly as I can focus my learning on the parts of the code that are likely to be central to the solution. In addition, a hotspot visualization provides a mental map that makes it easier to mentally fit the codebase into our head.

There are a set of public examples and showcases based on the CodeScene tool here: https://codescene.io/showcase

I have an article that explains hotspots and behavioral code analysis in more depth here: https://empear.com/blog/prioritize-technical-debt/

I also have a book, Software Design X-Rays: Fix Technical Debt with Behavioral Code Analysis, that goes into more details and use cases that you might find useful for working with large codebases: https://pragprog.com/book/atevol/software-design-x-rays

23.

Top 5 Contemporary Software Engineering Books(medium.com ↗)

15 points · by nephrenka · 8y ago · discuss

24.

Manipulate Functions with the J Language(adamtornhill.com ↗)

112 points · by nephrenka · 9y ago · 31 comments

25.

Analyzing Patterns in the Evolution of Linux(empear.com ↗)

4 points · by nephrenka · 9y ago · discuss

26.

The Signs of Trouble: On Patterns, Humbleness and Lisp(adampetersen.se ↗)

2 points · by nephrenka · 14y ago · discuss