three.js icon indicating copy to clipboard operation
three.js copied to clipboard

Renaming THREE.Object3D to THREE.Object

Open mrdoob opened this issue 13 years ago • 11 comments

I've been considering lately to rename THREE.Object3D to THREE.Object. The reason I used Object3D back then was because the IDE I was using color coded Object and I had the feeling it was going to create problems.

Does anyone envision any problem with this? Maybe a better naming?

mrdoob avatar Nov 04 '13 14:11 mrdoob

Being merely a Three user, and FOSS developer, I spend time performing Google searches on various coding issues. By renaming to "Object" the ability for searches to be successful is greatly reduced, as "Object" is the most overused term in modern software development. Selecting "Node" would be similar. As is, it at least distinguishes itself as for 3D usage. I recommend any new name take into account its' search-ability.

bsenftner avatar Nov 04 '13 14:11 bsenftner

Three.Entity?^^ Because I think of "object" or "object3D" as some visual stuff in my scene but as object3D could be a kind of transform controller parent for some meshes, maybe if you want to rename it, use something more different? Well, at least just my sugesstion ;) But bsenftner has a valid point there, i think.

GuyGood avatar Nov 04 '13 20:11 GuyGood

@bsenftner adds a good point. In fact, renaming it to anything else already throws away the current search results for 'three object3d' (56,000 results)... I don't mind 'Object3D' :smile_cat:

joostfaassen avatar Nov 04 '13 20:11 joostfaassen

Being merely a Three user, and FOSS developer, I spend time performing Google searches on various coding issues. By renaming to "Object" the ability for searches to be successful is greatly reduced, as "Object" is the most overused term in modern software development.

You could still search for "THREE.Object"...?

@bsenftner adds a good point. In fact, renaming it to anything else already throws away the current search results for 'three object3d' (56,000 results)...

Not a fan of letting the past tie my hands ;)

mrdoob avatar Nov 05 '13 08:11 mrdoob

Just please let THREE.Object3D be a getter property warning users to migrate to the new name, for one revision at least. The migration docs are great, but a warning on the console tends to give the message more directly to developers.

danielribeiro avatar Nov 05 '13 08:11 danielribeiro

Just please let THREE.Object3D be a getter property warning users to migrate to the new name, for one revision at least.

For such cases I just do this:

THREE.Object3D = THREE.Object;

And leave that for a loooong time ;)

mrdoob avatar Nov 05 '13 10:11 mrdoob

@mrdoob cool :+1:

danielribeiro avatar Nov 05 '13 19:11 danielribeiro

I think THREE.Object would be ambiguous with a Javascript {}. I personally prefer Object3D as it explains very concisely what it is, and how it differs from a built in {}. If it were to change I think THREE.Entity would be better than THREE.Object but not as good as the existing Object3D.

gregtatum avatar Nov 06 '13 16:11 gregtatum

I'd prefer Object3D because it signifies it is a 3D object with 3D transformations. Some other tools I know call this type of entity Transform3D. Calling it just Object is too ambiguous IMHO.

arodic avatar Nov 06 '13 16:11 arodic

Hmmm... I guess it will stay THREE.Object3D then :)

mrdoob avatar Nov 07 '13 14:11 mrdoob

This discussion appears to be over. Feel free to reopen!

dubejf avatar Jul 06 '15 19:07 dubejf