英文:
Using windowbuilder to learn swing. A bad idea?
问题
我开始尝试使用WindowBuilder,并且已经构建了一些基本的GUI程序。然而,我在想如果通过这种方式学习swing,而不是自己构建所有内容并且不使用任何插件,是否会对自己不利呢?虽然我很好地理解了构建整个GUI所涉及的内容,但对于这件事,你有什么看法?
英文:
I started to play arround with windowbuilder and I have already built a few basic GUI programs. However, I was wondering if I'm doing myself a disservice by learning swing this way instead of building everything myself, without using any plugins? I do have a good understanding of what goes into building the whole GUI, but still, what's your opinion on the matter?
答案1
得分: 2
我通常会给出相同的例子。在教某人如何使用计算器之前,你不能教他如何求和。我认为让你熟悉大多数Swing组件并尝试掌握它们的基础知识很重要,这样你就可以轻松编写它们的代码。
WindowBuilder对于复杂的设计和组件非常有帮助,但我认为在切换到WindowBuilder之前,你应该首先了解基本原理。很多人可能不同意我的观点,因为这个扩展使得开发变得更加容易,但是了解基础知识真的很重要,以防有一天你想在没有WindowBuilder或NetBeans的地方工作,或者甚至是想理解程序为你生成的代码。
因此,总结一下:你可以安装WindowBuilder并使用它来学习,但要记住,用这种方法可能无法获得一些非常有用的知识。此外,要仔细分析代码以理解它,并尽量不要过度使用这个工具。
英文:
I usually give the same example. You can't teach someone to use a calculator before teaching him how to sum. I think it's important for you to get familiarized with most of the swing components and try to grasp the basics about them so you can code them easily.
WindowBuilder is very helpful for complex designs and components, but I think you should first know the fundamentals before switching to WindowBuilder. Many people would disagree with me because that extension makes life a lot easier but it's really important to know the basics in case someday you want to work somewhere without WindowBuilder or NetBeans, or even if you want to understand the code that the program is making for you.
So, to sum up: You can install WindowBuilder and use it to learn but keep in mind you may not get some VERY useful knowledge with this method. Also, analyze the code thoroughly to understand it and try not to over-use the tool.
答案2
得分: 0
我建议起初用手写代码。毕竟,WindowBuilder和类似的工具旨在加快开发速度,如果你理解内部结构,可以使用它们。祝一切顺利!
英文:
I would recommend writing initially with your hands. After all, WindowBuilder and similar tools are designed to speed up development, use them if you understand what is inside. All the best!
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论