just a prank, bro
113 karma · joined June 22, 2016
just a prank, bro
i'm not a fan of the wasted space around the centered but not-wide-enough url bar (urls are truncated even in the screenshots)
the rest seems decent though
it says the screenshots are mockups so i hope they improve
another site with a pointless thick black border around the viewport
it feels like internet tunnel vision
noticed this too, and it often won't let me pass without selecting the hills
or when it asks for street signs, i have to select every vaguely street-sign-looking poster and advertising sign or it thinks i didn't select enough
i wonder how it's affecting their training
i think my mental parsing at a glance of the short version of the first example trips over how there are no parentheses around the "msg" parameter and it looks like an ordinary variable until i reach the "=>" after it
and in the second example, parentheses (expression body) are used instead of braces (block body) but with indentation that's typical for block bodies so you can't easily tell it's an expression body at a glance (also depends on how well your font differentiates "{" and "(")
> Sometimes we’re tempted to assign names to things that don’t really need to be named. The problem is that the human brain has a limited number of resources [...]
i don't think intermediate variables are all that bad, especially for things that'd make an expression too long to comfortably fit on a line
or is it something only functional programmers care about
i'm not a fan of the currying and point-free and other things and find them pretty unreadable but i never did that kind of functional programming (to my knowledge) so i am not legally allowed to have an opinion on them
wow
really?
i thought flagging was for spam, not for super-downvoting articles you don't agree with
how many legitimate posts have been hidden from me because people super-downvoted it using flagging?
unless the posts are hidden manually by staff which i hope is the case
this doesn't work for the awful practice encouraged by eslint (at least when i last tried it) that consists of ignoring that there exists a keyword specifically for declaring functions, and abusing constants with arrow functions instead
sure, it prevents you from reassigning the function variable and using `this` but aren't those things what you use a linter for?
a project i know uses coffeescript and i see it as an additional hoop for possible contributors who otherwise know the web platform to jump through
(i contributed to that project once and accidentally introduced a bug related to variable scoping...)
i think nowadays people should be writing es6+ javascript instead (won't even need to transpile it in the future)
a malicious image, as in that opening it in a vulnerable program (browser or image viewer) would allow code execution?
those exploits usually require specially crafted image files, so i think re-encoding and optimizing the image (like using `jpegtran -optimize -copy none` or `optipng`) would possibly do for "sanitizing" the file
a code execution flaw in jpegtran or optipng would be worse though, but sandboxing might work to protect against them (i don't know much about sandboxing though)
i apologize for being a windows user but i somehow didn't think of that
it's like in this meme: https://i.imgur.com/TUEABrP.jpg
the majority of users don't go out of their way to disable scripts so i can totally understand it when site owners refuse to waste time (= money) catering to the needs of the small fraction of users that do
im not sure if java is any better than c# (what the real thing is written in) for performance
don't you also need permission to use the game assets like that
it just slows my system down to a crawl, requiring me to force a reboot
it probably depends on your hardware
and if i disable the pagefile, windows update stops working and at 75% memory usage it starts panicing and closing programs
// non-strict mode top-level code
function foo (complex = eval("1+1"), moreComplex = (function(){ with (this) { return bar; } }())) {
"use strict"; // go back and parse the parameters again but this time with strict mode semantics
// ...
}it's good to see jsperf back although i've kind of grown out of micro-optimizations (like different loop styles)
i just try to write readable code nowadays, letting the js engine optimize the common use cases for me
jpeg is lossy, even at 100%
https://stackoverflow.com/questions/7982409/is-jpeg-lossless...