119 reputation
2
bio website
location Massachusetts
age 28
visits member for 3 years, 1 month
seen Jan 16 '12 at 20:18

Nov
2
comment Is it best to minimize using pointers in C?
Arrays are pointers. You are simply debating syntax. The fact of the matter is that an array and a pointer are substantially the same thing, yet there are certain differences in how they are created. double a[4]; statically allocates memory along with creating a pointer to that memory. double *a = (double*)malloc(4*sizeof(double)); dynamically allocates memory along with creating a pointer to that memory. In both cases, a is a pointer. The only difference is where the memory is. You can use a[n] in either case, or *(a+n) in either case, and it will work, because they're both pointers.
Aug
6
answered Responding to interview questions involving unknown algorithms
Aug
4
comment Why does the assignment operator assign to the left-hand side?
@Alex Considering that it harkens from the 1960s, I'd say that's pretty early.
Aug
4
comment Which things instantly ring alarm bells when looking at code?
I had a programming project where in order for it to be portable (to run it on my home Windows machine but also on my schools' Macs), since it used OpenGL libraries which differed between the two machines, I had to make heavy use of defines on library function names so that I didn't have to basically write two different versions of the program. Ultimately, it meant I had warnings that I couldn't get rid of. But normally, I'd say yes, I agree with you. At work, we always have 'all warnings as errors' turned on, and that is good practice.
Aug
4
comment Design flaws and dealing with humiliation from it
I really like this comment. I've made a few mistakes in my workplace in the past, and while I'm not perfect, I did make a point to learn from them. I went up to my coworker (far senior in this field than I am) and asked what I could do better and she gave me some good pointers. I like to think I'm doing better, now. While it did hurt to know that I messed up, and I felt humiliation, it passes eventually. This is encouraging to me because it tells me I did the right thing, and that this is something that will happen. Especially since this is actually my first job. :)
Aug
2
comment My Dad is impatient with the pace of my learning to program. What do I do?
Great answer! I would also add, as far as zoning in on a book, I taught myself much of my programming knowledge through textbooks and help files (no internet resource available to me). I don't know what videos would provide, but the thing that really helped me was to recode the examples in the book and then put my own spin on them. By tweaking already working code, it helped me get an idea about what's going on. Also, if your text has programming exercises, do those! Read the chapter through and then spend most of your time on them, using the book as a reference, instead of studying the text.
Jul
5
awarded  Supporter
Jun
1
comment Is it ethical to teach teens about software viruses?
Sorry, but I don't understand what you're getting at. Can you reword it? If what I think you're saying is correct, you're a little off. He actually volunteered to teach a computer club at the school, so this is relatively long-term. Also, as one who has been taught malicious code in programming courses, I can attest that they are always taught with "DO NOT RUN THIS CODE" in big red letters, and also used as examples of how just a few lines of code can run amok. Also, his proposal of teaching about environment path precedence, while a potential exploit, is a common programmer's error as well.
May
31
awarded  Teacher
May
31
answered Is it ethical to teach teens about software viruses?