Oct. 27th, 2018

mtbc: maze I (white-red)
Sometimes I change a bunch of code, get my changes working, then tidy up my mess, even working from the resulting large diff to recreate a series of commits that capture simpler logical steps. In thinking about some code reorganization yesterday I noticed that it includes activities that could be amenable to automated analysis:
Broadly I have the sense that things are going well if my code size is reducing and the average amount of in-scope state is also reducing: then I am mostly left with having to name the subparts. Those measures are among my proxies for if each part of the code is more easily understood and easier to write tests for. I can imagine that there has probably been some active research into the question of automated code tidying to make it clearer though analyzing data dependency patterns, detecting similar code and characterizing its differences, etc. I wonder if it has got anywhere.

This was especially in my mind over the past couple of weeks as I have had to do plenty of code tidying. )
mtbc: maze B (white-black)
Pizza is in the British news at the moment as Public Health England is considering recommending calorie limits for various popular foods. Despite that, today I appreciated that to our margherita pizzas Miranda added extra toppings: anchovies for one and Danish blue cheese for the other, both of which I enjoyed. I suppose that the Department of Health and Social Care probably worry about our food's salt content too but blue cheese does need a fair bit of it.

Profile

mtbc: photograph of me (Default)
Mark T. B. Carroll

December 2025

S M T W T F S
 12 3456
78910111213
14 15161718 19 20
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 29th, 2025 07:46 pm
Powered by Dreamwidth Studios