Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I thought one of the points of headers system was you could use the code without having to slog through all the source.

Thinking about my trips to /usr/include, those headers weren't that useful for coding with but you could get constants and function names at least.



C# together with visual studio solves this in an amazing way. You can browse .NET DLL-files as if they were source files, with only public members being visible and without the function bodies. Good for finding function names and constants.

I can't believe nobody else is using the same system, using "go to definition" on a library function is just as natural as using it on one of your own functions. Only difference is in the second case you see the actual code of the function instead of just the function header.

(Replace .NET DLL-files with these new "modules" to make this applicable to C)

Ps. even if you do have the source, in most editors you can collapse the code to hide everything so you don't have to "slog through all the source".


Most (all?) Java IDEs do this as does XCode ( Obj-C) and probably many other things. This isn't the point here though...


But Eclipse does stupid stuff like disabling Ctrl-Ffull text search when viewing a .class file, even though text method names are plainly visible.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: