« first day (647 days earlier)      last day (4286 days later) » 

12:08 AM
How do you guys find programming teachers if you're not in school anymore?
 
@fionabunny - It depends on what I am doing. For simple questions I will usually ask a previous teacher I had - I have pretty good relationships with them. For super complex questions I usually try to find someone who is highly respected in the industry. I asked the dean of computer science at MIT a question, he was nice and his answer was spot on.
 
That takes some guts to just contact someone highly respected in the industry, doesn't it?
 
As long as you give them the respect they have earned and have a legitimate issue that relates to them they respond very well.
They are, after all, there to help the next generation :) Teachers for the most part are great people
 
12:24 AM
That is some high level tech support
 
 
2 hours later…
2:06 AM
@RyanJMcGowan windows azure (azure.com) provides some basic free hosting.
 
Hey .NET Developers, want to help build the next generation bug tracker for the Windows Desktop?
http://www.kickstarter.com/projects/dcomproductions/faulttrack-a-modern-desktop-bug-tracker-for-net-de
 
Hi @DavidAnderson
@DavidAnderson how is faulttrack different from other bug trackers like TFS, Fogbugz, OnTime, etc?
 
2:42 AM
@KyleTrauberman the first and foremost difference is the user experience. The interface is far superior. A lot of time is spent in UI design to ensure that it is as productive as possible. It also is designed and targeted at .NET developers. So the feature sets are more fine tuned for .NET development. And lastly, FaultTrack provides automated bug tracking and some level of debugging during the a debugger session in Visual Studio.
It can track bugs as they are thrown during a debugging session, and automatically enter them into the system.
It's also modern, built with the best practices in the industry. WPF, MVVM, EF, and is for the Windows Desktop, and it doesn't force you to subscribe or login to a website to use.
Oh, and its going to be MUCH more affordable than a lot of trackers, not requiring any sort of subscription fees if you can host it yourself (all it requires is a MySQL or SQL Server database).
 
 
4 hours later…
7:04 AM
@all hi
@all i need to create the library file which is to be placed with the bin folder of pre compiled file .

so when ever the any database connection is opened in that pre compiled file the database connection must come to that library file and follow stattify certain rules of me and return it.
 
Hi everyone
hows it going
I am a bit stuck here in one of the problem I am facing
can anyone help me..
 
@all can anyone help me..
 
I have created a request data contract which contains 18 data member as noteline1...noteline18. Similarly, I have a response data contract that also have the same memember as the request data contract. I wanted to assign value of request data to response data with the help of for loop. How will i do that
 
 
1 hour later…
8:20 AM
"t's also modern, built with the best practices in the industry. WPF, MVVM, EF"
don't know if I have to laugh or cry
I think that the industry that he's talking about is the MS MVP's on Twitter-Industry
 
morning guys
 
morning
 
8:36 AM
i just need to open a dialog box which takes file name and create a text file contains data as a value of text box in C#
@DavidDV
 
@Chets
 
hello
@DavidDV
 
hehe
first link on google
@Baboon morning bro
 
omg google, what a great idea
searching things on google...
 
indeed,
 
8:40 AM
Hans you are a genius :)
 
Thanks Dave, i do try!!
 
anyway
I rather type my question in on SO chat
 
morning
 
I am like a huge fan of SM, I just like to be humiliated
morning master
 
lol
 
8:56 AM
quick + potentially stupid question. How do i save a solution so that all the folders are in the same file? Ive just realised that its only been saving the solution and not all the project folders into my hard copy back up folders
 
that FaultTrack kickstarter project thing is stupid
 
@HansRudel you mean all files in the same folder? You need to move them manually.
 
excellent bug trackers systems exists
what they don't even look at the market before making startups? a simple "they're all morons in the field, ima make a startup and fuck 'em up!" is enough?
 
@ChristopheLambrechts so do i just change the Full Path in each projects properties afterwards?
 
Is there a better program that WTM to measure accurately the amt of memory used, apart from profilers? Btw, I fixed my memory leak :D Usercontrol also renders much faster.
 
9:14 AM
@Baboon the best thing is that the company is called DCOM productions :)
 
@HansRudel normaly it works with relative paths, you just need to change them in the solution file. The easiest is to close the solution, move all projects (both project file and source code) to the directory where you want to have them and then reopen the solution. It will give you some errors of projects that couldn't be loaded, but don't worry, just add the projects with the 'Add existing project' functionality.
 
@ChristopheLambrechts yeah i got a load of errors. I was about to try changing the reference in the properties window to where my folders are and then just save the solution in the same folder. will it work?
@ChristopheLambrechts got it working, thanks very much!
 
9:32 AM
any clue what an algorithm that takes a collection of numbers and outputs them grouped by numbers following each others would be named?
maybe a resource i could google?
 
hows the grouping work?
 
