开发者

Should I start my new shareware project in C# or Delphi? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. 开发者_如何学编程 Closed 13 years ago.

I want my code to be as secure as possible.


I do not think that the security of your source code is a good reason to choose between C # and Delphi. if you create an .Net executable you can protect it with a tool like .Net Reactor, on the othe hand the win32 executables are by definition very difficult to disassemble (get the original source code) unless you include debug information in them.

You should compare other features, in my opinion you should use the language with which you feel more comfortable and you have more skills.

In my case it always chooses delphi, because it has an excellent and fast compiler and thousands of third party components and in addition to generating executables without dependencies. ;)

You can check this question

What language or RAD IDE do you recommend for building shareware?

Also you can check this list of applications built with Delphi

Good Quality Applications Built With Delphi

Among them Skype, TOAD, FL Studio.


It depends on your needs. But in the absence of additional information: If it's a shareware program, I'd go for Delphi, mainly because it compiles into relatively small and fast native code executables.

Should you be concerned about modern (Delphi 2010) apps being less secure than older ones because of the new, enhanced RTTI - that can be turned off with a compiler switch.


Delphi is your best choice for shareware software : you can distribute your app in a single exe file , you can embed whatever resource you want to : html pages, images, even your dbserver (look for firebird embedded). Lots of shareware software was developed with delphi : EMS products (EMS SQL Manager for MySQL, IB, Oracle...), Skype, 7zip...

Have fun with DELPHI Best Regards


Deleting this because everyone is down arrowing my response simply because their opinion is different than mine. It was an answer to his question, but an unpopular one, so people decided to start taking points away from me.

That's not the purpose of the down arrow, to remove points from people who disagree with you. Your childish and ingnorant actions will subtract from the quality of this site.


In Delphi, you can use pointers (and sometimes they are necessary, for API calls for example) - so you are closer to C than with C#. There is a reason why Java and C# do not have pointers: security.

"Most studies agree that pointers are one of the primary features that enable programmers to inject bugs into their code."

http://java.sun.com/docs/white/langenv/Simple.doc2.html

In the C# programming language, pointers are supported only under certain conditions: any block of code including pointers must be marked with the unsafe keyword.

http://en.wikipedia.org/wiki/Pointer_%28computing%29#C.23

"Pointers are like jumps, leading wildly from one part of the data structure to another. Their introduction into high-level languages has been a step backwards from which we may never recover."

— C.A.R.Hoare "Hints on Programming Language Design", 1973, Prentice-Hall collection of essays and papers by Tony Hoare


Use C# just because it has more mainstream support. Plus it is sure to be backed by Microsoft. Which adds incremental features to the language from time to time.

Also, the main architect of C# in Microsoft is Anders Heilsberg which was the co-creator of Turbo Pascal and Delphi of Borland before he got pirated by Microsoft.


It doesn't really matter in which programming language you create your "secure" application as long as you know what you want keep working until you get the result. If you build an application in python or any other scripting language for instance you can still have good security. As a good friend of mine told me few times "it's all you! programming language is just an extension of your mind!"


Both are good. Both are secure. Plenty of people are around who work with either of them.

The support for "enterprise" features like heavy Web services, distributed applications and componentized applications is better using the .NET Framework. Similarly there's no direct equivalent to the vector-based forms possible with WPF.

But if your application will never need them - then go with what you feel most comfortable.


As with most of the posts here, I would agree that security is in how you write the program. Not is what language you use.

I use several different languages, depending on the project.

On top of asking your self which you would be more comfortable with, you should ask your self if you want to support multiple platforms.

My company does a lot of cross-platform development, and as such, we don't use C# on those projects.

There is the mono project that aims to allow .net code to run on mac and Linux, but between the two, Delphi, being pascal is somewhat more portable.

( On our cross platform projects, we use either C or C++ )


Use the language you are most familiar with. That way you can hopefully avoid pitfalls and gotchas of using an unfamiliar language.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