{"id":20,"date":"2006-08-23T11:45:33","date_gmt":"2006-08-23T10:45:33","guid":{"rendered":"http:\/\/www.bluej.org\/mrt\/?p=14"},"modified":"2020-05-15T15:46:30","modified_gmt":"2020-05-15T15:46:30","slug":"bluej-features-where-do-we-draw-the-line","status":"publish","type":"post","link":"https:\/\/blogs.kcl.ac.uk\/proged\/2006\/08\/23\/bluej-features-where-do-we-draw-the-line\/","title":{"rendered":"BlueJ features \u2013 where do we draw the line?"},"content":{"rendered":"<p>In a comment to an earlier entry on this page \u2013 \u201cWhat\u2019s happening with BlueJ?\u201d \u2013 Peter Loborg mentioned a couple of features he misses in BlueJ: the ability to display the full UML details of a class in the diagram, and better support for packages.<\/p>\n<p>This touches on a general point: what features should BlueJ support?<\/p>\n<p>Most people agree that one of BlueJ&#8217;s main strengths is its small size (as seen by the user) and simple interface. At the same time, most people want us to include their favourite feature&#8230;<\/p>\n<p>A few thoughts about feature inclusion in general and the UML feature in particular.<\/p>\n<p><!--more--><br \/>\nRegarding the expansion of class attributes in the diagram: I must admit that this is a fairly regular request. I think it was probably requested for the first time before we even released BlueJ&#8230;<\/p>\n<p>I have always resisted this so far. I agree that it would be useful in some situations, but it&#8217;s a question of focus. Both areas mentioned in Peter&#8217;s suggestions (extended diagram and packages) become relevant a little later in a progamming course, not right at the beginning.<\/p>\n<p>When we designed BlueJ, we made a concious trade-off: we aim to support only the first year of programming, and discard everything that we do not want to cover in this first year.<\/p>\n<p>In return, we can make the environment simpler, and make the tools that we do include better.<\/p>\n<p>It is very, very tempting over time to water down this principle. There is, of course, a grey area where not everyone argees what should be included in the first year course. If we&#8217;re not very careful, we might include something from this grey area, and then something else, and then something else. And before you can say &#8220;feature creep&#8221; you&#8217;re back at the large pile of tools you find in other IDEs.<\/p>\n<p>Of course, many of the suggested extensions are very interesting, and good ideas are behind them. It is in combination, when we look at all of them, that the advantage turns into a problem.<\/p>\n<p>As a solution to this dilemma we have created the BlueJ extension API. (Work on that started in about 2000, and it was released, I think in 2001 or 2002.)<\/p>\n<p>Using this API, individual users can, in principle, extend BlueJ to suit their needs without us having to bloat the core.<\/p>\n<p>The core of BlueJ (the standard installation) is still aimed at the intersection (not the union) of the concepts that people want to cover in a first year course.<\/p>\n<p>(Okay, that&#8217;s not quite true, but good enough as a guiding principle. The reason that it is not entirely true are things such as unit testing support. Unit testing was not done by a majority of courses at the time we added it, but we thought it is such an outstanding idea that we wanted to support it.)<\/p>\n<p>Now back to your request for a more complete representation of the class in the diagram.<\/p>\n<p>The good news is that there is indeed an extension that does this: the &#8220;<strong>UML Extension<\/strong>&#8221; by Ian Utting. You can get it on the BlueJ site in the <a href=\"http:\/\/www.bluej.org\/extensions\/extensions.html\">Extensions section<\/a>.<\/p>\n<p>This extension adds an item to each class&#8217;s menu (<em>Display UML<\/em>) that allows you to temporarily display the full UML notation of that class (including public\/protected fields and methods). Just drop that extension into your lib\/extensions folder, and off you go.<\/p>\n<p>Regarding the second part of your request \u2013 better support for packages \u2013 this falls under the same argument. While I often wanted to have this for myself as well, I think this is just it: I want it for myself, not for my students.<\/p>\n<p>Maybe when your projects get serious enough (or large enough) that you feel that you want a sophisticated package structure, it&#8217;s time to change your IDE. (The NetBeans\/BlueJ edition, by the way, can open your BlueJ projects, and it can automatically convert the project structure into NetBeans&#8217; preferred structure, with separate folders for source and class files, and packages. Of course, that&#8217;s not BlueJ then&#8230;)<\/p>\n<p>Overall, the truth just is: we were tempted many times to add cool stuff to BlueJ. Sometimes they are user suggestions, sometimes they are things one of the programmers on our team wants to do. Often, we get these ideas because we&#8217;d like to use them ourselves. And it&#8217;s great fun to implement a really cool feature.<\/p>\n<p>But at the end, BlueJ is designed for beginning students, and not for more experienced programmers, like many of you and me. And I have said no to many good ideas, often with a sense of regret. But I believe that is necessary to save the character of BlueJ as a whole.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a comment to an earlier entry on this page \u2013 \u201cWhat\u2019s happening with BlueJ?\u201d \u2013 Peter Loborg mentioned a couple of features he misses in BlueJ: the ability to display the full UML details of a class in the &hellip; <a href=\"https:\/\/blogs.kcl.ac.uk\/proged\/2006\/08\/23\/bluej-features-where-do-we-draw-the-line\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":179,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,11],"tags":[25,42],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-bluej-software-tools","category-software-tools","tag-bluej-software-tools","tag-design"],"_links":{"self":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/users\/179"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":1,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":1069,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/posts\/20\/revisions\/1069"}],"wp:attachment":[{"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.kcl.ac.uk\/proged\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}