Stream: dev

Topic: Dataverse City by CodeCharta


view this post on Zulip Oliver Bertuch (Mar 21 2025 at 08:40):

Today I learned about CodeCharta via this heise article.

view this post on Zulip Oliver Bertuch (Mar 21 2025 at 08:41):

Here's how our city looks like when looking at "cognitive complexity" as a height and color metric:
image.png

view this post on Zulip Oliver Bertuch (Mar 21 2025 at 08:47):

I analyzed the codebase with the SourceCodeParser and the GitLogParser:

ccsh sourcecodeparser --default-excludes -o dataverse.source.cc.json dataverse
ccsh gitlogparser "repo-scan" "--output-file=./dataverse.git.cc.json" "--silent=false" "--add-author=false" "--repo-path=./dataverse"
ccsh merge dataverse.git.cc.json.gz dataverse.source.cc.json.gz -o dataverse.cc.json

Afterwards imported the merged file dataverse.cc.json.gz to the Web Studio. Feel free to play around with it!

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 21 2025 at 11:14):

Oh dear, that DatasetPage :grimacing:

DatasetPage.png

view this post on Zulip Oliver Bertuch (Mar 21 2025 at 11:15):

Yeah, feels very much like a good place to start a refactoring!

view this post on Zulip Oliver Bertuch (Mar 21 2025 at 11:15):

Many from the Cyclomatic Complexity City Map sure are familiar as well!

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 21 2025 at 11:19):

Well, we'll delete DatasetPage.java once we switch to the new React front end. :relieved:

view this post on Zulip Oliver Bertuch (Mar 21 2025 at 11:20):

Maybe moving to a backend-only app would be a good point in time to also properly modularize the code?

view this post on Zulip Philip Durbin ๐Ÿš€ (Mar 21 2025 at 11:25):

sure!


Last updated: Nov 01 2025 at 14:11 UTC