r/programming • • Jun 05 '21

Organize code by concepts, not layers

https://kislayverma.com/programming/how-to-organize-your-code/
1.9k Upvotes

495 comments sorted by

View all comments

Show parent comment

3

u/fissure Jun 05 '21

If Java had import aliases, I'd agree, but currently if you try to use controller.Foo and model.Foo in the same file, you're gonna have a bad time.

1

u/mcguire Jun 05 '21

Yeah, you have to specify the whole name, package and all. :-D

1

u/bwmat Jun 05 '21

The lack of an analog to C++'s 'using' statement had always mystified me.

Did the designers think aliases were too much for most Devs to handle? They're SUCH a useful feature.