Lawrence DÿOliveiro wrote:
>> But I see that instead of writing cur = conn.cursor(), >> cur.execute(...), and cur.fetchall() in every query function, your >> suggestion allows us to create a cursor, run a cmd with bound >> values, and yield rows one at a time as a generator instead of >> loading everything into a list up front, where mapfn lets us >> optionally transform each row on the fly to pull a single column.
> > You see why all languages are not the same. The concept of what is > ´high-level¡ has progressed somewhat since the 1970s.
Hi Lawrence, This is about philosophy... You're likely a coder. I'm decidedly not. That tempers our philosophies. Neither is right or wrong & certainly most people would say what you did. To people, every car is different. To most people, every rock is the same. Hmmm... To me, every car is the same (they're just commodities). But every rock is different (since I love geology). Notice something there... about "loving" something, versus just "using" it. To make that loving-vs-using clearer To most people every hammer is the same. To me, every hammer is (just about) the same. Hmmm... a hammer is just a tool for getting a job done. What am I getting at... When I program, it's a means to the end. It's not an end in and of itself. To me, all languages do the same damn thing. Just with idiotically absurd crazy meaningless syntax differences. Bear in mind, I hate coding. What I hate most is putting a character in the wrong spot. And being penalized for hours simply for making a syntax mistake. Which is meaningless. I wasted my time on a syntax error when it was meaningless to even enforce that syntax in the first place. Hmmm... that's not what you hear from coders. But I'm not a coder. Now, rest assured I've coded in hex (so to speak), as I wrote assembly code for a Motorola 68701 that I wired way back in the 80s', and that's the only pure language that doesn't have "too many" syntax issues. Anyway, I certainly UNDERSTAND why a coder, like you appear to be, would like a lot about python, but for me, a decidedly non coder, I didn't see much of additional value OTHER THAN it's way better than batch coding was. Notice I agree on this with you. 1. My batch code had to include a ton of stupid tricks (e.g., powershell) 2. The python equivalent didn't need anywhere nearly as many stupid tricks So, we agree. Python coding was very much less hateful than the batch was.
-- Usenet is kind-hearted intelligent people helping each other do things.