News for hackers. Stuff that matters.
Re:Open-sourcing MonkeyType – Let your Python code type-hint... by toast0 on Thursday December 21, 2017 @08:56PM (#15984690)
Most of the c++ and c# code I see lately has so many things declared as auto, it's hard for me to figure things out too.
Re:Open-sourcing MonkeyType – Let your Python code type-hint... by tigershark on Friday December 22, 2017 @12:21AM (#15985434)
Are you using notepad to write c#? If you hover on the var you will see the tooltip with the type.
Re:Open-sourcing MonkeyType – Let your Python code type-hint... by toast0 on Friday December 22, 2017 @02:18AM (#15985800)
When I was writing c#, I did use visual studio, but since I'm used to developing in a terminal editor, all these tooltips and things are a little tricky -- sometimes they disappear, and then I can't get them back, etc.

But more often, when I'm looking at c# or c++, it's not code I wrote, it's not code I intend to change, it's code that's interacting with my code (written in another language) that I'm trying to see why it's misbehaving, so I can get the owner to fix it. I could be reading the code on GitHub or some other web view, I might have checked it out, but I have no interest in setting up a (probably new) IDE to look at it as the author would; I dig into too many projects to learn that many tools -- and deal with the upgrade cycle for them.

Sure, it would be useful to hover and get more information, but I'm used to loosely typed languages, so it's not awful. It's just jarring to see that the type information is apparently not important enough to write down the name in c++ or c# anymore.

Re:Open-sourcing MonkeyType – Let your Python code type-hint... by klipt on Thursday December 21, 2017 @10:06PM (#15984958)
Would be nice if IDEs had a key combo to fill in the actual type for "auto"s!
Re:Open-sourcing MonkeyType – Let your Python code type-hint... by maxxxxx on Friday December 22, 2017 @01:05AM (#15985571)
That would be nice!