Csharp sample code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zeal
    Junior Member
    • Nov 2014
    • 20

    #1

    Csharp sample code

    I have tried to understand the charp sample code found on the github, but no success. Is it too much to ask a "sample code for dummies" - version?

    - I have just learned the csharp at basic level. I never wanted, but I had to, because it has got the most support at this site. As a newbie it is hard to read a complex app like the sample code.
    - I really dont need any manipulation with my data (nick, pass, appkey etc). It can be in my program as regular string variants.
    - I dont need the command line parser either. The usual switch statements (or something like that) would be enough. It would be much more easier to read the code.
    - Little more detailed comments would be also helpful. Some newbies like me are just not at the level as the code writer.

    - I will figured out all of this on my own anyway, but it just takes too much time. This part of the project is unwanted.

    (ps: I am sorry for my english. This is not my native language. When I am typing these words I have got no idea what they mean. )
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    Maybe you'd find the Visual Basic.NET code on here more readable. You could convert it to C# when you know what it's doing. Much of it is very similar.

    The only shortcuts on here are borrowing code and knowledge from others . You have to acquire that knowledge too, and there's a lot to take in.
    Last edited by jabe; 13-10-2016, 10:53 PM.

    Comment

    • zeal
      Junior Member
      • Nov 2014
      • 20

      #3
      There is no VB sample out there for stream api. only csharp. This is why I started to learn csharp.
      VB or C#? It does not really matters. Both related to the .net. And now for a very few lines of code I have to spend too much time with it. Not to mention the command line parser what hides more then I expected. There is masterpiece C# sample out there, but I am sure, if you can understand it in a short time, then you did not even need it. If there will be no basic sample on the github by the developer team than I could fail. Maybe it is easier for me to work with QT or Cpp + libs. I really dont know yet.

      Comment

      • jabe
        Senior Member
        • Dec 2014
        • 705

        #4
        Oh, Stream API. Yeah, it's only been around for a few weeks.

        If it doesn't have to be the stream stuff, there's a forum somewhere round here with all sorts of code posted on it. It's been posted by users. This one has some VB in it: http://forum.bdp.betfair.com/showthread.php?t=2167

        Comment

        • zeal
          Junior Member
          • Nov 2014
          • 20

          #5
          Thank you, JABE! I am familiar with the exchange api. Only the stream api is the problem.
          It should not be so hard. It is just a few pages of documentation. Am I right? What could go wrong? I felt lucky because I could see the development process from the very beginning. It cant be easier to learn a new thing. But when I saw the first few lines of the code... Well, it turns out the sample code is closer to the stuxnet then the "hello world!" Its definitely takes more effort like the exchange api.

          Comment

          • jabe
            Senior Member
            • Dec 2014
            • 705

            #6
            Originally posted by zeal View Post
            Thank you, JABE! I am familiar with the exchange api. Only the stream api is the problem.
            It should not be so hard. It is just a few pages of documentation. Am I right? What could go wrong? I felt lucky because I could see the development process from the very beginning. It cant be easier to learn a new thing. But when I saw the first few lines of the code... Well, it turns out the sample code is closer to the stuxnet then the "hello world!" Its definitely takes more effort like the exchange api.
            I'll take a look sometime (for all the good that'll do, by the sound of it). I didn't need data as fast as it supplies so I haven't followed it up yet.

            Comment

            • scrarass
              Junior Member
              • Oct 2015
              • 2

              #7
              Have to agree with ZEAL, it's quite complicated and complex even for those who's ok with NG-API. I'm trying to convert bf c# sample to vb.net and already have few errors because of languages differences.
              Will be awesome to have simplified Stream API vb.net sample.
              We are the champions!

              Comment

              • zeal
                Junior Member
                • Nov 2014
                • 20

                #8
                JOELPOB's example was good enough for me.

                https://forum.bdp.betfair.com/showthread.php?t=3288

                Comment

                Working...
                X