News for hackers. Stuff that matters.
Re:The 80/24 Rule by wruza on Friday November 15, 2019 @03:03AM (#21543133)
IDEs could make it readable and encourage to split code without splitting perception. A solution is: allow calls to be ▶expanded inline in the source view, as if it was written here* Renaming arguments to their caller-site counterparts would also help.

* Code folding is not the same thing, as it doesn’t eject scope+args out of the “caller” and cannot be used in expression.

Upd: I also would like to add that sources lack usual style formatting. //-sections usually should stand out, but one can only make comment bigger (2-3 lines with === filler), but not the text itself. It would be nice to have some rtf in code and css in IDE. Books are written like that, and that’s well-acknowledged way to structure instructions and descriptions.

Re:The 80/24 Rule by eitland on Friday November 15, 2019 @03:15AM (#21543176)
> allow calls to be ▶expanded inline in the source view,

If I understand what you mean, Visual Studio Code allows this. I guess Visual Studio does as well.

The implementation feels a little clumsy to me, but hey, I'm the guy who thinks Netbeans and Eclipse where the best IDEs I've used, so I guess a bunch of you guys will think the solution is perfect.

Re:The 80/24 Rule by wruza on Friday November 15, 2019 @03:23AM (#21543209)
That’s interesting, I thought no one does that yet. Can you please link to this feature? (Can’t figure out what keywords to search)
Re:The 80/24 Rule by Nition on Friday November 15, 2019 @04:14AM (#21543453)
Right-click the method call, "Peek Definition". Or Alt-F12.
Re:The 80/24 Rule by wruza on Friday November 15, 2019 @04:28AM (#21543520)
Thanks! It is close, but sadly that overlapping is not much different from just “going to”, as it hides the code behind it. Still may be better than nothing though.
Re:The 80/24 Rule by Nition on Friday November 15, 2019 @05:06AM (#21543685)
It doesn't hide the code behind it actually, it pushes it down. I agree it's not perfect though.
Re:The 80/24 Rule by z3t4 on Friday November 15, 2019 @04:38PM (#21549051)
What would a perfect solution look like, and what would it be worth?