Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's not surprising that a Markov chain could put together plausible sounding class names, because yeah, there are definitely patterns that class names fall into.

What's surprising is that one third of the names it's showing me are actually real. I mean, "MetaMetaContextHierarchyConfig" actually exists?



> I mean, "MetaMetaContextHierarchyConfig" actually exists?

Apparently.

https://github.com/spring-projects/spring-framework/blob/mas...

"Custom context hierarchy configuration annotation that is itself meta-annotated with MetaContextHierarchyConfig"


It's worth pointing out that this is test code.


I got "ConfigClassesAndProfileResolverWithCustomDefaultsMetaConfig.ResolverConfig" as real (which I failed to pick... I mean, really?) and had to doublecheck it really is.

Sadly, it's true. What the hell, Spring Framework?


Don't forget you can't test the ConfigClassesAndProfileResolverWithCustomDefaultsMetaConfig without a set of ConfigClassesAndProfileResolverWithCustomDefaultsMetaConfigTests.

And of course, what about testing the custom overrides of that config?

Well just use the ConfigClassesAndProfileResolverWithCustomDefaultsMetaConfigWithOverridesTests!

Seriously.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: