|
go play outside Skyler posted:look at me! i'm doing something ridiculously stupid in a dynamically typed programming language and expecting the results to have any meaning at all! i don't see why it's unreasonable to expect object identities to matter when using objects as keys
|
# ¿ Oct 8, 2016 12:58 |
|
|
# ¿ May 11, 2024 05:13 |
|
Blinkz0rz posted:js's objects are keyed off strings and always have been. if you try to use an object as a key js just does obj.toString() which comes out as "[object Object]". why is that weird or unexpected behavior? terrible programmer confession, but i actually didn't know that js turned everything into strings when using the values as keys
|
# ¿ Oct 8, 2016 13:14 |
|
Blinkz0rz posted:tbf that's mainly because of browser wars i unno, i don't think we can blame the bower/gulp/grunt/webpack/etc/whatever situation on ie6
|
# ¿ Oct 8, 2016 13:18 |
|
go play outside Skyler posted:what's wrong with bower/grunt? have you heard of gnu automake? autoconf? how about nuget packages? it's not the tools, it's the sheer and absurd amount of tool churn
|
# ¿ Oct 8, 2016 13:32 |
|
days, actual days of developer time wasted over a bug. probably 4 or 5 poor, wretched souls throwing away hours of their lives on this thing all ultimately due to some fucklord who buried an empty catch block in a rarely used overload of a method. this code is about 10 years old and the only reason i don't suspect active malicious intent is because i've seen what else this person has done
|
# ¿ Oct 10, 2016 08:55 |
|
Powerful Two-Hander posted:did it at least have \\TODO: should probably do something with this error? nope. it was (whitespace and all): C# code:
like they were ashamed of that catch, as they loving well should be the kicker is that it's an overload to a frequently used method (which actually propagates exceptions). everywhere this stupid overload is called is surrounded by try...catch {log()} which make it look like it does the right thing. of course, nothing was in the logs, so a bunch of people went barking up the wrong tree for quite a while. this has been masking the root cause of a baffling bug for about a year
|
# ¿ Oct 10, 2016 10:06 |
|
the cool thing about IDisposable is seeing people copy and paste the same lovely, unnecessary boilerplate. nothin like seeing a call to GC.SuppressFinalize in a class with an empty finalizer (or even better: no finalizer!) the c# team are definitely aware of IDisposable's shortcomings - there's a proposal out for destructible types with deterministic destruction. this would also introduce the notion of explicit ownership into c#, as only one thing can hold on to a reference to a destructible type. there'd be a move keyword to allow transferring ownership around
|
# ¿ Oct 13, 2016 09:59 |
|
Bloody posted:linq is banned at epic, because of course it is goddrat son are generics banned? they should be, as they cause unnecessary increases in code size, and decrease performance due to jit compilation and more pressure on cpu caches and whatnot
|
# ¿ Oct 14, 2016 05:51 |
|
jony neuemonic posted:yeah, i keep vs code around because it's a fine enough way to edit sql or config files and because i occasionally have to touch classic asp (i know) and there's an alright plugin for it. ssms or bust imo
|
# ¿ Oct 15, 2016 04:07 |
|
go play outside Skyler posted:1. no matter what bullshit microsoft says, it's not that open and the really cool stuff like wpf will never be ported he's right about these
|
# ¿ Oct 19, 2016 00:28 |
|
Pie Colony posted:it's ridiculous that these are the things that your certification tests. i cannot imagine a programmer that knows the JS type coercion minutiae and then chooses to write code utilizing it. but then again i don't really work with many JS programmers only people who completely bomb the type coercion part of the certification should be allowed to pass, as they'll be the ones who avoid js type fuckery at all costs. anyone who does well will only try to use their knowledge to (perhaps inadvertently) write completely opaque and awful code that relies on deep knowledge of js' obscure coercion edge cases
|
# ¿ Oct 20, 2016 08:21 |
|
lol if you don't regularly dump multi-thousand line changes that touch all over the codebase directly to trunk
|
# ¿ Oct 22, 2016 21:33 |
|
we don't do - branches - feature flags - automated testing - a hell of a lot of manual testing - dev/uat/staging environments (usually) we're still in business because most developments don't touch anywhere near the same code, because we actually do code review, and because our competitors are somehow worse
|
# ¿ Oct 22, 2016 21:40 |
|
vue is just a 2016 knockout knockoff
|
# ¿ Oct 28, 2016 20:46 |
|
nern posted:FS, the programming language at the core of meditech's more current software. the language consists of lists and two letter functions, basically. like @Wb - write body of window. there are tons of functions. and the documentation is terrible. and they often don't make sense intuitively and you can't name your code members (methods, basically) they are numbered 0 and up, so if you were to add one in the rest get renumbered and all your references are hosed. never thought i'd say this, but i think i'd rather use mumps
|
# ¿ Nov 8, 2016 07:37 |
|
what i'm getting from this thread is that the medical software industry is hella exploitative of people trying to break into dev roles
|
# ¿ Nov 8, 2016 07:40 |
|
Plorkyeran posted:you can't meaningfully implement a b+ tree in a language that doesn't give you any control over memory layout. you can write all of the algorithms and such, but if the end result doesn't have your leaves in contiguous blocks of memory it's all sort of pointless i'm sure some fucker can and has done something like this with typed arrays
|
# ¿ Nov 15, 2016 02:03 |
|
jony neuemonic posted:imo typescript syntax has some advantages over c#, especially the type declarations. "foo: string" beats "string foo" any day and the latter only exists to not scare the java programmers. but what about tabs/spaces?!?
|
# ¿ Nov 15, 2016 11:53 |
|
and then host that container in the cloud!
|
# ¿ Nov 16, 2016 08:10 |
|
raminasi posted:unless i'm misreading (and i very well may be) y'all are getting confused by the totally reasonable intuition that remove_if actually removes things from the container ok what
|
# ¿ Nov 17, 2016 10:54 |
|
so it prints 2 4 6 8 and absolutely fuckin destroys the original array? i'm terrified by what it could/would do to a more elaborate data structure i'm sure there's a really good and graybeardy reason for this, but holy poo poo give me a well-behaved, intuitive, modern lang any day
|
# ¿ Nov 17, 2016 11:57 |
|
on the topic of modern langs, here's a summary of the new features in c# 7 tuples will be nice to have. everything else strikes me as being pretty niche or situational from initial impressions
|
# ¿ Nov 17, 2016 12:01 |
|
Flat Daddy posted:with react and redux, a spa ends up being easier to write than hacked together jquery poo poo. and you can render every route on the server-side so you dont even lose anything. don't you need to use nodejs for server side rendering though? seems to me like a bit of a dealbreaker, although i guess it's not an issue if you're already into huffing js farts
|
# ¿ Nov 17, 2016 20:37 |
|
yeah, the problem with sprocs is that they make it so easy to use vendor-specific features we're stuck with mssql forever since we have an assload of procs that depend heavily on tsql syntax and features. it doesn't help that our business logic lives almost entirely in the db
|
# ¿ Nov 19, 2016 23:14 |
|
leper khan posted:it's not really a debatable topic; the spec says something or it doesn't. C++ does not allow it. i'm not sure what 'shall not be used' means in the context of the c++ spec, but implementation-defined is not undefined so it might be cool sometimes?
|
# ¿ Nov 23, 2016 08:29 |
|
whoops i just wasted minutes of my life on this planet trying to find what the c++ spec means by "ill-formed" for some reason
|
# ¿ Nov 23, 2016 09:14 |
|
toiletbrush posted:I used to write an extension method on IEnumerable to add an '.each(...)' method but whenever I did I had a spidey sense tingle that it was a bad thing to do - partially because if it didn't already exist it was probably for a good reason, and also because the fact it didn't return anything meant it had to be causing side effects (not that calling that out is a bad thing). Then a developer joined the team who was much better than me and said 'dont do that' and sort of confirmed my spidey sense. c# hero eric lippert has written about why there isn't an IEnumerable.ForEach() method in the standard library - as you say, it basically boils down to "side effects"
|
# ¿ Nov 23, 2016 12:12 |
|
there must be at least some situations where a compiler could detect an ill-formed program and bail out - perhaps e.g. if someone tries to call main()?
|
# ¿ Nov 23, 2016 23:39 |
|
hackbunny have you ever worked for microsoft, and if not why not? i'm pretty sure you know more about low level windows than most people who actively work on windows. i mean, your breadth and depth of knowledge on win32 is frankly amazing
|
# ¿ Nov 27, 2016 07:19 |
|
the cloud keeps getting more ridiculous
|
# ¿ Nov 30, 2016 22:45 |
|
recursion? uh, this is the terrible programmer thread
|
# ¿ Dec 3, 2016 12:56 |
|
Xarn posted:Thats what I am doing, but first I gotta unravel this mess. how long until you get pulled up for spending time refactoring instead of hacking new features x, y and z in?
|
# ¿ Dec 4, 2016 10:17 |
|
c++'s const correctness stuff seems pretty cool on the surface
|
# ¿ Dec 4, 2016 11:27 |
|
i used recursion once, to merge two xml documents. the code was, needless to say, very bad. took me a while to get it right too i am a v. terrible programmer
|
# ¿ Dec 5, 2016 02:26 |
|
i should probably learn some of those basic cs algorithms lol
|
# ¿ Dec 5, 2016 05:09 |
|
it kinda seems that "basic cs knowledge" would be something of a prerequisite for any interesting/challenging/novel work but then i remember where i live and the dearth of any jobs like that and go back to my usual state of ennui
|
# ¿ Dec 5, 2016 05:53 |
|
here's a whole lotta words by a proper sql server graybeard on options for implementing dynamic searches
|
# ¿ Dec 7, 2016 01:07 |
|
i know that vue.js (think knockout, but in 2016!) supports react-style server-side rendering. there's a third-party thing that allows server-side rendering in asp.net iirc
|
# ¿ Dec 8, 2016 09:26 |
|
trigger warning: front-end javascript frameworks
|
# ¿ Dec 8, 2016 11:17 |
|
|
# ¿ May 11, 2024 05:13 |
|
Flat Daddy posted:I couldn't put my finger on it but I just realized what's so bad about this codebase I inherited.
|
# ¿ Dec 9, 2016 04:39 |