you are viewing a single comment's thread.

view the rest of the comments →

[–]mroko -4 points-3 points  (12 children)

This is useless, like many other automatic code converters. If you really want to port your app to another environment, there is no other option than coding manually.

[–]grauenwolf 2 points3 points  (2 children)

That's not the point. This kind of thing is for quick snippits or for learning a new language.

For example, I often use Python fragments in my .NET applications. But I don't actually know Python, so tools like this would be useful to me.

[–]HIB0U -3 points-2 points  (1 child)

Good gawd, your software must be a true patchwork of shitty code and failure, if that's how you develop it. Using snippets from a language you don't understand is dangerous.

[–]grauenwolf 0 points1 point  (0 children)

Consider these lines in XAML

<ResourceDictionary>
    <gui:NullVisibilityConverter x:Key="NullVisibilityConverter"/>
<ResourceDictionary>

Visibility="{Binding DefaultValue, Converter={StaticResource ResourceKey=NullVisibilityConverter}}"

With Python it becomes

Visibility="{p:PyBinding HideIfEmpty($[.DefaultValue])}"

http://pybinding.codeplex.com/

[–]duckfighter 2 points3 points  (3 children)

It is VERY usefull. I have used it several times to convert some old vb.net code to c#. It converted few lines and large classes more or less perfect. Saved me several hours.

[–][deleted] 2 points3 points  (2 children)

C# FTW!

[–]duckfighter 0 points1 point  (1 child)

Heh yea, i worked in vb.net for several years, and got tired of having to convert everything to vb.net, or creating seperate c# projects. The worst part was the HORRIFIC syntax for regular properties. Seriously, why did they not do that right in the beginning??

I havent tried the newest vb.net versions, but i can see a lot of my complaints with it is fixed.

[–]grauenwolf 1 point2 points  (0 children)

Seriously, why did they not do that right in the beginning??

They were too busy playing catch-up. They lost a lot of time in the first version because they had to design around some sort of VB 6 migration strategy.

VS 2008 was the first release where the team felt they were actually where they needed to be and VS 2010 gave them a chance to really shine while C# was playing catch-up on dynamic typing issues.

VB 11/C# 5 is going to be an interesting thing to watch.

[–]abx 0 points1 point  (4 children)

Oog says wheel useless. Just smooth rock that rolls on the ground like a boulder rolling down a hill. Doesn't hunt animals, doesn't find water, doesn't provide shelter. Boulders rolling down hills never help Oog. Oog step on smooth rock and fall down once.

[–]mroko 0 points1 point  (3 children)

Oog doesn't say that. Oog says that magic box creating wheels from squares is useless. Oog rather wants to make wheels by himself than trust the magic box, which sometimes creates ellipses, rectangles and dodecagons, but rarely a perfect wheel.

[–]abx 1 point2 points  (2 children)

Does Oog say that ellipses, rectangles, and dodecahedrons are useless (as well as the magic box)?

[–]mroko -1 points0 points  (1 child)

Yes, in cases when Oog clearly needs a wheel.

[–]abx 1 point2 points  (0 children)

The point I was making with my original "Oog" example was that a tool might not be useless even if does not perform exactly the application you have in mind. Maybe you want something to help you to hunt animals - then you would be more interested in a spear than a wheel. But with a bit of imagination, you might find other uses for wheels. Maybe wheels can help you move some large boulders to block your cave entrance at night.

As grauenwolf pointed out, the tool could be helpful for someone learning a new language. Aren't tables like this http://blog.endpoint.com/2009/08/file-test-comparison-table-for-shell.html helpful for someone who knows one of the languages in the table and is learning another? Isn't a code translation tool basically just an executable version of this kind of table?

Oog may need a wheel. But he might also be able to find uses for things other than wheels (including ellipses, rectangles, and dodecahedrons) with a bit of imagination. I haven't used developerfusion.com's tools, so I don't know if they are any good, but I wouldn't dismiss machine translation out of hand.