Two Plus Two Publishing LLC
Two Plus Two Publishing LLC
 

Go Back   Two Plus Two Poker Forums > >

Notices

Programming Discussions about computer programming

Reply
 
Thread Tools Display Modes
Old 02-16-2012, 07:14 PM   #2476
kyleb
Carpal \'Tunnel
 
kyleb's Avatar
 
Join Date: Sep 2004
Location: Seattle
Posts: 39,019
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Just canceled my AT&T Voice + Data service ($90ish/month) and went with T-Mobile Mobile Broadband ($175 for device + $30/month for 2 GB) and Google Voice (free VoIP calling). Using Talkatone on my iPhone 3GS to make calls over GV; quality is perfectly fine.

Got these speeds from T-Mobile HSPA+ or 4G LTE whichever you prefer:



mfw:

kyleb is offline   Reply With Quote
Old 02-16-2012, 07:18 PM   #2477
bjordan
adept
 
bjordan's Avatar
 
Join Date: Nov 2008
Location: Anticipating a raise
Posts: 1,160
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by kyleb View Post
Just canceled my AT&T Voice + Data service ($90ish/month) and went with T-Mobile Mobile Broadband ($175 for device + $30/month for 2 GB) and Google Voice (free VoIP calling). Using Talkatone on my iPhone 3GS to make calls over GV; quality is perfectly fine.
Awesome and LMFAO at that gif. I've been thikning about doing exactly this but with my Evo. I've considered something like Republic Wireless but I don't want to buy a new device.
bjordan is offline   Reply With Quote
Old 02-16-2012, 07:19 PM   #2478
kyleb
Carpal \'Tunnel
 
kyleb's Avatar
 
Join Date: Sep 2004
Location: Seattle
Posts: 39,019
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

I'm gonna write a blog post about the transition soon; I'll link it here.
kyleb is offline   Reply With Quote
Old 02-16-2012, 08:18 PM   #2479
MrWooster
veteran
 
MrWooster's Avatar
 
Join Date: Mar 2007
Location: Shoving AK
Posts: 2,984
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

For some reason, in Canada, upload speeds are as good as download speeds....

MrWooster is offline   Reply With Quote
Old 02-16-2012, 08:22 PM   #2480
bjordan
adept
 
bjordan's Avatar
 
Join Date: Nov 2008
Location: Anticipating a raise
Posts: 1,160
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by kyleb View Post
I'm gonna write a blog post about the transition soon; I'll link it here.
Awesome, I look forward to it. If you remember, PM it to me also if you don't mind. I don't always go back several pages to catch up on this thread.
bjordan is offline   Reply With Quote
Old 02-16-2012, 08:50 PM   #2481
tyler_cracker
Carpal \'Tunnel
 
tyler_cracker's Avatar
 
Join Date: Apr 2005
Location: Shallow End OTKP
Posts: 15,824
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by Larry Legend View Post
Tyler,

From my perspective, there are a couple ways to handle it. I think the best way is to be honest and open with all the companies. Tell them you are interviewing at other companies in the area for that weekend, then figure out what it will cost for your arrangements (2 flights, 2 nights hotel, etc.) and see if they are willing to each go 1/3 for the costs.
Quote:
Originally Posted by Larry Legend View Post
That is, if you can 100% lock in the interviews.. If any of them are last minute and wouldn't make sense to give them the 1/3 travel option, you should probably just tell the companies that are locked in what your arrangements are and see if they will do 1/2, etc.

You can also just tell one of the companies that you plan on leaving and arriving on a certain day and they probably wont question it.
larry,

thanks for the comments. this is basically what i was thinking -- just do it the way that makes sense and seems fairest. no one has popped in to say, "the canonical way to do it is X," so it seems there's no obvious rule of thumb i wasn't aware of.

