IT/Software career thread: Invert binary trees for dollars.

moontayle

Golden Squire
4,302
165
Student does as teacher teaches.

Like I said before his "teaching" is just linking toTutorials for Codingand that is all. He has changed his grading criteria 3 times now in an 8 week class citing that the default grading system put in place was wrong and that he didn't have time to fix it before class ... an online class. My question I asked in week 2 about the homework that was asked on Wednesday for homework due on Sunday was answered on Monday and I was docked points but then he "graciously" allowed me to redo it.

The "teacher" is merely there to put checks in boxes at this point.

It's also a single comment made here on a forum and not there in the class discussion from frustration where a teacher says something stupid about homework that fulfills his grading requirement 100%. Why would you give somebody 100% on an assignment and then explain to them they could have done less work to get the same result as if going above the minimum was something negative?
Wife has had to deal with that in her classes. Stupid shit like asking for an opinion then following it up by asking for the source.
 

khalid

Unelected Mod
14,071
6,775
Teaching a subject doesn't involve just telling students how to do it. It is also about how to do it correctly so that later on you don't run into problems.He gave you a 100%, but then included notes on how you should have done it. That seems to be generous, not something you should complain about.

For example, if asked for a code fragment to test if a character is a digit and you responded with...

if (c == '1' || c == '2' || ....)

that would be technically correct and possibly give you full points if written out fully, but a good professor should most definitely tell you the better ways to write that. If they gave you full points anyway (even when doing it in a horribly inefficient way), you should be thankful.


edit: Anyway, I can understand if you are just ranting to rant, just trying to give you this guy's point of view. He might very well be a dick and you weren't clear enough in your explanation of what he did.
 

a_skeleton_03

<Banned>
29,948
29,763
edit: Anyway, I can understand if you are just ranting to rant, just trying to give you this guy's point of view. He might very well be a dick and you weren't clear enough in your explanation of what he did.
Oh yeah was just ranting to rant initially. I am frustrated by how worthless he is but in no way is he a dick just completely ineffective.
 

Lendarios

Trump's Staff
<Gold Donor>
19,360
-17,424
a_skeleton_03 is shown a better way of doing something, while at the same time getting full credit for his work...
blames worthless teacher...
cant explain that.
 

a_skeleton_03

<Banned>
29,948
29,763
a_skeleton_03 is shown a better way of doing something, while at the same time getting full credit for his work...
blames worthless teacher...
cant explain that.
Shown? He didn't show me anything. You guys here have taught me 10x more than he ever has. What did he show me in that statement? He told me that technically I could have done it another way. Technically I could have done it probably 10 other ways and still met the grading requirements. Why didn't he list all the other ways? Why didn't he give a super small example of what he is talking about just in case I didn't even understand while loops and that's why I chose the way I did. At the bottom of every homework is a few sentences we write stating what we learned and what issues we had. I wrote out what issues I had and my concerns and why I chose the method I did. He didn't address a single one of those, instead he drops a "technically" one liner.

It's a non issue though, it was a little rant and doesn't need to be discussed as a way for you guys to point out how you think I am a shitty student in a class that I am hating and actively struggling in but putting 100% effort into. I get it, you don't like me and have come from all over the forum to get your one liner in.
 

Tenks

Bronze Knight of the Realm
14,163
607
You can "technically" almost always change between for and while loops. Sometimes a while will perform the required logic cleaner than a for and vice versa but rarely will you *have* to write it one way or another.
 

Cad

scientia potentia est
<Bronze Donator>
25,338
48,507
You could have done it with while loops and it would possibly be more flexible but it'd also be more bug-prone since you'd have to have an escape condition to exit the program. Since he didn't specify either way and didn't take any points off, I'd take it as constructive criticism and move on.
 

Lendarios

Trump's Staff
<Gold Donor>
19,360
-17,424
It's a non issue though, it was a little rant and doesn't need to be discussed as a way for you guys to point out how you think I am a shitty student in a class that I am hating and actively struggling in but putting 100% effort into. I get it, you don't like me and have come from all over the forum to get your one liner in.
Relax buddy, I have been posting on this thread and helping you and others, for a while now. You sure sound like a prick, ill let others help you.
 

Khane

Got something right about marriage
20,314
13,959
You could have done it with while loops and it would possibly be more flexible but it'd also be more bug-prone since you'd have to have an escape condition to exit the program. Since he didn't specify either way and didn't take any points off, I'd take it as constructive criticism and move on.
Every loop needs an escape condition.
 

Cad

scientia potentia est
<Bronze Donator>
25,338
48,507
Every loop needs an escape condition.
Yea but I think what the prof meant was "enter -1 to exit" or something like that then he breaks out of the while based on that. Whereas a for loop has a predefined not user controlled exit.
 

Deathwing

<Bronze Donator>
16,717
7,731
for(int i = 0; i > -1; i++)

tongue.png


Although, technically that loop will still exit when i overflows.
 

a_skeleton_03

<Banned>
29,948
29,763
Right, I didn't feel comfortable planning an exit route that wasn't what I did with defining how many times I looped.

The way I understand it you have two major methods:

