When dealing with legacy code (== code without existing tests), the first task before making behavioral changes is to prepare characterization tests. The easiest way to achieve that is to separate the pure computation from communication inside the existing functions.
But it is a daunting task, because you do not have …
Continue reading »

Överblick
Ett område i Rudan naturreservats södra del har fått en ny MTB-stigsområde.
Samtliga stigar börjar och slutar vid MTB spårcentrals. Koordinater: 59.15908 18.11765.
Det finns flera stigar med olika svårighetsnivåer:
- Två enkla gula teknikbanor. Man har byggd flera berms och antal trähinder (A-frame, wallride, whale tail …
Continue reading »
A lot of issues in software creation and maintenance arise from lack of analysis of the problem at hand and out-of-date or missing documentation for what the software is expected to do. Test-driven development (TDD) promises to improve the quality and maintainability of produced software.
This discipline dictates to write …
Continue reading »
Definition
Static analysis (SA) happens when any partial execution of program code happens. That is, the code is treated as having different semantics, only partially matching what the compilation/interpretation (C/I) process is extracting from it.
Neither executable translation artifacts (object files and executables from compilation) nor behavioral effects …
Continue reading »
This is not really a strategy. You simply ignore the performance aspects of your application until you can allow it. Sooner or later your customers, if you have any, will bring it up to your attention.
As your …
Continue reading »
The ideas below were inspired by rereading of Tom Stuart’s Understanding Computation book, watching Uncle Bob’s Clean Code videos, and my thoughts about the nature of the problems I observe in daily work with certain tests.
In theory, there is a common agreement that simple tests are better …
Continue reading »
TL;DR: fin lampa om man tycker om Lego, adaptrar och är beredd att nörda över installation med massa små delar.

Förord om min köpupplevelse
Jag köpte Gloworm XS G2.0 på Chainreactioncycles. Det var länge sedan jag köpte någonting från den brittiska webshoppen. Jag kan konstatera att dess utbud …
Continue reading »
TL;DR: Groupsetten skulle passa bäst för dig som vill min-maxa sin drivlina. Alltså att ha mest värde per krona.
Jag har haft en Advent X kassett, växlare och reglage på min hardtail sedan i mars 2021, alltså i 1½ år. Den cykeln använde jag regelbundet och året om för …
Continue reading »
Continue reading »
TL;DR: Do not clump timeouts and other test failures together. Timeouts signal a problem with test harness design, not just a bug in the system it controls.
The software simulation field is unique in the following way. The input “data” our simulator program processes is actually “code” of some …
Continue reading »
Update November 2024: use better scripts to collect and draw the plot.
Michael Feathers’ idea about how to look for maintenance-problematic files in a repository: https://www.agileconnection.com/article/getting-empirical-about-refactoring.
In short, the files that contain hard-to-understand code and simultaneously are frequently modified are the primary targets for refactoring …
Continue reading »
Continue reading »
Documents disappear from the Net. Here are some that no longe can be found at original locations. Even the Web Archive does not have them.
- Intel Technology Journal PDF
- Progeng 2012 PDF
Continue reading »
The classification is based on book:
Gerard Meszaros xUnit Test Patterns: Refactoring Test Code, 2007. I have added a few additional test smells that I use to see.
Each smell is accompanied by suggestions on how to avoid or address it.
Continue reading »
Uppdaterad 2021-12-17. Tog bort saker jag fått.
Cykling
-
Broms Magura MT5 (en uppsättning) eller MT Trail (ett par)
https://www.bike-discount.de/en/magura-mt5-carbotecture-disc-brake
https://www.bike-discount.de/en/magura-mt-trail-sport-hc-1-finger-disc-brake-set
-
Tension meter https://www.bike24.com/p2417525.html
-
Manitou Mezzer 37 mm service kit
partnumber 141-36713-K025
https://www.wiggle.se …
Continue reading »
Why
One of the program services on my computer kept respawning despite my attempts to kill it, suspend it, or disable it via different means. I then had an idea to pause it in a way that would prevent it from annoying me, while still maintaining an impression that it …
Continue reading »
Discussion around the build: Happyride forum.
It was time to get me another bike.
Goals
- Frame geometry roughly mathcing my existing hardtail. That is not too long, not too slack.
- Gaffelns slag mellan 130 mm och 150 mm. Bakdämparens slag mellan 120 och 150 mm.
- Not a pre-built bicycle, but …
Continue reading »
Läs SLAO:s lilla gröna
Det är vanligt att man uppmanas att läsa genom den lilla broschuren på fler ställen i en bikepark. Enklast är att ladda boken ner, t. ex. härifrån:
https://www.slao.se/content/uploads/2020/06/Montage_lillagro%CC%88na_2020_SLAO_tilltryck_uppdaterad-10juni_web.pdf …
Continue reading »
0
1
- фомарик — фонарик
- пенеска — песенка
- шаманист — машинист (поезда)
- тупылка — бутылка
- ищкотно — щекотно
- зиминчик — мизинчик
- меаграт — виноград
- исофор — светофор
- кащики — карточки
- тщюра (tjura) – вчера
- атурар — тротуар
- в моксе — в Москве
- потку — попку
- сапсап — поезд Сапсан
- абушка — подушка
- асамат — космонавт
- синевый и зелёновый — синий и зелёный
- полиска — полиция + polis …
Continue reading »
Inlägget finns även på Happyride forum.
Det var dags att skapa en ny cykel.
Byggets syfte
Syftet var att skaffa mig en ny MTB med följande egenskaper.
- Ramgeometri som ungefärligt motsvarar den som min befintliga hardtail har. Alltså inte för lång, inte galet flack heller.
- Gaffelns slaglängd mellan 130 mm …
Continue reading »
Det finns en bikepark på Flottsbro i Huddinge. Men det här inlägget handlar inte om den bikeparken.

Däremot finns det ett stignätverk intill parken. Två särskilda stigar har även sin egen karta:

Kartan är dock inte helt uppdaterad. Men både stigarna är tillräckligt bra markerade längst deras sträckor.
Stigarna börjar …
Continue reading »
I sommar 2018 skapade man Candyland på Fiskartorpets back. Det var en rolig
hoppbana nära till stadens center.
Men i sommar 2021 revs den ner. Man använde grävmaskiner för att utjämna samtliga hopp och berms.
Man kan läsa om omständingheterna på Happyrides forum: https://happyride.se/forum/threads/vad-har-haent-med-fiskartorpet.3689018 …
Continue reading »
TL;DR: выборка из переписки об изучении нового языка программирования (ЯП).
Grigory, [16.12.20 21:01]
Любой ЯП определяется следующими своими свойствами:
- Сложность по Тьюрингу. Всё, что слабее машины Тьюринга, нас не интересует.
- Система типов (какие есть базовые типы, как делаются производные типы, какие проверки когда делаются)
- Система выделения …
Continue reading »
- Носки
- Вилки
- Сокет 8 мм, сточенный снаружи до диаметра 10,0 мм https://happyride.se/forum/threads/3684949/
- Лак для ногтей КРАСНЫЙ
Continue reading »
Introduction
The majority of main roads (classified as motorways and primary roads)
are already present in OpenStreetMap (OSM) for a lot of countries. The primary
roads of Europe, Asia and Americas are likely to be fully covered.
But a multitude of the last mile roads are still missing. Roads such …
Continue reading »