Curtis Rutland's Profile User Rating: *****

Reputation: 4594 Guru
Group:
Moderators
Active Posts:
8,207 (4.84 per day)
Joined:
08-June 10
Profile Views:
78,605
Last Active:
User is offline Yesterday, 10:50 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
Who Cares
Favorite Gaming Platform:
PC
Your Car:
Chevrolet
Dream Kudos:
1000
Expert In:
C#, LINQ, Dynamics CRM 2011

Latest Visitors

Icon   Curtis Rutland has been promoted!

Posts I've Made

  1. In Topic: What are you reading and what is on your book stack to read?

    Posted 29 Jan 2015

    @Modi, I adore Adventure Time. It's a ridiculous kid's show, but it's full of awesome D&D references and really good, clever writing.
  2. In Topic: Insert list into SQL table

    Posted 28 Jan 2015

    The answer is a definite "maybe". I have a couple of concerns. First, is your booking_view actually a view, or a table? I don't know what the restrictions are for MySql, but for the kind of SQL I know, you can't update Views unless they're a view into a single table. If booking_view is a view defined from multiple base tables, you're going to have to update all the tables individually.

    I'm also not sure I've ever seen a JOIN in an UPDATE statement. I don't even know how that would work.

    Realistically though, you don't need it. If you can get the PK of the row you want to update, that's all you need. You would just loop through your List<BidList> and create an UPDATE statement for each record and execute it.

    A few more concerns: you should use SQL parameters rather than using string concatenation. Without going too deep into the "why", look up "SQL Injection Attack". That's what you're exposing yourself to. Even if you don't think that's a big concern, it's not any harder to do things "right", and in fact more easy to read. There's a link in my signature that can help you learn to use Parameters.

    Next: this: dataReader["plot_id"] + "" is a very "cheesy" operation. It force-casts the dataReader property to a string, but you can just do this instead: (string)dataReader["plot_id"]. That's more "correct".
  3. In Topic: Learning a language

    Posted 28 Jan 2015

    Ah. If you actually do really like C#, then by all means continue learning it. In fact, there's no reason to limit yourself to a single language, even at a single time. Explore and learn; get a feel for what you like and what you don't. Actually, the more languages you try and learn about, the more you learn about programming theory and how certain things are common across all languages (and how many things aren't).
  4. In Topic: Learning a language

    Posted 28 Jan 2015

    That is also true, Python 2 to Python 3 involved several "breaking" changes. However, that's not as big an issue as you might think; Python 2.x is not necessarily "obsolete". Lots of places still use it. Many people did not find a compelling reason to switch to the newer version.

    You definitely find less of that in C#; I can't think of a single recent breaking change that has affected anything I've used.

    On the other hand, C# has a lot more "boilerplate". They've reduced it with every single release, but usually for the more advanced features (anonymous methods/classes, automatic properties, etc...). But there's still more there than Python, Ruby, Node.js, etc...

    Basically I'm suggesting that you look into languages that are traditionally "hobyist".
  5. In Topic: Insert list into SQL table

    Posted 28 Jan 2015

    Side note: the sqlfiddle site seems to be experiencing server errors, so none of your links are currently resolving to anything but an error page.

My Information

Member Title:
(╯□)╯︵ (~ .o.)~
Age:
30 years old
Birthday:
August 29, 1984
Gender:
Location:
San Antonio
Forum Leader:
C#
Full Name:
Curtis Rutland
Years Programming:
7
Programming Languages:
C# -- Forms, WPF, Silverlight, WCF

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://curtisrutland.com
Skype:
Skype  insertAlias_bytes
Twitter:
curtisrutland

Comments

  • (2 Pages)
  • +
  • 1
  • 2
  1. Photo

    NewRandomUsername Icon

    06 Jun 2014 - 20:59
    Did you get my messages(emails) sir?
  2. Photo

    BenignDesign Icon

    03 May 2013 - 13:29
    I see you were staring at my profile. I also stare randomly at profiles. We have much in common. We should probably hook up sometime. Just sayin.
  3. Photo

    eric wallace Icon

    31 Jan 2013 - 02:53
    can you help for visual basic
  4. Photo

    no2pencil Icon

    06 Dec 2012 - 08:34
    It still isn't good enough.
  5. Photo

    ikram002p Icon

    27 Jun 2012 - 10:51
    "It Doesn't Work!" That's not good enough!
    It Still Doesn't Work!.
    I didnt undestand it ??
  6. Photo

    tlhIn`toq Icon

    18 Mar 2012 - 11:22
    Congrats on breaking 3000
  7. Photo

    Curtis Rutland Icon

    08 Sep 2011 - 14:13
    "Leveling up." I like that!
  8. Photo

    MATTtheSEAHAWK Icon

    08 Sep 2011 - 13:55
    Yar ya see, i remember when yee wer purple!
    Anyways congrats! It's weird seeing people who've been one way so long "leveling up" :P.
  9. Photo

    Curtis Rutland Icon

    08 Sep 2011 - 12:59
    Thanks!
  10. Photo

    Sergio Tapia Icon

    08 Sep 2011 - 12:29
    Congrats on becoming a mod. :D
  11. Photo

    Ace26 Icon

    15 Jun 2011 - 13:39
    Hi mate, interesting to see we are age mates. Nice work you do in the forums.
    Just dropped by to say hi, anyways.
    Cheers.
  12. Photo

    RetardedGenius Icon

    20 Apr 2011 - 18:56
    Excellent C# tutorials, they've taught me a lot I didn't know. Please keep more of the good stuff coming! :D
  13. Photo

    Curtis Rutland Icon

    24 Mar 2011 - 14:55
    Yeah, felt like "professionalizing".
  14. Photo

    Dogstopper Icon

    23 Mar 2011 - 17:08
    Woah. Name switch! I took a double take...
  15. Photo

    CodingSup3rnatur@l-360 Icon

    01 Mar 2011 - 14:35
    No problem at all. Glad I could contribute :)
  • (2 Pages)
  • +
  • 1
  • 2