Main Page
From PT
Log in using:
- Username: AnonymousCoward
- Password: strafenet
Contents |
Index
Find what you're looking to translate in the index below.
Direct translations already available! C# <-> VB.NET [1]
- Core Language Features
- Variables, Functions, Operators, Flow control
- Objects, Generics
- Modular programming
- Precompilation
- C++ style macros (#define, #ifndef)
- In C#: http://blogs.msdn.com/csharpfaq/archive/2004/03/09/86979.aspx
- Data Structures
- Lists, Hashtables
- Data Manipulation
- Strings (strlen, regexp)
- Time and Date (UTC, get minutes, subtracting times)
- Input/Output
- scanf/printf: read formatted input
- Opening a file (file streams)
- Internet connection (sockets)
- web services: SOAP
- Compilation and Debugging
- Windows, graphical user interfaces
Part II: Data format converter
The data converter lists a series of formats in which data can be stored, and the best way to convert from one to another.
List of data formats
- Data structures in programming languages
- JavaScript
- Java
- C++
- .NET (C#/VB)
- Structured data
- XML
- SQL
Conversion Tactics
- CSV -> SQL
- Universal: You can write a script to generate queries.
- MS SQL: Use bulk copy utility (bcp); new versions of SQL server also allow imports from program
- MySQL: LOAD DATA INFILE command, also, see http://www.unixreview.com/documents/s=8472/ur0307c/
- CSV -> .NET
- .NET <-> JSON
- Json.NET two-way serializer (http://james.newtonking.com/pages/json-net.aspx)
- .NET -> JSON: Use JavascriptSerializer (http://geekswithblogs.net/shahed/archive/2008/03/22/120709.aspx)
- DataTable -> JSON: Convert into generic containers or write adapter code yourself (http://forums.asp.net/t/1231553.aspx)
Best References
Official stuff should be in red
- Python: Dive Into Python [2]
- Python API: Python 2.5.2 Documentation [3] (RED)
- TODO reference Stroustrup
- TODO reference CL
History
http://blog.strafenet.com/2006/12/09/fundamentals-of-being-useful
C++: http://blog.strafenet.com/2007/11/19/how-to-do-something-in-c-besides-traverse-binary-trees/
Other/FAQ
Data Manipulation Languages
TSQL MySQL date manipulation
select * from category where id not in (select ancestor_id from category) select * from category where id not in (select ancestor_id from category where ancestor_id is not null)
To-do list
- Create tab index on left or top
- Reorganize to use short code examples
- Fix logo
- http://bytes.com/topic/python/answers/30481-equivalent-javas-tostring
Our mission: break the programmer's language barrier.
How we do that: The Programmer's Thesaurus allows programmers familiar with one language to translate syntax and method calls into another language.
Currently planning to support: C#, JS, Common Lisp. More to come as fast as we can come up with them.
With regard to analogies to C# functions:
I think having some sort of a resource like this for new languages is a great idea! So, with a friend of mine, I put together a wiki for it.
I wasn't planning on putting it up yet, but my friend pointed me to this post. We'll be working on it on and off, and contributors are definitely welcome.
It started when I was trying to pick up Lisp and was looking for analogous functions (at least, as close as one can get with languages that different). :-) The index is missing some advanced comprehensions and such.

