nishio: Iā€™m starting to feel like Iā€™m managing Kozanebaā€™s source code in a Scrapbox-like manner. In other words, source code was conventionally organized hierarchically by directories, but with ā€œJump to definitionā€ in VSCode, which is equivalent to ā€œFollow a linkā€ in Scrapbox, ā€œJump to file nameā€ in VSCode, which is equivalent to title suggestion in the search field of Scrapbox, and full-text search when it is still not found, the hierarchical structure becomes less important. Move to new file in VSCodeā€™s refactoring menu is equivalent to Scrapboxā€™s New page. This command cuts out reusable parts of the code or chunks of text that you want to mention individually on a separate page.

nishio: So, whatā€™s interesting is that Scrapbox has done away with the hierarchical structure altogether, while I still use the directorying of source code. When the main way to get there was to follow the hierarchy, the hierarchy had to be maintained properly, and it was easy to break down because people couldnā€™t maintain it properly. However, if it is not the main way to get to a destination, there is little disadvantage because it means that ā€œthere are more options to get thereā€ even if the hierarchical structure is maintained in an unrefined manner. When a new page is created, it is generated in the same directory as the original page by default. ā€œA group of things that seem loosely relatedā€ will be grouped together.

nishio: VSCode (at least in the TypeScript environment) updates the import statement when you move the file to another directory after the fact. So, you donā€™t have to worry too much about where the file is created in the first place.

nishio: so it would actually be good to include a hierarchical structure in the Wiki system. I think the important thing is that it runs so crisply that ā€œhow to find something other than following the hierarchyā€ is the main use.

nishio: ā€œWhere to put the function quux to be called, whether from Foo or Bar?ā€>> No problem, because it will fly with the definition jump wherever it is.


This page is auto-translated from /nishio/ć‚½ćƒ¼ć‚¹ć‚³ćƒ¼ćƒ‰ć‚’Scrapboxēš„恫ē®”ē† using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. Iā€™m very happy to spread my thought to non-Japanese readers.