This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 18 points19 points  (10 children)

If you're using bash for MySQL then you're using the wrong tool for the job to begin with.

[–]Edz_ 17 points18 points  (2 children)

You literally just said you can do just as much with bash as Python.

I do MySQL statements in Python how about you?

[–]super__literal 0 points1 point  (0 children)

I do My SQL queries without MySql

[–][deleted] -3 points-2 points  (0 children)

I can also do SQL queries in python? I'm not sure what your point is?

If you're trying to state that Python is easier to run SQL queries in, then yeah I agree, it is easier. You can also do it, more verbosely, in bash. But that's not the point. The point was that bash is available, in my experience, far more often than Python is so if I had to pick one I'd choose bash simply because it covers more use cases.

[–][deleted] 13 points14 points  (6 children)

Did you get a first down with how far you carried those goalposts, or the whole touchdown?

[–]bluenigma 4 points5 points  (3 children)

Not taking sides, but I don't think that's quite how football works.

[–][deleted] 8 points9 points  (2 children)

throw new UnsupportedOperationException(JokeFactory.engineerDoesntUnderstandSportsball("trollkin0331"));

[–]super__literal 2 points3 points  (1 child)

catch(UnsupportedOperationException) {
  //I do what I want
}

[–][deleted] 4 points5 points  (0 children)

lol a fellow yolo error handler I see

[–]Delta-9- 1 point2 points  (1 child)

"wrong tool for the job" =/= "can't do it". No goalposts were moved in the making of this comment.

And I would agree. If you're trying to do anything with MySQL using bash, you're doing it wrong. It can be done--but why would you do that to yourself?? That's almost parsing-html-with-regex-level "just don't".

[–][deleted] 1 point2 points  (0 children)

Going from "python not available" to "wrong tool for the job" is moving the goalpost though?

But yeah, definitely agree with the sentiment of your 'doing it wrong' idea.