~/talk

Challenges of Cross-Language Library Translation

Talkat Heapcon 2024 · 2024-11-07..11-08· [java, php]
slides:none on file

Describes translating a C# client library for RavenDB into Java and PHP, rejects Swagger Codegen or AI when the client embeds cluster node‑balancing logic, tests a 3,000‑line "God" class by copy‑paste and uncomment and unblocks features with start with BDD happy‑path tests. Evaluates transpilers (Haxe/J2CL) as brittle and out of date, recommends separate infrastructure from business logic with adapters, domain date/time types, avoid method/constructor overloading; result: derived clients take about an hour or two per feature to implement.

AI-written summary · about

  1. 0:00Introduction and setup
  2. 1:12Why cross-language libraries matter
  3. 4:33Challenges of multi-language clients
  4. 6:01API client generation limits
  5. 8:10Code transpilation drawbacks
  6. 9:35Strategies for library translation
  7. 12:08Copy-paste translation method
  8. 14:19Starting with tests
  9. 16:15Separating business logic
  10. 17:41Handling date and time
  11. 18:44Avoiding primitive obsession
  12. 19:05Using adapters for external code
  13. 20:31Avoiding method overloading
  14. 22:17Conclusion and key strategies
  15. 23:26Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.