Vladimir Gordeev
02/21/2019, 3:08 PMmaxd
02/21/2019, 3:15 PMjarm
02/21/2019, 3:22 PMVladimir Gordeev
02/21/2019, 3:25 PMjarm
02/21/2019, 3:50 PMVladimir Gordeev
02/21/2019, 3:52 PMVladimir Gordeev
02/21/2019, 3:52 PMDaniel Garcia
02/21/2019, 3:57 PMjarm
02/21/2019, 4:00 PMVladimir Gordeev
02/21/2019, 4:14 PMVladimir Gordeev
02/21/2019, 4:14 PMVladimir Gordeev
02/21/2019, 4:30 PMjarm
02/21/2019, 5:16 PMjarm
02/21/2019, 5:19 PMFaster to grasp what unknown program does.
Faster to locate what part of the system causes the problem.
Faster to iterate in development cycle: run, change.It seems from this that the example program is less relevant than the scenario that would allow you demonstrate these activities. E.g. “someone else’s program”, “a program with a problem”, “several versions of the same program”. So it could be just one example program, demonstrating these activities. If this was a demo, then your audience would start to forget about the specific example and think more about the properties of the language? Just a thought!
Vladimir Gordeev
02/21/2019, 5:28 PMScott Anderson
02/21/2019, 6:23 PMScott Anderson
02/21/2019, 6:23 PMVladimir Gordeev
02/21/2019, 6:25 PMEdward de Jong / Beads Project
02/22/2019, 7:32 AMEdward de Jong / Beads Project
02/22/2019, 7:33 AMVladimir Gordeev
02/22/2019, 8:45 AMVladimir Gordeev
02/22/2019, 8:45 AMDavid Piepgrass
02/26/2019, 5:46 AMEdward de Jong / Beads Project
03/03/2019, 8:58 PMEdward de Jong / Beads Project
03/03/2019, 9:07 PMStefan
03/04/2019, 8:41 AMwc
to count words in code?
I find lines of code practical and acceptable, if comments and empty lines are stripped (like cloc
does), and coding style with one statement per line can be assumed. But I’m super interested in other (simple) ways to measure code complexity, so counting words sounds intriguing.
And is the source for your progression of apps available online (GitHub maybe) to take a look?Edward de Jong / Beads Project
03/04/2019, 9:24 AMEdward de Jong / Beads Project
03/04/2019, 9:25 AMwtaysom
03/04/2019, 2:20 PMwc
works for me! As a rough measure. One problem is that line counts inevitably go up with refactoring. But what I'd really like is a measure of whether an abstraction is actually carrying its weight vs creating useless indirection.Stefan
03/04/2019, 2:28 PMcloc
is just a simple script you can easily install through homebrew.
I guess both LOC and word approaches are far from an exact science. I can see why counting words is more useful when you deal with smaller snippets of code. I don’t know Red, and I suppose that both language features and coding style are a consideration for the word-based approach too, as for instance for (int i = 0; i <= 100; i++) {
and for(int i=0;i<=100;i++){
are 10 vs. 2 words, if just using spaces as delimiter (what wc
does by default).
Both are a good examples for applying a lower-level concept that considers the data to just be text for a domain where the data actually has higher-level structure. What we get is a much simpler (and more commonly available) tool, which also turns out to be rather imprecise for the domain were applying it to. Still good enough for many use cases, especially if language and style can be assumed stable across comparisons.wtaysom
03/04/2019, 2:36 PMwc
only works when coding style is fixed. And it certainly has been predictive of our larger rewrites. Those that include a 2x+ reduction tend to be kept and those that end up with a 2x+ increase tend to get abandoned for the old system.Edward de Jong / Beads Project
03/05/2019, 10:18 AMEdward de Jong / Beads Project
03/05/2019, 10:21 AMEdward de Jong / Beads Project
03/05/2019, 10:27 AMEdward de Jong / Beads Project
03/05/2019, 10:31 AM