<https://twitter.com/sdeleuze/status/1542857535740...
# spring
s
👌 12
K 4
🙌 6
🎉 5
K 1
🙌🏼 1
🙏 5
k
This is progress, but it's still not quite fully there. The paragraph just above this snippet still says "The
MyApplication.java
file would declare the
main
method, along with the basic
@SpringBootApplication
, as follows:". This only makes sense when you're looking at the Java version of the code.
s
Yep further refinements are needed but we don't have yet a way to make that change between Java and Kotlin.
Maybe we need to use a language neutral phrasing, not sure.
1
Feel free to send a PR with "The
MyApplication
class" instead of "The
MyApplication.java
file" to https://github.com/spring-projects/spring-boot/pulls to see if the Spring Boot team is open to consider this.
k
But it would still be problematic. "The MyApplication class would declare the main method" is incorrect. The main method is a free-standing one, independent of the MyApplication class. I'm not sure how best to phrase it. Ideally, perhaps the whole language-switching mechanism ought to apply to the entire page or paragraphs within the page, instead of just code.
s
I don’t think that’s doable in a maintainable way.
f
Maybe it is an option to put those “language” specific phrases inside the code-block (commented). So it is closer to code and also switches between the language?
s
I will discuss the various options with Spring Boot team and let you know.
❤️ 1