well I can do it by poking on it, but maybe some smart folks made something up already
for example if you have
10
15
11
12
21
22
24
23
it outputs:
10
11
12

15

21
22
23
24
 
so 15 is seperate because there is a gap between it and 12?
 
yup
 
sequentialNumberGrouper
my best guess. As u know though, my naming skills are pretty Piss Poor
 
9:42 AM
that's good enough thanks ;)
 
glad i could help for once
 
10:03 AM
and here it goes:
static void TestSort()
        {
            LinkedList<string> data = new LinkedList<string>(new List<string>()
            {
                "ZB50010",
                "ZB50015",
                "ZB50011",
                "ZB50012",
                "ZB50021",
                "ZB50022",
                "ZB50024",
                "ZB50023",
                "PASQDA3"
            });
            data = new LinkedList<string>(data.OrderBy(d => d));

            StringBuilder builder = new StringBuilder();
 
nice
nvr used a linked list before
 
List.OrderBy()
 
10:27 AM
Argh, hate it when someone listens to music on high volume. Wish I didn't forget my headphones.
 
@LewsTherin easy, u walk over with a pair of scissors and.... snip!
 
@HansRudel Snip That sound I will love to hear :)
 
Does anyone know about any access control list?
in .net
 
@taherchhabra What about them?
 
10:44 AM
guys, I tried to set a constructor for my class but it says I am missing a return type for the method. Getting confused, I thought a constructor didn't need a return type - sorry I am beginning...
 
This happens when you do a project in EF and WCF
http://www.youtube.com/watch?v=knyB1p_TgCs&feature=player_embedded
 
11:00 AM
@DavidDV Agreed. Especially when you inherit one from someone who didn't really understand either :P
 
This article is amazing. I really liked it
 
not that amazing
doens't work to the browser
would be nice if he uses it directly with MongoDb
otherwise better is to try Protocol Buffers / Messagepack
 
Hm, if it doesn't work on client to server then it isn't so useful, but I like how performance was better.
 
11:17 AM
well yeah but the things he is benchmarking against are pretty bad
anyway I use MsgPack serialization in my project, but the RPC part omg
 
11:38 AM
@DavidDV What does MsgPack do ?
 
MessagePack is an efficient binary serialization format. It lets you exchange data among multiple languages like JSON but it's faster and smaller.
 
Interesting, going to check some test comparison
 
@arthurmani please paste the relevant code portion here, my guess is that you failed to declare the class properly
 
is there an easier way for setting control.enabled and control.visible in a separate class than passing in each and every control as a parameter?
both classes are in the same namespace
 
gmorning
 
11:50 AM
morning
 
morning
 
i'm not a pro hans, but i'm pretty sure all your ui handling stuff should go in the same clas
 
@Steve its in the same project, just have a separate class for helping it. U might be right in this case though.
 
not exactly sure about the names but it should go (ui layer) <---> (business layer) <--> (data layer)
 
points wise, ur more pro than i am @Steve
 
11:53 AM
or something like that for asp.net/c# apps
 
f-ck it, unless anyone else says otherwise, ill just shove it in the uiclass. Cheers @Steve
 
i've just read a few books, i have no experience implementing any of this stuff
lol
and you know what they say, its always easier on paper
 
im trying to refactor an existing project so i can unit test it. originally it was in the uiclass so...
 
Everyday, every morning, everyone gets in office after 9:30am.
It is 8:55am here now..
Why, for the love of everything, always that I fart before everyone gets in, everyone appears..
WHY !?
 
@HansRudel i really don't know what i'm talking about, thats just my input, you might want to wait until somebody more experienced gets on so you don't have to undo all of that stuff
 
11:57 AM
its just one method so..
 
okay
@Andredseixas lmao
 
I hate Murphy, his law is so true that makes me hate him even more..
 
at least you don't do it when everybody is around, like me yesterday when i sneezed :(
 
Haha I laughed hard when you wrote that..
 
its so quiet in here and im a loud sneezer, so i don't like to sneeze, but that time i should have just sucked it up
 
12:02 PM
I can't stop laughing, you should've yelled "You should be grateful that I'm not on a loop!!"
 
>.< i miss the good ol days of highschool
 
Nah, its been one year since, so I don't miss it by now..
 
give it one more year and make it 2 like me then you will
 
I can't freaking believe it. My boss wants me to read an article to understand more about analysis.. Why can't he understand that I'm not an analyst ? I really don't like analysis...
 
isn't that an excuse to just google bs for a month?
 
12:13 PM
He gave me the article to read..
 
oh
dang
 
The problem is that he wants me to stop all the work I'm doing to read this sh-t
 
by work, i assume you mean "@Steve @DeveloperDavid That is why StackOverflow made a chat. So lazy people pretend to do work. Because you know, "we talk about work". haha "
2
 
