Email or username:

Password:

Forgot your password?
Top-level
Eugen Rochko

@charlag Come on, even PHP has autoloading. Ruby does have explicit imports (require, require_relative) but why would you want to waste time on that if a consistent naming/path scheme takes care of it.

No comments
charlag

@Gargron it only goes as far. PHP has autoloading because it's like many scripting languages file based. Including files is shit. Imports != including files. imports work on logical structure. I can always tell where thing comes from in Rust, even if is created with macro.

Let's look at some examples. lib/activitypub/activity/create.rb has Status.create!. I have no way to know where it comes from. Is it a model? is it something else?
or home_controller.rb. Where HomeFeed comes from?

Go Up