Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
G

gjp1311

@gjp1311
About
Posts
7
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How much do you pay for your internet?
    G gjp1311

    I'm having 75Mb fiber that costs $38/month with the current Real/Dollar rate and I live in a state capital, Curitiba. That's very expensive for Brazil standard's, but it's the best internet provider by far. (We have cases of providers offering 50mb, but less then 20mb actually arrives.

    The Lounge html com performance question discussion

  • Developers are always the problem. Or are they?
    G gjp1311

    That's going to be my new MO :laugh:

    The Lounge database help question lounge career

  • Developers are always the problem. Or are they?
    G gjp1311

    Yeah, basically all my co-workers are on another country, including the scrum master and pm. My boss here just deal with things like contracts, hiring and etc.

    The Lounge database help question lounge career

  • Developers are always the problem. Or are they?
    G gjp1311

    I recently had a problem at my job. We work for a company abroad as contractor, so all our communication is done by Slack and our tasks are on TFS. The task I want to talk about, was basically to hardcode some items in a list that came from a database. I warned them all that this would break some other modules in our application, because it used that same data. They just told me to finish that task and go on. It didn't work out and it broke the application, as I have told them many times before. But my main complaint is that, they sent an email to my manager saying that the RC was broken because of me. I did have all chat history, so it was easy to prove to my boss that I just did what I was told and even warned them many times about that. Was I really guilt in all of this? Should I have just ignored thier orders and didn't finish the task?

    The Lounge database help question lounge career

  • If it fails, try again
    G gjp1311

    Besides the problem of repeating the same thing inside a catch, the other big problem is that the second time also throws an error sometimes. The "easy" fix was to put another try and catch block inside that catch, until I could understand what the hell was happening in that code :laugh:

    The Weird and The Wonderful database

  • If it fails, try again
    G gjp1311

    What about a recursive method that runs until it works? That should "fix it" :laugh:

    The Weird and The Wonderful database

  • If it fails, try again
    G gjp1311

    Beacause it will surely work a 100% the second time :-\

    SqlCommand cmd = new SqlCommand(query,conn);
    SqlDataReader reader = null;
    try
    {
    reader = cmd.ExecuteReader();
    }
    catch(InvalidOperationException e)
    {
    cmd = new SqlCommand(query,conn);
    reader = cmd.ExecuteReader();
    }

    The Weird and The Wonderful database
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups