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

  • Guest, it's time once again for the massively important and exciting FoH Asshat Tournament!



    Go here and give us your nominations!
    Who's been the biggest Asshat in the last year? Give us your worst ones!

LulzSect

Well-Known Memer
<Banned>
2,714
3,282
So my dear chums, it's been a business week since the dream company final round interview. Complete radio silence since, so I'm assuming they went with the other guy. Truthfully, a little relieved I don't have to have the awkward match-my-current-salary-negotiation conversation as I am perfectly happy at my current job. [bcolor=rgb(24, 24, 24)]:p[/bcolor]
 

Noodleface

A Mod Real Quick
38,384
16,303
My last place went radio silence for a month before telling me they were still thinking about it
 
  • 1Like
Reactions: 1 user

LulzSect

Well-Known Memer
<Banned>
2,714
3,282
You know, that thought did cross my mind too as I had been talking to them since early March - but found my gig early April. They did go through 100 resumes, 40 interviews to final 2, (allegedly) so who knows? I'm just thankful & happy I have a gig already that I like.
 

Noodleface

A Mod Real Quick
38,384
16,303
Thanks I'm gonna do a cursory glance tonight. I left work halfway through on pto because I was wasting my fuckin time being there not getting paid.

This is dumb. Real dumb.
 

alavaz

Trakanon Raider
2,003
714
Sounds shitty man. I've always bailed before the contract runs up. Did they tell you how much time they have for you to work on the other project? If it's less than a year, start job hunting. If all else fails and you want to develop shitty .net web apps in NC I can hook it up.
 

Noodleface

A Mod Real Quick
38,384
16,303
They're keeping me on the program and are piece mealing stuff but not at a good rate and I can't get ahold of anyone so I just said fuck it,emailed them, and bounced for the day. I'm a full time employee it's just the way they do stuff here is bothersome
 

LulzSect

Well-Known Memer
<Banned>
2,714
3,282
Sorry to hear Noodle, you seem like a smart dude tho so I'm sure you'll bounce back soon bruh!

Godspeed
 

Noodleface

A Mod Real Quick
38,384
16,303
Thanks I'm just venting, I'm sure tomorrow will be fine.

Just got.tired of emailing both bosses then sitting on Reddit for 3 hours getting no response and unable to charge any of that time. I just said to myself "what the fuck am I even doing here"

Maybe my passive aggressiveness will make someone question what I'm actually doing.
 
  • 1Solidarity
Reactions: 1 user

Dr Neir

Trakanon Raider
832
1,505
ShakyJake, I have plans to dig into React and Angular. If I remember right React is a facebook creation? Currently, I am looking into jTable as a possible replacement for Datatables. Also looking into Select2.

The push to get off farm solutions has many fighting a losing battle at work, while I have been digging into the client side realm with groups watching how things go. They leave me alone to do my thing and watch, each step I go I see that door close on them. My code is a mess, I know I'm going to get pinged on that once I have to play catchup to help them switch over from CF. I generally dont want to see anyone loss their job, trying what I can to get some of them up on the new stuff coming.

No true developer really wants my stuff, I seem to mess things together to get my results. I got puzzled looks last week with I told them I was getting info crosssite/domain without authentication. You thought I was showing off a free energy device! Showed my messing crap and test examples as proof, it was crickets after that.
*shrug....
 

Eidal

Molten Core Raider
2,001
213
Question for those of you familiar with C++... Noodleface Noodleface / T Tenks / @Cad

My assignment is to mess with the Catalog class and get it to work. I have to use a dynamic array. The program takes two .txt files as input arguments, reads them into two catalogs, then merges the two into one catalog. I can only submit catalog.cpp and catalog.h. My program compiles, and it passes some of the autograder tests... but clearly has memory leak issues. I've tried writing the destructor as

{
delete [] books;
}

but it doesn't work. I think this is because my add function is fucked up. It's being passed a book object by value... I guess my questions are... am I on the right track that I need to write the destructor? If so, any advice on how to go about doing it?

Here is the entire program if anyone can help me out with where to go from here, but remember, I can only alter catalog.h and catalog.cpp:

book.cpp
book.h
catalog.cpp
catalog.h
counted.h
counted.cpp
mergeCatalogs.cpp
 

Noodleface

A Mod Real Quick
38,384
16,303
In your add function you're making a new book each time but not freeing up the memory after

Actually you're never using newBook if I'm not mistaken. I can look a little more later that's just something I saw on cursory glance
 

Tenks

Bronze Knight of the Realm
14,163
607
You may also want to consider composing your functions a bit better. Like in the add you need to check to see if it exists and if it does you replace the Book. You could use pre-existing code here from you get method to return a potential book instead of re-writing the for loop inside the add function. Unfortunately your methods return a default of an empty Book object if existence isn't present so it makes things a bit awkward but you could be like:

Code:
Book b = get(book.getId())

if (b.getId() != NULL) {
	//This returned a book with an ID so it found a match
	//Set the shit, it is already in the array
} else {
   //Set the shit
  books[size()] = b;
  theSize++;
}

This could be further enhanced with some private methods like createBookOffBook(Book* returnBook, Book templateBook) so you don't have to constantly write the b.setId(book.getId())
 

Tenks

Bronze Knight of the Realm
14,163
607
Also this is kind of why I hate teaching programming. I get that the teacher is trying to teach some concepts but having this data structure backed by an array for this Catalog class is so mind blowingly dumb it may actually be counter productive. Eventually you'll be introduced to a Map data structure which does all this ID : object mapping which would trivialize this exercise. It almost feels dumb to teach someone to do it the wrong way to eventually be taught the right away.
 

Eidal

Molten Core Raider
2,001
213
T Tenks Noodleface Noodleface

Noodle, you're correct I'm not using the new book... I removed it. I'm still ending up with memory leaks. I can see that it creates its final catalog; my guess is that it isn't deleting the read-in catalogs... Any suggestions?

Is it proper to have an empty deconstructor in this situation? Could it be that I need to write a custom copy constructor?
 

Noodleface

A Mod Real Quick
38,384
16,303
How are you determining you have memory leaks? Is it some analyzer or something?

I would guess it would complain about not having a deconstructor because that stuff would theoretically not get cleaned up

It's been awhile since I've done it but why doesn't delete [] books work? I'm only looking at catalog
 

Eidal

Molten Core Raider
2,001
213


Here is what my output looks like. I submitted last night to the autograder and lost points on a bunch of tests, so I'm assuming memory leaks is the problem. Plus, the output is supposed to be in ID order and I'm not sure why it isn't, lol.
 

Eidal

Molten Core Raider
2,001
213
How are you determining you have memory leaks? Is it some analyzer or something?

I would guess it would complain about not having a deconstructor because that stuff would theoretically not get cleaned up

It's been awhile since I've done it but why doesn't delete [] books work? I'm only looking at catalog

And... no idea why delete [] books doesn't work. Crashes on runtime.