- EXAMPLE - 4 Updates
- Virtual functions - 18 Updates
- why a little subset of C++ is the best - 2 Updates
- Efficacy of on-line code generation - 1 Update
Paavo Helde <myfirstname@osa.pri.ee>: Apr 06 08:14AM +0300 On 6.04.2018 0:57, Robert Wessel wrote: > line lambda? Leaving aside for a moment that any size goals for a > lambda probably ought to be considerably shorter that the usually "50 > line" limit. The line limit comes from the desire to fit the whole function to the screen at the same time. In our typical development environment this is indeed ca 50 lines. Of course there are exceptions, if I have a switch with 200 cases I should better forget about the line limit. I believe in languages with nested functions they have some code clarity rules to place the nested functions in the beginning or in the end of the parent function, so that the parent function code could be seen together on the screen. The problem with lambdas is that they must be placed in the middle of the parent function, disrupting it. So I would say there is a problem with both the 187 line lambda and the 52 line parent function, neither can be fit to the screen (either too long or disjoint). |
Paavo Helde <myfirstname@osa.pri.ee>: Apr 06 08:25AM +0300 On 6.04.2018 0:41, Richard wrote: > magnitude longer than when I practice TDD. In other words, my error > rate has remained rather consistent but the time between creating and > fixing a bug goes from never/months/weeks/days/hours to seconds. His work also involves creating unit tests for everything he writes, so I have assumed he uses TDD at least to some extent (with D=Development, not Design - side note to Mr Flibble). But coming to think of that I'm not so sure any more. Maybe he considers a failing test as a personal insult even if no one else sees it, and does not dare to run the test before he is 100% sure it will succeed. |
Vir Campestris <vir.campestris@invalid.invalid>: Apr 06 08:55PM +0100 On 06/04/2018 06:14, Paavo Helde wrote: > The problem with lambdas is that they must be placed in the middle of > the parent function, disrupting it. They don't _have_ to be. You can declare them elsewhere - though often they can then be an ordinary function instead. Andy |
Cholo Lennon <chololennon@hotmail.com>: Apr 06 05:32PM -0300 On 28/02/18 21:57, JiiPee wrote: > afterLoop: > I googled and this seems to be manys preferably way. I have this often. > How would you break nested loops? Somebody said Substroup said this is ok. Agreed. This is the one of a few situations where I use a goto (I also use it with a switch inside a loop), and IMHO it's the best option if you have some code after the label (otherwise as others have said, use return instead of goto) -- Cholo Lennon Bs.As. ARG |
woodbrian77@gmail.com: Apr 05 05:47PM -0700 On Thursday, April 5, 2018 at 4:47:54 PM UTC-5, Mr Flibble wrote: TGIT -- Thank G-d it's Thursday. |
Ian Collins <ian-news@hotmail.com>: Apr 06 03:07PM +1200 > On Thursday, April 5, 2018 at 4:47:54 PM UTC-5, Mr Flibble wrote: > TGIT -- Thank G-d it's Thursday. TGIF Its Friday here... -- Ian. |
Ian Collins <ian-news@hotmail.com>: Apr 06 03:10PM +1200 On 04/06/2018 09:47 AM, Mr Flibble wrote: >> Driven Development instead of Test Driven Development. The main >> activity is a design activity, not a testing activity. > Bullshit. TDD isn't design driven in the slightest. It isn't? That's news to me. That makes me wonder whether I am a chimp attempting Shakespeare or a programmer designing an application. I'll let you know which once I stop typing. -- Ian |
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Apr 06 01:22PM +0100 On 06/04/2018 04:10, Ian Collins wrote: > That makes me wonder whether I am a chimp attempting Shakespeare or a > programmer designing an application. I'll let you know which once I > stop typing. The fact that you describe yourself as a "programmer" speaks volumes. Programmers are code monkeys who do not think about designing software with enough rigour. Your designs will be toy at best and egregious at worst. I consider myself to be a programmer, an engineer and an architect all wrapped into the title "software developer". Here is a clue for you: TDD is the enemy of encapsulation. Can you work out why? /Flibble -- "Suppose it's all true, and you walk up to the pearly gates, and are confronted by God," Bryne asked on his show The Meaning of Life. "What will Stephen Fry say to him, her, or it?" "I'd say, bone cancer in children? What's that about?" Fry replied. "How dare you? How dare you create a world to which there is such misery that is not our fault. It's not right, it's utterly, utterly evil." "Why should I respect a capricious, mean-minded, stupid God who creates a world that is so full of injustice and pain. That's what I would say." |
Ian Collins <ian-news@hotmail.com>: Apr 06 08:10AM +1200 On 04/06/2018 07:46 AM, Mr Flibble wrote: >> Maybe, so it's a good thing that TDD isn't designing software by fixing >> failing tests. > It is tho. Tests don't design themselves... -- Ian. |
legalize+jeeves@mail.xmission.com (Richard): Apr 05 07:38PM [Please do not mail me a copy of your followup] >On 5.04.2018 20:28, Mr Flibble wrote: >> TDD is cancer. Designing software by fixing failing tests is no way to >> design software. I knew there was a reason you were in my KILL file... -- "The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline> The Terminals Wiki <http://terminals-wiki.org> The Computer Graphics Museum <http://computergraphicsmuseum.org> Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com> |
"Chris M. Thomasson" <invalid_chris_thomasson@invalid.invalid>: Apr 05 12:51PM -0700 On 4/5/2018 10:28 AM, Mr Flibble wrote: >> benefit of SOLID design principles. > TDD is cancer. Designing software by fixing failing tests is no way to > design software. Imvho, fixing a failing test can be beneficial. ;^) |
Cholo Lennon <chololennon@hotmail.com>: Apr 06 10:18AM -0300 On 06/04/18 09:22, Mr Flibble wrote: > wrapped into the title "software developer". > Here is a clue for you: TDD is the enemy of encapsulation. Can you work > out why? I wouldn't say that TDD per se is the enemy, a "testable" artifact is. -- Cholo Lennon Bs.As. ARG |
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Apr 06 07:46AM -0700 On Friday, April 6, 2018 at 8:23:15 AM UTC-4, Mr Flibble wrote: > The fact that you describe yourself as a "programmer"... You will weep bitterly one day at the way you've treated people, Leigh. You will cry your eyes out over the hate and hurt you've slung at God's beautiful creations of people so carelessly. It will eat away at you like nothing you've ever experienced. -- Rick C. Hodgin |
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Apr 06 03:53PM +0100 On 06/04/2018 15:46, Rick C. Hodgin wrote: > You will cry your eyes out over the hate and hurt you've slung at God's > beautiful creations of people so carelessly. It will eat away at you > like nothing you've ever experienced. Speed of light mate. /Flibble -- "Suppose it's all true, and you walk up to the pearly gates, and are confronted by God," Bryne asked on his show The Meaning of Life. "What will Stephen Fry say to him, her, or it?" "I'd say, bone cancer in children? What's that about?" Fry replied. "How dare you? How dare you create a world to which there is such misery that is not our fault. It's not right, it's utterly, utterly evil." "Why should I respect a capricious, mean-minded, stupid God who creates a world that is so full of injustice and pain. That's what I would say." |
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Apr 06 08:07AM -0700 On Friday, April 6, 2018 at 10:53:39 AM UTC-4, Mr Flibble wrote: > > beautiful creations of people so carelessly. It will eat away at you > > like nothing you've ever experienced. > Speed of light mate. You can repeat that statement as often as you like. It doesn't change a single thing. It only exemplifies your stolidness in refusing to accept the possibility that you might be wrong. You are asserting your own personal belief that you're right ahead of the possibility that you might be wrong. You refuse to accept God on the basis of something you may be wrong about. It is your own stubbornness toward purposeful ignorance that will send your soul to Hell, Leigh. Nothing else will do it, because God has given you every opportunity to be saved. You've been warned multiple times, Leigh. There's more out there than you think. And you will perish in eternal Hellfire if you refuse to even consider it. Your eternity is at stake. Do not be flippant. -- Rick C. Hodgin PS -- I heard this once: A BOLD young man came up to a preacher and said, "God doesn't exist." The preacher replies, "Do you know everything, son?" "No." "Do you know half of everything?" "No." "Well, for the sake of argument, let's say you do know half of everything. Is it possible that God exists in the other half you don't know?" |
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Apr 06 04:16PM +0100 On 06/04/2018 16:07, Rick C. Hodgin wrote: > You've been warned multiple times, Leigh. There's more out there than > you think. And you will perish in eternal Hellfire if you refuse to > even consider it. Your eternity is at stake. Do not be flippant. In the trade we call this "projection"; i.e.: You can repeat that statement as often as you like. It doesn't change a single thing. It only exemplifies your stolidness in refusing to accept the possibility that you might be wrong. You are asserting your own personal belief that you're right ahead of the possibility that you might be wrong. You refuse to accept God doesn't exist on the basis of something you may be wrong about. It is your own stubbornness toward purposeful ignorance that will have you die in ignorance, Rick. Nothing else will do it, because we have given you every opportunity to be educated. You've been warned multiple times, Rick. There's more out there than you think. And you will die in ignorance if you refuse to even consider it. Your legacy is at stake. Do not be flippant. /Flibble -- "Suppose it's all true, and you walk up to the pearly gates, and are confronted by God," Bryne asked on his show The Meaning of Life. "What will Stephen Fry say to him, her, or it?" "I'd say, bone cancer in children? What's that about?" Fry replied. "How dare you? How dare you create a world to which there is such misery that is not our fault. It's not right, it's utterly, utterly evil." "Why should I respect a capricious, mean-minded, stupid God who creates a world that is so full of injustice and pain. That's what I would say." |
scott@slp53.sl.home (Scott Lurndal): Apr 06 03:41PM > It only exemplifies your stolidness in refusing to >accept the possibility that you might be wrong. Do you accept the possiblity that you might be wrong? |
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Apr 06 04:47PM +0100 On 06/04/2018 16:41, Scott Lurndal wrote: >> It only exemplifies your stolidness in refusing to >> accept the possibility that you might be wrong. > Do you accept the possiblity that you might be wrong? Unfortunately Rick knows he isn't wrong because he is unable to accept that his born again "experience" can be explained as an instance of psychosis. /Flibble -- "Suppose it's all true, and you walk up to the pearly gates, and are confronted by God," Bryne asked on his show The Meaning of Life. "What will Stephen Fry say to him, her, or it?" "I'd say, bone cancer in children? What's that about?" Fry replied. "How dare you? How dare you create a world to which there is such misery that is not our fault. It's not right, it's utterly, utterly evil." "Why should I respect a capricious, mean-minded, stupid God who creates a world that is so full of injustice and pain. That's what I would say." |
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Apr 06 08:53AM -0700 On Friday, April 6, 2018 at 11:41:19 AM UTC-4, Scott Lurndal wrote: > > It only exemplifies your stolidness in refusing to > >accept the possibility that you might be wrong. > Do you accept the possiblity that you might be wrong? I accept the fact that I was wrong for 35 years of my life. And I, one day I was drawn in such a way that I can't describe it other than to say I was drawn from within undeniably, and I came to a place where I asked Jesus to forgive my sin, and I was changed. That change blew my life away. Everything has been changed since that day. That is my testimony. That is my witness. You see it lived out in my life. It's not because I read a book and then learned how to live out that book's teaching. It's because I've been changed and now that book makes sense to me. It's the same story for everyone who is born again. There are people who profess Christianity, who grew up in the church, who have always attended Bible Study, Sunday School, both Sunday services, and the occasional special services or revivals. But, they've never met God. They are not born again. They are just religious people. To be born again is to be changed, and it is from within that change that the proof of the truth exists. Does an egg becoming a larva becoming a pupa, before going through the metamorphosis into a butterfly know what it means to be a butterfly? It can't. It's not a butterfly. People, knowing the flesh only, cannot understand how something as certain as the proof a born again person possesses can exist, because they do not yet have the spirit which gives them the proof. Blind people cannot walk into a room they've never been in before and know how to navigate it safely. They don't have the eyes to see the path, so they must feel their way around. But if they had eyes, they could see to walk around that chair, avoid that table, turn past the stool there, and voila! Straight through on the first try. The spirit gives us knowledge that our flesh cannot know. It's actually how God draws people to His Son in the first place. It's an irresistible drawing when it comes. When a person seeks the truth, and God knows this, he draws them from within to be able to receive it. That drawing is spirit, and it moves their flesh in ways they cannot understand. They'll actually say, "I don't know why I walked up to the front of the church that day, but I did, and there I asked Jesus to forgive me and got saved." ----- I have been transformed through the regeneration of spiritual life given me by Jesus when I asked forgiveness for my sin. I know where I am going, and whose I am. Had you asked me the day before this happened, I would've told you it was an absolute impossibility for such a change to be possible, because it wasn't something I could know in my flesh. It required the new change. It required the augment to be able to even perceive the changes which would take place. Do not take my word for it. Go to a Bible-believing, Bible-studying Christian church and ask to speak to born again saints of God, and ask them to give you their testimony. Go to several churches un- related to one another, and ask of many people. Inquire of dozens of souls and correlate their testimonies and witnesses. You will find the common theme among people who do not know each other, have never met one another, have no reason to purport something for any reason other than it's the truth of what happened to them. -- Rick C. Hodgin |
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Apr 06 09:22AM -0700 On Friday, April 6, 2018 at 11:53:36 AM UTC-4, Rick C. Hodgin wrote: > You will find the common theme among people who do not know each > other, have never met one another, have no reason to purport something > for any reason other than it's the truth of what happened to them. One particular man at my church gave his testimony. He was not a church fella. He got married to a woman who shared his non-beliefs. They lived for many years that way. Drinking. Partying. Enjoying their life to the fullest. One day his wife got saved and began to change. He didn't. He kept on as he had been, and had affairs, sought to please himself. His wife had been ill a couple weeks and hadn't been to church, and a deacon from the church stopped by to see how she was. The man saw the deacon walking up the driveway and went to the door to give him a piece of his mind, and to tell him to get off his property and to stop pestering him and not come back. But the deacon asked him a simple question, which led to another, which led to another. And whereas that man went to the door fuming and ready to all but kick the person literally off his property, it wound up that within a couple hours he got saved that night, and his life has been forever changed. That's been 20-odd years ago. He's now a guest minister at the church. He carries a Bible around with him. He guides people in the teachings of the Lord. His life's been completely changed, and he has a living witness testimony. He still fights the old man, just as I do, just as all Christians do. Our flesh doesn't change when we get saved. It's still as ornery and pleasure/self-seeking as always, but because we have a new spirit, and because God's Holy Spirit communes with our spirit and guides us from within, we are able to overcome our flesh. But it's like keeping a garden. You have to give it CONSTANT attention otherwise the weeds will overrun, which in our case is the flesh will overrun and draw us away from God and the things He calls us to. It's why God calls us to obey the things He's commanded us to, because His guidance protects and guards us from the enemy and the way that enemy uses our flesh against us, to get us to do what he wants, rather than what God would have us do. God does not master over us. He calls us to set Him up in our life as our master, because in Him are all profitable things. But He never compels a person. He calls a person, and warns them of the consequences, and lets each person dictate to Him, to the angels, to all of creation, who they are and what they choose to do when they have the free will He's given us here. Our choices reveal who we are, and all our choices are being recorded in books in Heaven for our day of judgment. Even secret things. Even those things we no one else saw or knew ... God saw them, and they are written down in exquisite detail, without error or distortion. ----- God calls out to all people. He trumpets His message everywhere. You can't drive through a town in America and not see many churches. You can't spend too many hours in a place and not have some influence of His presence seen or observed actively, from a Christian cross pendant, to a nativity scene, to someone having a Bible, to there being a church, to the homeless shelter with a cross signifying why they exist, etc. God is everywhere. And His call is heard plainly by everyone. The reason people do not receive it is because they want sin more than truth. They want to follow self-interests rather than God's interests. They want things here and now on their terms, rather than to be patient and wait for God to give them on His terms. So many people are going to wake up from death and be stunned and amazed at how much more real the life there is than here. They're going to walk in their new bodies, be fully aware of their new abilities, and about that same time they come to this realization, the fact that their soul is damned is going to register within their mind, and they are going to weep and gnash their teeth. But God has reserved strong angels to be able to take hold of that person, and drag them kicking and screaming to the lake of fire, and toss them in despite their most sincere and earnest desires to not go there. So many people will die lost ... yet none of them have to because what Jesus did on that cross is enough to cover EVERYONE's sin. The only people going to Hell are those who rejected Him throughout the entirety of their life repeatedly by conscious choice at every last occasion. They sent themselves to Hell because they wanted it all, and they wanted it now, and they did not give any concern to eternity. We will go on after we leave this world a lot longer than we were in this world. George Washington is still dead 200+ years later. He only lived 67 years, same age as my mother when she died. ----- Consider your future. Consider eternity. Think on God, and ask His Son Jesus to forgive your sin and give you eternal life. He will, if you ask Him with sincerity. -- Rick C. Hodgin |
"Öö Tiib" <ootiib@hot.ee>: Apr 06 09:27AM -0700 On Friday, 6 April 2018 15:23:15 UTC+3, Mr Flibble wrote: > worst. > I consider myself to be a programmer, an engineer and an architect all > wrapped into the title "software developer". Your argument is based on alleged meaning of sequence of letters. Such argument is usually void. Meanings of words tend to drift heavily in time and location. For example it may be that in New Zealand the "farms of code monkeys" where you have worked do not exist at all. Then that distinct professional position and so meaning of word "programmer" does not also exist there. > Here is a clue for you: TDD is the enemy of encapsulation. Can you work > out why? It is because with most programming languages it pushes in us to expose implementation details for simpler testing. In C++ we of course have legitimate ways to access private members so to C++ it does not apply. |
legalize+jeeves@mail.xmission.com (Richard): Apr 06 05:13PM [Please do not mail me a copy of your followup] Ian Collins <ian-news@hotmail.com> spake the secret code >>> Driven Development instead of Test Driven Development. The main >>> activity is a design activity, not a testing activity. >> Bullshit. TDD isn't design driven in the slightest. If you haven't experienced TDD as a design activity, then IMO you haven't been doing it right. Everyone I know that embraces TDD comes away with this experience. Seriously. >It isn't? That's news to me. Me too as well as everyone I've ever talked to that embraced TDD fully. -- "The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline> The Terminals Wiki <http://terminals-wiki.org> The Computer Graphics Museum <http://computergraphicsmuseum.org> Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com> |
bitrex <bitrex@de.lete.earthlink.net>: Apr 05 10:06PM -0400 >>> /Flibble >> "C++" where it's just like a bunch of straight C code organized into > Boo for foul language. It's tucking frash!! |
woodbrian77@gmail.com: Apr 05 07:35PM -0700 On Thursday, April 5, 2018 at 9:07:11 PM UTC-5, bitrex wrote: > >> "C++" where it's just like a bunch of straight C code organized into > > Boo for foul language. > It's tucking frash!! Focus pocus: https://github.com/Ebenezer-group/onwards |
woodbrian77@gmail.com: Apr 05 07:00PM -0700 On Thursday, April 5, 2018 at 12:06:59 AM UTC-5, Tim Rentsch wrote: > to get that with a -I, but that led to some other errors at > which I point I basically gave up. Sorry but that's the > best I can do for you at present. This sounds similar to a problem Ian had: https://groups.google.com/forum/#!topic/comp.lang.c++/Ym2SzLgobFA . It turned out to be a clang problem. Brian Ebenezer Enterprises http://webEbenezer.net |
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page. To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com. |
No comments:
Post a Comment