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. Unnoticeable yet awesome new C# feature

Unnoticeable yet awesome new C# feature

Scheduled Pinned Locked Moved The Lounge
csharpcom
49 Posts 28 Posters 0 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.
  • S Super Lloyd

    With latest c# iteration, instead of x != null, one can write x is not null. Meh, I initially thought. But then I tried to override the == and != operators and then.. I understood! :-D

    A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

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

    So it is becoming more like Python. :omg:

    N S M S M 6 Replies Last reply
    0
    • S Super Lloyd

      With latest c# iteration, instead of x != null, one can write x is not null. Meh, I initially thought. But then I tried to override the == and != operators and then.. I understood! :-D

      A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

      0 Offline
      0 Offline
      0x01AA
      wrote on last edited by
      #3

      ...and spice it up with some '?.' and what else. Once upon a time c# was such a beautiful, simply/logical structured language :((

      L M J 3 Replies Last reply
      0
      • 0 0x01AA

        ...and spice it up with some '?.' and what else. Once upon a time c# was such a beautiful, simply/logical structured language :((

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

        0x01AA wrote:

        Once upon a time c# was such a beautiful, simply/logical

        You could say the same thing about nearly every piece of software today. My OS feels bloated, my compiler IDE feels bloated, my word processor is certainly bloated, even the languages are becoming bloated. :sigh: What happened to 'Keep it Simple'? Best Wishes, David Delaune

        J H B S L 7 Replies Last reply
        0
        • L Lost User

          0x01AA wrote:

          Once upon a time c# was such a beautiful, simply/logical

          You could say the same thing about nearly every piece of software today. My OS feels bloated, my compiler IDE feels bloated, my word processor is certainly bloated, even the languages are becoming bloated. :sigh: What happened to 'Keep it Simple'? Best Wishes, David Delaune

          J Offline
          J Offline
          Jorgen Andersson
          wrote on last edited by
          #5

          Marketing. They have to motivate selling a newer version.

          Wrong is evil and must be defeated. - Jeff Ello

          L J 2 Replies Last reply
          0
          • L Lost User

            So it is becoming more like Python. :omg:

            N Offline
            N Offline
            Nick Polyak
            wrote on last edited by
            #6

            C# is a language developing faster than other similar languages, by absorbing good ideas from other languages including python. I hope they'll implement embedding from golang (the only good feature of golang worth mentioning AFAIK). In general, with once and if dotnet interactive sufficiently matures, it might very well replace Python as the most used language for scientific computing.

            Nick Polyak

            1 Reply Last reply
            0
            • L Lost User

              So it is becoming more like Python. :omg:

              S Offline
              S Offline
              Slacker007
              wrote on last edited by
              #7

              I was thinking Sql Server T-Sql. When checking for null you need to use WHERE A.SomeColumn IS NOT NULL

              D 1 Reply Last reply
              0
              • L Lost User

                0x01AA wrote:

                Once upon a time c# was such a beautiful, simply/logical

                You could say the same thing about nearly every piece of software today. My OS feels bloated, my compiler IDE feels bloated, my word processor is certainly bloated, even the languages are becoming bloated. :sigh: What happened to 'Keep it Simple'? Best Wishes, David Delaune

                H Offline
                H Offline
                honey the codewitch
                wrote on last edited by
                #8

                I love deving IoT because of this.

                Real programmers use butterflies

                L 1 Reply Last reply
                0
                • L Lost User

                  0x01AA wrote:

                  Once upon a time c# was such a beautiful, simply/logical

                  You could say the same thing about nearly every piece of software today. My OS feels bloated, my compiler IDE feels bloated, my word processor is certainly bloated, even the languages are becoming bloated. :sigh: What happened to 'Keep it Simple'? Best Wishes, David Delaune

                  B Offline
                  B Offline
                  BillWoodruff
                  wrote on last edited by
                  #9

                  I noticed that when i feel bloated, everything looks bloated.

                  «The mind is not a vessel to be filled but a fire to be kindled» Plutarch

                  L 1 Reply Last reply
                  0
                  • L Lost User

                    0x01AA wrote:

                    Once upon a time c# was such a beautiful, simply/logical

                    You could say the same thing about nearly every piece of software today. My OS feels bloated, my compiler IDE feels bloated, my word processor is certainly bloated, even the languages are becoming bloated. :sigh: What happened to 'Keep it Simple'? Best Wishes, David Delaune

                    S Offline
                    S Offline
                    Slacker007
                    wrote on last edited by
                    #10

                    the best thing for bloating is a good fart or two. I wonder if there is a way to make software fart.

                    L P B 3 Replies Last reply
                    0
                    • J Jorgen Andersson

                      Marketing. They have to motivate selling a newer version.

                      Wrong is evil and must be defeated. - Jeff Ello

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

                      Yep, But just imagine how many bugs could be fixed if we just take a break and stop adding more features. :-D

                      J 1 Reply Last reply
                      0
                      • H honey the codewitch

                        I love deving IoT because of this.

                        Real programmers use butterflies

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

                        Well, The boards you play around with are simply too weak to do much of anything but read sensors. I can't find anything I want to use in the IoT world. Any suggestions? I have about a dozen Arm SBC I do get some use out of some of those for NAS, DNS and time servers. My next purchase will be a SiFive RISC-V board[^] just to get early exposure to the instruction set. Best Wishes, -David Delaune

                        H 1 Reply Last reply
                        0
                        • B BillWoodruff

                          I noticed that when i feel bloated, everything looks bloated.

                          «The mind is not a vessel to be filled but a fire to be kindled» Plutarch

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

                          BillWoodruff wrote:

                          when i feel bloated, everything looks bloated

                          Kinda like everybody's pretty when I'm drunk? :-D

                          T 1 Reply Last reply
                          0
                          • S Slacker007

                            the best thing for bloating is a good fart or two. I wonder if there is a way to make software fart.

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

                            Slacker007 wrote:

                            I wonder if there is a way to make software fart.

                            Easy Peasy. Just lay off everybody that works on the test teams. Stink will follow. X|

                            1 Reply Last reply
                            0
                            • L Lost User

                              Yep, But just imagine how many bugs could be fixed if we just take a break and stop adding more features. :-D

                              J Offline
                              J Offline
                              Jorgen Andersson
                              wrote on last edited by
                              #15

                              That's why many companies change the business model to SAAS

                              Wrong is evil and must be defeated. - Jeff Ello

                              1 Reply Last reply
                              0
                              • L Lost User

                                Well, The boards you play around with are simply too weak to do much of anything but read sensors. I can't find anything I want to use in the IoT world. Any suggestions? I have about a dozen Arm SBC I do get some use out of some of those for NAS, DNS and time servers. My next purchase will be a SiFive RISC-V board[^] just to get early exposure to the instruction set. Best Wishes, -David Delaune

                                H Offline
                                H Offline
                                honey the codewitch
                                wrote on last edited by
                                #16

                                Check out the ESP32 WROVER, but honestly? In Jan. Espressif is officially releasing the ESP32-S3 which is a monster. It has a ton of GPIO, like the ARM boards. It has a USB port you can program to be anything you want (like a USB HID device), it has at least 2MB of PSRAM, and 512kB of SRAM, 300kB or so of which is effectively available for user stuff. The CPU is dual core, at up to 240mhz. The SPI tops out at either 40MHz, or 80Mhz, I forget. If nothing else, I know one of the busses is tappable at 80Mhz but you're sharing it with the PSRAM I think, and you have to be careful how you use it. There might be a totally free 80MHz SPI bus now, I haven't looked into it. But even 40Mhz will drive a small display, and there are enough pins to drive an 8-bit parallel with plenty of pins left over if you need something faster. You can program it in micropython or the ESP-IDF using C or C++. Arduino support is coming, maybe by the time they officially ship. I have a reference board, but I'm not using it because the toolchain is still very preliminary.

                                Real programmers use butterflies

                                P 1 Reply Last reply
                                0
                                • L Lost User

                                  So it is becoming more like Python. :omg:

                                  M Offline
                                  M Offline
                                  Mircea Neacsu
                                  wrote on last edited by
                                  #17

                                  Or more like:

                                  ADD 5 TO SUM GIVING SUM5

                                  Yuk! :rolleyes:

                                  Mircea

                                  T M K 3 Replies Last reply
                                  0
                                  • L Lost User

                                    BillWoodruff wrote:

                                    when i feel bloated, everything looks bloated

                                    Kinda like everybody's pretty when I'm drunk? :-D

                                    T Offline
                                    T Offline
                                    trønderen
                                    wrote on last edited by
                                    #18

                                    As a student, I didn't have much money. I was living with a girl then, and we had to cut down on everything - she insisted that we couldn't even spend any money on beer. Jeeez ... being a student with no beer?? But I was obedient. Then one day she came home having bought makeup for $98.50. I got really mad: You will not allow me even a single beer, and then you go out and spend almost a hundred dollars on makeup! (This is long ago and $100 was a lot more buying power than today.) Of course she started crying: The makeup was so that I would look pretty to you ... I made a deep sigh: But ... That's what I had the beer for! I never saw her again.

                                    A 1 Reply Last reply
                                    0
                                    • M Mircea Neacsu

                                      Or more like:

                                      ADD 5 TO SUM GIVING SUM5

                                      Yuk! :rolleyes:

                                      Mircea

                                      T Offline
                                      T Offline
                                      trønderen
                                      wrote on last edited by
                                      #19

                                      An old list of computer hacker terms explained 'COBOL fingers' as fingers worn down to the last joint.

                                      1 Reply Last reply
                                      0
                                      • 0 0x01AA

                                        ...and spice it up with some '?.' and what else. Once upon a time c# was such a beautiful, simply/logical structured language :((

                                        M Offline
                                        M Offline
                                        Marc Clifton
                                        wrote on last edited by
                                        #20

                                        0x01AA wrote:

                                        Once upon a time c# was such a beautiful, simply/logical structured language

                                        It still is!

                                        Latest Articles:
                                        Your one-stop guide for API and web-client Form, XHR, Blob, and Drag & Drop File/Data Uploading

                                        1 Reply Last reply
                                        0
                                        • L Lost User

                                          So it is becoming more like Python. :omg:

                                          S Offline
                                          S Offline
                                          Stepan Hakobyan
                                          wrote on last edited by
                                          #21

                                          More like Basic ))) I like that.

                                          K 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