On 1/24/2014 10:53 AM, Rick C. Hodgin wrote:
> On Friday, January 24, 2014 9:31:40 AM UTC-5, Victor Bazarov wrote:
>> On 1/24/2014 8:49 AM, Rick C. Hodgin wrote:
>>> [..] The actual implementation is about 100 lines, which are source
>>> code lines from another computer language. The lines vary in length from
>>> a few characters up to over 80, the average probably being 15. I had
>>> decided against using the [85] so as to not waste memory.
>>> [..]
>>
>> Just curious, in what world a few hundred bytes is a waste of memory
>> worthy of consideration? Are you targetting an embedded system or a
>> legacy computer with 640K memory (last century technology)? Don't get
>> me wrong, please, it's just that I have often enough seen real
>> (significant) time wasted on finding a solution to save a few
>> microseconds or a few [hundred] bytes, that usually in the end cannot be
>> accounted for. I can understand when students do that in the course of
>> their studies, but I don't understand the need for it when creating a
>> product for others to consume.
>
> I'm getting a lot of flack over this from many people on many lists. It's
> like ... if I don't do it the way everybody else does then I'm the one who's
> wrong. And because I look toward things which are important to me, and
> because I choose to not waste memory where it doesn't need to be wasted,
> while also simplifying the source code implementation of this task, that
> it is somehow a bad choice.
No, not a bad choice, by any means IMO. Just an uncommon one.
Everybody has their priorities. Advice we *give* in part serves as
affirmation of our being right (or at least in the right area). If
something is recommended against our convictions, we have a choice -
either to change our convictions or ignore the advice. And we make
those choices constantly. Such is life.
> FWIW, I had a working solution after getting the first access violation error
> in the Visual Studio debugger and realizing why I got it. It took me a few
> seconds to realize what was happening, even though it was unexpected. But,
> the whole issue was one of those things I wanted to better understand. It
> seemed (and still seems) a very silly imposition, that string literals
> created in that way (as data pointed to in a read-write array) should always
> be read-only unless they are explicitly cast through such a clunky syntax as
> compound literals, a feature that not all C compilers even support.
I hope you don't have to learn the hard way why such a silly imposition
exists.
> It was a mental exercise as much as anything else, a pursuit of a question,
> to satiate curiosity. I wound up not using the solution, but just
> discovering and testing it out. I learned many things in the process, not
> the least of which was how to integrate GCC and Visual C++ together in
> harmony. That alone was worth all the time I spent on it.
No argument here. Even if we don't gain anything, we always gain
experience.
>> I do not respond to top-posted replies, please don't ask
>
> Just curious, in what world would you deny giving help to someone in need
> simply because they top-posted? I had someone in 2011 or 2012 on the
> Trisquel mailing list tell me that I was a top poster and that he
> wasn't going to help me. I didn't even know what he was talking about
> and had to ask what that phrase "top poster" meant. When I found out
> I was floored that such a ridiculous barrier exists between the
> help-seekers, and the knowledge-holders on a forum like this.
It's my help to give, I can and may deny it on any basis I choose.
Would you help somebody who speaks rudely to you in the street or would
you simply turn away and keep minding your own business? In such a case
rudeness is in the eye of the beholder, of course. Similarly, I
perceive top-posting as rudeness and choose not to involve myself in a
message thread like that.
Incidentally, a way to have the last word in an argument with me *here*
is to top-post.
> It really taught me something ... a concept that is so amazingly important
> to only a select few, those who desire to divide people into groups of
> "them" (top posters) and "us" (the sensible lot). Seeing your tagline here
> in this forum I was again floored. I almost wrote something to you about
> it yesterday.
>
> Just so you know ... there's a better way, Victor. It's called "love".
Yes. So, if you care for *my* reply, now that you know that it is
important to *me*, and you can't get it if you top-post, you *might*
want to consider not top-post. Get it?
Practice what you preach.
And try not to preach.
> Tear down the barriers and come out and help people in love. And if you
> want to learn the fulness of love ... He is the man, named Jesus, who is
> the Christ, the only Savior of mankind.
<sigh>
V
--