Are there a good examples of using 'scala.swing'? [closed] - swing

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I don't know Java or Swing, but I'm quite familiar with Scala, and I have no problems using it for my purposes. But when I try to implement a GUI, I get a lot of problems/bugs that documentation can't easily solve. I guess scala.swing examples could help a lot!
Are there any small but not trivial and well written applications using scala.swing that I could learn from?

There are many good examples in sources. I recommend checking it out.
Also, Ingo posted a nice intro to the scala.swing design.
I found that reading the sources wasn't so hard and helped a lot.

Here's a short presentation by Ken Scambler (slides here) in which he explains the basic idea of scala.swing and does some nice tricks using mixin composition to paint components.

The official scala.swing description has a number of good examples. Also, there are examples in the Programming in Scala book by Martin Odersky and others.

The last chapter (Ch. 33) in Odersky's Programming in Scala goes through the process of making a simple, but certainly non-trivial GUI spreadsheet program using Scala. It's a pretty rich GUI application and the source (as well as explanation) is all there. The chapter before it details GUI programming using scala.swing and is full of examples, but it doesn't have very many complete ones.
Scala isn't used too heavily in creating desktop applications, but it certainly can be done. If you want a GUI with a Scala application, Swing definitely does the trick (it's used in its Java form in a number of popular desktop applications, like Eclipse, and scala.swing is just a wrapper for javax.swing).

scala.swing comes with examples, likely matching "small but not trivial". This is a link to the GitHub home of Scala Swing, /test folder.
It's not enough, but it is the best start.
The Stack Overflow question Tutorial on Swing in Scala? has a reply pointing to a German tutorial, with examples (no need to speak German, keep pushing the buttons).
This tetrix example is not trivial but GUI-simple.
package root is not answering the question directly, but in these circumstances the API is a good start.

Related

What Flash Framework For Soccer game? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I'm a new Flash games developer, i just created my first game in Flash using FlashPunk, it was great, now i'm supposed to create a single player vs cpu soccer game, exactly like this one : Kung Foot.
As i said, i find FlashPunk a good Framework, but i'm opting for better performance and heavy graphics, i'm actually think about either Citrus or Flixil.
They both use Box2D for collisions, but i've heard that Citrus would be the right choice if it was a platform game.
I don't know if there are any other well documented Frameworks out there, what do you think !
I think starling is best decision in your case.
Citrus isn't really an engine as much as it is a collection of other tools to make development easier. It takes a rendering engine (like starling or away3D) and a phyics engine (like nape or box2d) and bundles them together for you, providing some functionality to make the process of using them easier. (Like the ability to add a virtual joystick to the screen in one line of code. However, you could do all of these things on your own and be just as successful.
If you plan on using Citrus, be very careful. It's great for getting stuff up and running quickly, but the documentation can be very iffy sometimes. For example SimpleCitrusSolver is used in a lot of their tutorial documentation, but it is broken in newer versions. I recommend reading about the logic behind every library function you use from citrus, instead of letting it be a magic library that does nape and starling for you.
As far as what framework is the best, it's really a personal choice. They all will let you accomplish the things you want to do, just go with what feels the most comfortable.

Writing documentation - open source solutions for displaying docs online? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I've been working on a framework in AS3 that I want to release, but first I obviously need to prepare some documentation for it.
I've noticed that quite a few sites have the exact same layout, functionality etc as Adobe Livedocs, which has let me to believe that there's something open source out there for creating online documentation.
Here's some examples:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/
http://papervision3d.googlecode.com/svn/trunk/as3/trunk/docs/index.html
http://www.fisixengine.com/api/
Would anyone be able to point me in the right direction for tools that I can use to prepare online documentation?
Ideally the system would be specifically suited for documentation in ActionScript 3. I don't have a requirement in terms of the documentation being automatically generated either - if there's something out there that looks/works nice I'm happy to manually create the documentation (provided it comes with tools for easily adding classes, arguments, etc).
Adobe has a free tool called ASDoc. It generates documentation which follows the official Adobe patter. Frankly, it isn't worth it though. The ASDoc tool is buggy and unreliable. If it has difficulty finding an import, if an import isn't used, a comment is not correctly formatted, or you have your source code spread out in any sort of unexpected way, it simply breaks.
My company has lost over 50 developer hours (a few people tried to get a couple of different projects to work and failed) in an attempt to get around these limitations and our solution? We used NaturalDocs (A JavaDoc compiler). Is it perfect? No. Is it comparable to ASDoc in output? Sort of, it isn't as neat, and it would be nice if it treated things a little differently, but it works to display the documentation.

