« first day (1756 days earlier)      last day (3194 days later) » 

2:00 PM
He is just a misunderstood lovable weirdo, in Portland, Oregon our motto is keep Portland weird. So he would fit in perfectly.
@SteveG Documentation thought?
 
hello all
 
Hello
 
@Greg are you familiar with mvc ?
 
Yes.
No.
Maybe so.
 
ok.
 
2:02 PM
Yes, I'm familiar.
 
I have a small prob
 
@Greg DDD? Books? No idea.
 
well, its turning out to be one of those days. Time to pop a Xanax and go back to bed.
 
@RoelvanUden Fuck my couch! Hm, ponder on this I will. Need to fill some knowledge gaps.
 
@Greg I have View containing two partial views. ist view doing search and displays the result in second partial view in the same page.
 
2:03 PM
Uh huh?
 
@Greg Well.. I don't intent to be rude, but don't you think you're trying to fill too many knowledge gaps with pure theory? I admire you're willing to learn more and more, to continue to improve yourself, but are you sure you write enough (bad) code to actually be able to internalize new theories and see their immediate advantage (opposed to blindly following "best practices")?
I personally learned almost everything through writing horrible, horrible code.
 
> intent intent intent intent intent intent intent intent intent intent intent intent intent intent intent
 
@RoelvanUden That isn't rude, honestly I'm not sure. I see bad code, really bad code. However I'm not sure I've seen enough to truly benefit, but I do know our architecture is poorly designed with incredibly limited scalability and maintainability.
 
@RoelvanUden Hey I do that
 
@Greg the prob is when search button (which is in ist partial view) is clicked my second partial view is also getting posted
 
2:06 PM
!!Wiki Post
 
@Greg Post A surname​.
 
@Greg any suggestion how to stop postback in second partial view?
 
!!wiki HttpPost
 
@Greg The Gods of Wikipedia did not bless us
Post or POST may refer to: == Mail == Mail, the postal, especially in Commonwealth of Nations countries Hotel post, a service offered by remote Swiss hotels for the carriage of mail to the nearest official post office Post, an entry in a blog or internet forum; see posting style == Newspapers and magazines == The Post, a list of newspapers Australasian Post, a defunct Australian weekly magazine Post Magazine, a British magazine first published in 1840 == Music == Post (Björk album), the 1995 third studio album Post (Paul Kelly album), the first solo album Post Records, record label Po...
 
@coddey You should read up on a Post, however you could use Ajax. But I don't understand your structure entirely. Wouldn't a result rely on the search?
@RoelvanUden I'm not sure if what I said up above actually makes sense.
 
@Greg Sure. But you're limiting yourself completely to the architecture you're constraint in, at work. I don't know your personal situation, but you may benefit a lot more from doing on-the-side projects (e.g. hobby projects) and experiment. Theory alone is not enough.
 
@Greg @CuddleBunny thanks :)
will look into the link
 
When you post, it reloads the whole page so you need to use AJAX and break up the page into regions that can get re-rendered independently. What you need to understand is that once the page is rendered the browser has no idea you used ASP.NET let alone partial pages.
 
@RoelvanUden I'll have to definitely do that.
 