1.) You define how many times you are going to loop at the beginning of the loop
2.) You loop forever until given a manual exit.

Does that sound right? I felt that the manual exit was clunky and a little out of my control. I would have to define it (possible bug there) and then also they could screw up the exit (possible bug there) meaning I would need exits to the exit with default erros (even more possible bugs). All of this is why I didn't define an error exit for E, G-Z, and 0-9 etc.

I don't know if I expressed it well but I just kind of don't get a lot of these concepts and don't have a mind or gift for coding. It just doesn't come to me very naturally at all. That 61 line code up there took me several rewrites, help from you guys here, help from probably 6 other guys online, cut and pasting from a forum with a similar project, and eventually a "fuck it, just do it live" submission on the last day I could. Then I get a "technically" response and nothing talking about the questions and concerns I did bring up. I was annoyed a bit.
 

Noodleface

A Mod Real Quick
38,244
15,027
I don't think any looping is inherently safer than any other - but if we're talking new programmers, I think a while loop is the most dangerous. And dangerous is used loosely because it's just some array they're probably iterating over and not some critical system.

I had to fix a bug in some code where a guy was indexing an array out of bounds, like specifically called array[10] when he defined the array as 10 in length. So the shit happens in the real world too.

Do you guys prefer any keyboards for programming? I like my mac's keyboard, but it isn't really good to program on. I feel like the keys are very light-touch, so it's easy for me to mis-type stuff. They gave me a microsoft USB keyboard, but it's generic keyboard #13 or whatever.

Was thinking about picking up a Corsair mechanical, but will people at the office hate me? It's quiet as shit in here. If my chair creaks I feel 1000 eyes on me.


Right, I didn't feel comfortable planning an exit route that wasn't what I did with defining how many times I looped.

The way I understand it you have two major methods:

1.) You define how many times you are going to loop at the beginning of the loop
2.) You loop forever until given a manual exit.

Does that sound right? I felt that the manual exit was clunky and a little out of my control. I would have to define it (possible bug there) and then also they could screw up the exit (possible bug there) meaning I would need exits to the exit with default erros (even more possible bugs). All of this is why I didn't define an error exit for E, G-Z, and 0-9 etc.

I don't know if I expressed it well but I just kind of don't get a lot of these concepts and don't have a mind or gift for coding. It just doesn't come to me very naturally at all. That 61 line code up there took me several rewrites, help from you guys here, help from probably 6 other guys online, cut and pasting from a forum with a similar project, and eventually a "fuck it, just do it live" submission on the last day I could. Then I get a "technically" response and nothing talking about the questions and concerns I did bring up. I was annoyed a bit.
Don't worry about not getting it or having a mind for coding. In the beginning it's really like learning a whole new language with all sorts of new concepts. Even for us in the biz, I'm sure it didn't come easy. Things like looping, memory management, etc. don't feel natural when you first learn them. On top of that, it's difficult for a new person to really understand the big picture and know all the common pitfalls. You've heard us talking about out of bound arrays and stuff, but I guarantee you when you first start using arrays that will be the first thing you mess up.

When you get to pointers, may god have mercy on your soul.

Just approach it with an open mind, you'll look back at your early coding samples and laugh at how easy it is. I remember when I first started C++... awful.
 

Deathwing

<Bronze Donator>
16,717
7,731
From what I understand about mechanicals, the majority of the sound is generated from improper usage. Bottoming out the keystroke, plastic on plastic violence. Some sound comes from the switch clicking, but you can dampen that by buying browns(I think that's the right color). I've been thinking about buying a mechanical keyboard too, as I've gotten older, I've been unhappy with how "sloppy" my typing has gotten and I'm hoping mechanicals might fix that.
 

a_skeleton_03

<Banned>
29,948
29,763
I do think I have some kind of memory leak in there. It takes a bit too long computing for how simple it is.

You've heard us talking about out of bound arrays and stuff, but I guarantee you when you first start using arrays that will be the first thing you mess up.

Just approach it with an open mind, you'll look back at your early coding samples and laugh at how easy it is. I remember when I first started C++... awful.
Yeah I went over some arrays research when doing this before I realized I needed nested statements in order to fulfill his requirement. They look pretty simple to me because I am just looking at them as a spreadsheet starting from 0 both in length and width but I am sure I will screw my first one up.
 

Cad

scientia potentia est
<Bronze Donator>
25,338
48,507
Do you guys prefer any keyboards for programming? I like my mac's keyboard, but it isn't really good to program on. I feel like the keys are very light-touch, so it's easy for me to mis-type stuff. They gave me a microsoft USB keyboard, but it's generic keyboard #13 or whatever.
I find the mouse makes a much bigger difference for me because it's not like you're typing out paragraphs on end while programming. I use a Logitech MX Master mouse. Keyboard is kinda whatever.
 

Deathwing

<Bronze Donator>
16,717
7,731
You don't have a memory leak. Nowhere in your code do you instantiate anything on the heap.

Memory leaks that cause performance issues are not leaks and more like giant gaping holes. And quite shortly after causing performance issues, the program will crash.


Unless you're referring to code you haven't posted yet...