News for hackers. Stuff that matters.
Re:“Did you mean?” Experience in Ruby by ajuc on Thursday October 23, 2014 @03:33AM (#8497061)
When I code in Python I always have ipython console handy to try snippets of code and to autocomplete methods and fields.
Re:“Did you mean?” Experience in Ruby by aidos on Thursday October 23, 2014 @05:35AM (#8497338)
I also work that way. I use the autoreload feature of ipython so that any code I change in my editor is instantly replicated in my ipython objects. I've really never been more productive in development in my life.

Contrast with some Java I was doing recently (granted, without a Java IDE) and I found the whole cycle painfully slow. Even things the compiler picked up were a magnitude slower to find than when I was in ipython. And then there were plenty of things the compiler wouldn't get, which could take a good minute for me to discover from the time I made the edit. It's insane to me that people don't work in a REPL.

Re:“Did you mean?” Experience in Ruby by bhaak on Thursday October 23, 2014 @06:03AM (#8497398)
"without a Java IDE"

This was your problem. Programming Java without an IDE that recompiles your changes on the fly is just so arcane and really slows you down as you noticed.

Re:“Did you mean?” Experience in Ruby by aidos on Thursday October 23, 2014 @01:34PM (#8499494)
Which is great, but that's almost not the main issue. In the ipython REPL I can work with my code and data at the same time. It's a huge disadvantage to not be be able to probe your data to create a working process.
Re:“Did you mean?” Experience in Ruby by bhaak on Thursday October 23, 2014 @04:49PM (#8500665)
The Java VM has hot code swapping builtin (IIRC limited to method bodies but the commercial JRebel drops that limitation).

Start your program in your IDE's debugger (or point it to your application server where your program is running) and you can change the code immediately, rerun your methods, change variables, inspect the objects, etc.

It's more than a simple REPL, it's a full-blown debugger and it comes really close to what you have in a SmallTalk image where your code, data, and environment is all the same.

Re:“Did you mean?” Experience in Ruby by spacemanmatt on Thursday October 23, 2014 @10:49AM (#8498379)
So true. Java was designed for tooling. Using it without tooling is actual using it against its design.
Re:“Did you mean?” Experience in Ruby by ajuc on Thursday October 23, 2014 @06:25AM (#8497460)
Also for J2EE you need jrebel.
Re:“Did you mean?” Experience in Ruby by sillysaurus3 on Thursday October 23, 2014 @05:48AM (#8497375)
Would you mind making a little screencast demo of your workflow? (Or do you know of any?) That sounds so cool.
Re:“Did you mean?” Experience in Ruby by aidos on Thursday October 23, 2014 @05:59AM (#8497390)
Sure. I'm not near my machine for a couple of days but I'll post something when I get the chance. I see your contact info is in your profile so will ping an email when done.
Re:“Did you mean?” Experience in Ruby by aidos on Wednesday October 29, 2014 @09:18PM (#8530871)
UPDATE: video here https://www.youtube.com/watch?v=k-mAuNY9szI

Sound quality isn't great but hopefully it demonstrates what I'm talking about.

Re:“Did you mean?” Experience in Ruby by nslamberth on Thursday October 23, 2014 @11:49AM (#8498794)
Me as well, if you're offering.

I find iPython interesting but haven't figured out how to integrate it into my current workflow of Sublime/Terminal.

Re:“Did you mean?” Experience in Ruby by sillysaurus3 on Thursday October 23, 2014 @01:25PM (#8499441)
Thank you very much! I look forward to it!
Re:“Did you mean?” Experience in Ruby by jeffwidman on Thursday October 23, 2014 @12:20PM (#8499002)
I'd be curious to see this as well
Re:“Did you mean?” Experience in Ruby by agarden on Thursday October 23, 2014 @11:41AM (#8498742)
Ping me too, please. Thanks.
Re:“Did you mean?” Experience in Ruby by taude on Thursday October 23, 2014 @09:42AM (#8498037)
I do something similar with JavaScript and code functions in a REPL and then move the code into my actual file as soon as I get it working. Usually I do this with Google Dev tools console.
Re:“Did you mean?” Experience in Ruby by aangjie on Thursday October 23, 2014 @03:59AM (#8497129)
Second that. That's why ipython is extremely handy. Also function/block wise history.