Shit like this is why you have morons elected, just my two euro centimes
- 2 Posts
- 24 Comments
kSPvhmTOlwvMd7Y7E@programming.devto
Programmer Humor@programming.dev•Technial Skills in 2025
12·6 months agothe documentation is literally on Internet. Python standard library, MSDN, posgresql, odbc drivers. Everything is online. are you suggesting you memorised your whole stack, and did you printed out ? Granted * some * of it can be downloaded
kSPvhmTOlwvMd7Y7E@programming.devto
Programming@programming.dev•Is Python's tooling incredibly difficult, or am I just stupid?
50·1 year agoYou re not stupid, python’s packaging & versionning is PITA. as long as you write it for yourself, you re good. As soon as you want to share it, you have a problem
kSPvhmTOlwvMd7Y7E@programming.devto
JavaScript@programming.dev•Assertions in If-Clauses in Unit Tests: Tips and Best Practices
1·1 year agoDon’t write “if” in your tests! It makes very, very little sense: how is that, you test your application and you are unsure what is the resulting outcome of a call? Is it depending on arguments? Then fix the argument, and expect 1 specific result. Is it depending on environment? Fix/mock the environment.
No “ifs” in the tests!
kSPvhmTOlwvMd7Y7E@programming.devOPto
Programming@programming.dev•Rant: "Knuth, The art of computer programming" is overhyped
13·1 year agoI am mostly complaining about his writing style. Obviously the subject itself is interesting (to some people)
kSPvhmTOlwvMd7Y7E@programming.devOPto
Programming@programming.dev•Rant: "Knuth, The art of computer programming" is overhyped
12·1 year agoI wouldn’t bet my eye on it, but who knows!.. Maybe he was a better teacher before!
kSPvhmTOlwvMd7Y7E@programming.devOPto
Programming@programming.dev•Rant: "Knuth, The art of computer programming" is overhyped
72·1 year agoAgain, Knuth himself said in a preface that Volumes 2 through 5 are independent.
kSPvhmTOlwvMd7Y7E@programming.devOPto
Programming@programming.dev•Rant: "Knuth, The art of computer programming" is overhyped
9·1 year agoThat sounds interesting, will take a look. I am not against theoretical computer science, i just think Knuth doesn’t reads like a good teacher…
kSPvhmTOlwvMd7Y7E@programming.devOPto
Programming@programming.dev•Rant: "Knuth, The art of computer programming" is overhyped
412·1 year agoBecause volume 1 is not available in the library
Edit: but also the volumes aren’t not dependent on each other. They treat very different topics, i doubt reading Volume 1 will help with Volume 4.
kSPvhmTOlwvMd7Y7E@programming.devOPto
Programming@programming.dev•Anyone having acceptable performance with SQL Server + odbc?
26·1 year ago2100 parameters is a documented ODBC limitation( which applies on all statements in a batch)
This means that a
“insert into (c1, c2) values (?,?), (?,?)…” can only have 2100 bound parameters, and has nothing to do with code, and even less that surrounding code is “spaghetti”
The tables ARE normalised, the fact that there are 50 colums is because underlying market - data calibration functions expects dozens of parameters, and returns back dozens of other results, such as volatility, implied durations, forward duration and more
The amount of immaturity, inexperience, and ignorance coming from 2 people here is astounding
Blocked
kSPvhmTOlwvMd7Y7E@programming.devOPto
Programming@programming.dev•Anyone having acceptable performance with SQL Server + odbc?
19·1 year agoYou should take a break from trolling
kSPvhmTOlwvMd7Y7E@programming.devOPto
Programming@programming.dev•Anyone having acceptable performance with SQL Server + odbc?
1·1 year agoI timed the transaction and opening of the connection, it takes maybe a 100 milliseconds, absolutely doesn’t explain ghe abysmal performance
Transaction is needed because 2 tables are touched, i don’t want to deal with partially inserted data
Cannot share the code, but it’s python calling .NET through “clr”, and using SqlBulkCopy
What do you suggest i shouldn’t be using that? It’s either a prepared query, with thousands of parameters, or a plain text string with parameters inside (which admittedly, i didn’t try, might be faster lol)
kSPvhmTOlwvMd7Y7E@programming.devOPto
Programming@programming.dev•Anyone having acceptable performance with SQL Server + odbc?
11·1 year agoWill try bcp & report back EDIT: I can’t install bcp because it is only distributed with SQLServer itself, and I cannot install it on my corporate laptop.
kSPvhmTOlwvMd7Y7E@programming.devOPto
Programming@programming.dev•Anyone having acceptable performance with SQL Server + odbc?
12·1 year agoI will try bcp. Somehow, i was convinced I had to have access to the machine running the sql server to use it, but from the doca i see i can specify a remote host… Will report back! EDIT: I can’t install bcp because it is only distributed with SQLServer itself, and I cannot install it on my corporate laptop.
kSPvhmTOlwvMd7Y7E@programming.devOPto
Programming@programming.dev•Anyone having acceptable performance with SQL Server + odbc?
24·1 year agoPlease enlighten us? You barely know anything about the system or usage, and you have deduced nosql is better? Lol
kSPvhmTOlwvMd7Y7E@programming.devOPto
Programming@programming.dev•Anyone having acceptable performance with SQL Server + odbc?
12·1 year agoI am using SqlBulkInsert, given how bad MS is with naming things, that might as well be row inserts instead of bulks
kSPvhmTOlwvMd7Y7E@programming.devOPto
Programming@programming.dev•Anyone having acceptable performance with SQL Server + odbc?
73·1 year agoOh buddy, enjoy your life & don’t touch Microsoft even with a 10 meters stick
I would not recommend using parquet instead of csv. Indeed, parquet is a type of wooden flooring, while csv is a human readable file format. As you can see, it is not wise to replace one with the other. Don’t hesitate about asking more questions regarding your home design!
React +python + postgres/sqlite
I am long popcorn, and short microsoft, wake me up in 5 years