I leave SO chat open because 90% of the time people talk about interesting stuff that maybe will help me with my current work
And sometimes I ask some questions.
I just chit-chat when I get bored about what I'm doing and I need to motivate again.
This is an example
 
god I so lack motivation lately....
need something interesting to do burnt out from 3 months of debugging
 
12:16 PM
@Nadal me too
@Andredseixas me too, i learn so much in here
 
lets come up with a design today to make cars more energy efficient
 
I think that the best way to learn something is to see others questions and answers
 
@Andredseixas like, i'm pretty sure we use EF on our large secondary corporate site, and I bet the people aren't aware of N+1 selects
i bet its slow as crap
 
N+1 Pwnz J00
 
I saw a test comparison on Entity Framework and NHibernate.. They are almost the same thing..
And I know NHibernate is pretty bad.
 
12:18 PM
@DavidDV lol how did i know you were lurking in here
 
"Well yeah but if it's bad then why is it so popular"
 
Because there are a lot of tutorials and example to help the person to use it.
The advertisement makes people like it..
 
i still don't think its "bad", i just don't think its for larger projects/sites/applications from its inability to scale well, but i'm sure for internal apps or something where you know how much(or little) its going to expand its fine
 
ppl still think that popular means good
to dispel this
 
lmfao
 
12:20 PM
Ugh
 
popular != good
 
GET OFF OF MY SCREEN
 
rest my case :p
 
GET THAT THING OFF MY SCREEN NOW
 
guys i am having a short memmory loss os i cant remember, what was the keyword used to create this variable type in C# that has a set variety of possible values
 
12:20 PM
a
 
Remove it !! Remove it !!
 
>
>>>

>
>
>
>>

>
>
 
enum
 
>>
>
>
>
>
>
 
Thanks
 
12:21 PM
anyway
 
..>
 
thanks, and god that was hurting my eyes
 
Haha That thing is scary
 
you learned your lesson for today
popular is not always good
3
 
lmao,
 
12:21 PM
@DavidDV that was awesome ;)
 
so today we have a workplace picnic from 12:00 - 5:00, where we don't have to work and get to play volley ball and stuff
i love my job, but its so boring, i miss the military
i just want somebody to shoot at me or something
 
I really don't want to read articles about analysis..
 
@Steve ur so lucky we never have that here
the only "fun" activities are on weekends not during office hours....
 
@Nadal yeah this place is awesome to work at, wear polo's to work on the corporate site, and everybody is SOOOO nice, NOBODY micromanages, people just tell me what to do, and i let them know when i'm done and they give me more stuff
we get to make our own work week, most people work 10 hours a day x4 days a week, and have a 3 day weekend
 
polo's to work? bitch plz, I'm wearing t-shirts, jeans and sneakers.
2
 
12:29 PM
lol well, this is also the headquarters of a multinational corporation, which makes it unusual
 
same here
 
oh damn
 
multinational TV channel
 
im glad to just wear polos to work....
 
i hear some devs are in suit
 
12:29 PM
first few days i had to wear dress clothes
 
like the ones who work for banks
 
lol thats horrible baboon
 
yeah it is
 
after suit was getting hot i had to switch to polo and beg :P
 
which tv station? or do you not want to say in chat
 
12:30 PM
i find it so hypocritical
 
also had to put out an ultimatum
 
Eurosport
 
ahh
@Nadal lmao worked well huh
@Baboon i really want to work for CNN
 
the first day i went to work in suit, because I'm a consultant and i gotta show
they laughed at me like "dude, wtf are you doing in suit?"
 
I work for the Govt LOL so even programmers generally have to be dressed up or polo at the very least
 
12:32 PM
lol, us gov't?
 
hell on earth: "I am from the govt and I am here to help you"
no canadian, i am just a student though doing my internship
 
oh, i'm doing an internship too :)
 
awesome lol, hows ur experience so far?
 
good morning @KendallFrey
 
hey guys. Back in wifi zone :)
 
12:35 PM
well, i've had lots of experience doing web design in my teens, so i'm working faster than they can come up with new tasks for me to do...
i'm learning a lot, but still haven't been really challenged
 
by the way, I'm finishing a write up for my blog on how game dev in C# in 2012 is best done if you want to be as open to multi-platform as possible and future proof
 
I love that feeling.
 
and after about 10 days of research, I came to the conclusion that the best option, and by far, was to do it in plain XNA
even if MS never releases a single new addition/bugfix to it
 
MS FTW!
 
i've never done any sort of game programming, i looked into it with c++, have a book, but it looked like toomuch work
 
12:37 PM
so if you wanna make games, go on and write it in XNA
i'll link my post whenever i finish it
 
i did game programming with VB
 
I did game programming with VBA!
 
lol well, i made a game with MIT's Scratch, but I dont think that counts haha
 
