CodeGym
AI Academy
Promotion
CodeGym University
Learning
Courses
Tasks
Surveys & Quizzes
Games
Help
Schedule
Community
Users
Forum
Chat
Articles
Success stories
Activity
Reviews
Subscriptions
Light theme

Lessons

  • Reviews
  • About us
Start
Start learning
Start learning now
  • My Progress
  • Courses
  • University
  • Quest Map
  • Lessons
  • Report architecture as a pipeline

    Kotlin SELF
    Level 26, Lesson 0
    We break down how to design reports as a sequence of steps “data → transformations → totals → text”: early key normalization ( trim(), lowercase()), filtering, grouping via groupBy()/ groupingBy() + eachCount(), aggregation with fold(), preparing the presentation (sorting, take(n)) and rendering to a string via StringBuilder. We also separately highlight why it is important to watch for type changes ( List → Map) and not mix computation with output.
    Available
  • Pipeline decomposition: step functions and intermediate val

    Kotlin SELF
    Level 26, Lesson 1
    We break down how to make long chains of collection operations in Kotlin readable: where to place “stopping points” using intermediate val, when to extract steps into separate functions with an “input → output” contract, how to control the “type ladder” ( List → Map → String), and which mistakes most often break reusability (side effects, bad names, “do-everything” combiners).
    Available
  • Pure computations in reports: minimal effects and no input mutation

    Kotlin SELF
    Level 26, Lesson 2
    We break down how to write reports as a set of pure functions: separate computation from presentation, move side effects (for example, println) to the boundary of the CLI, avoid mutating input collections ( List/ Map instead of MutableList/ MutableMap), use fold for neat accumulation, and allow only local mutation like StringBuilder inside rendering.
    Available
  • Typical pipeline mistakes

    Kotlin SELF
    Level 26, Lesson 3
    We analyze “silent” pipeline breakages in Kotlin: lost results from sorted()/ filter()/ map(), incorrect use of map for side effects (and an unexpected List of Unit), choosing between groupBy and groupingBy().eachCount(), extra passes over the data, and the laziness of Sequence without a terminal step like toList(). At the end, there’s a checklist of common mistakes that break reports and statistics.
    Available
  • Report set v0: total, byCategory, top, threshold in a unified style

    Kotlin SELF
    Level 26, Lesson 4
    We break down how, in Kotlin, to build “related” reports for a console expense tracker: we lock in the data format ( List<Pair<String, Int>>), make a shared category-normalization step via trim() and lowercase(), separate computation from output, and then implement the total, byCategory, threshold, and top reports based on fold, groupBy, sorting, and filtering.
    Available
Learn
  • Registration
  • Java Course
  • Help with Tasks
  • Pricing
  • Java Syntax
Community
  • Users
  • Articles
  • Forum
  • Chat
  • Success Stories
  • Activity
  • Affiliate Program
Company
  • About us
  • Contacts
  • Reviews
  • Press Room
  • CodeGym for EDU
  • FAQ
  • Support
CodeGym CodeGym is an online course for learning Java programming from scratch. This course is a perfect way to master Java for beginners. It contains 1200+ tasks with instant verification and an essential scope of Java fundamentals theory. To help you succeed in education, we’ve implemented a set of motivational features: quizzes, coding projects, content about efficient learning, and a Java developer’s career.
Follow us
Interface language
English
Deutsch Español हिन्दी Français Português Polski বাংলা 简体中文 मराठी தமிழ் Italiano Bahasa Indonesia 繁體中文 Nederlands 日本語 한국어 Bulgarian Danish Hungarian Basa Jawa Malay Norwegian Romanian Swedish Telugu Thai Українська Filipino Turkish Azərbaycan Русский Vietnamese
Programmers Are Made, Not Born © 2026 CodeGym
MastercardVisa
Programmers Are Made, Not Born © 2026 CodeGym