3 ms·
One thing that can often help with this is to have a good REPL. With it you can dive into and explore the code as it is at runtime. For example, a common way
by Periodic 13y ago
One thing that can often help with this is to have a good REPL. With it you can dive into and explore the code as it is at runtime. For example, a common way that I figured out Rails was to open the console and use obj.methods to see what methods are available.
Other languages in which I've enjoyed REPLs include Python, JavaScript and Haskell. Two languages I have not found a good REPL for are Java and C++. Is anything of this sort available there?
- ww520 13y agoJava and C++ are static typed, and are typically very readable and have a less need for REPL, not that a REPL won't help.
- bendangelo 13y agoYes there is Cling for c++. Its really awesome. http://blog.coldflake.com/posts/2012-08-09-On-the-fly-C%2B%2B.html http://blog.coldflake.com/posts/2012-08-09-On-the-fly-C%2B%2...
- MBlume 13y agoIf you don't mind teaching yourself a bit of Clojure, you can use it as a REPL for Java with little difficulty.