You know what? I really wish there was an Access-like program for C#.
 
kendall, talk to me about SRP
teach me to be a better OO programmer
 
12:39 PM
@Steve working faster than tasks that couold be assigned is good but i found from my first internship that it isnt the work quantty you produce but rather follow their system, go at the pace of everyone else or people start looking bad and targeting u lol
 
@Nadal I would rather distiguish myself to the bosses so I can move out of a grunt job and into a leadership position. I'm aiming for CEO baby!
 
@Steve each method should perform one critical action, and each class should have one functionality
 
My weakest area is OO, i have to admit
 
OK listen up class, SRP is the Single Responsibility principle, which means that a class should do one thing, and do it good. This could be error logging, performing database transactions, and more. Never make a class for two purposes. The end.
 
and that's why, any method beyond 50 LOC is very likely bad design
 
12:42 PM
i know is-a, has-a, and a few design patterns, its just putting it into action which i have trouble with
 
@Baboon :( I love long methods.
 
@KendallFrey Int64 methods?
 
@KendallFrey bro, you know they are bad design. Now eat your vegatables.
 
i thought SRP meant that a class should only have one reason to change
 
that's the corollary
 
12:43 PM
I think I had found some evidence online that long methods lead to less bugs.
 
does that mean
 
@KendallFrey that's gotta be bullshit
 
that it should have one reason to change state, or
isn't setters changing the state of the object?
 
"I think goto's are fine, and they are often more readable than large
amounts of indentation. That's _especially_ true if the code flow isn't
actually naturally indented"
:p
 
12:45 PM
So I should break apart a large method even if I'm not expecting to reuse that method anywhere else right
 
if (!condition) return; // better than indenting the whole method one tab
@Steve IMO, not necessary.
 
hm interesting
 
A method should either: 1) Perform an action. 2) Retrieve data
 
no, if it's not prototype code then you should not have big methods
 
If performing that action involves several distinct sub-actions, then split it.
But sometimes, it's just easier to write a list of stuff to do, all in one method.
 
12:48 PM
okay, so if i have a conditional statement, and in each conditional statement lets say i have like 30 lines of code, what i was doing before was putting each part of the statement (if true or else) into separate methods
 
@Steve big methods are harder to debug after the fact, unless you have tons of state
 
so instead of
if(something)
{
//30 lines of code
}
else
{
//30 lines of code
}
i was doing
if(something)
{
//function call
}
else
{
//functioncall
}
 
If the only rationale for splitting methods is to avoid long stretches of code, it's not worth it.
 
it is
I had to extend another developers program
he had a method of 1000 lines
= not funny
anyway
 
one sec,
 
12:50 PM
this is all stuff that you learn through experience
just strive for sexy code
your code must be sexy
 
I prefer working code.
 
!!!!
 
I think customers do too.
 
pffffff
that is a given
 
If sexy fits with the requirements, then fine.
 
12:51 PM
it's just as usual: it's NOT THAT SIMPLE.
In a class with lots of state data, long methods allow you to always have a input/output that makes sense state-wise.
In a class with few state or "pure" (stateless), break it into as many subcomponents as possible
 
okay
and in the ui event handlers, should i only do ui updates and then call the business layer there? can i have any other code in there?
i'm not sure if that makes sense
but i understand the different layers, i understand the business layer holds business logic, the data layer connects to db's or files or whatnot
 
@Baboon: Re: long vs short methods: programmers.stackexchange.com/questions/7705/…
 
i guess I don't understand what constitutes business logic
 
can i ask something? how long have you guys been programming for
 
maybe thats too vague of a question to answer
i've been programming for like 10-15 years, i've been programming correctly for about 4
 
12:55 PM
@DanielOR Good question. I would estimate 4-5 years.
 
@KendallFrey where the highest voted answer advises for short methods
 
but I haven't been programming in a business setting for more than a few months, everything in that 4 years has been college --and its good for teaching the basics.... but thats about it
 
@DanielOR 2 years ago, I had no idea what an object was
those 2 years include my learning time
 
@Baboon wow
now i feel bad, you've been coding for way shorter than me and blow me out of the water in skill
 
took me more than 2years :) lol
 
12:57 PM
good morning everyone
 
I remember back when I knew what a struct was, but didn't know how a class worked, so I used a struct.
 
@Steve don't feel bad, I'm sure there are areas where you blow me out
 
Holy pasta. Just got an offer to work for a big company to get three times I get in my actual job. I am freaking happy !!
 
@Baboon picking up hookers
 
All thanks to you !! :D
 
12:58 PM
@Andredseixas CONGRATS!!!
 
gz
 
I am so happy right now that I could actually read that article..
Ok, not that happy..
But I am.
 
whats ur current job pay
 

« first day (647 days earlier)      last day (4286 days later) »