Code auto completion in an IDE [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I use Microsoft’s Visual Studio, and find the IntelliSense code auto completion feature very useful.
Are there any alternative open source IDEs that offer a similarly useful feature? How do they compare?
I would think that an IDE that did not offer some completion capabilities would have low market acceptance.
In the Java world, Eclipse has code completion.
Eclipse does quite a good job for Java development. Actually, it does a very good job.
PHP and Python plug-ins are available too. Probably other languages as well - you didn't mention any language in particular.
Edit: According to people more experienced than myself, Eclipse can be extended to provide "VERY VERY" good support for C and C++, too.
There are many other IDEs that are open source, and most (if not all) of them feature some kind of auto completion.
Here's a link to Wikipedia's "Comparison of IDEs", which might help.
You can also probably just search Stack Overflow for "Best IDE for x development" (x being the language you work with), and you'll find many options, all of them likely to have auto-completion.
One little "plug" for my favorite: Eclipse has much more than just auto-completion. If you're developing Java, it really opens your eyes to what kinds of things an IDE can do to help you out (compiling as you write and underlining errors, giving you a one-click way to make the IDE try and fix the problem for you, which it often does, etc...).
I think you are refering to .NET IDEs as you mentioned Visual Studio.
SharpDevelop is an .NET development software that indeed offer code completion. By the way, they use a full feature open-source text editor for that called ICSharpCode.TextEditor. I extended this text editor last year to support code-completion for database queries and it was very easy.
Scintilla is what you are looking for. It is a drop in replacement for an edit control. It has auto-complete capabilities as well as a host of other goodies. It is designed for C++ though, so it may not be an option, as you didn't specify a language.

Source code of big/popular websites [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
It's great to find all those little snippets of code on the Web for your current needs, but is there anything better than getting whole application source code at once and reading it like a book?
There's no better way to learn positive and negative aspects of various architecture solutions.
That's why I was trying to find some known/big websites with its source code published, but haven't found anything more than I knew already ( http://code.reddit.com/browser )
Do you know anything more?
PS. Just being curious - have you heard about any unofficial big web site source code leak?
Wikipedia's source code (MediaWiki) can be found at http://www.mediawiki.org/
The most relevant parts are
"phase3" (the core code; this strange name is because it was rewritten a couple of times)
extensions (Wikipedia uses several of them; which ones can be seen at Special:Version)
Additionally, here is a very detailed explanation of Wikipedia's whole architecture: Wikipedia: Site internals, configuration, code examples and management issues.
You can check out SlashCode, which is the code behind Slashdot and any other sites that use that as a CMS / blogging solution. http://www.slashcode.com
Browsing through the SourceForge repositories is just what you want.
There are tons of well-known, high-quality applications, like Hibernate to give one massive example.
And all the source code is right there :)
http://www.koders.com/
HTH
Check out Rob Conery's screencast series, MVC Storefront, where he builds a small commerce website using ASP.NET MVC.

Well developed web site architecture using linq to sql? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Anybody found yet a good web site architecture using linq to sql? Any help will be very helpful!
We just finished up an internal IT project banking heavily on Linq2Sql and it paid off. I was a bit skeptical at first, but I think it worked out great in the end. Just remember, the fundamentals don't change.
try to stay as stateless as possible
keep clean lines between your services and data access
don't fight linq, use it. If it isn't helping you, you are probably doing something wrong
Our implementation ended up being a hybrid of the Andrew Siemer and Beth Massi approach (a bit heavier on the Andrew side) and in C#
What, apart from StackOverflow? ;-)
Remember Linq is a technology that sits atop the typical data access structures. Therefore all rules that have applied thus far still hold. Just because you can get to data a little easier in the client app doesnt mean you throw out the architecture best practices for data access.
Rob Conery's MVC Storefront
As others have said, linq-to-sql is no different to any other ORM so the architecture is the same as you would use for NHibernate and others.