Click here to Skip to main content
15,916,030 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Youngster's attitude Pin
GuyThiebaut9-Feb-15 21:35
professionalGuyThiebaut9-Feb-15 21:35 
GeneralRe: Youngster's attitude Pin
Mark_Wallace10-Feb-15 0:28
Mark_Wallace10-Feb-15 0:28 
GeneralRe: Youngster's attitude Pin
PIEBALDconsult10-Feb-15 11:29
mvePIEBALDconsult10-Feb-15 11:29 
GeneralThe most weird workaround you ever made? Pin
Kornfeld Eliyahu Peter9-Feb-15 19:47
professionalKornfeld Eliyahu Peter9-Feb-15 19:47 
GeneralRe: The most weird workaround you ever made? Pin
Jacquers9-Feb-15 20:00
Jacquers9-Feb-15 20:00 
GeneralRe: The most weird workaround you ever made? Pin
Sander Rossel9-Feb-15 20:11
professionalSander Rossel9-Feb-15 20:11 
GeneralRe: The most weird workaround you ever made? Pin
Jörgen Andersson9-Feb-15 22:28
professionalJörgen Andersson9-Feb-15 22:28 
GeneralRe: The most weird workaround you ever made? Pin
Sander Rossel9-Feb-15 20:21
professionalSander Rossel9-Feb-15 20:21 
We'd store some files on a file server. The filesnames were unique by date and time up to milliseconds. Then the customer got a new super fast server and files went missing. Turned out multiple files could be written in the same millisecond and the last would overwrite the first. Workaround: Thread.Sleep(1); Laugh | :laugh:

I've also had problems with a piece of multi-threaded software (I didn't write it). Loading different pieces of data took many seconds, so the programmer decided to multi-thread, but wasn't very aware of the many pitfalls and solutions of multi-threading (or of loading data, I could load all his data instantly). Unfortunately there was no way I could change the data loading or the multi-threading all that much, as everything in the application depended on it. Rewriting would take a whole lot of time and it was actually already rewritten from an older version just recently. In the end I got it working 'alright', for all but two users. Workaround? if (userName == "x" || userName == "y") { SomeMultithreadedFunction(null); SomeOtherMultithreadedFunction(null); } else { // multi-threaded solution }. What are the nulls passed in to the functions? System.Threading.Tasks.Task objects as everything was implemented using Tasks Laugh | :laugh:

And of course Crystal Reports (see my reply above) Dead | X|

Yeah, I guess I've written some baaad code in the past. These were some of my less proud moments... Laugh | :laugh:
My blog[^]
C#
public class SanderRossel : Lazy<Person>
{
   public void DoWork()
   {
      throw new NotSupportedException();
   }
}

GeneralRe: The most weird workaround you ever made? Pin
Kornfeld Eliyahu Peter9-Feb-15 20:25
professionalKornfeld Eliyahu Peter9-Feb-15 20:25 
GeneralRe: The most weird workaround you ever made? Pin
Mark_Wallace9-Feb-15 21:14
Mark_Wallace9-Feb-15 21:14 
GeneralRe: The most weird workaround you ever made? Pin
Sander Rossel10-Feb-15 3:10
professionalSander Rossel10-Feb-15 3:10 
GeneralRe: The most weird workaround you ever made? Pin
GuyThiebaut9-Feb-15 21:43
professionalGuyThiebaut9-Feb-15 21:43 
GeneralRe: The most weird workaround you ever made? Pin
Richard Deeming10-Feb-15 2:01
mveRichard Deeming10-Feb-15 2:01 
GeneralRe: The most weird workaround you ever made? Pin
GuyThiebaut10-Feb-15 2:14
professionalGuyThiebaut10-Feb-15 2:14 
JokeThe Spoon Pin
Vivi Chellappa9-Feb-15 19:23
professionalVivi Chellappa9-Feb-15 19:23 
GeneralRe: The Spoon Pin
PIEBALDconsult10-Feb-15 7:20
mvePIEBALDconsult10-Feb-15 7:20 
GeneralJust Married... Pin
Suvabrata Roy9-Feb-15 17:47
professionalSuvabrata Roy9-Feb-15 17:47 
GeneralRe: Just Married... Pin
devenv.exe9-Feb-15 18:23
professionaldevenv.exe9-Feb-15 18:23 
GeneralRe: Just Married... Pin
Suvabrata Roy9-Feb-15 18:24
professionalSuvabrata Roy9-Feb-15 18:24 
GeneralRe: Just Married... Pin
Michael Martin9-Feb-15 19:08
professionalMichael Martin9-Feb-15 19:08 
GeneralRe: Just Married... Pin
Suvabrata Roy9-Feb-15 22:38
professionalSuvabrata Roy9-Feb-15 22:38 
GeneralRe: Just Married... Pin
Dinesh.V.Kumar9-Feb-15 22:03
Dinesh.V.Kumar9-Feb-15 22:03 
GeneralRe: Just Married... Pin
Suvabrata Roy9-Feb-15 22:37
professionalSuvabrata Roy9-Feb-15 22:37 
GeneralRe: Just Married... Pin
BillWoodruff10-Feb-15 6:29
professionalBillWoodruff10-Feb-15 6:29 
GeneralRe: Just Married... Pin
Suvabrata Roy10-Feb-15 17:28
professionalSuvabrata Roy10-Feb-15 17:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.