justin = { main feed , music , code , askjf , pubkey };
Ask Justin Frankel
No reasonable question unanswered since 2009!

Suggested topics: programming, music, sleep, coffee, etc.

Note: please do not ask questions about REAPER features, bugs or scheduling, use the forums instead.

Name: Ask: Human (enter yes):
[back to index] | [unreplied] | [replied] | [recent comments] | [all]

Question: JavaScript or Python? Several plain functions or a class? Return whenever you can or, once at the end?
Asked by musicalcode (136.226.74.x) on April 6 2022, 4:34am
Reply on April 6 2022, 5:17pm:
    Personally I'd go javascript. Plain functions or a class -- depends on how much instance-specific data is involved? If a long function -- return whenever you can (and if using C++ or whatever, use object-scoping and destructors to handle cleanup), if a short function then whatever works

    Your Name:   -- Site Owner's Name:  (for human-verification)


[back to index] | [unreplied] | [replied] | [recent comments] | [all]
Copyright 2022 Justin Frankel. | RSS