CNMAT / CNMAT-odot

Multi-paradigm Dynamic Programming
Other
115 stars 11 forks source link

o.expr.codebox styling #409

Open ramagottfried opened 3 years ago

ramagottfried commented 3 years ago

nice work on the tutorials! really great!

one thing that I think that could be improved is the readability of the o.expr.codebox formatting. personally I find it difficult to quickly read the horizontal style of codebox that is used a lot in the tutorial examples.

for example, with nested statements, I think new users might find it easier to read something with indents and matching parenthesis indentation, so that looks a little more like C / Js / Python etc.:


----------begin_max5_patcher----------
445.3ocyREsZBCCE841uhPfAVnVa6zhNly21y68oHwZbKt1zRZpTQ7eeI2z3
TmhvFCVengy4dOs2btmctN3EEMzJL5AzqHGmctNN.klvoE6fyIMoYjJnMbQ.
soTDjVrjpaz2zhj1Hgx8VUySQSlLFMESVtbJ1eJu2FRFPEpA4LN.5FG5izXR
Cfigpf7wH1pNHP1SHcC5FQG8LEWUuP8sOi9fpGQ5ey4kMJMS0EJcP8cn3KU+
FxOZt9dQuSoNB5YMnwHRYY11NfE3CSh5svyZwYLNMsnlC9bzfV1RAshxkDIq
fO+JsPjouy3uMWPSklU8vnQAJ2ezvX8Qb+6ginnfPzrVUqJ3xUjTpVPXKGuV
4pYTIjDh9hrnVZYiaYYKMokEq61ej8JX5StsjZFC7y0YYuPR+fJUV5wHzLsh
8tt5W9+2hlmlLsYQagCgOaVwVvjqNjfL5779YIfjaF.Rt99ONpudiGEFlnOG
jDBwgA+I6+n9+x8OLSXk2rgJpTWSHBnC.p0+5BgFNzGfLtABSAVP2vr8CWAL
QnbBoxFpEvHfaRLCGNWEZD7ZFbyb0gN0uDhVbRNspr0IfDn6d2OAtEASNA
-----------end_max5_patcher-----------
maccallum commented 3 years ago

Nice, thanks! @equilet, I let's take another pass through and look for uses of o.expr.codebox where indentation would help readability. I don't think we need to go crazy, but I think @ramagottfried is right that we should take another look.