5 ms·
do/i/still/need/to/create/sub/directories/for/the/things/i/want/namespace?
by taf2 3y ago
do/i/still/need/to/create/sub/directories/for/the/things/i/want/namespace?
- mdaniel 3y agoOnly if you're using vim like someone from the 70s, otherwise any sane IDE handles those things for you But, yes, namespaces are still mapped to paths, it's not like they rewrote the JVM to use blockchain or something
- ttyyzz 3y agoYeah I really like my IDE doing stuff in the background without me knowing shit about it.
- piva00 3y agoYeah, I do like my IDE doing the tedious work for me. It's also really nice to unzip any JAR I need to troubleshoot and know exactly where to navigate to find exactly the file with the code I need. I like Golang a lot but the standardisation and verbosity in Java-land has some benefits after you get used to it enough to learn to ignore the boilerplate, it's pretty good to have some kind of consistency enforced by the VM when working in large codebases.
- quickthrower2 3y agoYes some C# codebases end up with wildly inconsistent namespacing as you can do anything you like
- threeseed 3y agoI don't understand how it is doing stuff in the background. You literally ask it to move some class and then it does it. And it's very obvious what it's doing.
- Too 3y agoThen you’d be thrilled to hear about all the stuff your NVME drivers are doing in the background without you knowing shit about it. Or maybe you prefer to engrave your ones and zeroes in stone by hand? Abstractions exist for a reason. In Java, that abstraction is coding in classes and packages, not files of text.
- imbnwa 3y ago>Only if you're using vim like someone from the 70s, otherwise any sane IDE handles those things for you I don't think that's quite it when Ruby is also from the 90s and figured out not to tie namespace resolution to the directory tree
- segfaltnh 3y agoLet's not hold ruby up as a poster child for modularity.
- unlikelytomato 3y agoI am not sure why this is a problem. Looking at the organization of the resources directory of every project I've ever worked on, I am not sure I want more opportunity for physical and logical concepts to unnecessarily diverge.
- imbnwa 3y agoI mean, its the same idea as custom path config in TypeScript
- deleted 3y ago[deleted]
- chii 3y agobetter_than_having_just_a_single_file_that_have_lots_of_functions_without_namespacing
- kaba0 3y agoOr import ../../../../../asd
- paulddraper 3y agoYeah, just like Python, Ruby, JavaScript.
- imbnwa 3y agoRuby modules aren't tied to the file system
- paulddraper 3y agoTrue, but they are loaded by path.
- wscp-dev 3y agoYes/you/do/but/the/ide/does/it/for/you/so...
- javcasas 3y agoThe/ide/giveths/the/ide/takeths/all/this/could/be/easier/and/you/know/it.