« first day (2047 days earlier)      last day (2900 days later) » 

Rob
12:05 AM
Yep :)
 
12:24 AM
@icecub You can include an else or initialize it before the if
 
Thanks @ReedCopsey
But I've finished the program! Thanks a lot for all your help guys :)
 
 
2 hours later…
2:12 AM
Receiving email...should this be done on the ThreadPool or normal thread?
 
Rob
3:07 AM
Receiving email? Probably on a separate process entirely
 
 
2 hours later…
4:46 AM
But how would you pass a socket to another process?
 
4:57 AM
reddit.com/r/Overwatch/comments/4konic/… @scheien and whoever is interested
 
5:31 AM
@JakobMillah: Sweet
and good morning all!
 
6:11 AM
Morning! Yeah, I thought it was pretty sweet as well
Today is the day I give my company an ultimatum. Else I am moving on
 
What are you up to?
@JakobMillah Do you have another offer on the table?
 
I think I do. 3 of my previous class mates have received jobs for SAAB/Combitech who are looking to recruit quite a few. And they all looked up to me a lot, so I have good references. I am calling them today to see if they need people. But I am going to have another serious talk today with the other project leader, that if things do not change right now, I am leaving
 
That sounds like a reasonable plan
 
whole 3 class mates? hows that
 
6:27 AM
I hope so. I've been working here for 9 months, without any real progress. I havn't written more than 30 lines of code in the past 6 months and was exciting the other day where I got a chance to add an isNullOrEmpty statement... I mean, wtf? "Ohh, if you get good at fast reports, you can become our pro at it".. Who the F cares about Fast Reports and who would ever care on my CV? "3 years experience in Fast Reports... Don't use it"
@misha130 Embedded guys, SAAB and Combitech are big companies together. High demand for embedded people or people with broad knowledge
 
you are also stagnating
 
@JakobMillah I totally get you. That's why I left one of my former jobs. Didn't get to write any code at all, and my boss could promise me any dev time.
 
if you think about it, skills that you dont mend get rusty
 
Indeed. I write Webforms these days.. I mean, come on.. I try my best to keep up with node.js / react.js, responsive design and what not outside of work, but there is not much energy left after 9 hours at work
 
True. You can only work so much
 
6:31 AM
I sort of want to work in embedded just because I like "low level programming" but I have a friend who does and he absolutely hates it
also, is everyone here doing 9 hours?
my previous job was 8 and it was more efficient use of my time
 
I would go more for the web, maybe leadership. They are recruiting a test leader for instance
I do 8 hours + 1 hours lunch
But pretty much work 30-40 minutes during lunch as well
 
lol just go fam
developers are people too, we aren't just tools
 
It feels a bit meeh to go as well.. I am not the kind of guy to abandon stuff. But I guess it's time
At least time to be honest
 
I know the feeling well but its for the best
 
I'm working 8 hours, including 30min lunch.
 
6:34 AM
The company will suffer quite a bit too
 
Your job is not your family. You're not abandoning it.
 
^ that
 
if they will suffer quite a bit, then your company is badly designed
 
If you get sick, it's not your boss who sits by your bed at the hospital.
 
One very common ploy used by companies is saying "we're all family here". That's a good sign that the company plans to try to get more of your time and investment, which very rarely comes with the same treatment from the company.
 
6:35 AM
Ye, the entire issue here is that they put too much responsibility on me. I almost got 2 clients on my own.. And I shouldn't have none, really
@scheien true that
@AvnerShahar-Kashtan Yeah, there is a weekly discussion how we are one. We are "We"
 
story of my life @Avner
 
We are one unit. But to be honest. I have been my own unit for the past 9 months
 
you know you can flat out refuse to work alone
thats what I do atleast
I dont mean at all but just when there is no equal division of responsibility
 
There is one guy that I am supposed to work with... But he is difficult. Smart AF, been working with Visual Studio, VB, .net for the past 18 years. He knows his shit. But he got burnt out a few years back and is increadibly difficult to work with. Ask a question, get a quick reply that might not be right. Ask again and he gets annoyed
 
whats the ultimatum
"things change or else I am leaving?"
 
6:40 AM
We have 3 different ranks:
Junior Consultant
Consultant
Senior Consultant

I am supposed to be junior, which means that people should hand me work. Instead, they have handed me 2 clients where I have to take responsibility for all their development. Whenever I come up with a solution, that smart dude attacks and says "have you considered this? Our system has this. Why don't you use it?" So I don't understand why I am the one coming up with solutions
Yes. Exactly
 
thats silly man
its so broad, you need to ask literal things
 
Things need to change right now, pretty much today. If not, I am leaving
 
@JakobMillah I know the type. I used to work with a very talented guy, very innovative, very dedicated. But terrible management got him down to the point where he would just come in every morning, do the minimum required work and go home.
Also, since this was technically part of mandatory army service, he couldn't just get up and leave.
 
you mean in the 4 years he got burned down?
 
Once he finished his service, it took him a couple of years on the outside to become really productive and passionate again.
6 years, in this case.
As I said, terrible management.
Actively prevented people from learning new technologies (.NET, at the time) on their own free time.
 
6:42 AM
I am happy I did absolutely nothing productive in my service
somehow I am glad
 
Telling him "We don't care how much work you get done, but you have to be in the office by 8:00am, not a minute later, or you'll get punished".
 
Pretty much like this guy. Client from hell pretty much brought him down. 2 colleagues left just before I started, one reason, due to the client from hell....

...So what do we do? We give the new guy responsibility for the client of hell. That's probably smart
 
@misha130 There are many examples of terrible mismanagement in the army, but it's still better than most other army jobs, I think.
 
Avner, please its the army, its not a good example. They are just professionals at killing talent
 
Goooooooooooooooood morning everyone. :)
 
6:43 AM
@JakobMillah you should leave and not give an ultimatum
 
Personally I enjoyed most of my 6 years there, learned a lot, and managed to short-circuit the classic "can't get a job without experience, can't get experience without a job" paradox.
 
Every monday we have a meeting. Showing statistics etc. One statistic shows how many percentage of our work previous week was paid by the customer. Since I got part of that list for 3 weeks ago, I have been last.. And there is nothing I can do about it
 
HI can anyone point me in the right direction
 
because your ultimatum is not reasonable and you are just stretching out the leaving
 
I want to add custom validation to TFS work items
 
6:44 AM
@misha130 Kinda need to secure a job first.
 
@AvnerShahar-Kashtan I met a friend in the army and he got me a job at his dads so I spent 3 years doing that
 
I thought I could make a VS plugin but that requires it to be deployed on all user machines
 
there is no paradox for good people ;^)
 
Yeah, @misha130's right. Do you want to leave, or do you really see a realistic way to change your work for the better?
 
also some users use web portal
 