@CuddleBunny any link for creating ajax enabled form m new in mvc
:(
 
2:17 PM
@coddey The link he sent is designed to use MVC to do partial postbacks per your View that should work.
 
k
 
why did I wake up at 5:30 this morning :(
also why did I go to bed at 3:30 this morning :(
 
@Pheonixblade9 because you really love your work
 
lol
I have 2 interviews next week :)
need to find a website that gives good intermediate coding questions
like tree and hashmap stuff. data structures
maybe I'll just go through some of my textbooks
 
@Pheonixblade9 Do you have a copy of CLRS around? I'd read that
It's fun to read anyway, I think.
 
2:24 PM
@Pheonixblade9 hackerrank.com
 
@Jeremy dunno what that is. I have Cracking the Coding Interview
 
!!tell pheonixblade9 google CLRS
 
@Rovak I'll try that, thanks :)
 
2:25 PM
@Pheonixblade9 It's (I think) the best data structures/algorithms textbook on the basics. Very readable, and should contain any of that technical/theoretical stuff you'd need to know.
 
Happy Weekend Guys :D
 
It's also kind of the canonical intro to algorithms and data structures book.
 
@Pheonixblade9 just do the FizzBuzz challenge and you should be fine
 
@Jeremy gotcha. we had a college-published binder written by the prof for my class
it was only like $10 at least, lol
@Rovak well this is interviewing as a senior dev, so I am probably expected to know more than that
I'm also going through stuff in CodeSchool
 
2:42 PM
@Pheonixblade9 I've found that the one-off binder/volume written by the professor approach is really nice when you're taking the class, but sometimes not very fun if you want to relearn/refresh years down the read.
 
but, it's immutable? so at compile time it should resolve to the value of `string.Empty` I'd think?

public static void Method1(string str = string.Empty) {} //doesn't compile
public static void Method2(string str = "") {} //compiles
@KendallFrey ^
not sure why the reply didn't tag you...
lol my bad if it is pinging you
 
@NETscape selecting fixed font doesn't deal with replies correctly
 
@NETscape it did :P
 
whoops
 
@KendallFrey But this isn't true: public static readonly string Empty
 
2:45 PM
hi guys any idea why i get this error when parsing some data from a webapi?

json = await response.Content.ReadAsAsync<string>();

its giving the error {"Error reading string. Unexpected token: StartArray. Path '', line 1, position 1."}
example of the return is
[{"installerid":1,"created":"2015-07-31T11:43:22.663","name":"Test Name 2","address1":"Address1-11","address2":"Address2-","address3":"Address3-","addre‌​ss4":"Address4-
 
@Jeremy Of course it's not true, it's ""
 
@KendallFrey rimshot
@NETscape default parameters have to be constants. string.Empty is just readonly, for whatever reason.
 
@NETscape It's a field. It doesn't have a value at compile time
 
94
A: Why isn't String.Empty a constant?

Jeff YatesThe reason that static readonly is used instead of const is due to use with unmanaged code, as indicated by Microsoft here in the Shared Source Common Language Infrastructure 2.0 Release. The file to look at is sscli20\clr\src\bcl\system\string.cs. The Empty constant holds the empty string ...

booooooooooooooo
 
@ton.yeung read the comments above it
 
2:52 PM
@ton.yeung money is drugs?
chips are drugs?
gambling is drugs?
 
@Jeremy what is drugs?
 
@KendallFrey Baby please hurt me
 
Lol
 
/friday
 
2:58 PM
@Jeremy that's an awesome post! I read it earlier.
 
@Jeremy noob
@Squiggle bigger noob
 
u r teh nob
 
@Sippy u fokin wot m8
 
@Jeremy m9 ill rek u
 
nobos the lot of yas
 
3:00 PM
fuk aff ya fukin geordie bastad ye
Are you actually from Newcastle?
Ah no
I remember now
 
LEEDS
 
I KNOW
I REMEMBEREDEDED
 
YORKSHIRE YORKSHIRE YORKSHIRE
 
Is this becoming a song?
 
no that's just wot we say
ah, good times.
damn I'm being SO productive today
 
@Squiggle ^ seen on a boat by my mate somewhere...northern
can't remember exactly where
 
@TomW standard.
 
They misspelled "pain"
 
haha
pull out tpain, thats what she said?
 
on a boat
 
3:20 PM
pls no T-Pain babbys
 
I just realized I don't know how to write documentation. Right now I'm just sitting here writing how to's for my application. Hopefully that's good enough.
 
^^ going to be adding to ours today too
 
@Griffin my rule of thumb is divide into fours: Why, What, How, What If. OK, it's not actually my rule, but something I picked up in professional skills training
 
@TomW Not sure about What and why but how would be a useful thing to add here. Also probably a pain in the ass thing to add.
 
Basically:
Why does this feature/library/module/function exist
What's it made of, what comprises it, what are its arguments etc
How do you use it
What do you need to be aware of and what doesn't it do
 
3:27 PM
@Griffin You mean for a README?
 
@Jeremy No. This isn't information you need to read unless shit breaks. I'm not sure what they meant by documentation. I think they just want to know the very basics of how it works if shit hits the fan.
@TomW Oh, that's very different than what I was thinking of. I got the how to use it but then I was going write more of a "basic flow" kind of thing that just shows how each model will react when it's called on a higher level.
 
> I'm not sure what they meant by documentation
Should probably figure that out first before starting work
 
@Jeremy What I am writing should be included regardless of what they meant. They're pretty much just "what do when stuff change" instructions.
 
@Griffin ok, well, my assumption is that you're aiming to be comprehensive, maybe that's not the case though. What I'm suggesting aims to circumvent the "cool story bro" kind of reaction. In other words "Why are you telling me this?" is not a great reaction to have to reading documentation
if you have a very specific aim in mind, then that's fine
 
@TomW Exactly what I'm trying to avoid. When they go into the documentation they're probably looking to change something. Right now I'm writing out a collection of "how to's" for the most common changes I could think would happen.
All the code inside this project stays inside of it and won't be used outside so I think I'll be safe on avoiding writing about what each method does.
 
3:38 PM
Documentation has a tendency to stagnate, especially if it's impenetrable.
i.e. write too much and people will neither read it nor maintain it
 
@Jeremy ya got me.
 
FUCK God damn it testing.
 
@Squiggle frustrating situation. People complain that nobody understands the stuff that only one person works on (usually) me. So I write documentation and people complain that I write too much
 
@Squiggle Absolutely, yes.
 
@TomW so if people are going to complain either way, just don't write documentation :)
 
3:45 PM
@TomW Which strategies do you use?
@TomW DESIGN.md?
 
The most useful thing that can be written about software is to explain why it exists.
What problem is it solving? Whose problem is it? Why have you taken that approach?
 
@Jeremy hm?
 
@TomW I mean, how do you solve that problem, yourself?
 
@Jeremy well I guess as it still happens, I haven't
 
@TomW When you say that nobody understands what you're working on, what do they mean? That they don't understand how to use/consume your functionality? That they don't understand the problem it's trying to solve? That they don't understand how it works? Why do they need to know?
I'm curious because this is a really deep-seated problem at my work now.
 
3:56 PM
I try to use expressive names for everything and explain myself in comments whenever I do something outside the box. Everyone who actually reads my code seems to understand it.
even if I have a bunch of function DoSomethingReallyWeirdThatNeedsALongExplanation() that is what intellisense is for :)
 
@ton.yeung That's pretty sound. I always stress how important it is to note the assumptions when writing specs and quotes, in particular.
 
and 80% of the people who need to understand my code aren't programmers so I have to make sure they can at least understand it enough to know where to put it when re-designing from templates.
 
you work with designers?
 
yeah
e-learning stuff is 90% Flash, and before a couple years ago wasn't very code intensive.
So the team has only 3 programmers and like 20 designers because the work was so graphics heavy.
My mission is basically to transition everyone to a more code driven approach while still facilitating our heavy Flash expertise.
 
Isn't Flash a bit of a legacy technology now though?
even for e-learning?
 
4:10 PM
for corporate e-learning it is still the core of the business.
Mostly because big corporations, schools, and governments are the major customers and they move slow.
For a handful of them I need to support IE7 and 8.
and Flash is the easiest way to do that
 
:X
 
so we have multiple output types for different browsers because what works in IE8 sure as hell won't work on the iPad and vice-versa.
 
bbq time now. Have a great weekend, all.
 
I want bbq :(
mail me some.
 
I would want bbq over IE7 support too
 
4:49 PM
Hey guys, not sure if you are comfortable with bit shifting but if I had hexadecimal value of 0x7E and I want to shift it right by 8, then use Not operator what will it be? I tried those calculators online but I keep getting different values (like -1 and 14F for the final result).
 
@KalaJ -1 is the right answer
 
ok thanks Kendall! I'll give it a try
 
!!> ~(0x7e >> 8)
 
@KendallFrey -1
 
ohh cool!!
Caprica can bit shift?
 
4:53 PM
lol
 
that is cool
 
If that's a yes, I will be spamming this channel :P
 
@KalaJ Yes, JS can do bitwise math
 
wow
!!>~(0x7e)
 
@KalaJ -127
 
4:55 PM
@KalaJ or you could just use LINQPad, DotNetFiddle, Visual Studio, JSFiddle, JSBin, or even your lonely little browser console
 
the shift brings the value to 0, and the not creates an all-1s value, which is -1 for signed ints
 
ah I see
what if I wanted an unsigned int answer?
 
then the answer would be uint.MaxValue
 
so it'll be 1 if I want an unsigned int vs. signed int
instead of -1 that is
 
what?
what will be 1
 
4:57 PM
~(0x7e >> 8)
 
no
do you not read
2 mins ago, by Kendall Frey
then the answer would be uint.MaxValue
 
the 32-bit binary value 11111111111111111111111111111111 can be interpreted as a signed int (-1) or as an unsigned int (4294967296)
Two's complement is a mathematical operation on binary numbers, as well as a binary signed number representation based on this operation. Its wide use in computing makes it the most important example of a radix complement. The two's complement of an N-bit number is defined as the complement with respect to 2N; in other words, it is the result of subtracting the number from 2N, which in binary is one followed by N zeroes. This is also equivalent to taking the ones' complement and then adding one, since the sum of a number and its ones' complement is all 1 bits. The two's complement of a number behaves...
 
Hi Guys I'm getting a Self referencing loop detected for property when returning some json on Ok(result);

this works

return Ok(
JsonConvert.SerializeObject(
results,
Formatting.None,
new JsonSerializerSettings()
{
ReferenceLoopHandling = ReferenceLoopHandling.Ignore
}));

but obviously because im serialising twice i get additional "
 
@KendallFrey @MikeAsdf, opps, ah thanks!
 
HttpConfiguration config = GlobalConfiguration.Configuration;

config.Formatters.JsonFormatter.SerializerSettings.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
this doesnt seem to fix
 
5:00 PM
oppsan gangnam style
 
lol
 
posted on April 29, 2015 by Rich Lander [MSFT]

Updated (July 2015): See Announcing .NET Framework 4.6 to read about the final version of the .NET Framework 4.6. At the Build conference today, Scott Guthrie announced the .NET Framework 4.6 RC and Visual Studio 2015 RC. He also announced important updates for .NET Windows 10 apps, ASP.NET 5 and .NET Core. You can download and try out the releases now: Visual Studio 2015 RC .NET F

 
@user3545438 What problem are you trying to fix?
 
self referenceing loop
basically i would return Ok()
Ok(myresults)
      return Ok(
            JsonConvert.SerializeObject(
            results,
            Formatting.None,
            new JsonSerializerSettings()
            {
                ReferenceLoopHandling = ReferenceLoopHandling.Ignore
            }));
works and lets me send it
but i get an error when i try to deserialise
JavaScriptSerializer oJS = new JavaScriptSerializer();
// json = await response.Content.ReadAsStringAsync();
List<Survey> surveyListObject = new List<Survey>();
surveyListObject = oJS.Deserialize<List<Survey>>(json);
 
what's the error?
 
5:09 PM
You're trying to remove the reference loop? In that case, the problem isn't anywhere near the code you've posted. I can't help like that.
 
just trying to ignore the loop i suppose
 
what your doing here?
 
@Jeremy largely along the lines of "you've written complicated code to solve what I thought was a simple problem, why?"
 
yeah but its not deserializing
 
who cares
 
5:10 PM
@user3545438 how is it not deserializing?
 
it should work
 
do you get an error? or do you get unexpected results?
 
@user3545438 Well, apparently your object requires some information in the loop to deserialize properly
 
Not so much for me, but some of the other self-contained services on this project, written by other people with somewhat astronauty design skills
 
Yes ignoring the loop may be a bad thing. you probably want to either fix the loop, or reconsider your architecture
 
5:12 PM
@Jeremy oh, and they need to know because I'm leaving at the end of next week and someone will need to maintain it
and by maintain I mean major enhancements, because it's incrementally done but not truly finished
 
@TomW Well, that's all very reasonable.
There's always the "if you need to add a feature or need me to advise in this area, I'm billable at 100GBP/hr"
 
@Jeremy I think there is a tendency to call everything that isn't in one's preferred style 'complicated'
 
;)
@TomW IDK, are SOLID principles regularly violated in that code?
 
@Jeremy ohhh no. My old employer wouldn't do any deal with my new employer. Not anymore.
@Jeremy I don't think so. I think it's a very good example of SOLID, personally. However what it seems to have done is push all the fiddly stuff into a massive factory, which is...not very nice
the rest of the code is fine
 
5:28 PM
I've given some thought to how to resolve the stinky factory problem but haven't come up with much yet
 
why does VS report 'unobtainable at this time.' when remote debugging after using the value
 
!!>~(0x7D >> 8)
 
@KalaJ -1
 
@juanvan I know the debugger doesn't like evaluating certain things. Probably better off logging it if it doesn't ask if you want to force it.
 
its getting logged I wan to see it before the log in code
 
5:39 PM
@KalaJ ugh. That bitwise-not operator.
 
Tell me about it
 
@Jeremy what of it?
 
@juanvan what type of variable is it?
 
local object property nothing has a value
 
why is void Method<T, T1>() where T : class where T1 : T not the same as where T : class where T1 : class, T?
 
5:43 PM
@juanvan weird, that should work. Are you debugging a separate thread?
 
as in why does T1 not infer the constraint of T
 
@CuddleBunny it's remote, on an IIS worker
 
0
Q: Why ScriptManager causes postback on RequiredFieldValidator in ASP.NET (Web Forms)?

Kevin MaxwellBefore adding the ScriptManager when I was clicking on the login button it was showing the required field warning without page postback but after that it has started to do postback first and then validate fields. It's required to add a ScriptManager when there is an UpdatePanel on the page. How...

 
@juanvan I don't remote debug much, but do you have build output debug set?
 
5:47 PM
ya the pb are being published or would not hit the breakpoints
code is working now - on to part 2 and debug in the blind
 
google suggests that most people having this problem are maxing out on memory for not disposing things.
 
HA! on this page of 5k lines I could not argue
 
@Underscore Method<IComparable, int>
 
@KendallFrey ah, makes sense, thanks
 
Doesn't really make sense, but there you have it
 
5:55 PM
@KendallFrey I'm not used to seeing it. Everytime I do, I feel my brain has deadlocked, or something. ._.
 
sorr for the delay in response the issue for my self ref error is the fact my survey class has a list of sections and the section has a survey? How can I stop the ref loop?
 
Does survey.Section refer to the same Section as the one where the survey is in the list?
 
there's no way to watch an American Presidential debate without paying for cable.... Proof it's about the MONEY
 

« first day (1756 days earlier)      last day (3194 days later) »