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 3 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.
  • 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
                  • J Jeremy Falcon

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

                    Jeremy Falcon

                    J Offline
                    J Offline
                    jochance
                    wrote on last edited by
                    #21

                    It isn't more toxic that CP/Reddit? I must just have a knack for having trolls' channel their core sphincters. :D Or maybe pedantry type things just piss me off way more than they oughta. I seriousness, I guess I haven't really been on SO in over a decade to know. Oh I'll steal their useful lines here and there, I'm just not joining the circus.

                    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
                      jochance
                      wrote on last edited by
                      #22

                      ORMS have never ever been a very good idea imo.

                      1 Reply 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

                        J Offline
                        J Offline
                        jochance
                        wrote on last edited by
                        #23

                        They're vastly more pedantic and just plain more rude. I argued with some CP dude because he didn't understand why/how my question was C# related. I'd still go to dinner with that dude before I'd walk through an SO meetup to use the restroom.

                        1 Reply Last reply
                        0
                        • R realJSOP

                          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 Offline
                          N Offline
                          Nelek
                          wrote on last edited by
                          #24

                          #realJSOP wrote:

                          Why are you so angry lately?

                          mmm... I think he is more or less the same grumpy as usually, only that today is writing more answers than usually ;P :laugh:

                          M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                          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
                            dandy72
                            wrote on last edited by
                            #25

                            From my perspective (which I've shared here on more than one occasion), SO is great for small(-ish) snippets that just so happen to directly address what you came searching for. But it's not the place to ASK questions, unless you went in early and are already part of the clique and have the reputation points (or whatever system it is they're using). It's too much of a catch-22 to be newbie-friendly. And without the equivalent of a lounge, it's not the place to make friends and become part of the clique either. Overall, I find it very unwelcoming. At least on CP, if you have a question, as long as you ask it intelligently and demonstrate you've put some effort into it (aka NOT "do my homework for me"), you'll get real, useful help. I've found many answers on SO, typically as links Google provided as responses to my searches. But as I'm writing this, suddenly I realize I now tend to use ChatGPT to get code snippets, and as a result, haven't gone back / been redirected to SO for quite a while. ChatGPT undoubtedly scrapes SO for its info, but as long as it can provide usable answers, I find myself having no reason to go back to SO. Recent events here on CP notwithstanding, personally I see SO as being the one with the more limited future. There, I said it.

                            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.

                              F Offline
                              F Offline
                              Forogar
                              wrote on last edited by
                              #26

                              I have found SO very useful, but I don't ask questions, I just search for answers and then compare the sometimes myriad results until I find the inspiration to produce a result relevant to me. Failing that, since I have already exhausted CP before going to SO, I reread M$ docs until the screaming dies down and and I figure it out myself!

                              - I would love to change the world, but they won’t give me the source code.

                              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.

                                C Offline
                                C Offline
                                Choroid
                                wrote on last edited by
                                #27

                                Way back when I was still making the transition from VB6 which I was lucky to have been a member of a interactive group moderated by John Smiley where the vibe was like CP I had some real unpleasant encounters on SO might have been my wording for the questions though I always explained I was a novice at VBNet every now and then a more polite person would respond with a answer or a website with information to help with the question. When I first joined Code Project it was to ask a question about VB.Net and Visual Studio I was very lucky the response came from Original Griff need I say more. YES every now and then the tone on CP is sharp and of no help but that is seldom and I just take this members reply as he has forgotten what it was like to not know what you are doing when trying to learn to code in a new language. The big issue with SO has always been the idea of points for posting an answer and begging for accepting the answer. The most worthless reply is one that goes like this "You should NOT be doing it that way" with no reply how to do it I just delete the question which you can not do now YES Stack Overflow is NOT of great value

                                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
                                  Rick York
                                  wrote on last edited by
                                  #28

                                  I have found it to be a very good collection of knowledge from previously asked questions. I refrain from asking questions there though. Thankfully, I have rarely had a question that I did not find an answer for either here or there.

                                  "They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"

                                  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
                                    Dan Neely
                                    wrote on last edited by
                                    #29

                                    SO is very picky about what type of question it wants. Even though you're just looking for a general setting you'd need to give them a concrete example with a sample table and the incorrect code is generates. EF6 used some sort of templating system I've never seen anywhere else that you could probably edit to change the output of the generated code: Lasciate ogne speranza, voi ch'intrate. I've never had to dig that deep into EF Core to know if how it works. Hopefully they use something less gross.

                                    Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius

                                    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.

                                      L Offline
                                      L Offline
                                      Lost User
                                      wrote on last edited by
                                      #30

                                      Like most sites, they have their specific way of doing things: https://stackoverflow.com/tour[^].

                                      1 Reply Last reply
                                      0
                                      • C CPallini

                                        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 Offline
                                        G Offline
                                        Gary Wheeler
                                        wrote on last edited by
                                        #31

                                        That's my problem with SO. The times I've posted questions there they were marked as duplicates and closed or simply deleted. This was after I deliberately wrote them to describe how they weren't like the other instances of the question :suss:.

                                        Software Zen: delete this;

                                        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;

                                          C Offline
                                          C Offline
                                          Christian Graus
                                          wrote on last edited by
                                          #32

                                          Exactly the same!!!

                                          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