|
Biowarfare posted:I definitely had webpages indexed on google with content in the description only visible by executing a setTimeout(eval($.ajax())) blob, this was in late 2013. Ah, that's good. Last I tried it didn't work, and the generally accepted SEO wisdom was that those weren't run, but now that I think about it that was quite a while ago.
|
# ? Sep 19, 2015 22:47 |
|
|
# ? May 16, 2024 11:46 |
|
Subjunctive posted:Ah, that's good. Last I tried it didn't work, and the generally accepted SEO wisdom was that those weren't run, but now that I think about it that was quite a while ago. Google is effectively the only crawler that executes advanced js, supports ipv6, supports ssl (including ecdhe-only cipher sets). But then again according to my analytics, all other search enigne traffic sending referrers is 99% google, 1% <everything else>, so (edit: the 99% is before i started doing js stuff too) Also before I get yelled at for using eval, it was for anti-scraping against some really abusive bots and bad users, settimeout and js were one of the ways to defeat curl/etc and make them have to actually work for it, and/or use additional resources like a headless browser (which was also generally detectable). I'd attach a timeout to the session like 376, render the template, and have settimeout request it in <obfuscated math adding up to 600>, if the clearly visible $.ajax URL was requested before that, the IP gets blacklisted and served completely invalid / wildly random data and response just to pollute their db - it was funny seeing them try things like regex out the "real data url" and then fail miserably at it Impotence fucked around with this message at 01:16 on Sep 20, 2015 |
# ? Sep 20, 2015 00:59 |
|
Biowarfare posted:But then again according to my analytics, all other search enigne traffic sending referrers is 99% google, 1% <everything else>, so Well, if your site can only be indexed (well) by Google, then that's what you'd expect.
|
# ? Sep 20, 2015 01:15 |
|
Suspicious Dish posted:it makes it a whole lot harder. yes, i know about the crazy #! thing
|
# ? Sep 21, 2015 01:03 |
|
microsoft, apple, google, reddit, twitter, github, tumblr, yahoo literally every web app i can think of is not a spa
|
# ? Sep 21, 2015 02:44 |
|
gmail is pretty close. FB plays URL tricks, but it's largely a SPA for most things.
|
# ? Sep 21, 2015 02:50 |
|
Vulture Culture posted:seriously, is this 2011? who writes webapps this way anymore? Yep, that's why no one cares about isomorphic, err universal JavaScript... Except that's not true, everyone cares about universal JavaScript these days because you can't just ship everything to the client and expect a good user experience, from search optimisation to initial page load performance, resilience when the JavaScript defers due to a lovely network, SPAs are just not the magic bullet you seem to think they are.
|
# ? Sep 21, 2015 10:47 |
|
Speaking of lovely network performance, is there any easy way to test websocket poo poo on the client side when my websocket server is still running on the localhost? I want to make sure that all my socket handlers still gracefully reconnect and resync when the websocket connection is temporarily lost without actually killing the websocket server. Is there something like a pass-through proxy I can set up to do this?
|
# ? Sep 21, 2015 12:06 |
|
German Joey posted:Speaking of lovely network performance, is there any easy way to test websocket poo poo on the client side when my websocket server is still running on the localhost? I want to make sure that all my socket handlers still gracefully reconnect and resync when the websocket connection is temporarily lost without actually killing the websocket server. Is there something like a pass-through proxy I can set up to do this? https://jagt.github.io/clumsy/ maybe? also you have no idea how confusing it is to randomly encounter maplestory avatars in cobol
|
# ? Sep 21, 2015 16:00 |
|
There's also Network Link Conditioner on Mac and tc on Linux.
|
# ? Sep 21, 2015 16:29 |
|
Maluco Marinero posted:Yep, that's why no one cares about isomorphic, err universal JavaScript... Except that's not true, everyone cares about universal JavaScript these days because you can't just ship everything to the client and expect a good user experience, from search optimisation to initial page load performance, resilience when the JavaScript defers due to a lovely network, SPAs are just not the magic bullet you seem to think they are. I think Vulture Culture was specifically talking about using hash fragments in the url to fake real urls instead of using pushState to manage urls directly?
|
# ? Sep 21, 2015 16:30 |
|
Maluco Marinero posted:Yep, that's why no one cares about isomorphic, err universal JavaScript... Except that's not true, everyone cares about universal JavaScript these days because you can't just ship everything to the client and expect a good user experience, from search optimisation to initial page load performance, resilience when the JavaScript defers due to a lovely network, SPAs are just not the magic bullet you seem to think they are.
|
# ? Sep 21, 2015 16:31 |
|
Been playing with react (holy poo poo it's good) and I a question:code:
DONT THREAD ON ME fucked around with this message at 22:45 on Sep 21, 2015 |
# ? Sep 21, 2015 22:26 |
|
Biowarfare posted:https://jagt.github.io/clumsy/ maybe? ...scared?
|
# ? Sep 22, 2015 06:06 |
|
MALE SHOEGAZE posted:Been playing with react (holy poo poo it's good) and I a question: And if you need to change / add props to the kid(s): JavaScript code:
|
# ? Sep 22, 2015 11:02 |
|
Maluco Marinero posted:Yep, that's why no one cares about isomorphic, err universal JavaScript... Except that's not true, everyone cares about universal JavaScript these days because you can't just ship everything to the client and expect a good user experience, from search optimisation to initial page load performance, resilience when the JavaScript defers due to a lovely network, SPAs are just not the magic bullet you seem to think they are. It's fairly easy to make an SPA performant, if you're not a complete idiot, and there are plenty of SEO modules out there for commonly used SPA frameworks. Also I think you'll find that users are perfectly happy to trade a performance hit every page-load for a slightly larger initial performance hit; this is fairly well trod ground. Like I said, people who hate on JS and related tools are huge babies or they're just afraid of JS's popularity or something. I don't get it. Just use the right tool for the right job and don't be a moron. Huzanko fucked around with this message at 18:42 on Sep 22, 2015 |
# ? Sep 22, 2015 18:39 |
|
Noam Chomsky posted:Like I said, people who hate on JS and related tools are huge babies or they're just afraid of JS's popularity or something. I don't get it. You really think that people who have several pages worth of posts over several years, and who probably do JS for a living, criticize (parts of) the ecosystem only because they're afraid of JS?
|
# ? Sep 22, 2015 21:00 |
|
Wheany posted:You really think that people who have several pages worth of posts over several years, and who probably do JS for a living, criticize (parts of) the ecosystem only because they're afraid of JS? He's oversimplifying, like most posts that complain about JS do.
|
# ? Sep 22, 2015 21:09 |
|
Wheany posted:You really think that people who have several pages worth of posts over several years, and who probably do JS for a living, criticize (parts of) the ecosystem only because they're afraid of JS? I work with JS, and a host of other things, for a living. I've been writing JavaScript for about 10 years now and for the past two years I've been professionally coding Angular SPAs for enterprise clients. I think I'm qualified to have an opinion on it, thanks. I don't know if people who complain about JS are afraid of it but it sure as hell seems like it most of the time. There is absolutely endless bitching about it to be found in every nerdy corner of the internet. It has its flaws but I don't think I've ever seen a language so voraciously hated by so many whiners. But, JavaScript was the first language I really learned - I've since picked up others - so I guess I've just been working around the shortcomings for so long that I just don't care; the features other languages posses are just gravy to me. Huzanko fucked around with this message at 21:48 on Sep 22, 2015 |
# ? Sep 22, 2015 21:43 |
|
So here is a stupid question. If I wanted to find a good webhost to set up a decent lamp stack, where would I start. Currently I've only done a setup on a fedora core VM. In the past I used 1and1 for php and mysql webhosting but I am looking for node js and postgres.
|
# ? Sep 22, 2015 21:55 |
|
If you haven't seen a language hated as much as JS, you must have missed the heydays of Perl and Java vitriol. Criticizing an aspect of JS, or an aspect of one way to employ it, need not be motivated by fear or jealousy, or even a dislike of the language. For those with significant exposure to many development environments and languages, it can simply be a wish that JS had a facility or ease that they've found elsewhere. That's where many aspects of JS came from, after all: we borrowed (usually) good ideas from elsewhere. From my perspective you're a relative newcomer to the language, heh, but I certainly have criticisms of both the language and different strategies for employing it. I'm certainly not afraid of JavaScript's influence; indeed, I've devoted much of my career to increasing that influence in different ways. That someone criticizes something I've helped build, or something I like, doesn't mean they're criticizing me, so I don't feel the need to assume ill intent on their part.
|
# ? Sep 22, 2015 22:48 |
|
Subjunctive posted:If you haven't seen a language hated as much as JS, you must have missed the heydays of Perl and Java vitriol. To be fair, I still hate Java. JS is great though, so far its by far my favorite language (I have (now) LUA, PHP, Java, Lisp and some C/C++ under my belt). Edit: TO clarify, under my belt means I'm a total newb scrub and literally know nothing Jr. Developer.
|
# ? Sep 22, 2015 23:03 |
|
Noam Chomsky posted:Just use the right tool for the right job and don't be a moron. Right, hence, don't use javascript if you can help it.
|
# ? Sep 23, 2015 00:54 |
|
German Joey posted:Right, hence, don't use javascript if you can help it.
|
# ? Sep 23, 2015 01:03 |
|
Knifegrab posted:So here is a stupid question. If I wanted to find a good webhost to set up a decent lamp stack, where would I start. Currently I've only done a setup on a fedora core VM. In the past I used 1and1 for php and mysql webhosting but I am looking for node js and postgres. 2. http://forums.somethingawful.com/showthread.php?threadid=3289126
|
# ? Sep 23, 2015 02:58 |
|
Javascript has first class functions and is therefore
|
# ? Sep 23, 2015 07:14 |
|
MALE SHOEGAZE posted:Javascript has first class functions and is therefore more like its one saving grace. but better than what? C++? PHP? we're dredging pretty bottom of the barrel here! if only it had a real scope implementation and an object model that didn't both require extreme abuse of these aforementioned first class functions, then it might actually be enjoyable to code in this horrible loving language! but probably not! THE WEB! GOTTA LOVE IT!!!!!!!!!!
|
# ? Sep 23, 2015 13:08 |
|
You want something other than lexical scope? Dynamic scope would be much worse, I think, so I'm curious as to what you have in mind. Which object model facilities do you find yourself wanting? Classes provide more traditional syntax, and proxies+reflect give a pretty rich meta-object protocol (though you have to implement defadvice or similar yourself if you want it).
|
# ? Sep 23, 2015 13:26 |
|
Subjunctive posted:You want something other than lexical scope? Dynamic scope would be much worse, I think, so I'm curious as to what you have in mind. If the scope rules aren't the same as in $CURLY_BRACE_LANGUAGE_I_PERSONALLY_LEANED_FIRST it's obviously not right and totally fake I mean come on this is obvious
|
# ? Sep 23, 2015 14:39 |
|
Munkeymon posted:If the scope rules aren't the same as in $CURLY_BRACE_LANGUAGE_I_PERSONALLY_LEANED_FIRST it's obviously not right and totally fake I mean come on this is obvious With let and use strict it basically is the same as those Algol descendants though. (Explicit this for member access in methods, but that's hardly unusual these days.)
|
# ? Sep 23, 2015 14:55 |
|
Subjunctive posted:With let and use strict it basically is the same as those Algol descendants though. (Explicit this for member access in methods, but that's hardly unusual these days.) Yeah :\ Is it weird that I'm a little disappointed that let is being added to the language? I mean, it'll help interpreters be more aggressive about garbage collection, right? Otherwise it just seems like a bunch of people just bitched and moaned about how it was too different and "Different bad! Bad! No like different! "
|
# ? Sep 23, 2015 15:09 |
|
Munkeymon posted:Yeah :\ Is it weird that I'm a little disappointed that let is being added to the language? I mean, it'll help interpreters be more aggressive about garbage collection, right? Otherwise it just seems like a bunch of people just bitched and moaned about how it was too different and "Different bad! Bad! No like different! " let doesn't really improve things for garbage collection very much (a bit in cases where you create a lot of garbage in one loop without reusing variables or something?), but binding-per-execution is useful for avoiding traps like the common: code:
It also removes the redeclaration behaviour, which can be a footgun in the case of large functions with closures. E: let also introduces the concept of a "temporal dead zone", which is Subjunctive fucked around with this message at 16:01 on Sep 23, 2015 |
# ? Sep 23, 2015 15:16 |
|
nodejs is my fav language
|
# ? Sep 23, 2015 16:28 |
|
so close to metal
|
# ? Sep 23, 2015 16:29 |
|
Subjunctive posted:let doesn't really improve things for garbage collection very much (a bit in cases where you create a lot of garbage in one loop without reusing variables or something?), but binding-per-execution is useful for avoiding traps like the common: But it doesn't make the naive expected behavior standard, so it doesn't actually help in that case because you still have to understand what's going on and proactively do something to fix the value in the inner function. It'll just change the standard answer to the question to include a let j = i; quote:It also removes the redeclaration behaviour, which can be a footgun in the case of large functions with closures. OK, that's cool and good. quote:E: let also introduces the concept of a "temporal dead zone", which is It's also another thing for newbs to misunderstand
|
# ? Sep 23, 2015 16:57 |
|
Subjunctive posted:let doesn't really improve things for garbage collection very much (a bit in cases where you create a lot of garbage in one loop without reusing variables or something?), but binding-per-execution is useful for avoiding traps like the common: I use this as one of my interview questions and ask them, "What's wrong, if anything at all?" 2 out of maybe 14 or 15 candidates this past summer (for a senior-level / managerial position) got the answer right. One asked why I didn't just use jQuery
|
# ? Sep 23, 2015 17:08 |
|
Newbs should just use let all the time. We actually had "let is the new var" T-shirts in 2010 or so.
|
# ? Sep 23, 2015 17:25 |
|
Question! There are a lot of jsdoc parsers that can evaluate comments in js files and generate JSON describing the code. What can I use to easily parse this JSON and make pretty jsdocs?
|
# ? Sep 23, 2015 18:20 |
|
Subjunctive posted:If you haven't seen a language hated as much as JS, you must have missed the heydays of Perl and Java vitriol. I should've been more clear. I am not saying JS is beyond criticism; I am saying that I have a growing dislike of the fact that it being imperfect is used as an argument for never using it, despite all languages and tools being imperfect.
|
# ? Sep 23, 2015 20:00 |
|
|
# ? May 16, 2024 11:46 |
|
Noam Chomsky posted:I am saying that I have a growing dislike of the fact that it being imperfect is used as an argument for never using it, despite all languages and tools being imperfect.
|
# ? Sep 23, 2015 21:08 |