6:45 AM
@AvnerShahar-Kashtan I know the manager type first hand. Unfortunately. :(
 
If not, don't give ultimatums if you plan to leave anyway.
 
how should I go about it??
 
If things change, I could stay.. But I am afraid it wont
 
@SamyS.Rathore Is this a local TFS installation or hosted at VisualStudio.com?
 
local
 
6:46 AM
@JakobMillah If you feel that way, start looking for another job, but don't quit until you have another offer.
 
@scheien Yeah. I am calling Combitech today
 
we are able to modify the XML templates, but the validation we need can't be done with xml alone
 
@JakobMillah I'm crossing fingers
 
@scheien Thanks!
 
I haven't written them myself, but apparently you can write server-side plugins that listen on TFS events (such as "Work item changed" and check them:
http://blogs.msmvps.com/vstsblog/2014/05/12/extending-tfs-default-behavior-using-server-side-plug-ins/
 
6:49 AM
ahh, thanks
I'll check them out
 
Anyone know if there is a way to make a C# object not nullable?
So you cannot assign null at compile time
 
@Asheh Structs are non-nullable, but that's not the same thing.
 
Sorry, i mean. Making a property, which is an object. The ability to never be assigned "null"
 
@Asheh Unfortunately C# doesn't support non-nullability, much to the disappointment of some of our regulars here. There are several runtime tools (such as Code Contracts) to help you catch nulls early, but no compile-time support.
 
Thats a shame
 
6:57 AM
Mostly because, as things currently stand, there's no way to statically determine at compile-time if a given reference can be null or not. It requires making several deep language level changes and will have serious backwards-compatibility issues.
If you could define a property as non-nullable (say, object! for non-null object), the compiler would have to prevent you from assigning to it anything that's returned by any older API or method that returns a regular nullable object.
 
yeah I can see why it makes sense that it doesn't exist
im just always suprised when I come across somthing thats not possible in C# ;)
 
You can find some articles online - search for "the billion dollar mistake" - that claim that nullability, which in the C days was mostly an implementation detail - should never have been carried forward into java/c# and newer languages.
 
Interesting
So code design wise, do you prefer:
Set { if(value == null) { assign somthing else }

or

Set { if(value == null) { throw exception }
 
That depends.
Assigning some sort of default value can keep your program running in the face of unexpected inputs, at the cost of having unexpected behavior.
It's usually better to throw an exception, have it caught earlier, and make sure that the code that tries to assign null doesn't.
 
agreed
at our company, we are very heavy on protecting your code
if(blah != null && blah2 != null && blah3 != null)
but i find its an incredible bug hider
so i dont really like it
but if you are shipping a product at the same time, you dont want it to crash
even if its unexpected behaviour!
 
7:09 AM
An exception shouldn't crash the system.
 
Depends on the exception.
 
No but its pretty unweildly to see in a user experience
 
It's not the property setter's job to think of not crashing the system. It should throw an exception for invalid data. It should then be caught by the UI and either logged silently or a friendly error displayed.
 
Non-Nullables @Roel
 
7:20 AM
Yes please.
 
@RoelvanUden null
 
All nulls should die in a fire.
 
They kill kittens.
 
good morning
 
what, don't people like String.IsNullOrWhitespace(foo);?
 
7:28 AM
@Squiggle that or IsNullOrEmpty (sometimes whitespaces are to be treated as characters...)
 
TypeScript will have non-nulls way before C#. It makes me sad that C# is so slow to develop.
 
How do we "friendly" display an assert? :D
@AvnerShahar-Kashtan
 
@SteffenWinkler that depends on your business logic
 
> In computer programming, an assertion is a statement that a predicate (Boolean-valued function, a true–false expression) is expected to always be true at that point in the code.
@Asheh ^ So, not.
 
I know what an assert is
 
7:34 AM
Great.
 
We were discussing that if that assertion was fired, how do we display this to the end user. And should it be a fatal?
Or is it silently logged
 
If you run into a piece of code where you're explicitly do an assert to check a certain condition that must be so, and it's not, there is no way you can go on. It's fatal, it's an exception, it won't be friendly whatsoever.
 
@Asheh Asserts are traditionally only evaluated in debug contexts.
Where showing the assert message is useful.
 
I agree, because we cant trust the code that happens after it
 
It could depend on whether you're asserting against user input, or internal state.
 
7:35 AM
Its not how we treat assertions internally which It hink its wrong
 
In production you should be able to catch the exception, say "An unexpected error occured and processing cannot continue. A detailed log can be found on disk, in the event log, emailed to the admin, stored in the database, printed out in triplicate and mailed to everyone involved. Shutting down now, and have a good day"
 
wired.com/2015/11/null "Hello, I’m Mr. Null. My Name Makes Me Invisible to Computers"
 
Greetings everyone, this is my first time here, I assume I can ask C# questions
 
@JG7000 You can indeed.
Welcome to the room.
 
If assertions should be fatal. Then why do we use assertions for code logic?
Or is it the handling of the assertions that matters
 
7:40 AM
Assertions should be used during development and debugging to clearly outline your expectations. "At this point, this value should never ever be null". If it is, you know you have a problem, and can backtrace the logic to the point where the invalid input is entered.
It shouldn't be a part of the program's regular control flow during runtime.
 
But the .net library uses them like this
 
Whereas exceptions are - they're used to catch unexpected conditions (or expected errors) that can occur at runtime and cannot be prevented during development.
 
off the top of my head, the socket library throws exceptions if it cant connect
I see what you are saying
exception vs assertion
So exceptions can be displayed to user
 
cool thank you so much, I have an issue with a demo I am working with, it is regarding a combo box, what I am not sure is that I want to display some values from the DB in there, is it also possible or logical to update or add through this combo box ?
 
@JG7000 That's pretty vague, but yes, a combobox is an edit control, It's bound to a data source, displays the initial value and updates it when its value changes.
 
7:43 AM
@Asheh No.. exceptions are used by your program to give you a chance to deal with the exceptional case. You can catch it, and react accordingly. An assertion is meaningless in and by itself, you don't know what it is or what it is for. Hence you cannot deal with them.
 
Keep in mind, though, that 1) UI controls shouldn't be bound directly to the DB. There should be a logic layer in the middle there. And 2) The specifics depend on the technology used, of course. Web? Windows Forms? WPF?
 
Web may be WebForms, MVC, or something else.
 
@RoelvanUden Yeah, but my comment was long enough as it is. :)
 
thanbks
 
Just expanding :D
 
7:48 AM
good morning
 
hello
does anyone know when DbSet<>.Create() is more useful than newing up the object yourself?
something to do with proxies
but I don't know what would be the point
 
hello does anybody know how to scroll scrollviewer through up/down buttons? wpf
 
HOLY CRAP man
 
@StevenLiekens Uhm.. you're adding it to the UoW if you do that.
If you don't.. well.. it's not in the UoW.
 
@Squiggle didnt understand what u send mee yesterday
 
7:52 AM
It doesn't create proxies btw.
 
@AndréMarques I'm pretty sure if a ScrollViewer is focused it will do that on it's own.
 
@AndréMarques then communicate!
 
@RoelvanUden MSDN says
> Note that this instance is NOT added or attached to the set. The instance returned will be a proxy if the underlying context is configured to create proxies and the entity type meets the requirements for creating a proxy.
 
don't just ask the same question every day until someone gives you the code
tell us what you've tried. Show us examples. Tell us why our solutions don't work.
 
@StevenLiekens Wait, is this a different overload?
 
7:52 AM
@Squiggle i think i writed saying that i didnt understand didnt i? @SteffenWinkler need to do through buttons
 
help us replicate your problem
 
@Squiggle sry :/
 
:/
 
@AndréMarques as I said, ScrollViewer should capture those button events on it's own.
 
7:53 AM
@StevenLiekens Ah. Oops. Disregard what I said, this is a different method. I never used this one.
 
when I call some values from the DB, I cannot get the "year" visable" against the "Amount" the "year" is a combo box and should display the "last (latest)" entry of year when the data is called. instead the box stays empty and then I have to click the side arrow to bring the entry forward. any ideas how to get a fix to this issue.
 
@JG7000 Sounds like you are new to programming?
 
yes I am a novice
very new
 
@SteffenWinkler not understanding

@Squiggle i will do a gist with some code give me a min :s
 
@JG7000 Then here is a pro-tip; always break up code into pieces. In this case, you're essentially doing two things. First, you want to get values from the database, Then you want to display those values on a UI. Do the first problem first; get the values from the database and worry about the UI later.
 
7:55 AM
@AndréMarques if you've a ScrollViewer and that ScrollViewer is focused (focus is not on a seperate control inside or outside of it but on the ScrollViewer itself), pressing the 'Up' or 'Down' buttons on your keybord should move said ScrollViewer.
 
@JG7000 Once you have the values in a variable you want (You know, love your debugger), start worrying about the UI.
 
Morning all
 
Same as moving your ScrollWheel should move it @AndréMarques
morning @Ggalla1779
 
@JG7000 This approach makes every problem progressively easier, because right now you don't know if it's the database part or UI part that's giving you problems. So you're tinkering with both. That's inefficient and a waste of time. Do it step by step, don't start running yet :-)
/hints
 
7:57 AM
@SteffenWinkler but i need to do it through buttons on the screen
 
thank you for your professional insight ! I am getting the values but it's not displayed properly, that was my question
 
@AndréMarques buttons on a screen...? What buttons?
 
@JG7000 If you've verified this, all you need to ask is about the UI. We don't really need to know where values came from. They end up as primitive values after all.
 
@AndréMarques What you need to do is bind your Button's Command to the scrollup/down commands that the scrollviewer exposes.
1
Q: Bind Button.Command to another element by name

Arman HayotsI have Button, named left_button and ScrollViewer, named scrollv. How can I bind Button.Command to ScrollViewer.LineLeftCommand without code-behind?

 
@JG7000 So, which UI framework are you using?
 
7:59 AM
Dot net UI VS 2015
 

« first day (2047 days earlier)      last day (2900 days later) »