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. Other Discussions
  3. The Back Room
  4. I have noticed that there is ...

I have noticed that there is ...

Scheduled Pinned Locked Moved The Back Room
discussioncsharpc++comdesign
74 Posts 20 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.
  • K KaRl

    I would say French, but I may be partial :)


    Fold With Us! Chaos A.D. Disorder unleashed

    J Offline
    J Offline
    Jorgen Sigvardsson
    wrote on last edited by
    #53

    Too many unused letters for my taste.. :-D -- Oneigaishimasu! I blog too now[^]

    K 1 Reply Last reply
    0
    • A Alvaro Mendez

      Zdeslav Vojkovic wrote: i like the way it is done in C++/CLI when the object is automatically disposed when it goes out of scope (and i'm aware why this is not supported in C#) Yes, but if you ever take an object allocated on the stack and store its address (by pointer or reference) as an element of a collection (for later retrieval), BOOM! Regards, Alvaro


      Victory means exit strategy, and it's important for the President to explain to us what the exit strategy is. -- GWB, 1999.

      Z Offline
      Z Offline
      Zdeslav Vojkovic
      wrote on last edited by
      #54

      of course, this is programming 101, but the point is that you must know what you're doing and that it's good to have a choice. without deterministic finalization, all resource management (except memory) is left to developer, so if you share the same object among multiple clients you have to take special care of who is calling Dispose() and this can get really ugly. this can be avoided if your object can wait for garbage collection cycle, but some resources are scarce and you must dispose them a.s.a.p. that said, i think that C# is generally going in good direction, it is just too protective for my taste. my current favorite for .NET programming is C++/CLI, but unfortunately, i don't get to use it at all

      1 Reply Last reply
      0
      • J Jorgen Sigvardsson

        Too many unused letters for my taste.. :-D -- Oneigaishimasu! I blog too now[^]

        K Offline
        K Offline
        KaRl
        wrote on last edited by
        #55

        Før exåmple? :)


        Fold With Us! Chaos A.D. Disorder unleashed

        J 2 Replies Last reply
        0
        • K KaRl

          Før exåmple? :)


          Fold With Us! Chaos A.D. Disorder unleashed

          J Offline
          J Offline
          Jorgen Sigvardsson
          wrote on last edited by
          #56

          "eau" could just as well have been spelled "å".. ;) Interestingly, "å" means water stream in Swedish.. :suss: -- Oneigaishimasu! I blog too now[^]

          K 1 Reply Last reply
          0
          • K KaRl

            Før exåmple? :)


            Fold With Us! Chaos A.D. Disorder unleashed

            J Offline
            J Offline
            Jorgen Sigvardsson
            wrote on last edited by
            #57

            If you think we use umlauts and rings excessively in Swedish, take a look at the Czech language! All those modifiers are scary! :~ -- Oneigaishimasu! I blog too now[^]

            K 1 Reply Last reply
            0
            • J Jorgen Sigvardsson

              "eau" could just as well have been spelled "å".. ;) Interestingly, "å" means water stream in Swedish.. :suss: -- Oneigaishimasu! I blog too now[^]

              K Offline
              K Offline
              KaRl
              wrote on last edited by
              #58

              There's a (very slight) difference in pronunciation between "eau" and "o"...IMO the beauty of French words comes also from their history, their etymology...that's why the way words are written may vary from their phonetic value. It's probably hard to understand for someone used to a germanic language :-D


              Fold With Us! Chaos A.D. Disorder unleashed

              J 1 Reply Last reply
              0
              • J Jorgen Sigvardsson

                If you think we use umlauts and rings excessively in Swedish, take a look at the Czech language! All those modifiers are scary! :~ -- Oneigaishimasu! I blog too now[^]

                K Offline
                K Offline
                KaRl
                wrote on last edited by
                #59

                Jörgen Sigvardsson wrote: we use umlauts and rings excessively in Swedish, Noooo[^] :-D Jörgen Sigvardsson wrote: All those modifiers are scary! We have our share of them: é, è, à, ç, â, î, ô, ï, ö, ë, ä, ê, ù, ü...


                Fold With Us! Chaos A.D. Disorder unleashed

                J 1 Reply Last reply
                0
                • K KaRl

                  There's a (very slight) difference in pronunciation between "eau" and "o"...IMO the beauty of French words comes also from their history, their etymology...that's why the way words are written may vary from their phonetic value. It's probably hard to understand for someone used to a germanic language :-D


                  Fold With Us! Chaos A.D. Disorder unleashed

                  J Offline
                  J Offline
                  Jorgen Sigvardsson
                  wrote on last edited by
                  #60

                  K(arl) wrote: There's a (very slight) difference in pronunciation between "eau" and "o" "å" doesn't quite follow the rules of "o"... In Swedish, I would definately spell it with an "å". But since we're a lazy bunch of people here up north, we just assimilate the word as if it was our own. I think the word is used for perfumes. Cologne and eau de toilette.. am I far off..? :~ K(arl) wrote: It's probably hard to understand for someone used to a germanic language Man muss alle Buchstaben aussprechen! ;) -- Oneigaishimasu! I blog too now[^]

                  K 1 Reply Last reply
                  0
                  • K KaRl

                    Jörgen Sigvardsson wrote: we use umlauts and rings excessively in Swedish, Noooo[^] :-D Jörgen Sigvardsson wrote: All those modifiers are scary! We have our share of them: é, è, à, ç, â, î, ô, ï, ö, ë, ä, ê, ù, ü...


                    Fold With Us! Chaos A.D. Disorder unleashed

                    J Offline
                    J Offline
                    Jorgen Sigvardsson
                    wrote on last edited by
                    #61

                    So.. what does a ^ do to an i? Or a ¨ for that matter..? What do they modify? Pitch? Length? :confused: -- Oneigaishimasu! I blog too now[^]

                    K 1 Reply Last reply
                    0
                    • J Jorgen Sigvardsson

                      K(arl) wrote: There's a (very slight) difference in pronunciation between "eau" and "o" "å" doesn't quite follow the rules of "o"... In Swedish, I would definately spell it with an "å". But since we're a lazy bunch of people here up north, we just assimilate the word as if it was our own. I think the word is used for perfumes. Cologne and eau de toilette.. am I far off..? :~ K(arl) wrote: It's probably hard to understand for someone used to a germanic language Man muss alle Buchstaben aussprechen! ;) -- Oneigaishimasu! I blog too now[^]

                      K Offline
                      K Offline
                      KaRl
                      wrote on last edited by
                      #62

                      Jörgen Sigvardsson wrote: Cologne and eau de toilette Cologne, the french name for Köln[^]: It's funny to see that in swedish "you" choose the french name of a german city as a word..european history is quite complex :) Jörgen Sigvardsson wrote: Man muss alle Buchstaben aussprechen! And IMO it's the only easy part when learning German :-D


                      Fold With Us! Chaos A.D. Disorder unleashed

                      1 Reply Last reply
                      0
                      • J Jorgen Sigvardsson

                        So.. what does a ^ do to an i? Or a ¨ for that matter..? What do they modify? Pitch? Length? :confused: -- Oneigaishimasu! I blog too now[^]

                        K Offline
                        K Offline
                        KaRl
                        wrote on last edited by
                        #63

                        When adding a "¨", it means the letter must be pronunced as if it was alone, without taking care of the letters around, then not forming a syllable. For instance cigüe (= conium) is pronunced like "sig-uh", when cigue would be pronunced like "sig"..at least if it is was a real word :) . The modifier "^" is a souvenir of a gone "s" and indicates the letter should be pronunced on a lower tone. For instance, mâle (= male) was written in old French as "masle". é, è indicate different pitches, à and ù are used for grammatical reasons.


                        Fold With Us! Chaos A.D. Disorder unleashed

                        1 Reply Last reply
                        0
                        • Z Zdeslav Vojkovic

                          an integer is a value type (in .NET sense). this would mean that you can't change an integer. if you follow the same logic this should be illegal: System.Drawing.Rectangle rc = new System.Drawing.Rectangle(5, 10, 15, 20); rc.Offset(1,2); if i can offset a rectangle this way, it should also be possible to do it inside foreach statement.

                          J Offline
                          J Offline
                          jan larsen
                          wrote on last edited by
                          #64

                          Zdeslav Vojkovic wrote: if i can offset a rectangle this way, it should also be possible to do it inside foreach statement. It is :-)

                          Rectangle[] rectangles = new Rectangle[2];
                          rectangles[0] = new Rectangle(5, 10, 15, 20);
                          rectangles[1] = new Rectangle(5, 10, 15, 20);

                          foreach (Rectangle rc in rectangles)
                          {
                          rc.Offset(1,2);
                          }

                          rc does not reference a copy of rectangle[n], it references the actual Rectangle instance at the current iterator position. "After all it's just text at the end of the day. - Colin Davies "For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus

                          Z 1 Reply Last reply
                          0
                          • D David Wulff

                            Why do you exclude web application development from that? ASP.NET with C# is like an orgasm on tap.


                            Ðavid Wulff The Royal Woofle Museum
                            Audioscrobbler :: flikr

                            Die Freiheit spielt auf allen Geigen

                            S Offline
                            S Offline
                            Stan Shannon
                            wrote on last edited by
                            #65

                            You are correct. I meant windows application development in the generic sense - to include both windows and web programming for microsoft centric solutions. "The Yahoos refused to be tamed."

                            D 1 Reply Last reply
                            0
                            • S Stan Shannon

                              You are correct. I meant windows application development in the generic sense - to include both windows and web programming for microsoft centric solutions. "The Yahoos refused to be tamed."

                              D Offline
                              D Offline
                              David Wulff
                              wrote on last edited by
                              #66

                              Ah, ok.


                              Ðavid Wulff The Royal Woofle Museum
                              Audioscrobbler :: flikr

                              Die Freiheit spielt auf allen Geigen

                              1 Reply Last reply
                              0
                              • K KaRl

                                I would say French, but I may be partial :)


                                Fold With Us! Chaos A.D. Disorder unleashed

                                N Offline
                                N Offline
                                Nemanja Trifunovic
                                wrote on last edited by
                                #67

                                :omg: No, not French, please. My wife tried to teach me (she has a BA in French) but I just couldn't get any of it. No, I prefer Italian - both the language and food :cool:


                                My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.

                                K 1 Reply Last reply
                                0
                                • J jan larsen

                                  Zdeslav Vojkovic wrote: if i can offset a rectangle this way, it should also be possible to do it inside foreach statement. It is :-)

                                  Rectangle[] rectangles = new Rectangle[2];
                                  rectangles[0] = new Rectangle(5, 10, 15, 20);
                                  rectangles[1] = new Rectangle(5, 10, 15, 20);

                                  foreach (Rectangle rc in rectangles)
                                  {
                                  rc.Offset(1,2);
                                  }

                                  rc does not reference a copy of rectangle[n], it references the actual Rectangle instance at the current iterator position. "After all it's just text at the end of the day. - Colin Davies "For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus

                                  Z Offline
                                  Z Offline
                                  Zdeslav Vojkovic
                                  wrote on last edited by
                                  #68

                                  jan larsen wrote: rc does not reference a copy of rectangle[n], it references the actual Rectangle instance at the current iterator position. no, it does not because Rectangle is a value type, so rc inside foreach is the boxed copy. the original instances in rectangles array remain unchanged, you can check in the debuger. you need this to change them: int c = 0; foreach (Rectangle rc in rectangles) { rc.Offset(1,2); rectangles[c] = rc; c++; // no pun intended :) }

                                  J 1 Reply Last reply
                                  0
                                  • N Nemanja Trifunovic

                                    :omg: No, not French, please. My wife tried to teach me (she has a BA in French) but I just couldn't get any of it. No, I prefer Italian - both the language and food :cool:


                                    My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.

                                    K Offline
                                    K Offline
                                    KaRl
                                    wrote on last edited by
                                    #69

                                    Nemanja Trifunovic wrote: I prefer Italian Both languages aren't that far... Nemanja Trifunovic wrote: food Agreed! :drool: I would also mention women, but perhaps your wife is online too? :rolleyes:


                                    Fold With Us! Chaos A.D. Disorder unleashed

                                    N 1 Reply Last reply
                                    0
                                    • K KaRl

                                      Nemanja Trifunovic wrote: I prefer Italian Both languages aren't that far... Nemanja Trifunovic wrote: food Agreed! :drool: I would also mention women, but perhaps your wife is online too? :rolleyes:


                                      Fold With Us! Chaos A.D. Disorder unleashed

                                      N Offline
                                      N Offline
                                      Nemanja Trifunovic
                                      wrote on last edited by
                                      #70

                                      K(arl) wrote: Both languages aren't that far... True, but they feel veery different. Italian is much more "Slavic-friendly" - it has only a couple of sounds that Serbian does not. French sounds like a music to me, but when I tried to actually learn it I got frustrated very quickly. K(arl) wrote: I would also mention women, but perhaps your wife is online too? LOL. I don't think she visits Soapbox. Anyway, Italian women I know are a little bit too loud for my taste.


                                      My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.

                                      1 Reply Last reply
                                      0
                                      • Z Zdeslav Vojkovic

                                        jan larsen wrote: rc does not reference a copy of rectangle[n], it references the actual Rectangle instance at the current iterator position. no, it does not because Rectangle is a value type, so rc inside foreach is the boxed copy. the original instances in rectangles array remain unchanged, you can check in the debuger. you need this to change them: int c = 0; foreach (Rectangle rc in rectangles) { rc.Offset(1,2); rectangles[c] = rc; c++; // no pun intended :) }

                                        J Offline
                                        J Offline
                                        jan larsen
                                        wrote on last edited by
                                        #71

                                        Hmm.., I take you word for it, and I admit that it's a mess that value types can so easily be confused with reference types. Operator new should be limited to creating objects on the heap. But still, I don't find System.Collections inferior to STL, on the contrary. To provide a ready library of collections, is a convenience, not something that really adds to the language itself. And I really don't find that STL is more convenient to use than System.Collections. First of all, STL is quite counter-intuitive to use, and secondly, they failed to provide one of my favorites, a hashtable. I can't remember a single larger project where I didn't use a hashtable, so if I was forced to use C++, I would have to implement my own hashtable. Now, I got a book on STL that states 'and it's easy to do using the existing collection templates'. Right, but the bloody idea was that I should use 'standard' templates as the S and T in STL indicates. "After all it's just text at the end of the day. - Colin Davies "For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus

                                        Z 1 Reply Last reply
                                        0
                                        • J jan larsen

                                          Hmm.., I take you word for it, and I admit that it's a mess that value types can so easily be confused with reference types. Operator new should be limited to creating objects on the heap. But still, I don't find System.Collections inferior to STL, on the contrary. To provide a ready library of collections, is a convenience, not something that really adds to the language itself. And I really don't find that STL is more convenient to use than System.Collections. First of all, STL is quite counter-intuitive to use, and secondly, they failed to provide one of my favorites, a hashtable. I can't remember a single larger project where I didn't use a hashtable, so if I was forced to use C++, I would have to implement my own hashtable. Now, I got a book on STL that states 'and it's easy to do using the existing collection templates'. Right, but the bloody idea was that I should use 'standard' templates as the S and T in STL indicates. "After all it's just text at the end of the day. - Colin Davies "For example, when a VB programmer comes to my house, they may say 'does your pool need cleaning, sir ?' " - Christian Graus

                                          Z Offline
                                          Z Offline
                                          Zdeslav Vojkovic
                                          wrote on last edited by
                                          #72

                                          I still prefer STL because it's type safe and it is much more than just collections, algorithms and IO/streams are equally important as collection classes, and iterators are something that makes the difference between good and bad collection implementation. it seems that microsoft also thinks that STL is superior since the whole use case for generics in 2.0 is to replace current collections, because generics are not quite suitable for other stuff like templates. OTOH, i completely agree that lack of hashtable in STL is serious omission, but many STL implementations have it included (SGI, STLport). vector is an abomination which is really not a vector at all. string implementation could also be much more user friendly, i much prefer CString.

                                          J 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