Re:Deutsche Bank makes source code publicly available for th...
by thomasdziedzic on Sunday October 08, 2017 @06:48PM
(#15430471)
Link to code: https://github.com/symphonyoss/plexus-interop
[ Parent
| on HN ]
Re:Deutsche Bank makes source code publicly available for th...
by jackewiehose on Sunday October 08, 2017 @08:44PM
(#15430850)
I don't know C#. Should I assume this is the way to write comments? That's just terrible.
/// <summary>
/// Log a message with the specified <paramref name="logLevel"/>.
/// </summary>
/// <param name="logLevel">The level of log entry.</param>
/// <param name="exception">The exception to log.</param>
/// <param name="message">The format of the message object to log.<see cref="string.Format(string,object[])"/> </param>
/// <param name="arg1">The first argument for message formatting.</param>
[StringFormatMethod("format")]
void Log<T1>(LogLevel logLevel, [CanBeNull] Exception exception, string message, T1 arg1);
Re:Deutsche Bank makes source code publicly available for th...
by cm2187 on Monday October 09, 2017 @01:12AM
(#15431709)
That's not comment, that's the description of the function and of its arguments. That feeds automatically into intellisense, and ships with the binaries as meta data, and can be used to auto-generate the documentation of your library
Re:Deutsche Bank makes source code publicly available for th...
by justin66 on Sunday October 08, 2017 @09:24PM
(#15431026)
> I don't know C#. Should I assume this is the way to write comments? That's just terrible.
It's not an essential part of the language. It's something that is used by the IDE and doc-generation tools. Comments inside the method that follows will not be so verbose (one hopes).
Re:Deutsche Bank makes source code publicly available for th...
by almenon on Sunday October 08, 2017 @08:53PM
(#15430892)
Yeah, that's the standard way to write comments. It looks terrible but it's not bad to write because Visual Studio auto-generates the comment skeleton for you.
Re:Deutsche Bank makes source code publicly available for th...
by colejohnson66 on Sunday October 08, 2017 @09:31PM
(#15431046)
It’s not the standard way. It’s the standard way for documentation so Intellisense can provide information about the function. The standard way still uses C/C++ style double slash ( // ) and multiline style ( // )
Re:Deutsche Bank makes source code publicly available for th...
by techtalsky on Monday October 09, 2017 @02:24AM
(#15431907)
Muliline style /
Re:Deutsche Bank makes source code publicly available for th...
by colejohnson66 on Monday October 09, 2017 @02:46AM
(#15431964)
I meant the slash-asterisk comment asterisk-slash, but apparetly HN saw the two asterisks as markup...
Re:Deutsche Bank makes source code publicly available for th...
by jackewiehose on Sunday October 08, 2017 @09:10PM
(#15430971)
Embedding XML inside a C-comment (as a standard) is just fucked up. Do you have correct syntax highlighting with that?
(I don't. But even if emacs would understand this, it's still wrong)
Re:Deutsche Bank makes source code publicly available for th...
by _dcwr on Thursday October 12, 2017 @12:39PM
(#15459235)
C++ with Doxygen and Java with Javadoc are much saner formats for this purpose.
What's even worse is that Visual Studio 2015 just vomits out that the XML is malformed when I have C++ headers with Doxygen style comments in them. It detects the three slashes and tries to apply C# XML docs parsing to them and that of course fails. Meanwhile NetBeans can handle them no problem and display parsed docs in pop ups.
Re:Deutsche Bank makes source code publicly available for th...
by MichaelGG on Sunday October 08, 2017 @10:31PM
(#15431214)
Yeah, it's a mess. F# got it right, use triple slash to provide a summary. C# should have at least gotten that, instead of forcing so much XML all the time.
Re:Deutsche Bank makes source code publicly available for th...
by mzzter on Sunday October 08, 2017 @07:12PM
(#15430557)
Interesting, I would have expected Java or C++ but it turns out to be C# and Javascript.
Re:Deutsche Bank makes source code publicly available for th...
by dom0 on Sunday October 08, 2017 @07:35PM
(#15430624)
There are a bunch of Eclipse xtend files (=Java) around there as well.
Re:Deutsche Bank makes source code publicly available for th...
by ben0x539 on Sunday October 08, 2017 @07:11PM
(#15430554)
Says public domain in the post but all the code says Apache, weird~
Re:Deutsche Bank makes source code publicly available for th...
by wlesieutre on Sunday October 08, 2017 @08:04PM
(#15430707)
Article author probably doesn't realize there's a distinction between "publicly available" and "public domain"
Re:Deutsche Bank makes source code publicly available for th...
by iiv on Monday October 09, 2017 @01:45AM
(#15431792)
Article author is probably a lawyer (or at least proof-read by a lawyer), so that sounds strange.
Re:Deutsche Bank makes source code publicly available for th...
by kuschku on Monday October 09, 2017 @06:13AM
(#15432641)
German law doesn't have a public domain, so Apache license is as close as you can get.
Re:Deutsche Bank makes source code publicly available for th...
by giancarlostoro on Monday October 09, 2017 @08:42AM
(#15433317)
Why wouldn't MIT or BSD License be closer?