4 ms·
The problem with learning a new programming language lies not in learning a few language constructs; it lies in getting to know the libraries and the whole ecos
by amelius 10y ago
The problem with learning a new programming language lies not in learning a few language constructs; it lies in getting to know the libraries and the whole ecosystem around the language.
- RyanHamilton 10y agoIt is amusing though when you inherit code written in language A by someone that is actually fluent in language B. Sometimes it's not at all idiomatic and is in fact a recreation from the other language. I enjoy trying to guess what language (or planet) the person is writing code from.
- nnq 10y agoNow I feel tempted to add a comment like "written by an inhabitant of planet Brainfuck, fluent in symbolic poetry, who later became a Javascript developer" to some code I've recently reviewed...
- mgkimsal 10y agoinherited a grails codebase from a team who mostly hated groovy/java, and tried to recreate rails/ruby in almost all the code. all external supporting libraries and tools were ruby, and it had more than a few "groovy sucks because it's not ruby" comments scattered around. Apparently just the top CTO guy there liked grails, started the project, brought on people, but they all hated it. and built a massive monstrosity that was neither idiomatic ruby, groovy or java. :/
- vorg 10y ago> a team who mostly hated groovy/java Sounds like they hated Java rather than specifically Apache Groovy, which is really a scripting language for systems already built with Java code.
- mgkimsal 10y agoprobably a bit of both, but the bulk of the code (grails code) was almost all groovy, and there was enough complaints about how 'slow' groovy was that there was some groovy-specific hate going on as well. Granted, especially then, groovy wasn't the fastest around, but for most of what was being done, it wasn't a bottleneck (and... ruby at that point wouldn't have been any faster - there was some prototypal stuff in ruby to try to make some processing faster, and it wasn't).
- tyingq 10y agoTotally agree. And python->java might be a pretty big challenge in that space, especially if you aren't using an IDE that can autocomplete the crazy long/verbose (this.that.wow.foo.bar.argh) java libraries.
- reitanqild 10y agoFortunately all the three big are available as open source. The free IntelliJ edition is somewhat limited but perfectly usable for core Java. I personally prefer Netbeans but then again I choose Linux or even Windows over Mac so there goes my credibility ;-/
- tyingq 10y agoSure. It came to mind for me because I'm one of those that started with vi/vim, and using an IDE regularly would be a big change for me. Vi works fine for python, but I imagine it would be a pretty big barrier for java.
- reitanqild 10y agoI have heard of people who use it and I know you can/could use vim modes or even embedded vim in at least two of the three big ones but I never used it. You might know all this but for the benefit of thise who don't: I guess you think in another way in an IDE: often you don't replace text (unless you are specifically updating comments or strings) - you rename variables. Example: the IDE knows about scoping rules etc so even if someone adds a local variable that shadows a field (BAD) the IDE will understand and only rename one of them when I do a rename. For me I find the IDE is more than worth it. Keybindings are a bit different but can be adjusted so I rarely need to use mouse or touchpad. And with Netbeans at least, but I suspect all big three, regex search replace is there if I need it.
- collyw 10y agoI also think that writing idiomatic code is important. I have seen a few Python apps written in a Java style. It negates many of the benefits of using Python.
- humanrebar 10y ago> The problem with learning a new programming language lies not in learning a few language constructs I think that's true, but more for GC-based languages than ones that are used for systems programming. Rust, C++, and to a lesser extent C all require a lot of learning to know what not to do at the language level.