Talk:Object–relational mapping: Difference between revisions

Content deleted Content added
Lexspoon (talk | contribs)
Implementing WP:PIQA (Task 26)
 
(4 intermediate revisions by 2 users not shown)
Line 1:
{{WikiProject Computingbanner shell|class=startStart|importance=}}
{{WikiProject Computing|importance=}}
}}
 
==Introduction==
Line 98 ⟶ 100:
 
"But in general, the pros outweigh the cons when using this paradigm." This statement is a judgment by the author. Pros and cons should be listed, but it's up to the reader to decide whether the pros outweigh cons. <span style="font-size: smaller;" class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/150.228.40.142|150.228.40.142]] ([[User talk:150.228.40.142|talk]]) 18:34, 9 April 2009 (UTC)</span><!-- Template:UnsignedIP --> <!--Autosigned by SineBot-->
 
I agree that Wikipedia shouldn't have bald opinions of individual authors. That said, there's a lot of potential encyclopedic content around referring to standard critiques and defenses of ORM. I'll say this non-neutrally on the talk page: having worked for years with ORM tools, I find that they make an easy problem even easier (tedious code to map columns to fields), but then add their own problems that are often really hard and time-consuming to solve (loss of control around locking, reading way more data than you need before making a small edit, reading back data after a save that you usually just throw away anyway, way more complex update commands than if you wrote the SQL by hand), plus the experience of pervasive mystery about what your program is doing. That's on the critique side. I am sure it depends on context, though, and that there are people with good experiences that could provide a defense of these tools. For example, some databases are just used by a single user at a time, in which case a lot of the cons won't really be an issue. [[User:Lexspoon|Lexspoon]] ([[User talk:Lexspoon|talk]]) 14:16, 9 January 2023 (UTC)
 
== New Proposed Article ==
Line 159 ⟶ 163:
 
I've added some information today about Object-Document Mappers and Data Mappers as a general term. These subjects are only related to ORMs and I was unsure if they belonged here - but there is no Data Mapper page on Wikipedia, but perhaps there should be?
 
== Incorrect C# code? ==
 
This example C# line is given as a way to find the person with ID 10:
 
: var person = Person.Get(Person.Properties.Id == 10);
 
However, it looks wrong to me. (Person.Properties.Id == 10) would yield a bool: either true or false. It isn't a lambda or closure or a method that can run to perform a search. [[User:Equinox|Equinox]] [[User_talk:Equinox|◑]] 15:36, 7 March 2023 (UTC)
 
: (Weeks later: I have removed the incorrect code.) [[User:Equinox|Equinox]] [[User_talk:Equinox|◑]] 05:51, 23 March 2023 (UTC)