|
you're probably not going to get the api in your head first time, but writing hello world wouldn't hurt before the interview. the thing really to focus on would be getting to grips with the differences with java, but for much of your code it isn't going to be much. linq is probably the most useful and fun thing to play with
|
# ? Jul 17, 2014 02:20 |
|
|
# ? May 14, 2024 13:17 |
|
~ signed someone who has done a little java and had to read some c# a couple of times
|
# ? Jul 17, 2014 02:21 |
|
coffeetable posted:all i know is what i can remember from Under the Hood of .NET Memory Management, but: thanks!
|
# ? Jul 17, 2014 02:22 |
|
bobbilljim posted:lol if your ORM doesn't handle closing connections properly python with: supremacy
|
# ? Jul 17, 2014 02:28 |
|
tef posted:at a guess. c# has a bunch of nice features that are super abuseable. linq, delegates, and extension methods being the top 3.
|
# ? Jul 17, 2014 03:01 |
|
gonna write nothing but extension methods to Object.
|
# ? Jul 17, 2014 03:10 |
|
At work we have piles of interfaces with a single method where everybody's implementation of it calls the same static method in a utility class and oh man I can't wait for us to upgrade to Java 8 so we can fix that and then get closures and everything else wrong for a couple years
|
# ? Jul 17, 2014 03:14 |
|
Shaggar posted:gonna write nothing but extension methods to Object. everytime i use a third party library that add an extenstion method to string i want to rip the balls of whoever wrote it the worst case i've seen is when the only way to create some object is through a string extension method, e.g. you can't new PieceOfShit("asss"), you must "asss".ToPieceOfShit().
|
# ? Jul 17, 2014 03:30 |
|
what is the difference between ls and dir and why cant i use dir sometimes?
|
# ? Jul 17, 2014 03:33 |
|
BONGHITZ posted:what is the difference between ls and dir and why cant i use dir sometimes? this isnt the windows RP thread
|
# ? Jul 17, 2014 03:35 |
|
BONGHITZ posted:what is the difference between ls and dir and why cant i use dir sometimes? dir is a bad windows command ported to linux in an ill fated attempt to make cjs feel nostalgic for their window washing days ls is a unix command that has served for over 30 years
|
# ? Jul 17, 2014 03:35 |
|
tef posted:well it's been a long while since i looked at java, so my memory is hazy, and it was off topic gonna have to nit you here and point out that the jvm deffo does do dynamic dispatch, that's the point of invokevirtual vs invokespecial. but it doesn't do late binding
|
# ? Jul 17, 2014 03:41 |
|
tef posted:i have no idea what this metaphor means. i'm trying to explain the mechanics of a programming language design through it's interaction with other pieces, without going too far into detail. was in reference to this http://www.theatlantic.com/politics/archive/2014/07/millennials-economics-voting-clueless-kids-these-days/374427/ coffeetable posted:i don't see anything polarizing in that at all nono, it was a good post it's just all tef's posts generate such a range of reactions
|
# ? Jul 17, 2014 06:34 |
|
USSMICHELLEBACHMAN posted:whoever posted this guys blog same but i keep writing bad code instead of reading all his posts bc deadlines aaahh says the guy reading yospos
|
# ? Jul 17, 2014 15:22 |
|
Shinku ABOOKEN posted:everytime i use a third party library that add an extenstion method to string i want to rip the balls of whoever wrote it lol. owned. On the other hand, I wrote a bunch of extension methods to stuff like HttpRequestMessage like bool TryGetCookieValue(String key, out String value) and its unbelievably nice
|
# ? Jul 17, 2014 15:25 |
tef posted:it's kinda lina a java with the bits that didn't work well or were used well removed, and some of the things that were missing that could be added because jvm compat wasn't an issue. but unlike another java descendent, scala, c# is for mortals Scala makes me feel dumber than I already am and I don't like that.
|
|
# ? Jul 17, 2014 15:25 |
|
Shaggar posted:c# has a bunch of nice features that are super abuseable. linq, delegates, and extension methods being the top 3. idk id put var in the top 3
|
# ? Jul 17, 2014 15:32 |
|
I've given up and started to use var now and then. whatever. i don't care.
|
# ? Jul 17, 2014 15:36 |
|
i just take a big ol steamy of var all over every code i write because im the only one who efver touches it so yolo
|
# ? Jul 17, 2014 15:37 |
|
Bloody posted:idk id put var in the top 3 i think resharper wants you to use var by default
|
# ? Jul 17, 2014 16:29 |
|
Kevin Mitnick P.E. posted:gonna have to nit you here and point out that the jvm deffo does do dynamic dispatch, that's the point of invokevirtual vs invokespecial. but it doesn't do late binding *cough* i get them mixed up sometimes
|
# ? Jul 17, 2014 17:04 |
|
Shaggar posted:I've given up and started to use var now and then. whatever. i don't care. feels good man
|
# ? Jul 17, 2014 17:05 |
|
I used to be anti-var but then I realized var is nice because it functions as a code-smell. Like, if I see `var` and I can't figure out the type without stepping into the other side of the expression, there is some room for improvement in the code.
|
# ? Jul 17, 2014 17:10 |
|
var is the greatest and it's sad that i have to use java 1.3 instead of C#
|
# ? Jul 18, 2014 02:03 |
|
bobbilljim posted:var is the greatest and it's sad that i have to use java 1.3 instead of C# holy poo poo, 1.3 what is going on at your employer
|
# ? Jul 18, 2014 02:38 |
|
bobbilljim posted:var is the greatest and it's sad that i have to use java 1.3 instead of C# wowow. and I get upset I haven't had a chance to use 1.8
|
# ? Jul 18, 2014 02:45 |
|
I always use var when the type name is on the same line because String str = new String(); is dumb
|
# ? Jul 18, 2014 02:51 |
|
var cannot escape the scope of a function right?
|
# ? Jul 18, 2014 03:13 |
|
you can var wherever you like
|
# ? Jul 18, 2014 03:48 |
|
Shinku ABOOKEN posted:var cannot escape the scope of a function right? you're thinking of anonymous types
|
# ? Jul 18, 2014 03:52 |
|
"var" isn't a type, it means "infer the type of this variable from the expression on the rhs" the statement "var x;" is not valid c#
|
# ? Jul 18, 2014 03:54 |
|
i was confused by Bloody posted:idk id put var in the top 3 [nice features that are super abuseable] i guess if you deal with a 100 pages long function it might be hard but i've never had bad experience with var (i use it all day everyday ftw)
|
# ? Jul 18, 2014 04:56 |
|
i dont consider abuse of linq to be a bad thing
|
# ? Jul 18, 2014 04:59 |
|
Never code for an embedded platform
|
# ? Jul 18, 2014 05:02 |
|
"dynamic" is super easy to abuse in really fun ways it's semi-trivial to write something that wraps any object and exposes its private/internal/etc members as public
|
# ? Jul 18, 2014 05:10 |
|
also occasionally there are two very similar, but semantically different, types, either of which can be returned from a function, and you want one of the properties that's common it's really nice not to have to write the same code twice
|
# ? Jul 18, 2014 05:12 |
|
bobbilljim posted:Never code for an embedded platform listen to this man give me job security
|
# ? Jul 18, 2014 05:22 |
|
I'm finally tired of being a lazyfuck. Gonna fix me some threaded gui poo poo. I also finally started getting lambdas and .NET's version of filter map reduce so I feel ambitious. "Delegate to an instance method cannot have null 'this'. " loves to pop up if I call .StartWaiting() and then call .Endwaiting() too soon afterwards from the thread actually doing work. I don't know if the proper way to handle this is to force the thread calling the stop/start wait to itself wait (HEH) or wait on a message from the message box or what. This is my first time debugging threaded poo poo and isn't even my code. Note this is written by a largely absentee guy who wears vibrams every day. code:
Yeah yeah I know vb.net whatever. If you're gonna mock it mock the loving thread sleeps The code that then CALLS this does so like this: code:
But I no longer want to do such shameful poo poo. I'd rather fix this already. Please help me unshit this code.
|
# ? Jul 18, 2014 19:43 |
|
that is terrible. is this windows forms or wpf? why the hell are you starting a window in a new thread? what the hell is going on ?
|
# ? Jul 18, 2014 20:53 |
|
|
# ? May 14, 2024 13:17 |
|
Shaggar posted:that is terrible. is this windows forms or wpf? why the hell are you starting a window in a new thread? what the hell is going on ? Sr Dev: Hey do this Me, having not done anything but MVC in a year: Sure! *Sr Dev disappears for weeks again* Me: WTF? Would it be "how" of me to just do this again from scratch?
|
# ? Jul 18, 2014 20:55 |