@OP:
Typically, nobody listens to the guy that brings the bad news. Have you asked yourself why this manager wants you to "review" their code?
@OP:
Typically, nobody listens to the guy that brings the bad news. Have you asked yourself why this manager wants you to "review" their code?
I thought I had a go at Visual Studio C++ express. So I installed. Which, basically, went just fine. The fact that the second patch is larger than the original installation file is kinda odd, but when installing SP1, I get an windows update error.
From what I gather, something is wrong in "my" dot net installations somewhere, so I had to clean that up. With a nice tool called ".net framework setup cleanup utility".
Didn't appear to do much, so I opened it's log. Bottom lines read:
[07/09/12,11:50:44] Launching process 'C:\Windows\system32\msiexec.exe /x {8E34682C-8118-31F1-BC4C-98CD9675E1C2} /qn' now
[07/09/12,11:50:44] Process successfully launched. Waiting 900 seconds for it to complete.
900 seconds... time enough to write this. What a bunch of fucktards.
@Speakerphone Dude said:
@El_Heffe said:What the heck is "award winning" software?
Awards are a proven method to evaluate the value of an application.
Except when in front of congress.
@Lorne Kates said:
@JimLahey said:
upPanelWell, there's TRWTF right there: asp.net's update panel.
update panel, well, well, I thought it was the upper panel.
@TGV said:
int nr_i_cb_m;What? You're building intercontinental ballistic missiles, and you write code like this? Armageddon is at hand! The Mayas were right!!
"It works!"
So last week I stumbled upon this:
(Anonymized even tho the actual names are still largely abbreviations...)
typedef struct { int nr_p_m; some_struct_type *P; int nr_s_m; some_struct_type *S; int nr_t_m; some_struct_type *T; int nr_x_m; some_struct_type *X; int nr_x_s_m; some_struct_type *X_S; int nr_x_x_m; some_struct_type *X_X; int nr_x_y_m; some_struct_type *X_Y; int nr_x_xs_m; some_struct_type *X_XS; int nr_x_ys_m; some_struct_type *X_YS; int nr_s_x_m; some_struct_type *S_X; int nr_s_y_m; some_struct_type *S_Y; int nr_s_xs_m; some_struct_type *S_XS; int nr_s_ys_m; some_struct_type *S_YS; int nr_v_x_m; some_struct_type *V_X; int nr_v_y_m; some_struct_type *V_Y; int nr_o_m; some_struct_type *O; int nr_o_s_m; some_struct_type *O_S; int nr_t_t_m; some_struct_type *TT; int nr_tc_t_m; some_struct_type *TC; int nr_th_t_m; some_struct_type *TH; int nr_a_t_m; some_other_struct_type *A; int nr_a_a_t_m; some_other_struct_type *A_A_T; int nr_i_u_m; some_struct_type *I_U; int nr_i_v_m; some_struct_type *I_V; int nr_i_cb_m; some_struct_type *I_CB; int nr_p_m; some_struct_type *PM; int nr_i_u_d_m; some_struct_type *I_U_D; int nr_i_v_d_m; some_struct_type *I_V_D; int nr_i_x_d_m; some_struct_type *I_X_D; int nr_i_y_d_m; some_struct_type *I_Y_D; } R_R_L;
At any time, at most two of the pointers (arrays) are not null (filled). Am lucky that they didn't write if else if else .... but simply if if if if .... doh
@snoofle said:
My boss received one of those have-all-team-members-write-down-3-strengths-and-3-weaknesses-and-discuss memos. One of the dimmer-but-thinks-he's-funny offshore guys on the team writes - via email - to my boss:
weaknesses
1. Pointless corporate procedures make me want to grab an assault rifle and seek out the nearest clock tower
I see the sarcastic humor, but to put that in writing?
Depends on who the person is.
In any case, it made my day. lmao.
@rstinejr said:
I work with a way senior developer, friend of my boss, who is always saying things like "Perforce isn't working" or "Java is returning the wrong time value" or "MySQL has locked the table"; when he's especially egregious I put the headphones on and crank up music to keep from strangling him.
@rstinejr said:
In the OP, the commented-out line of memcpy() that presumably is what "does not work" is scary. "is_it_present + block_size" is the address just past block_size. Not necessarily wrong, but it could be.
But the craziness is &false. Most likely the preprocessor turns it into something like &(0) -- I'm surprised it compiled.
Am working on a rather old software component that needs to be ported to another platform. Looking for issues, I stumbled upon this
/*(void) memcpy( is_it_present + block_size, &false, sizeof(bool));*/ /* memcpy does not work, so we set the value of the XXX to false, manually*/ is_it_present[3]=FALSE;
Too bad for me that most of the time memcpy does work...
@morbiuswilters said:
@boomzilla said:I'm sure there are legitimate entrapment issues to deal with whenever this happens, but I haven't heard anything substantive in that respect on any cases so far.Yeah, but these cases aren't entrapment--not even close. Entrapment would be the FBI finding a disgruntled Muslim (because, come on) and saying "Hey, you know what you should do? Blow some people up." and then persuading him (because, come on) to break the law. The idea for illegal action must come from law enforcement AND law enforcement must convince the criminal to break the law AND the criminal must not have been liable to break the law on his own.
Ignorance is bliss.