Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Does everyone agree Stack Overflow is shit?

Does everyone agree Stack Overflow is shit?

Scheduled Pinned Locked Moved The Lounge
helptutorialquestiondatabasedata-structures
37 Posts 21 Posters 11 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Christian Graus
    wrote on last edited by
    #1

    EF decides I have properties, for example a Widget class in an entry and if there's no FK it creates a WidgetId property.  This despite were Posgress (all lower case) and we say Key instead of Id.  I know of no way to modify or configure this feature and asked how to turn it off.   I was asked for a code sample, I said no, this is a general EF feature and I want to turn it off.  I got told they can't help without a specific code sample, and they turned my question off!!!! To be clear this happens even with auto generated code and is ALWAYS WRONG. I am happy to have an issue I need to sort out to access one property, based on auto generated nonsense, but I don't want NO ACCESS to a table because it will always invent columns in the SQL that I never claimed to exist.

    P K G G C 17 Replies Last reply
    0
    • C Christian Graus

      EF decides I have properties, for example a Widget class in an entry and if there's no FK it creates a WidgetId property.  This despite were Posgress (all lower case) and we say Key instead of Id.  I know of no way to modify or configure this feature and asked how to turn it off.   I was asked for a code sample, I said no, this is a general EF feature and I want to turn it off.  I got told they can't help without a specific code sample, and they turned my question off!!!! To be clear this happens even with auto generated code and is ALWAYS WRONG. I am happy to have an issue I need to sort out to access one property, based on auto generated nonsense, but I don't want NO ACCESS to a table because it will always invent columns in the SQL that I never claimed to exist.

      P Offline
      P Offline
      Peter_in_2780
      wrote on last edited by
      #2

      In these parts, it's known as SNARK Overflow.

      Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012

      1 Reply Last reply
      0
      • C Christian Graus

        EF decides I have properties, for example a Widget class in an entry and if there's no FK it creates a WidgetId property.  This despite were Posgress (all lower case) and we say Key instead of Id.  I know of no way to modify or configure this feature and asked how to turn it off.   I was asked for a code sample, I said no, this is a general EF feature and I want to turn it off.  I got told they can't help without a specific code sample, and they turned my question off!!!! To be clear this happens even with auto generated code and is ALWAYS WRONG. I am happy to have an issue I need to sort out to access one property, based on auto generated nonsense, but I don't want NO ACCESS to a table because it will always invent columns in the SQL that I never claimed to exist.

        K Offline
        K Offline
        KarstenK
        wrote on last edited by
        #3

        I have found a lot of inspiring tips and code pieces, but I agree that it is badly presented and sometimes a harsh tongue is there. But see the Q&A section of CP - there are also big differences. I got sometimes bad critics for working solutions. :~ And someone asked about his library but explicitly did accepted no redesign of his crap. :doh:

        Press F1 for help or google it. Greetings from Germany

        J 1 Reply Last reply
        0
        • C Christian Graus

          EF decides I have properties, for example a Widget class in an entry and if there's no FK it creates a WidgetId property.  This despite were Posgress (all lower case) and we say Key instead of Id.  I know of no way to modify or configure this feature and asked how to turn it off.   I was asked for a code sample, I said no, this is a general EF feature and I want to turn it off.  I got told they can't help without a specific code sample, and they turned my question off!!!! To be clear this happens even with auto generated code and is ALWAYS WRONG. I am happy to have an issue I need to sort out to access one property, based on auto generated nonsense, but I don't want NO ACCESS to a table because it will always invent columns in the SQL that I never claimed to exist.

          G Offline
          G Offline
          GKP1992
          wrote on last edited by
          #4

          I feel SO has it's place in the interwebs. Both CP and SO have been useful to me on more than one occasion. I choose to ignore the rare snarky remark on account of all kinds of people free to use both platforms. I cases I can't ignore I report. That's about it.

          J 1 Reply Last reply
          0
          • C Christian Graus

            EF decides I have properties, for example a Widget class in an entry and if there's no FK it creates a WidgetId property.  This despite were Posgress (all lower case) and we say Key instead of Id.  I know of no way to modify or configure this feature and asked how to turn it off.   I was asked for a code sample, I said no, this is a general EF feature and I want to turn it off.  I got told they can't help without a specific code sample, and they turned my question off!!!! To be clear this happens even with auto generated code and is ALWAYS WRONG. I am happy to have an issue I need to sort out to access one property, based on auto generated nonsense, but I don't want NO ACCESS to a table because it will always invent columns in the SQL that I never claimed to exist.

            G Offline
            G Offline
            Gary Wheeler
            wrote on last edited by
            #5

            I use it if results come up in Google searches. The couple of times I submitted questions were... unsuccessful :mad: X|.

            Software Zen: delete this;

            J C 2 Replies Last reply
            0
            • C Christian Graus

              EF decides I have properties, for example a Widget class in an entry and if there's no FK it creates a WidgetId property.  This despite were Posgress (all lower case) and we say Key instead of Id.  I know of no way to modify or configure this feature and asked how to turn it off.   I was asked for a code sample, I said no, this is a general EF feature and I want to turn it off.  I got told they can't help without a specific code sample, and they turned my question off!!!! To be clear this happens even with auto generated code and is ALWAYS WRONG. I am happy to have an issue I need to sort out to access one property, based on auto generated nonsense, but I don't want NO ACCESS to a table because it will always invent columns in the SQL that I never claimed to exist.

              C Offline
              C Offline
              CPallini
              wrote on last edited by
              #6

              Nope. I disagree. It has its uses.

              "In testa che avete, Signor di Ceprano?" -- Rigoletto

              C 1 Reply Last reply
              0
              • C Christian Graus

                EF decides I have properties, for example a Widget class in an entry and if there's no FK it creates a WidgetId property.  This despite were Posgress (all lower case) and we say Key instead of Id.  I know of no way to modify or configure this feature and asked how to turn it off.   I was asked for a code sample, I said no, this is a general EF feature and I want to turn it off.  I got told they can't help without a specific code sample, and they turned my question off!!!! To be clear this happens even with auto generated code and is ALWAYS WRONG. I am happy to have an issue I need to sort out to access one property, based on auto generated nonsense, but I don't want NO ACCESS to a table because it will always invent columns in the SQL that I never claimed to exist.

                J Offline
                J Offline
                Jeremy Falcon
                wrote on last edited by
                #7

                I’ve gotten more answers from SO Googling than any other website, bar none. Don’t see the reason for all the hate… which isn’t really helpful and compromises 90% of I see in the lounge.

                Jeremy Falcon

                C 1 Reply Last reply
                0
                • G Gary Wheeler

                  I use it if results come up in Google searches. The couple of times I submitted questions were... unsuccessful :mad: X|.

                  Software Zen: delete this;

                  J Offline
                  J Offline
                  Jeremy Falcon
                  wrote on last edited by
                  #8

                  To be fair… the same can happen on CP. Reddit has been pretty good for me personally. Sometimes questions are a hit and miss there too. Some nerds love to pretend to know an answer they don’t. But that’s not site specific. Talent is hard to find in any field.

                  Jeremy Falcon

                  C 1 Reply Last reply
                  0
                  • G GKP1992

                    I feel SO has it's place in the interwebs. Both CP and SO have been useful to me on more than one occasion. I choose to ignore the rare snarky remark on account of all kinds of people free to use both platforms. I cases I can't ignore I report. That's about it.

                    J Offline
                    J Offline
                    Jeremy Falcon
                    wrote on last edited by
                    #9

                    Yup. SO is no more or less toxic than CP, Reddit, etc.

                    Jeremy Falcon

                    J 1 Reply Last reply
                    0
                    • C Christian Graus

                      EF decides I have properties, for example a Widget class in an entry and if there's no FK it creates a WidgetId property.  This despite were Posgress (all lower case) and we say Key instead of Id.  I know of no way to modify or configure this feature and asked how to turn it off.   I was asked for a code sample, I said no, this is a general EF feature and I want to turn it off.  I got told they can't help without a specific code sample, and they turned my question off!!!! To be clear this happens even with auto generated code and is ALWAYS WRONG. I am happy to have an issue I need to sort out to access one property, based on auto generated nonsense, but I don't want NO ACCESS to a table because it will always invent columns in the SQL that I never claimed to exist.

                      R Offline
                      R Offline
                      realJSOP
                      wrote on last edited by
                      #10

                      SO is not friendly for people asking questions, especially if one of their "elites" insist that you post code for a non-code question (as you found out). EF making assumptions is precisely why I hate and abhor ORMs of any description, and I rolled my own entity factory and DAL code (back in the day when I was still writing real code instead of this javascript crap I'm dealing with now). If you're interested and have the freedom to move away from EF, I've written some articles with regards to entity generation based on database contents, as well as a generic ADO assembly. It's all .net framework code, but you shouldn't have any probs moving it to .net core if that's a requirement. Entity Factory - Get Your ORM-less Freak On![^] Generic DAL for ADO.Net - A Revisit[^]

                      ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                      -----
                      You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                      -----
                      When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                      J J C 3 Replies Last reply
                      0
                      • C CPallini

                        Nope. I disagree. It has its uses.

                        "In testa che avete, Signor di Ceprano?" -- Rigoletto

                        C Offline
                        C Offline
                        Cp Coder
                        wrote on last edited by
                        #11

                        Agreed. It has helped me on so many occasions!

                        Ok, I have had my coffee, so you can all come out now!

                        1 Reply Last reply
                        0
                        • C Christian Graus

                          EF decides I have properties, for example a Widget class in an entry and if there's no FK it creates a WidgetId property.  This despite were Posgress (all lower case) and we say Key instead of Id.  I know of no way to modify or configure this feature and asked how to turn it off.   I was asked for a code sample, I said no, this is a general EF feature and I want to turn it off.  I got told they can't help without a specific code sample, and they turned my question off!!!! To be clear this happens even with auto generated code and is ALWAYS WRONG. I am happy to have an issue I need to sort out to access one property, based on auto generated nonsense, but I don't want NO ACCESS to a table because it will always invent columns in the SQL that I never claimed to exist.

                          D Offline
                          D Offline
                          Daniel Pfeffer
                          wrote on last edited by
                          #12

                          Yes, and no. It is a great repository of knowledge, and if you phrase your Google search correctly, it will often give you exactly what you want. OTOH, you must put on your asbestos underwear before asking a question there.

                          Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                          J 1 Reply Last reply
                          0
                          • D Daniel Pfeffer

                            Yes, and no. It is a great repository of knowledge, and if you phrase your Google search correctly, it will often give you exactly what you want. OTOH, you must put on your asbestos underwear before asking a question there.

                            Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                            J Offline
                            J Offline
                            Jeremy Falcon
                            wrote on last edited by
                            #13

                            Daniel Pfeffer wrote:

                            OTOH, you must put on your asbestos underwear before asking a question there.

                            It's the same thing with Reddit, CP, etc. too though. Nerds will be nerds. Which means most will pretend to know something they don't (and deflect with insults) and they love to be angry and argue. I mean, just look at the lounge... clearly they have unhappy people here too. Same goes for any tech site. Especially popular ones. We're supposed to be the mature, older group but I'd contest just older only. :laugh:

                            Jeremy Falcon

                            1 Reply Last reply
                            0
                            • R realJSOP

                              SO is not friendly for people asking questions, especially if one of their "elites" insist that you post code for a non-code question (as you found out). EF making assumptions is precisely why I hate and abhor ORMs of any description, and I rolled my own entity factory and DAL code (back in the day when I was still writing real code instead of this javascript crap I'm dealing with now). If you're interested and have the freedom to move away from EF, I've written some articles with regards to entity generation based on database contents, as well as a generic ADO assembly. It's all .net framework code, but you shouldn't have any probs moving it to .net core if that's a requirement. Entity Factory - Get Your ORM-less Freak On![^] Generic DAL for ADO.Net - A Revisit[^]

                              ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                              -----
                              You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                              -----
                              When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                              J Offline
                              J Offline
                              Jeremy Falcon
                              wrote on last edited by
                              #14

                              How is SO any different than the IRC days back in the 90s? Or the BBS days in the 80s? We're supposed to be mature, professional seniors here and yet we still think the problem is specific to one site? You ever ask a question on CP? You'll need to do the same exact thing with phrasing. Same thing goes with managing devs IRL, or anyone for that matter (including non-devs). And funny how people only come out of the wood works to complain. :suss: This is the part where you argue now...

                              Jeremy Falcon

                              R J 2 Replies Last reply
                              0
                              • K KarstenK

                                I have found a lot of inspiring tips and code pieces, but I agree that it is badly presented and sometimes a harsh tongue is there. But see the Q&A section of CP - there are also big differences. I got sometimes bad critics for working solutions. :~ And someone asked about his library but explicitly did accepted no redesign of his crap. :doh:

                                Press F1 for help or google it. Greetings from Germany

                                J Offline
                                J Offline
                                Jeremy Falcon
                                wrote on last edited by
                                #15

                                KarstenK wrote:

                                I agree that it is badly presented and sometimes a harsh tongue is there.

                                As you mentioned (so I guess my post is pointless. :laugh:)... I've seen harsh tongue on CP too. The real problem is immature devs need to go outside more and interact with real humans. I bet you can guess which ones are prevalent on the maturity scale. :laugh:

                                Jeremy Falcon

                                1 Reply Last reply
                                0
                                • C Christian Graus

                                  EF decides I have properties, for example a Widget class in an entry and if there's no FK it creates a WidgetId property.  This despite were Posgress (all lower case) and we say Key instead of Id.  I know of no way to modify or configure this feature and asked how to turn it off.   I was asked for a code sample, I said no, this is a general EF feature and I want to turn it off.  I got told they can't help without a specific code sample, and they turned my question off!!!! To be clear this happens even with auto generated code and is ALWAYS WRONG. I am happy to have an issue I need to sort out to access one property, based on auto generated nonsense, but I don't want NO ACCESS to a table because it will always invent columns in the SQL that I never claimed to exist.

                                  P Offline
                                  P Offline
                                  Pete OHanlon
                                  wrote on last edited by
                                  #16

                                  BTW - the way to configure Postgres style naming is to use a snake name casing setting. Here's one I used earlier:

                                  var connectionString = builder.Configuration.GetConnectionString("DefaultConnection") ??
                                  throw new InvalidOperationException("Connection string 'DefaultConnection' not found.");
                                  builder.Services.AddDbContext(options =>
                                  {
                                  options.UseNpgsql(connectionString, o => o.UseQuerySplittingBehavior(QuerySplittingBehavior.SplitQuery))
                                  .UseSnakeCaseNamingConvention()
                                  .ConfigureWarnings(warnings => warnings.Throw(RelationalEventId.QueryPossibleUnintendedUseOfEqualsWarning));
                                  });

                                  You can also override the OnModelCreating to override the naming convention for your foreign keys:

                                  protected override void OnModelCreating(ModelBuilder modelBuilder)
                                  {
                                  // Apply the naming convention to all relationships
                                  foreach (var relationship in modelBuilder.Model.GetEntityTypes().SelectMany(e => e.GetForeignKeys()))
                                  {
                                  relationship.SetConstraintName(relationship.GetConstraintName().Replace("_id", "_key"));
                                  }
                                  base.OnModelCreating(modelBuilder);
                                  }

                                  But that's just CodeProject. Where people aren't always arsey and rep-hunting.

                                  Advanced TypeScript Programming Projects

                                  C 2 Replies Last reply
                                  0
                                  • J Jeremy Falcon

                                    How is SO any different than the IRC days back in the 90s? Or the BBS days in the 80s? We're supposed to be mature, professional seniors here and yet we still think the problem is specific to one site? You ever ask a question on CP? You'll need to do the same exact thing with phrasing. Same thing goes with managing devs IRL, or anyone for that matter (including non-devs). And funny how people only come out of the wood works to complain. :suss: This is the part where you argue now...

                                    Jeremy Falcon

                                    R Offline
                                    R Offline
                                    realJSOP
                                    wrote on last edited by
                                    #17

                                    I didn't say it was specific to SO. SO was merely the qualifying criteria for the discussion. Yeah, CP can be just as bad, but for different reasons. I don't see many/any homework questions (of the ilk, "I need you to do my homework for me) on SO, but that used to be a real problem here. Since I don't really haunt the Q/A section anymore, I don't know it it's still a problem. Besides that, we're talking about SO, not CP. Why are you so angry lately?

                                    ".45 ACP - because shooting twice is just silly" - JSOP, 2010
                                    -----
                                    You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
                                    -----
                                    When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

                                    N 1 Reply Last reply
                                    0
                                    • C Christian Graus

                                      EF decides I have properties, for example a Widget class in an entry and if there's no FK it creates a WidgetId property.  This despite were Posgress (all lower case) and we say Key instead of Id.  I know of no way to modify or configure this feature and asked how to turn it off.   I was asked for a code sample, I said no, this is a general EF feature and I want to turn it off.  I got told they can't help without a specific code sample, and they turned my question off!!!! To be clear this happens even with auto generated code and is ALWAYS WRONG. I am happy to have an issue I need to sort out to access one property, based on auto generated nonsense, but I don't want NO ACCESS to a table because it will always invent columns in the SQL that I never claimed to exist.

                                      M Offline
                                      M Offline
                                      Maximilien
                                      wrote on last edited by
                                      #18

                                      StackOverflow is great for a certain class of questions. Anything more than simple things is hard to either ask a proper question or get a proper answer because there are too many variables.

                                      CI/CD = Continuous Impediment/Continuous Despair

                                      1 Reply Last reply
                                      0
                                      • J Jeremy Falcon

                                        To be fair… the same can happen on CP. Reddit has been pretty good for me personally. Sometimes questions are a hit and miss there too. Some nerds love to pretend to know an answer they don’t. But that’s not site specific. Talent is hard to find in any field.

                                        Jeremy Falcon

                                        C Offline
                                        C Offline
                                        CPallini
                                        wrote on last edited by
                                        #19

                                        Jeremy Falcon wrote:

                                        To be fair… the same can happen on CP.

                                        Could happen, however people are usually welcomed here. Maybe we're not great experts, but, more often than not, try to help.

                                        "In testa che avete, Signor di Ceprano?" -- Rigoletto

                                        G 1 Reply Last reply
                                        0
                                        • C Christian Graus

                                          EF decides I have properties, for example a Widget class in an entry and if there's no FK it creates a WidgetId property.  This despite were Posgress (all lower case) and we say Key instead of Id.  I know of no way to modify or configure this feature and asked how to turn it off.   I was asked for a code sample, I said no, this is a general EF feature and I want to turn it off.  I got told they can't help without a specific code sample, and they turned my question off!!!! To be clear this happens even with auto generated code and is ALWAYS WRONG. I am happy to have an issue I need to sort out to access one property, based on auto generated nonsense, but I don't want NO ACCESS to a table because it will always invent columns in the SQL that I never claimed to exist.

                                          P Offline
                                          P Offline
                                          PIEBALDconsult
                                          wrote on last edited by
                                          #20

                                          Christian Graus wrote:

                                          EF

                                          "Well, there's your problem." -- Adam savage I've never used it, so I wouldn't know, but it seems like the kind of thing which is a reason not to use it. Some colleagues of mine also say that the tools they use require that everything have a primary key, even when it provides no benefit, and I tell them to get better tools.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups