Skip to content

Latest commit

 

History

History
95 lines (61 loc) · 2.99 KB

DEVNOTES.rst

File metadata and controls

95 lines (61 loc) · 2.99 KB

Implementation notes

Analyze before conversion

https://github.com/emad-elsaid/rubrowser - awesome tool

Approaches for automated ruby to python translation

  1. https://github.com/cyndis/infl - outdated doesn't work because rubinius/rubinius#3840
  2. https://github.com/molhanec/rb2py - create unwanted base class layer
  3. https://github.com/valo/rubypython - outdated
  4. manual - choosen

Key differences

  1. cyclic dependency possible in python
  2. keyword different, append _
  3. not allow to have method and pproperty with the same name in the same class
  4. brackets on functions mandatory

How to do XML serialization?

How to deal with variables which turned into python's keyword?

reStructuredText vs Markdown

cookiecutter by default generated all documentation with rst. So I decided to try it

Test framework

https://www.pythonpool.com/python-unittest-vs-pytest/

No need for the coding comment anymore

https://stackoverflow.com/questions/14083111/should-i-use-encoding-declaration-in-python-3

Circular dependency between types

https://stackoverflow.com/questions/52676647/how-to-define-circularly-dependent-data-classes-in-python-3-7

Wheel package vs EGG package for publishing

https://packaging.python.org/discussions/wheel-vs-egg/

TypeError: non-default argument 'name' follows default argument

List vs list

iso639-lang vs iso-639

https://pypi.org/project/iso639-lang/ vs https://pypi.org/project/iso-639/

iso-639 - has less size

Open questions

[?] How to simplify imports? [?] Acsiidoc does order matters? [?] Some test framework which can generage random dataclass?