{"id":21530212,"url":"https://github.com/harikrishnan83/railwayorientedprogramming","last_synced_at":"2025-04-28T15:13:33.376Z","repository":{"id":37954143,"uuid":"243014304","full_name":"harikrishnan83/RailwayOrientedProgramming","owner":"harikrishnan83","description":"Kotlin Railway Oriented Programming","archived":false,"fork":false,"pushed_at":"2025-04-22T05:23:55.000Z","size":158,"stargazers_count":2,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-28T15:07:44.145Z","etag":null,"topics":["arrow-kt","either-monad","kotlin","railway-oriented-programming"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harikrishnan83.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-02-25T14:04:18.000Z","updated_at":"2025-04-22T05:23:05.000Z","dependencies_parsed_at":"2025-01-04T08:59:45.602Z","dependency_job_id":"9c2ba7b2-8239-41fb-a473-c694702a69ff","html_url":"https://github.com/harikrishnan83/RailwayOrientedProgramming","commit_stats":{"total_commits":47,"total_committers":2,"mean_commits":23.5,"dds":0.4893617021276596,"last_synced_commit":"8ec8addb9c3601bd62b2ae16951af09df29589ae"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harikrishnan83%2FRailwayOrientedProgramming","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harikrishnan83%2FRailwayOrientedProgramming/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harikrishnan83%2FRailwayOrientedProgramming/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harikrishnan83%2FRailwayOrientedProgramming/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harikrishnan83","download_url":"https://codeload.github.com/harikrishnan83/RailwayOrientedProgramming/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251336387,"owners_count":21573188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arrow-kt","either-monad","kotlin","railway-oriented-programming"],"created_at":"2024-11-24T02:00:37.439Z","updated_at":"2025-04-28T15:13:33.363Z","avatar_url":"https://github.com/harikrishnan83.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kotlin Railway Oriented Programming\n\n[![CI](https://github.com/harikrishnan83/RailwayOrientedProgramming/actions/workflows/ci.yml/badge.svg)](https://github.com/harikrishnan83/RailwayOrientedProgramming/actions/workflows/ci.yml)\n\n## Code related to below blogs\n\nhttps://medium.com/@harikrishnan/railway-oriented-programming-dd74dbf0dfae\n\nhttps://medium.com/@h/refactoring-if-else-either-and-flatmap-4f1ca9076664\n\n## Conference Talk\n\nProposal - [The Functional Fix: Kotlin Error Handling Made Elegant](https://confengine.com/conferences/functional-conf-2025/proposal/21329/the-functional-fix-kotlin-error-handling-made-elegant)\n\nSlides - https://speakerdeck.com/harikrishnan83/the-functional-fix-kotlin-error-handling-made-elegant\n\nVideo\n\n\n[![The Functional Fix: Kotlin Error Handling Made Elegant](https://img.youtube.com/vi/byIcRxtk6gA/maxresdefault.jpg)](https://www.youtube.com/watch?v=byIcRxtk6gA)  \n\n## Initial code\n\nWe start with this procedural code that is mainly using if-else to handle errors.\n\n[Step 0: Procedural Code](src/main/kotlin/com/ropsample/arrow)\n\n## Refactoring steps\n\n### Solving the problem with Kotlin\n\n[Step 1: Method Extraction](src/main/kotlin/com/ropsample/methodExtraction)\n\n[Step 2: Lining up the functions](src/main/kotlin/com/ropsample/liningupthefunctions)\n\n[Step 3: Railway Oriented Programming](src/main/kotlin/com/ropsample/railwayorientedprogramming)\n\n### Using Arrow\n\n[Step 4: Using Either And FlatMap](src/main/kotlin/com/ropsample/arrow)\n\n[Step 5: Extracting error handling](src/main/kotlin/com/ropsample/arrowandinfix)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharikrishnan83%2Frailwayorientedprogramming","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharikrishnan83%2Frailwayorientedprogramming","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharikrishnan83%2Frailwayorientedprogramming/lists"}