3 ms·
Indeed, it's difficult to be isolated and split into smaller blocks (functions/classes/whatever). Effectively it's one massive statement with different clauses
by xxs 6y ago
Indeed, it's difficult to be isolated and split into smaller blocks (functions/classes/whatever). Effectively it's one massive statement with different clauses and data that's entirely publicly accessible in all aspects, no encapsulation and so on.
As a cheap excuse, I have come to think that 'loving' SQL does require a different mindset.
- mywittyname 6y agoI love SQL. I think you're spot on that it takes a different mindset. I treat it like a disposable expression of data, not a program. Essentially, I have data in one form, and I need to translate to this form, what is the logical representation of such a transformation? If the results of an SQL are not as expected, I have no problem rewriting the entire thing rather than doing a "bug fix."