Quote:
Originally Posted by kyleb View Post
**** yeah, laid off. Time to collect unemployment and finish my book, as well as some independent projects I've been slacking on.
congrats! (and p.s. who doesn't love an industry where you get laid off and are excited about it.)

Quote:
Originally Posted by Jeff_B View Post
We have also Class SalesOrder . A SalesOrder has 15 items on it.
always 15?

Quote:
Is it standard to create an array of instances of the class? Could this become too bulky / wasteful memory wise? Is there a better way?

Example
CArray<ItemClass, ItemClass&> SaleItems;
are you worried about the overhead of sticking them in an array? what else could you possibly use? this seems fine to me.

Quote:
Originally Posted by sylar View Post
lolmemory.
i was going to say something snarky but jeff did say "c++" and then he said "database save / reads" so i'm on board with lolmemory insofar as it's a pointer to lolc++forCRUDapplications.

Quote:
Originally Posted by Jeff_B View Post
LOL Code review. I am most experienced guy here
the point of a code review is to get a second set of eyes on your code. whether those eyes are more or less experienced than you barely even enters the equation.
tyler_cracker is offline   Reply With Quote
Old 02-16-2012, 08:51 PM   #2482
tyler_cracker
Carpal \'Tunnel
 
tyler_cracker's Avatar
 
Join Date: Apr 2005
Location: Shallow End OTKP
Posts: 15,824
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

oh and let me be the first to add LOLMFC.
tyler_cracker is offline   Reply With Quote
Old 02-16-2012, 09:17 PM   #2483
Jeff_B
Pooh-Bah
 
Jeff_B's Avatar
 
Join Date: Jul 2005
Location: I need Patience NOW
Posts: 3,919
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by tyler_cracker View Post
oh and let me be the first to add LOLMFC.
I dont think mfc is that horrible but I dont have any experience developing larger applications in another language... Just small school projects.

That said, I ended up storing all the objects in a CArray. Well I tried to.
When I did that i kept getting the error i posted above about not being able to access private members.

The reason for this was I had

Code:
Class myclass
{
nonrelevantmemberfunctions();
CArray myarray;
}
When I tried to add myclass to my array of classes it was trying to do a copy of the CArray myarray object.

After some playing around I found that
Code:
CArray array1;
CArray array2;

array1 = array2; //This causes the same error -> no copy constructor
so basically I have to write a copy constructor for myclass that uses

Code:
	array2.RemoveAll();

	for (int i=0; i < array1.GetCount(); i++)
		array2.Add(array1.GetAt(i));
Which seems like it will work when I implement it in all my code.
I guess whenever I write a class now I know I need the copy constructor if I have dynamic memory, makes sense mostly.

Though it does seem odd they CArrays don't have the ability to copy by default.


Yeah, I do like the idea of having other people look at code at least to see if they can understand it. I really wish we were a bigger company so I can learn and grow more but I actually do like my job.
Jeff_B is offline   Reply With Quote
Old 02-16-2012, 09:23 PM   #2484
tyler_cracker
Carpal \'Tunnel
 
tyler_cracker's Avatar
 
Join Date: Apr 2005
Location: Shallow End OTKP
Posts: 15,824
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

well, do you expect the copy constructor to give you a shallow copy of the array or a deep copy? perhaps this ambiguity is why CArray doesn't provide a copy constructor by default? i'm just guessing, though.

if you're serious about professional c++ development, read this book:
http://www.amazon.com/Effective-Spec.../dp/0321334876

and mfc sucks for a whole pile of reasons but whatever floats your boat and/or keeps the paychecks coming is fine with me!

Last edited by tyler_cracker; 02-16-2012 at 09:25 PM. Reason: also a colleague of mine suggested this book should instead be subtitled "55 Reasons Not To Use C++"
tyler_cracker is offline   Reply With Quote
Old 02-16-2012, 09:45 PM   #2485
Jeff_B
Pooh-Bah
 
Jeff_B's Avatar
 
Join Date: Jul 2005
Location: I need Patience NOW
Posts: 3,919
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Tyler,
Well it keeps the paychecks coming. My situation was he this guy needs to retire and I took over his solo project and its expanding and evolving.

His code basically consisted of writing one function and copying it all over and never deleting anything that was not used EVER todays project started with me deleted 2000+ lines of code. The code writes and reads from the UI consistently and completely tied to current screens we have. Its a huge mess and I curse every day but I know what not to do now with a large project I suppose.

Just curious what do you not like about MFC?

Once I get this project to the point where all our industry specific numbers are correct, we are switch UIs which means start from scratch and I will talk my boss into using most likely a .NET language

Btw anyone know of a decent way to get intellisense not to be a steaming pile of crap and or a replacement?
Creating a copy constructor should be myclass. and pick first from list not going and having to read the definition to remember what I called all the member variables when I wrote the class 3 months ago

Last edited by Jeff_B; 02-16-2012 at 09:58 PM.
Jeff_B is offline   Reply With Quote
Old 02-16-2012, 11:23 PM   #2486
tyler_cracker
Carpal \'Tunnel
 
tyler_cracker's Avatar
 
Join Date: Apr 2005
Location: Shallow End OTKP
Posts: 15,824
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

i haven't worked with it directly but it's windows-only, using it pulls in a giant mass of headers and other junk, and there are many other better-designed frameworks for doing the things mfc does.

the guys at work like visual assist x. the best tip i have about intellisense is that you can, in fact, turn it off -- by renaming the library that implements it.

edit: oh, and you can add this book to your must-read list as well:
http://www.amazon.com/Working-Effect.../dp/0131177052

that applies to everyone serious about professional software development imo.
tyler_cracker is offline   Reply With Quote
Old 02-17-2012, 09:24 AM   #2487
malloc
grinder
 
Join Date: Aug 2008
Posts: 629
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by tyler_cracker View Post
are you suggesting that i sit on the costs until i accept an offer, then ask the offerer of that offer to pay for my travel? what if they want me to do the paperwork ahead of time? what if none of the companies hire me?
That is what I was stating but it was in jest. Sorry to make light of the job search process as it inherently is stressful and generally blows.

As has been said, you should do what's fair. I've had companies where the paperwork was submitted at the time of the interview as well as some after. As such, I would wait as long as you're able to and then split the costs amongst the companies that are committed at that point.

Good luck with the search!
malloc is offline   Reply With Quote
Old 02-17-2012, 04:25 PM   #2488
kyleb
Carpal \'Tunnel
 
kyleb's Avatar
 
Join Date: Sep 2004
Location: Seattle
Posts: 39,019
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Here's that GV + Talkatone + T-Mobile Mobile Broadband blog post:

http://www.kyleboddy.com/2012/02/17/...-save-60month/
kyleb is offline   Reply With Quote
Old 02-17-2012, 06:07 PM   #2489
TheIrishThug
Pooh-Bah
 
TheIrishThug's Avatar
 
Join Date: Jan 2005
Location: Belligerent and numerous
Posts: 5,223
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Today my project at work officially began it's migration from using SVN to Git. This is not a small undertaking as the project has existed for over 3 years and has about 30 developers on the team. Just to keep things interesting, the svn repository is actually a group of module repositories that are held together by a bunch of scripts and "stuff" to keep them in line and using a single revision number.

At 7am the svn repository went read-only and the import kicked off. Things were going fine until a planned, but under-publicized, building network recofiguration took place. Needless to say, the import did no complete successfully and had to be restarted from scratch. It's 5pm now and the all clear email still has not been sent out.

Gotta love project management.
TheIrishThug is offline   Reply With Quote
Old 02-17-2012, 06:55 PM   #2490
gaming_mouse
Carpal \'Tunnel
 
gaming_mouse's Avatar
 
Join Date: Oct 2004
Location: taking notes on u (see profile)
Posts: 13,782
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by kyleb View Post
Here's that GV + Talkatone + T-Mobile Mobile Broadband blog post:

http://www.kyleboddy.com/2012/02/17/...-save-60month/
kyle,

so in order to talk on your phone, you need to carry around both the phone and the hotspot device? am i misunderstanding?
gaming_mouse is offline   Reply With Quote
Old 02-17-2012, 06:56 PM   #2491
kyleb
Carpal \'Tunnel
 
kyleb's Avatar
 
Join Date: Sep 2004
Location: Seattle
Posts: 39,019
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Yes. #firstworldproblems
kyleb is offline   Reply With Quote
Old 02-17-2012, 11:02 PM   #2492
JackHighFlop
adept
 
Join Date: Aug 2010
Location: J9o
Posts: 983
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

c/c++ question :

If a bunch of conditions is linked through multiple &&s on the same line and the first condition is determined to be false, does it still evaluates the other conditions coming afterwards?

Same thing if I have a bunch of || and the first one is true.
JackHighFlop is offline   Reply With Quote
Old 02-17-2012, 11:10 PM   #2493
kerowo
lolcat
 
kerowo's Avatar
 
Join Date: Nov 2005
Posts: 34,577
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Google short circuiting I think. I believe this is one of those bugs in C that is touted as a feature...
kerowo is offline   Reply With Quote
Old 02-17-2012, 11:20 PM   #2494
JackHighFlop
adept
 
Join Date: Aug 2010
Location: J9o
Posts: 983
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by kerowo View Post
Google short circuiting I think. I believe this is one of those bugs in C that is touted as a feature...
Apparently, C/C++ supports it. Is it still a good programming habit?
JackHighFlop is offline   Reply With Quote
Old 02-18-2012, 12:20 AM   #2495
tyler_cracker
Carpal \'Tunnel
 
tyler_cracker's Avatar
 
Join Date: Apr 2005
Location: Shallow End OTKP
Posts: 15,824
Quote:
Originally Posted by JackHighFlop View Post
Apparently, C/C++ supports it. Is it still a good programming habit?
Relying on behavior that you had to post on an internet forum to ask about seems like a pretty bad idea.
tyler_cracker is offline   Reply With Quote
Old 02-18-2012, 12:36 AM   #2496
kerowo
lolcat
 
kerowo's Avatar
 
Join Date: Nov 2005
Posts: 34,577
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

A poker forum no less...
kerowo is offline   Reply With Quote
Old 02-18-2012, 12:55 AM   #2497
clowntable
Carpal \'Tunnel
 
clowntable's Avatar
 
Join Date: Jun 2006
Location: 39, 46, 56, 59, 191
Posts: 45,558
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by TheIrishThug View Post
Today my project at work officially began it's migration from using SVN to Git. This is not a small undertaking as the project has existed for over 3 years and has about 30 developers on the team. Just to keep things interesting, the svn repository is actually a group of module repositories that are held together by a bunch of scripts and "stuff" to keep them in line and using a single revision number.

At 7am the svn repository went read-only and the import kicked off. Things were going fine until a planned, but under-publicized, building network recofiguration took place. Needless to say, the import did no complete successfully and had to be restarted from scratch. It's 5pm now and the all clear email still has not been sent out.

Gotta love project management.
Meh we used CVS (+our own PM etc. integration that was actually fairly sweet) in an otherwise fairly modern project...SVN would have been great..Git is like the nuts
Concider yourself lucky imo
clowntable is offline   Reply With Quote
Old 02-18-2012, 12:56 AM   #2498
wull
journeyman
 
wull's Avatar
 
Join Date: Jul 2007
Posts: 216
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

Quote:
Originally Posted by kerowo View Post
I believe this is one of those bugs in C that is touted as a feature...
Disagree on this one, it makes a lot of sense if you for instance want to test for a property having a certain value and need to test for existence of the property or containing object first. Making the actual (2nd) test could lead to an unnecessary error, for which otherwise you always need an additional if-level not just talking one line of code but an additional horizontal level which in nested expressions could mean several additional levels.
(This is for several languages not only/necessarily talking about the mentioned ones.)

Edit: Unless you have special IsNullOrEmpty-stuff

Furthermore it is a completely logical way to do this:
since (a && b && c) is a "logical statement" and when the first one "a" is false the whole statement evaluates to false no matter how complicated/fancy or whatever is coming after it, so I don't see a surprising element to it, especially since iirc all of the major programming languages I used in the last years C, C++, C#, Java, Ruby, JavaScript, Perl (blech!) have this behavior. I doubt you'll find a programmer with some experience that would expect sth. different there.

Imo relying on this is not bad style, but relying on side effects being executed within these kind of statements would be.
wull is offline   Reply With Quote
Old 02-18-2012, 01:08 AM   #2499
jalexand42
Hypothetical Ubermonkey
 
jalexand42's Avatar
 
Join Date: Oct 2005
Location: Open Shoving My Range
Posts: 5,139
Quote:
Originally Posted by tyler_cracker View Post
i'm in the middle of a job hunt right now. i live in seattle and hope to soon have interviews at three different companies in the bay area (sf, peninsula, sj). i'm trying to schedule all the interviews around a single weekend so that i don't have to fly back and forth. all three companies expect to cover travel expenses when interviewing an out-of-town candidate such as myself. also all three companies are large enough that all of these expenses are in the noise of their HR budgets.

one of the companies has already agreed to fly me down. i'm trying to schedule an interview with a second company for the day before or the day after the interview with the first company. i hope to get offered an interview with a third company +/- 1 day from that.

how do i handle getting reimbursed? do i just bill the first company since they happened to offer to fly me down first? do i split the costs evenly between the three companies? bill one for the flight, the next for a rental car, the third for a couple of hotel nights?

tia!
Split it three ways and explain why to them.

As someone who hires people....

1. Makes you look honest, because you could have tried to screw them all.

2. Makes you look like you are in demand.
jalexand42 is offline   Reply With Quote
Old 02-18-2012, 01:25 AM   #2500
_dave_
_Pooh_Bah_
 
Join Date: Feb 2005
Location: UK (or what remains of it)
Posts: 12,636
Re: ** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

lol, I'm pleasantly surprised no-one suggested "bill them all for a tidy profit on the trip!"

wait, do people not like short circuit evaluation? I thought it was entirely normal?
_dave_ is offline   Reply With Quote

Reply
      

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Forum Jump


All times are GMT -4. The time now is 12:35 AM.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright ę 2008-2017, Two Plus Two Interactive
 
 
Poker Players - Streaming Live Online