|
yaoi prophet posted:Guess what this evaluates to in JS: a shitload of weed.
|
# ? May 12, 2012 08:33 |
|
|
# ? Jun 8, 2024 08:45 |
|
Otto Skorzeny posted:a shitload of weed. http://utf-8.jp/public/aaencode.html
|
# ? May 12, 2012 09:34 |
|
yaoi prophet posted:Guess what this evaluates to in JS: It evaluates to "fail" I'm going to explain the first few parts: (![]+[])[+[]] is "f" [] is an empty array. ![] first casts the array into boolean (true), then negates it, resulting false So at this point we have ("false")[+[]] The parentheses are pointless at this point, but were used earlier for grouping. +[] becomes the number 0, either through string conversion or directly, I don't know. So now we have "false"[0], which takes the first character of the string, "f". By doing the same kind of tricks to true, false, undefined (for example [][1]), Infinity (1/0) and NaN (+("false")) you can get the characters adefiIlnNrstuy e: adding an object ("" + {}) to the above, you get "[object Object]", which increases the available characters to abcdefiIjlnNoOrstuy[] Wheany fucked around with this message at 10:31 on May 12, 2012 |
# ? May 12, 2012 10:21 |
|
Wheany posted:+[] becomes the number 0, either through string conversion or directly, I don't know. String conversion. Number([].toString())
|
# ? May 12, 2012 17:20 |
|
Hey man, VB was doing automatic silent type coercion before it was cool . Variant says get off my lawn you drat kids!
|
# ? May 12, 2012 18:41 |
|
Biowarfare posted:http://utf-8.jp/public/aaencode.html Gonna run all my JS through this from now on.
|
# ? May 12, 2012 19:35 |
|
Haha, you can run the output through it over and over to produce arbitrarily large and slow-executing equivalent code.
|
# ? May 12, 2012 20:18 |
|
Haha nice. I'm going to have some annoyed coworkers next week.
|
# ? May 13, 2012 15:12 |
|
Who's ready for some MATLAB? http://abandonmatlab.wordpress.com/2012/05/11/errors-and-crashes/
|
# ? May 13, 2012 15:28 |
|
Was leafing through the camel book yesterday and came across use constantcode:
code:
|
# ? May 13, 2012 15:46 |
|
Fib posted:Who's ready for some MATLAB? Matlab could fill this entire thread with how awful it is.
|
# ? May 13, 2012 16:25 |
|
Carthag posted:Was leafing through the camel book yesterday and came across use constant
|
# ? May 13, 2012 17:06 |
|
PrBacterio posted:Ugh, what language is that? what else but perl.
|
# ? May 13, 2012 17:15 |
|
If I remember perl right, the => operator really just acts as a comma, but also treats strings as quoted, so that's creating an array of (1,'B',2). Apparently the proper way to do that is as a hash of constants, like: use constant { A => 1, B => 2}; I don't miss perl.
|
# ? May 13, 2012 17:26 |
|
It's pretty simple really, the constant package is terrible. I miss perl a lot.
|
# ? May 13, 2012 18:00 |
|
Sang- posted:Matlab could fill this entire thread with how awful it is. gently caress MATLAB: If you have a function GetData() which returns an array. Say you want the first element. Think you can do GetData()(1)? Nope, gently caress you, that's why. Gotta save to another variable. And this is if you ignore the parenthesis for indexing and the one indexing. Or the stupid loving warning messages you get whenever you add %#ok to your script to get the editor to stop whining about something stupid, like unused return arguments, which should be replaced by "~" but whenever you actually do that it returns an error because it cannot always be done and so you add the loving '%#ok' to avoid linting messages but then it suddently gives yet another linting error just saying that the supressed message is not generated anymore burn it all down Or the optional arguments style, which is Function(arg1, arg2, arg3, 'Keyword', 'KeywordValue') which leads to functions which take in strings being unable to process some strings because they trigger keywords. Consider the legend function, which takes in an arbitrary amount of strings, but also has keywords like 'Location' which cannot be used in the legend at all, because it triggers the legend placement subroutine. And the stupid toolbox logic they use - MATLAB can be licensed per toolbox, which quickly gets expensive. Say that you have the parallel computing toolbox: You can then solve trivially parallel loops using the parfor keyword. What happens when someone doesn't have the parallel toolbox? Does the loop execute serially like with say OpenMP? No gently caress you, it just terminates with a license error, requiring the programmer to write extra logic. And because the for loop is a keyword, you have to duplicate all the logic which isn't in functions since you can't just switch the type of loop. For the last year I have spent most of my programming in MATLAB. This is also the year when my whisky collection started shrinking, for some reason.
|
# ? May 13, 2012 21:26 |
|
Zombywuf posted:It's pretty simple really, the constant package is terrible. I forgot to mention that it hilariously implements the constant as a function that takes no parameters and returns the value.
|
# ? May 13, 2012 21:42 |
|
Carthag posted:I forgot to mention that it hilariously implements the constant as a function that takes no parameters and returns the value. What is a constant but a zero arity function?
|
# ? May 13, 2012 21:46 |
|
Yeah, use constant is pretty strongly discouraged in Perl Best Practices.
|
# ? May 13, 2012 22:04 |
|
Does future possibility for horrors count? Because my boss apparently just unironically suggested that we hire a bunch of ITT students and dope them up on caffeine to make the project we're working on move faster. ... And oh god, MATLAB. I know a few people who have touched it and they've never been the same since.
|
# ? May 14, 2012 17:48 |
|
Zamujasa posted:Does future possibility for horrors count? Because my boss apparently just unironically suggested that we hire a bunch of ITT students and dope them up on caffeine to make the project we're working on move faster.
|
# ? May 14, 2012 17:54 |
|
It's really too bad it doesn't show the whole picture. I have it on my desk. Off to the left, there's sabertooth tigers and vultures waiting for the bears to either get out of the tar or simply perish.
|
# ? May 14, 2012 17:55 |
|
trex eaterofcadrs posted:Ugh, I know. I've tried linking this (as well as things like evidence-based estimating/scheduling) but it does not help at all. They have no idea how programming works.
|
# ? May 14, 2012 18:07 |
|
Zamujasa posted:Ugh, I know. I've tried linking this (as well as things like evidence-based estimating/scheduling) but it does not help at all. They have no idea how programming works. Try linking it twice so he can read it twice as fast
|
# ? May 14, 2012 18:09 |
|
tef posted:Try linking it twice so he can read it twice as fast That's silly, he just needs to have 8 people to read 44 pages apiece
|
# ? May 14, 2012 18:17 |
|
Zamujasa posted:Does future possibility for horrors count? Because my boss apparently just unironically suggested that we hire a bunch of ITT students and dope them up on caffeine to make the project we're working on move faster. Hire one to work on a minor project. When the project crashes and burns, use that as an example to never hire them again. Unless your boss will suggest you hire another one to help the first one. Then you're screwed.
|
# ? May 14, 2012 19:08 |
|
If your boss suggests hiring a second inexperienced code monkey to help the first, show him a clip from the end of Simpsons S05E11 - "Homer the Vigilante" (after the townspeople start to dig for treasure and fail to find anything): "I guess we're not going to find anything." "Uh, how are we going to get out of here?" "We'll dig our way out!" "No, no, dig up, stupid!"
|
# ? May 14, 2012 22:50 |
|
tef posted:So did I Does it make me a bad person that I want to find out who it was and then buy them your avatar? Zamujasa posted:Does future possibility for horrors count? Because my boss apparently just unironically suggested that we hire a bunch of ITT students and dope them up on caffeine to make the project we're working on move faster. What does ITT mean here? Also - even apart from TMMM and the non-fungibility of programmer time - caffeine? Was he joking, or does he think that wiring the students up on caffeine will help them work faster? Or does he think the answer is to work super-long hours and stay awake using coffee so they can make more fatigue-related mistakes per day?
|
# ? May 14, 2012 23:13 |
|
ToxicFrog posted:What does ITT mean here? If watching the same six films over and over again on what used to be called TBS is any indication, ITT is a lovely "technical school" that takes money from people in exchange for what is, in the computing industry, a worthless piece of paper.
|
# ? May 14, 2012 23:22 |
|
ToxicFrog posted:Does it make me a bad person that I want to find out who it was and then buy them your avatar? If you're not American, ITT is essentially a degree mill with a focus on technology, although I remember them expanding into crime/law enforcement related fields.
|
# ? May 14, 2012 23:46 |
|
Basically ITT Technical Institute. The controversies part is really accurate. Even years after I checked them out I still get junk mail from them (and rarely a phone call). From the few resumes I've seen, most of the people we're referred from there have little to no actual experience doing anything.
|
# ? May 15, 2012 00:00 |
|
Zamujasa posted:Basically ITT Technical Institute. I knew it was worthless but this is outstanding: quote:"[The teacher wrote], 'Excellent job on the pro cons list. You were able to generate the required number of points, counter points for each issue'". Then, we asked Bradley to read what he actually emailed his teacher: "Ingredients: 2 1/2 cups all purpose flour, one pinch salt, two eggs beaten..." (from an article linked to from wikipedia.)
|
# ? May 15, 2012 00:08 |
|
My dad got an EE associates there in the 70s . I don't think it had that reputation back then, or at least he lucked out and got teachers who gave a poo poo because he got enough education from there to start his career of circuit designing, starting with DEC right out of school.
|
# ? May 15, 2012 01:00 |
|
Given that I was suckered into going to ITT for 4 years, I can vouch that my piece of paper is not worth anything. I actually had motivation to learn stuff on my own, but my god the school itself was worthless. I literally got A in classes I never turned anything in for. In my defense, I thought the idea of small classes with a focus on technology sounded great. In practice, it meant I saw the same six people for every class and the technology itself was outdated and severely locked down (and thus useless for actually, ya know, learning).
|
# ? May 15, 2012 02:20 |
|
Bhaal posted:My dad got an EE associates there in the 70s . I don't think it had that reputation back then, or at least he lucked out and got teachers who gave a poo poo because he got enough education from there to start his career of circuit designing, starting with DEC right out of school. I get the impression that ITT didn't turn into complete poo poo until the 90s. It's always been a meat-and-potatoes trade school, but it might not have always been worthless. One of the senior developers at my company has a degree from ITT. We basically ignored it. His technical acumen and his demonstrable work experience got him hired. Without the degree, we would have hired him anyway.
|
# ? May 15, 2012 02:42 |
|
DaTroof posted:Without the degree, we would have hired him anyway. I don't doubt that, but would he have had an interview in the first place without the degree?
|
# ? May 15, 2012 02:44 |
|
epswing posted:I don't doubt that, but would he have had an interview in the first place without the degree? Yes, but you bring up a legitimate point. In my company, applications for the development team come straight to the development team. If they went through an HR department with an arbitrary set of guidelines to follow, a lack of degree might have kept us from seeing it.
|
# ? May 15, 2012 02:58 |
|
Spent two days chasing down this bug.code:
|
# ? May 15, 2012 22:35 |
|
Bhaal posted:My dad got an EE associates there in the 70s . I don't think it had that reputation back then, or at least he lucked out and got teachers who gave a poo poo because he got enough education from there to start his career of circuit designing, starting with DEC right out of school. ITT started mostly as a hands-on trades school and had pretty good engineering course. Then they went down the late night informercial rabbit hole and will probably never come out. Compare and Contrast with DeVry.
|
# ? May 16, 2012 03:02 |
|
|
# ? Jun 8, 2024 08:45 |
|
shrughes posted:Spent two days chasing down this bug. google-test buddy! PS why does this need to be tested, does sizeof(cache_t) frequently change?
|
# ? May 17, 2012 08:50 |