1
General / Re: Bug in string concatenation?
« Last post by Thaddy on Today at 11:57:47 am »It did not occur to you that concatinating shortstrings beyond 255 is silly? or another word starting with S...
You must, otherwise you wouldn't be making unsupported, implicit and explicit, statements about OOP being better than pure procedural programming.440bx I’m not sure what you mean by this. I’ve offered you the opportunity to tell everyone how you would build a house or make a cake without using objects . I was genuinely interested in how it would be done. Because you are the one claiming that it’s possible to do anything without using objects.
The reason you should do it is to learn and to validate (or in this case falsify) your unfounded beliefs.440bx it almost seems as though you are asking for help to transform your project into an oop program. I can’t even start to advise you on this without understanding what it does. Yes of course it would be a good learning experience to redo your program with oop but unfortunately it doesn’t take priority over my own project. I still would like to help if you’re serious. Are you able to tell me what the program does and what sorts of data it has?
A program to make a cake ??? when I make a cake I follow a recipe. Likely even A.I can do that (which is a different thing than coming up with a recipe for a new, original cake.)Well that’s presumptuous..A recipe is a cheat sheet for someone who already knows how to cook. What if the person making the cake is a child who doesn’t know how to read and has no knowledge of how to cook?
it seems that some people, you among them, have conveniently forgotten that very complex software has been written decades before OOP was even a hallucination in someone's mind.I once was a non oop programmer just like you before I discovered objects. Even if oop programming techniques were created later, the world has always been full of objects.The characteristics of objects and their relationships to each other and their behavior predate computing.
A.I is having the impact it's having because it promotes intellectual laziness while satisfying the addiction for increased productivity whether perceived or real.I agree with you on that
I see some commonality between A.I and OOP. Maybe A.I is just OOP++I doubt it. Oop doesn’t work well with copy paste programmers it’s too complicated.
But here, instead of AnsiString(CP_NONE), we get AnsiString(CP_UTF8). It seems that the RawByteString type simply doesn't work properly.
The resulting string has code page CP_UTF8.And this is clearly seen:
RawByteString is a single-byte character string which does not have any codepage associated with it.
. . .
the codepage of the destination is simply set to the codepage of the rawbytestring
It's beyond my understanding why String <=> WideString conversion happens in some situations, but not in others:
In response to the Original Post - this is the reason why developers keep journals. It provides a way to problem solve in a lateral way, especially when written in a conversation-style form (a monologue for example).
I keep occasional journals for some of my longer-running projects, and yes it takes effort, practice and time, but consider this fact: programming is not exclusively limited to typing in code
p.s. Do a search for "why you should keep a developer journal"
A.I does not seem to have any guard rails of any kind. That is not a good thing.Which is probably the reason why experts systems seem to be fading. To develop, setup and maintain a serious expert system there is need to invest in knowledge and time.