[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/wdg/ - Web Development General

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 322
Thread images: 33

File: 4.png (868KB, 822x552px) Image search: [Google]
4.png
868KB, 822x552px
>This season's Advent of Code:
https://adventofcode.com/2016/

>Discord
https://discord.gg/wdg
OR
https://discord.gg/0qLTzz5potDFXfdT
(they're the same)

>IRC Channel
#/g/wdg @ irc.rizon.net
Web client: https://www.rizon.net/chat

>Learning material
https://www.codecademy.com/
https://www.bento.io/
https://programming-motherfucker.com/
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md
https://www.theodinproject.com/
https://www.freecodecamp.com/
http://www.w3schools.com/
https://developer.mozilla.org/
http://www.codewars.com/

>Useful Youtube channels
derekbanas
learncodeacademy
funfunfunction
computerphile
codingrainbow

>Frontend development
https://github.com/dypsilon/frontend-dev-bookmarks

>Backend development
https://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks
[Gist] backendDevelopmentBookmarks.md

>Useful tools
https://pastebin.com/q5nB1Npt/
https://libraries.io/ - Discover new open source libraries, modules and frameworks and keep track of ones you depend upon.
https://developer.mozilla.org/en-US/docs/Web - Guides for HTML, CSS, JS, Web APIs & more.
http://www.programmableweb.com/ - List of public APIs

>NEET guide to web dev employment
https://pastebin.com/4YeJAUbT/

>How to get started
http://pastebin.com/pDT82mQS
http://pastebin.com/AL6j7GEE

>cheap vps hosting in most western locations
https://lowendbox.com
https://www.digitalocean.com/
https://www.linode.com/
https://www.heroku.com/
https://www.leaseweb.com
>>
Old thread
>>60603506
>>
File: vue-newsletter.png (30KB, 912x364px) Image search: [Google]
vue-newsletter.png
30KB, 912x364px
Have you switched to Vue.js yet?
>>
How are torrent site operators breaking the law?

How can they charge the site owners with anything if they have a DMCA takedown list and the website is saying "Don't upload works you do not own or have the rights to"
>>
>>60643174
like bad projects that only have build scripts for linux?
>>
>>60643159
no, I'm perfectly fine with React+Mobx
>>
>>60643179
access to ubuntu repository and PPAs.
easy to update things with apt, run dev servers, etc.
probably more time consuming if you try to do it purely in windows in the end.

>>60643189
man, if you want to develop on windows just go for it, it's probably fine.
Feel like webdev is one of the rare areas where linux "just werks" though.
>>
So I started the web developer bootcamp course on Udemy by Colt Steele.

I had a fairly easy time getting through all the HTML, CSS and Bootstrap components and I've gotten through some Javascript stuff. Although I've noticed that my progress has slowed.

I'm feeling a bit of doubt about my own intelligence. I am kind of struggling with comprehending Javascript. It took me 30 minutes to fully understand a foreach loop.

Is this normal? Am I stupid? Is this the wrong career path for me?

Sorry if I'm coming off as a whingy faggot.
>>
>>60643292
if you made it this far you are probably smart enough anon, dont sweat it.

what exactly did you get hung up on with that topic, that took so long?
>>
>>60643292
1. you are a whiny faggot
2. stick with it
3. you'll get it eventually
4. self-confidence bro
5. fo shizzle
>>
>>60643330
It was using a foreach loop with an array and an anonymous function. I don't know why it took me so long to understand it. I feel like a struggle to remember all of the syntax.

Now that I look back at it I don't know what was confusing me so much it really isn't that complicated.
>>
>>60643424
as i said in >>60643411 just stick with it man

array looping and closures are things you'll encounter a lot and now you've got the jist of it so dont stop now. fug outta here nig and get back to coding.
>>
>>60643424
>I feel like a struggle to remember all of the syntax.
i think it becomes easier when you know what each part of the syntax is

a function is just another value you can pass to a function
>>
>>60643457
Yeah, I gotta get back to it.

>>60643467
Yeah, I'll have to go over the docs or read some books so that I know what I'm actually doing.
>>
Linuxtards think that in order to develop programs you absolutely have to use poorly made, unintuitive text editors and software packages that are frequently abandoned by their maintainers that only work on them in their spare time anyway.

Just use Windows.
>>
>>60643424
no need to worry about knowing all the syntax by heart, as long as you know how to look things up and figure them out by yourself in the end.

would recommend to bookmark mdn or add it to your list of search providers if you haven't yet
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach
>>
>>60643508
how much are they paying you?
>>
first for Win 10 + Ubuntu VM
>>
>>60643524
nice shitpost
>>
>>60643524
Nothing, I do it for free to hopefully save some poor soul from years of frustration and eventually coming to think it's normal to be constantly having problems with your computer.

Linux users are abused housewives.
>>
>>60643508
wtf are you even on about.
You use the same editors (VS Code, Atom, whatever) on linux or win.
Same with other things like NPM, etc.

what exactly do you use on windows, that's not available on linux when it comes to web development?
>>
>>60643508
But Sublime text, VSC, Atom, Netbeans... are avaliable in Linux. I spent 4 years as a developer using Mint-Ubuntu. You should install Gentoo.
>>
>>60643524
>>60643551
>samefag

it's not like you were replying to someone. you just threw it out there to just use windows, so the question of who's paying you is warranted.
>>
don't know how you can consider yourself a developer if you don't use MacOS Sierra.
>>
>>60643590
meant for >>60643539
>>
>>60643566
>>60643580
Yeah, most of those tools are available on Linux also. But there's so much other stuff. Changing your network settings on Linux can be anything from mildly annoying to a straight up nightmare if you make even the slightest mistake. On Windows this is not a problem. Dealing with user accounts and admin permissions sensibly rather than either having to type in your sudo password or just straight up unlocking the computer for everyone.
Using Linux day to day is a complete fucking chore and it's not normal. Please, for your own sake, choose a better life than this. You're worth more.
>>
File: anime.jpg (53KB, 500x500px) Image search: [Google]
anime.jpg
53KB, 500x500px
>>60643607
>everyone who disagrees with me is a samefag
>>
>>60643626
usermod -a -G shills anon
>>
>>60643626
>Changing your network settings on Linux can be anything from mildly annoying to a straight up nightmare

I give you that.
Doubt anyone would argue, that windows isn't more user friendly for the general user.

You were specifically talking about editors and software packages earlier though.
>>
>>60643639
>says others are shitposting
>shitposts

dont you have a project to work on?
>>
>>60643691
i just thought it was very shitposty to say "how much are they paying you" instead of actually replying to the content of the post
>>
>>60643508
jesus christ, are windows users this insecure?

>>60643292
>I'm feeling a bit of doubt about my own intelligence. I am kind of struggling with comprehending Javascript. It took me 30 minutes to fully understand a foreach loop.
It took me like 3 days to understand for loop in PHP when I was first learning to program. Being 12 probably had something to do with this, but still. Don't ever stop because you think you're not good enough. Stop only if you stop enjoying it.
>>
How do you people with full-time jobs find the time to learn new stuff?
>>
>>60644147
>4147 â–¶
>How do you people with full-time jobs find t
quick skim-reading mostly
>>
>>60643626
>Changing your network settings on Linux can be anything from mildly annoying to a straight up nightmare if you make even the slightest mistake.
use the gui, if you need more control beyond basics you're going to need to understand what you are doing regardless of the OS.


>On Windows this is not a problem.
Window networking is "not a problem" because you literally can't do anything remotely useful with it.
>>
>>60644295
>Window networking is "not a problem" because you literally can't do anything remotely useful with it.
Name one thing you can't do with windows networking that is useful for a developer.
>>
>>60644310
>>60644295
this is /wdg/ not sysadmin general

run your editor, run npm, run git
what else do you really need
>>
can anybody rec me tutorials (videos, books, whatev) on building API's with Python and/or Django? Can't seem to find anything other than a basic four-line API.
>>
Node.JS or PHP?
>>
>>60644416
Node any day
>>
>>60644310
networking namespaces
>>
>>60644416
if you're completely new to backend go php and get a solid foundation enough to build some shit and then move onto something like nodejs or .net.

reason for this is setting up with php is just a piece of cake. trust me you dont wanna into configuration when you're just starting out.
>>
>>60644381
if you're happy being ignorant of the layers beneath your application you will remain mediocre at best for the rest of time.
>>
>>60644416
Node

if you already know JS even more so.
>>
>>60644453
if you had a car would you want to put lots of time into studying how every part of it works when you just want to drive to work
>>
>>60644430
And those are useful to a developer how?
>>
>>60644484
i think he'd want the former, being an autist and all
>>
>>60644484
If I just needed to get from A to B without caring I'd use public transit. If you're going to own a car then you fucking better pimp it out, why in the living fuck would anyone trust the defaults in a car now a days? it's a fucking death trap on wheels.
>>60644506
if you're limited to frontend javascript then you're not really a programmer you're a graphic designer, networking namespaces don't apply.
>>60644526
>hurrr
>>
>>60644453
Where do you draw the line with that?
Knowing your immediate tools is the most important thing. There is little use in diving so deep into a specific area like that.
You will never know all the in and outs of the underlying network architecture, file systems and all the other things unless you make that specifically your area of expertise.
Then you are not really a web developer anymore though. Not that that is better or worse in any sense.
>>
>>60643626
Linux permissions system is mountains better than Windows. It will especially come out in development.
>>
>>60644310
get hacked. Oh wait...
>>
>>60643626
yourcomment.txt | /dev/null
>>
>>60644557
Full stack development extends all the way down to layer 1, as required. Usually you don't go that low, but if you have to you should be able to as it's your job.
>>
>>60644547
>public transit
i forgot everyone on the internet seems to live in a big american city where no one needs cars
>>
>>60644587
>Unknown command 'yourcomment.txt'
>>
>>60644547
Mate, you find a problem in everything, Jesus Christ.
>>
>>60643626
>Using Linux day to day is a complete fucking chore and it's not normal.
coming from somebody who likely uses google to solve their linux problems.

If you know what you are doing and take the time to learn Linux as well as you know windows you can get just as much (or even more) done on a linux much easier than a windows. you just have to know what your doing.
>>
>>60644644
>If you know what you are doing and take the time to learn Linux as well as you know windows you can get just as much (or even more) done on a linux much easier than a windows
Linux users keep repeating this but it'll never be true.
Please understand that using an OS does not need to include battered wife syndrome.
>>
>>60644630
The only thing that is certain about the world is that nothing is perfect.
>>
>>60644661
>not knowing how to ride a bicycle means a tricycle must be better
Windows users keep repeating this but it'll never be true.
Please understand that using an OS does not need to include downs syndrome and vulnerability denial
>>
Why does every avarage joe who wrote "books" about JS claim to know JS more than you, then present a talk at some conference where they spew utter fucking bullshit?
Like look at this nigger https://youtu.be/2pL28CcEijU
He doesn't even fucking know that a boolean true represents an integer with the value of 1.
Most of his talk just showcases how fucking clueless he is about truthy and falsy values in different expressions
Does shit like this anger you, /wdg/?
>>
Recommend me a book on Javascript and C# pls (company uses C# as backend (?))
>>
File: selfshilling.png (12KB, 707x516px) Image search: [Google]
selfshilling.png
12KB, 707x516px
I'm working on a website that kinda emulates the win95 aesthetic. The interface is starting to concern me, as it looks ok on my 1366x768 craptop, but I think that on higher resulutions, the interface will be far too small. Wat do?
>>
>>60644798
That's awsome, did you incorporate JS to make the the windows movable?
>>
>>60644798
make every element exact measurement in pixels according to what win95 used.

Windows 9x, 2k, xp is supposed to look small on a bigger resolution
>>
>>60644798
use vw units instead of pixels?
>>
>>60644770
I'm sorry, anon, but it seems like you are the nigger here.

Have you read You Don't Know JS? He knows what he's talking about, he goes very deep in the technicalities of javascript, and gives some of the best arguments I've seen against using the Class identifier to make OOP in javascript.

The guy knows his shit, however I would agree that this presentation isn't his best work.
>>
who /wishes they did real software engineering but circumstances coerced them into web dev/ here
>>
>>60644792
C# and the .NET framework (Apress).

You can just pick up javascript along the way through online tutorials and the YDKJS book, it's a half-assed language so full of quirks that most books don't explain its features very well.
>>
>>60644798
media queries
>>
>>60644416
Why these? They are worst choices. Pick something like .NET or Python or Java.
>>
>>60644893
I did not read the books. First time I hear about the dude in fact. However, if he went ahead and said in his little head that "yes, this is how I want to represent my knowledge" then I'm uncertain whether he really knows his shit. That talk was the worst first impression one could make. He even says himself that JS does some under the hood things that the users/devs normally don't see, such as the Array(3) representing different things in different engines... or wait actually they are the same thing, their toString() just says something different in the console.
Honestly, I don't know what kind of person would say that it's fine to display such cluelessness about truthy and falsey values in a presentation.
>>
>>60644972
node is far superior to python for most web server needs
>>
File: Screencast_2017-05-29_18_06_06.webm (107KB, 706x514px) Image search: [Google]
Screencast_2017-05-29_18_06_06.webm
107KB, 706x514px
>>60644869
>>60644934
Yeah, that's the point, there's no "scaling up" this UI without it looking like blurry ass. I guess the only solution is just having a 2x version for really big resolutions and hoping all the others know how to zoom into webpages and don't mind blurry shit.

>>60644866
Yup, I'm aiming for "theme park" accuracy tough. Some details aren't worth it for what's otherwise a small project.
>>
>ctrl+f "angular" 0 of 0

plebs
>>
>>60645024
angular is ded, react and vue killed it
>>
>>60644981
I'm gonna give the benefit of the doubt to the guy and say he was probably nervous about doing the presentation so he stumbled on his words.

Again, read his book if you want to understand his point.
>>
>>60645024
>>60645036
Get this javashit >>>/out/ of /g/
>>
>>60645009
what's there to scale, that would become blurry except the icon maybe?

looks neat though

>>60645024
GOOD
>>
>>60645048
This general cluelessness surrounding Javascript just infuriates me to no end tho. People treat JS like it's another language than it it is operating according to that other language's rules. Guess what, JS is its own language with its own rules and quirks(!)
Oh, but anon doesn't like a language with quirks? Good luck finding a language without its own quirks. Hint: there's none
Why are people so against going on MDN and looking up what things do and how they are supposed to behave? Curious people always get told to look up the "spec" but if they do so googling for this spec they'll most likely end up in the w3 drafts webpage that has nothing to do with end user/developer documentation. It's meant for the JS interpreter developers to define behaviour.
>>
>>60645052
are you seriously complaining about javascript in web development general? seek help
>>
>>60644988
Lol nope. Javascript is very bad language and if you want easy lightweight language then Python is better. And if you need RPS then Go is superior.
>>
>>60645184
I really hope it gets replaced by something much better someday. Everyone uses it because we have to. It was never a good language.
>>
>>60645225
Nice, I wanna make a web-based floppy bird clone. How would I go about writing it in python?
>>
>>60645238
>Everyone uses it because we have to.
No we don't. I'm using Typescript and so does a lot of other people.
>>
>>60645286
are*

>>60645277
wasn't the discussion about web servers?a floppy bird clone is not something that runs on a server
>>
>>60645303
I'm a retard, mixed it up with another conversation
>>
>>60645303
>he doesn't write a flappy birds clone using AJAX requests to send keystrokes and having the server respond with the updated css positioning the bird div
>>
>>60645238
wasm is also around the corner for crybabies like you
>>
>>60645332
CSS best language for ajax requests
>>
>>60645335
I doubt wasm will change much, unless you output to a canvas element, you still have to mutate the DOM. I sincerely thought asm.js was gonna be a big deal, but after some transpiled cpp games, that was it. Nobody gave a shit.
>>
>>60645537
asm.js is really nothing more than JS with types but not really under the hood for optimizations. It was never meant to be written by hand.
Frankly, I'm not sure why it didn't take off either, seeing that wasm will essentially be the same thing with native-like runtime, but instead of a text document you get a binary blob
>>
$(document).keydown(function(vk) {
$.ajax('/keyhandler?key=' + vk.keyCode)
.done(function(data) {
$('#bird').attr('style', data);
});
});

This is all the JS you're allowed to have on your page. Now make a flappy bird clone.
>>
>>60645621
please let me go mister
>>
>>60645616
Yeah, I wasn't speaking about hand-written asm.js, just compiled from c / cpp. I'm sure there are 3-4 companies out there that use it, but too much of existing frontend codebases are written in javascript and it seems assbackwards to both rewrite code and train devs in other languages to remake an app that works "good enough".
Sure, wasm will mean that in the coming years I might be writing some python-flavoured languages and that I won't be needed parens, braces end optional semicolons everywhere, but other than that, I think the development of the wasm vm will just be another vector of extending javscript.
>>
>>60645621
That's actually a pretty neat challenge. Too bad network latency will kill you.
>>
Is MongoDB the best choice to use for a REST API?
>>
File: 1492648324171.jpg (211KB, 612x816px) Image search: [Google]
1492648324171.jpg
211KB, 612x816px
Who else /webgl/?
>>
is frontend easier than backend?
>>
>>60646016
no. rest api has to have a structure, so why would you need unstructured data store?

>>60646196
depends on what you need them to do
>>
File: with_apologies_to_robert_frost.png (44KB, 651x544px) Image search: [Google]
with_apologies_to_robert_frost.png
44KB, 651x544px
clojure is compfy anons, why aren't you using clojure or any lisp for that matter?

>truly interactive development and hot reloading, perfect for web dev. can eval a single expression or whole the buffer straight from vim/emacs without saving or restarting webserver.
>wonderful DSLs over html/css/sql that allow you to compose modular functions that can generate html/css in ways that make mustache etc look like toys
>reagent/clojurescript makes react.js look like a good idea
>can make simple functions like (create-blogpost ...) (ban-ip ...) and then connect to a repl remotely and forgo admin panels etc. fun for personal projects or clients that pay for you to make updates
>>
>>60643132

Can anybody get the ad to play on this website?

I'm trying to get the new york subway's Wifi to work for RMS

https://hotspot.singledigits.net/HSO/files/5072/NYTRansit5.html?SID=411&VLAN=322&PIP=172.16.255.40&typ=&lang=EN&NASID=hso4861gwy0001&adtechNetwork=5475.1&adtechKeyword=322&adtechVideoPlacements=3305698
>>
Why the fuck is this on amphenol-industrial.com?

<a href="http://porn-share.net" style="position:absolute; left:-1275px; top:0">porn-share</a>


obviously it isn't visible
>>
>>60647172
wordpress sites often get hacked like this to include links to other sites to boost their search engine rankings, and it often goes unnoticed

contact them if you care about it and hope they know how to uninfect themselves and patch the hole
>>
File: 5bf21972168.jpg (168KB, 719x783px) Image search: [Google]
5bf21972168.jpg
168KB, 719x783px
>>60646450
you are a big URL
>>
>>60647335

That's because it has a query string. Doesn't mean it's gonna hack ur facebook.
>>
Calling PHP and Javascript devs

So I'm using PHP Curl to get content from a API. When getting this content the entire page hangs until curl is finished. This is a huge issue since sometimes it can take up to 10 seconds to load the content due to large amounts of data being searched. Is there an efficient way to do this in PHP or should I switch to jquery or some shit? And if I do so how would I go about parsing the json data that is being outputted?
>>
File: afuckingdildo.jpg (57KB, 558x390px) Image search: [Google]
afuckingdildo.jpg
57KB, 558x390px
>>60647335
4 u
>>
>>60647428
You load the data in intervals on the server, then send out the latest cached data when someone asks.

Alternatively move the data loading to the webpage and have the client see a loading screen as it fetches.
>>
>>60647252

Wordpress must be utter shit.
>>
>>60647470
This is kind of an issue since it's more of a search engine. People input their query, check a radio button to get the type of data being queried, then outputs that. It's very unrealistic that users will ever search for the same thing, so this doesn't really work for me
>>
>>60647518
Then you'll have to write your API interfacing code into the webpage. Alternatively if you have private API keys you just route the users requests through your server and have them asynchronously wait for your server that is waiting for their server.

You're just in a shitty position all around.
>>
>>60647428
I dont know PHP, but for JS you can use the axios library or the new fetch API, as they are promised based and won't block the rest of your code.

>>60647414
well, don't even have a facebook account.
You shouldn't work with advertisement anon. It's not good.
>>
>>60647549
I mean I own the API, but due to certain reasons its kind of important to separate the API and the website. I use auth tokens to verify the user should have access to the API, but I have no idea how to access the API without completely fucking the performance for everyone else using it. Is it really impossible to do parallel curl "searches" between users with just PHP?

>>60647565
I'll look into it, I'm not a great javascript developer though, so I'm pretty much just going to have to base this on documentation if there is any
>>
>>60647654
I am still a beginner, so maybe I am not understanding you correctly, but what's even with curl.

Do you not make a http request with some kind of php library to a REST API?

If the server takes 10 seconds to process a request, that's probably a more important issue.
>>
>>60647654
>I mean I own the API
Then fix your API.
>>
>>60647757
I mean its usually like 10ms, but with certain queries it takes a longer time due to the amount of data being queried. I'm using php-curl to access a rest api to get json data from a different site.

>>60647780
The API is not the issue, its curl. I can spam the API as much as I want, but using curl it makes the site hang for as long as the request takes to complete. I've also tried a number of other methods, but it seems PHP is just too shit to handle anything like this.
>>
>>60647850
how about this:
>put the data-getting stuff in a separate php file
>to get the data, the results page uses jquery or something to send a request to that php script and shows a loading gif while it loads
there'll still be some delay but at least it doesn't stall the page load
>>
>>60647850
mh, sorry man
like I said I dont really know PHP, but I would be surprised if there is no way to request data asynchronously.

Hope you figure it out.
>>
>>60647850
>The API is not the issue, its curl.
Then fix curl. What are you asking us for? You know how to google things right? If php couldn't do simple api requests to load data it would not be widely used, simple as that.
>>
>>60647978
I mean I've googled it multiple times which is why I'm here. Curl doesn't seem to be able to do this on its own according to stackoverflow at least, so I'm turning to you autists to try and solve the issue :)
>>
>>60648010
have you specifically looked for "php async curl", "php async get", etc. ?

Not much more anyone else here can do for you, than what those google results will tell you.
>>
>>60648010
i made a post here:
>>60647930

so there'd be files like "resultspage.php" and "getdata.php"
the client browser javascript on resultspage.php does a request to getdata.php -> curl in getdata.php stalls for up to 10 seconds and echoes the data from curl as json -> the script on the results page then receives it and turns it into html elements or something
>>
all this makes me happy I decided to go pure JS instead of starting to dabble in PHP
>>
>>60648130

Php isn't that hard

it's such a simple language you can set up a working php page in a couple hours with no experience easily
>>
>>60648130
you can make slowly-loading pages in node too
>>
Should I roll my own comments solution or just use Discus?
>>
>>60648450
Disqus is pretty gud imo
>>
>>60648450
Your own. Disgus is disgusting, and it realistically takes much less time to make your own solution than it does configuring shitscus

>>60648507

kys web devs dont know about user experience
>>
>>60648524
>sign up with google
>enter site name for disqus
>pick basic plan
>select platform
>configure
>insert in page
whew, that was so hard, all in 3 minutes too
>>
>>60644416
PHP7
>>
>>60648645
pdo bullshit
insert into comments
username, comment, articleid

select from comments where articleid =
print

whew that was hard would take 30 seconds to do
>>
>>60648687
Not the previous dude, but what I like about Disqus is that people can log in using their social media accounts and henceforth use their Disqus account on every website with a Disqus comment box.
>>
>>60648808
not that dude but i don't use social media and i am a fan of comment forms where you simply type a name you want with no other unneeded crap
>>
>>60648840
This.
>>
>>60648840
So basically you have no idea what the vast majority of internet users want from their websites. Ok.
>>
File: anime.jpg (63KB, 792x868px) Image search: [Google]
anime.jpg
63KB, 792x868px
>>60648892
haha yeah
>>
>giving users what they want
look at this fucking cuck
>>
>>60648892
most users want to go through a 4-step process just to post one comment on a shitty article? no wonder your sites never take off
>>
GOTTA GO FAST xDD
>5880 stars
>>
>>60648978
Not that dude, but social media cookies stay active longer than the regular website, and you don't need to login after a while.
Also, nice comment system, do you have a captcha?
>>
>>60649050
Just make the captcha appear after the first comment, and add a block list for known spam IPs. As for discus I'm pretty sure there's more fuckery to it than just adding social media, which on its own absolutely cucks the user
>>
>>60649050
>>60648840
>>60648808
I'm not any of these guys btw
>>
>>60649099
What if I want to spend time fixing other stuff in my website
>>60649105
I'm not this guy
>>
>>60648450
here, I'm going for disquis in the meanwhile because I need this shit shipped asap, I'm going to roll something better next week.
>>
>>60649132
All of that takes literally less than a couple minutes if you're semi competent. There's third party services to detect proxies, and you probably already have recaptcha implemented
>>
>>60649167
I might forget something, or design a very crappy database schema out of being in a hurry.
>>
File: 1484013314223.jpg (74KB, 500x500px) Image search: [Google]
1484013314223.jpg
74KB, 500x500px
I've been at my Front-End Magento developer job for a couple years and I'm going to look for a new job. How difficult is it to sell myself to employers who use JS frameworks which I have no experience in? Magento a shit.
>>
>>60649201
just touch their dick
>>
>>60649337
I am not a female, though.
>>
>>60649348
touch their penis :)
>>
>>60649348
prove it
>>
>>60649348
I don't think you have the balls to look into man's eyes and touch his penis.:)
>>
>>60649201
Just tell them you can do things with your butt
>>
File: wdg.png (20KB, 560x544px) Image search: [Google]
wdg.png
20KB, 560x544px
> /wdg/
>>
>>60649577
Is this an epic meme I am not aware of [spoiler]please stop bullying me[/spoiler]
>>
>>60649626
You asked for advice and you got it. :)
>>
>>60649577
we did it reddit
>>
>https://github.com/P1xt/p1xt-guides
Somebody put this in the OP next time. It's from that guy on the FCC forums that made the giant book/tutorial guide to get employed as a junior dev.
>>
>>60650365
Getting employed as a junior dev is ez.

>learn php and js
>memorize everything to do with arrays because your dev test will be about arrays.
>make websites with php and js
>scrub everything not dev related from your resume
>add buzzwords to your resume.
>add stuff on your resume even if you only used it once or twice.
>create accounts on angel.co, indeed, dice, monster, ziprecruiter
>apply to everything weekly even if it doesn't match your resume

You'll get a dev job.
>>
>>60646045
Learning it now, following MDN's tutorials.

Any tips?
>>
>>60647428
Use ajax on front. But if your page depends on data returned then there aren't any good easy solutions-maybe cacheing or predictive loading on background.
>>
why do people say "ajax" when it rarely actually involves xml

shouldn't it be ajaj because most things speak json these days
>>
Has anyone here tried using NativeScript?

I'm too stupid to bind an Activity Indicator to a loading Image
>>
>>60650706
Well the method is still called XMLHttpRequest, and since the web always needs to be backwards-compatible, I don't see that changing anytime soon.

AJAX is at least a level of abstraction away from actually having "XML" in the acronym. Maybe someday they'll come up with another word starting with X that works there, so we don't have to use a new word. Like they did with SWF.
>>
>>60650706
>>60650895
Ajax isn't an acronym.
>>
>>60650921
Isn't it asynchronous javascript and xml?
>>
>>60651060
http://adaptivepath.org/ideas/ajax-new-approach-web-applications/
>The name is shorthand for Asynchronous JavaScript + XML, and it represents a fundamental shift in what’s possible on the Web.
>shorthand

Ajax is a convenient name for a class of technologies that allows communication between the frontend and backend environments of a WWW page without page navigation. This does not need to include use of javascript, xml, or even asynchronicity. Indeed, most people use JSON, and people SHOULD now be using the fetch API. There have always been things like iframe fetching, jsonp, and cross-origin resource sharing in the mix. All of these fall under the loose umbrella of Ajax, and they're the reason that it's correctly styled Ajax and not AJAX.

http://shiflett.org/blog/2007/apr/ajax-is-not-an-acronym
>>
>>60651215
>semantics
the name still has xml in it
>>
>>60651231
The name of what? The name is Ajax. Again, not AJAX. So no, the name doesn't have XML in it. This is a discussion that was sorted out literally a decade ago.
>>
>>60651257
>The name is shorthand for Asynchronous JavaScript + XML
>>
>>60643159
no because i don't really give a fuck about componentization and muh data flow
>>
File: Untitled.png (34KB, 588x232px) Image search: [Google]
Untitled.png
34KB, 588x232px
>>60651269
That's the reason it was originally named AJAX, but it changed with common usage. The name is now effectively arbitrary.
>>
>>60651215
Alright, so fair enough, it's "Ajax" not "AJAX".

But I still think a shorthand name is kind of tied to its origin.
>>
It's magento the best e-commerce right now
>>
Help me /g/

How do you build a multi page website? Is it a normal thing to just work around a template and structure the website properly or does everyone just use stuff like wordpress or joomla
>>
>>60651422
I'll certainly grant that "Ajax" comes from "AJAX" which comes from "asynchronous javascript and XML," my point is just that it hasn't referred very specifically to that one API in a very long time. And this was all in answer to this question: >>60650706 which can't really be answered without a history lesson.
>>
>>60651412
ajax always sounded to me like those toilet cleansing products
>>
>>60651479
Totally depends on the requirements. If you're gonna build a static site though, you might look at a static site generator like Hugo or Jekyll.
>>
>>60651500
Yeah, it's just the same name.
>>
File: ShotType1_328x328.jpg (17KB, 328x328px) Image search: [Google]
ShotType1_328x328.jpg
17KB, 328x328px
>>60651519
>ajax client-side
>kotlin server-side
nice meme combo
>>
>>60651503
how's the learning curve for hugo
>>
>>60651503
>>60651609

meh their showcase sites are so 2010
>>
https://jsfiddle.net/t7Ltp0hh/

Anyone here great with CSS?

I'm trying to get both sides of this section to be equal.
I want them to be equal height no matter what amount of content is inside them but I can't seem to do it without using Flexbox.
Flex isn't supported as widely as I hoped so I'm trying to avoid using it.
Pls help.
>>
>>60651479
>my point is just that it hasn't referred very specifically to that one API in a very long time.
Yeah, that makes sense.

But from reading that adaptive path article, they specifically mentioned JSON and other stuff. It seems like they could have chosen a better name. I guess Ajax is an alright name, but it's not the best.

I guess it's partially Microsoft's fault for calling it XMLHttp.

Also, we're working in a language called JavaScript, even though it has nothing to do with Java. So this is basically nothing.
>>
>>60651699
Nevermind, I got it. Updated the fiddle.
>>
i do not understand clojurescript tooling
>>
>>60651789
I don't see the update, how did you end up getting it to work?
>>
>>60652175
https://jsfiddle.net/t7Ltp0hh/2/

That's the updated version.
>>
>>60652243
ah, alright, neat.
>>
File: piratesofthecarribean.png (205KB, 3340x3176px) Image search: [Google]
piratesofthecarribean.png
205KB, 3340x3176px
>>60643132
>tfw too smart to build web apps
>>
Anyone here really good at Wordpress Development?

So far I've created a few static HTML5 templates, however, the real money is in Wordpress Themes.

I'm looking for someone to team up with. I'll handle the front end while someone else does the backend. Decent potential for income since WP is still very popular.
>>
>>60652737
>wordpress development
Do people still do this?
>>
>>60652831
Yes. Thousands of dollars worth of Wordpress Themes are sold on Themeforest alone every week. That doesn't even take into account private development and shit sold on other sites. It's still a very lucrative market if you offer something aesthetically pleasing and highly functional, trust me.
>>
>>60652737
how would you even partner up with someone from /g/
btw I can do anything imaginable in backend
>>
>>60652953
>how would you even partner up with someone from /g/
Easy. Meet on the Discord server mentioned in OP and discuss the potential partnership.

If you're interested let me know.
>>
File: AE447C0B.jpg (66KB, 324x354px) Image search: [Google]
AE447C0B.jpg
66KB, 324x354px
Is it alright to pick up php before picking up javascript?

Is laracasts worth it? Doesn't look like they really have much to offer, in terms of a library size.
>>
>>60653170
>Is it alright to pick up php before picking up javascript?
yes
>>
>>60643132
Any former sysadmins here? I'm slowly getting bored and have been thinking about getting into mostly backend development.
>>
Got an internship position and just learned what I need to know today, which is

Java / Spring / Hibernate / Angular JS

I've never done Java Web Development before, only ASP.NET. I start next week. How fugged am I?
>>
>>60653793
here's some reading material for when you get to the hibernate part https://vladmihalcea.com/tutorials/hibernate/
>>
>>60654037
Thank you for the support m8!
>>
Makin my way through cs50 like that one anon recommended, but I'm wondering how long it would take to get into back end web development for a complete beginner?
>>
>>60653793
C# is quite similar to Java. Also internship implies need to learn so they shouldn't expect to much.
>>
I'm a programmer and oh my god does typescript feel good around my dick when I have to webdev. Holy fucking shit.
>>
>>60655514
thats pretty gay
>>
Is it hard getting an entry level web dev position without having a degree?
>>
>>60655925
Not if you put in the effort.
>>
>>60655514
I know exactly what you mean :^)
>>
>>60655925
Arguably easier than with a degree if you don't have to make fucking loan payments every month

t. dropout
>>
what's your opinion/experience with hexo or hugo? (or other static site generators for that matter)

Wanted to try hexo first but got kind of turned of because the installation needed a workaround to finish properly, which didn'T make a good first impression desu
https://github.com/hexojs/hexo/issues/2505#issuecomment-297574678
>>
Hey /wdg/

What's the best templating engine for outputting HTML? C# or JavaScript preferred, C or C++ being an unpleasant second.

Looking for speed, popularity and ease of use.
>>
>>60656089
Razor for C#.
>>
I need some advice..


I've done some freelance shit in the past and try to get employed as Programmer or WebDev.

Now I got a job offer as "Business Data Analyst". Payment is good, but long working hours and the job is not that interesting. Not too hard, but not really interesting either.


What shall I do?
>>
File: 1495700273082.jpg (333KB, 1106x962px) Image search: [Google]
1495700273082.jpg
333KB, 1106x962px
Building a site with Python/Django, using an SQLite db. I've been just dealing with the database through the ORM, no problems there, but now I'm learning about serialization. I guess both methods, ORM and serialization, are roughly equivalent, right? Any reasons why I might go with one instead of the other?

>>60656272
If you haven't got any other offer and you're just freelancing, I'd say take it. It'll build your CV, allow you to network, etc. In the meantime, keep looking for that webdev job you want.
>>
>>60656470
>I guess both methods, ORM and serialization, are roughly equivalent, right?
Uhh...no? Those are two completely different things. I suggest you read up on what those things mean in a framework-agnostic context.

Hint:
https://en.wikipedia.org/wiki/Object-relational_mapping
https://en.wikipedia.org/wiki/Serialization
>>
File: Yes.gif (2MB, 301x353px) Image search: [Google]
Yes.gif
2MB, 301x353px
Would it be hard to write a script that quickly excempts these channels from adblock but blocks every other channel? https://www.youtube.com/watch?v=_lOlFFv_GGo [Embed]
I'm sorry, I know you're not a personal workforce but I don't know how to code, I'd be willing to fill in the channels myself though, I just think it'd be something nice to spread around for people that might wanna use it.
>>
>>60656949
that gif is so gay
can we have the full version pls?
>>
File: C939_wJVoAA39Dh.jpg large.jpg (94KB, 960x678px) Image search: [Google]
C939_wJVoAA39Dh.jpg large.jpg
94KB, 960x678px
woop woop
>>
>>60648840
>>60648854
Those are also prone to being spammed by Indians and Russians. So take your pick.
>>
Why can't I do a CSS transition on a <center><img></center> ????
>>
>>60658909
wtf, there is a <center> tag?

Btw, use wrapper and container.
>>
>>60658966

yes, its been around forever, probably dont need it though

>>60658909

try centering it with css instead, if still doesnt work then post your whole code
>>
>>60659110
Hi, I'm using the center tag because I have that content under a collapsed div, and doing it with css would render the image full size with the stupid Flash of Unstyled Content for half a second or so.

Still don't know how to solve this but thanks for the help.
>>
>>60659401
lol it's so cute that you start your reply with a 'Hi'. Just how new are you here? Not bullying or anything, just wondering. Also, keep it up, we need friendlier people here on /g/
>>
>>60650454
>>memorize everything to do with arrays because your dev test will be about arrays.
I wish I'd heard this a few weeks ago.
Painfuly true
>>
File: web-development[1].jpg (302KB, 2993x2004px) Image search: [Google]
web-development[1].jpg
302KB, 2993x2004px
Hey guys, need some /adv/ice I decided to switch my major into web development, and I have path I want to take, and was wondering if this is common to do.

>get associates in web development (hopefully full stack)
>get a job in web development
>still go to college to get my bachelors, while working
>find new better paying job with bachelors, or get promoted at current job.

Any of you anons done same thing? or should I just work as a wage slave in retail until I get my bachelors? Do even need my bachelors or associates good enough?
>>
>>60659650

do your research, i know a lot of web dev programs that aren't full stack, you dont even need school to learn it with all the resources and information on the internet

i got a cert in web dev and it was mainly front end stuff, i didnt learn back end until i was actually thrown in the fire at a real job i got.
>>
>>60643159
Yes because im not a faggot that uses angular or memeact
>>
>>60659401
can't load that part of CSS before the HTML?
>>
>>60659685
So when I read front end, does that mean doing graphic design for the website then coding for a website

while back end is mainly just on connection from website/database/server whatever?

I am not very artistic so maybe mainly back end for me then? idk.

It seems now a days that companies want degree in web dev.
>>
>>60659839
Try both and see which one you like the best, I started out very font-end oriented, but later I tried php and completely switched to back-end. Currently I'm in talks with a start-up, looks like I'm going to be doing back-end for living.
>>
>>60659609
Well I've lurked on other boards rather ocassionally through the years, but my posting has been really scarce. Recently started learing webdev and just got to the CSS/JS part and the many headaches it gives, and remembered there's a wdg thread :D

While I value some highly offensive answers for their originality / the lulz they deliver / just making this place feel different, when it comes to posting myself, moreso asking for help or providing it, I treat it as if it was a classic forum, Also there's the language thing, which I may still not use appropiately, so I suspect some things may feel out of place.
>>
>>60659839

would imagine, that being a web developer and a full blown graphic designer at the same time is kind of the exception, even though those people probably exist.

Same thing how you wouldn't necessarily expect the guy who designs your new logo to also take care of making your site accessible on mobile screens.
>>
>>60659839
>front end, does that mean doing graphic design for the website then coding for a website

Not at all. Graphic design is graphic design, as a front-end you don't create any graphics or logos. What you do fuck around with is colors (font, background, etc), font selection (but never design), getting all the graphics to display properly, putting things on the screen in a balanced way. So a minimal of graphic design knowledge might help.

Big teams have a design guy choosing color palettes, fonts, pretty pics and logos, and the front-end guy just displays it all on the screen. Smaller teams have no design guy, so again, the front-end ends up making the minimal choices necessary to pull things together.
>>
Anyone got that png with random projects scaling from easy to hard ?
Very boredd.
>>
>>60660065
Do mine
>>60645621
>>
File: QHKH1JZY2I4N1407951062029.jpg (289KB, 891x594px) Image search: [Google]
QHKH1JZY2I4N1407951062029.jpg
289KB, 891x594px
What path should I take to make the maximum money?
>>
>>60660129

team up with Jewkurberg and make another new social media site that spies on people
>>
>>60660129
Based Kripp, my favorite sleep aid streamer. Or he would be if he ever streamed EU times.

Any job, save and invest as much money as you can, live life as cheap as possible, reinvest interest, aim for riskier and riskier ventures.
>>
File: Programming-Projects-for-N00bz.jpg (311KB, 1261x1000px) Image search: [Google]
Programming-Projects-for-N00bz.jpg
311KB, 1261x1000px
>>60660065
like this one?

10 secs of google senpai
>>
>>60660165
That'll do pappy.
Thanks a plenty for doing my bidding.
>>
>>60645621
uh...
>>
>>60660053>>60659839


Don't forget, front-end doesn't stop there but it also includes working with frameworks such as Angular and React.

As a front end dev in some instances you will be expected to know at least the basics of a few languages. For example, I as a frontend dev am expected to know basic Ruby, so that when the backend guys finish working on their side of things, I am the one who has the responsibility to add an interface to it. I should at least know how things flow from back to front without having to ask them for help.
It could be the other way around too, because I've developed interfaces before then passed them off to the devs to add the functionality to it.
>>
>>60645621
>all the JS you're allowed to have on your page
>requires jQuery to work
>>
>>60660148
I want to live life with nice expensive things, though.
>>
Need PHP help!
How would I go about only allowing for example the & character after a set amount of characters?

For example
Allowed: waffle&sauce
Not Allowed: &wafflesauce
>>
>>60660195
>>60660273
You know exactly what I mean, don't pretend to be stupid.
>>
>>60660195
It's jquery.
>>
>>60660319

easy pz

check the first character of the string, if its the & sign, have the server blow up and trigger a front end animation that tells the user that the & isn't allowed in that spot

then re-direct them to 4chan
>>
>>60660501
Thanks babe, don't know about the redirect to 4chan though since that's not great UX. But of course you're the expert
>>
if (!browser.runtime.onMessage.hasListener(list))
browser.runtime.onMessage.addListener(list);

even if I do this in my firefox webextension's content script it still keeps adding more and more listeners? What's the best way to make this work?
>>
I'm using
window.stop()
to stop all incoming async requests when i want them to stop. It works but doesn't work in IE or Edge (blah). Is there a better method to use that's works on all browsers?
>>
>>60660578
It's probably because I put executeScript inside the background.js listener.
>>
Hey guys.

At work I'm currently doing an Angular4/Spring Boot project and I need to implement authentication.

We have an old as fuck OpenID system where you first go to the OpenID login page and specify which user data fields you want to receive and where you want to be redirected in the GET parameters.

The redirect puts the requested user fields in the GET parameters.

How can I implement a stateless authentication system with server-side session storage?
>>
>>60660578
>>60660710
just a reminder for myself to make an issue post on that beastify.js example.
>>
good ui/ux learning resources?
>>
>>60660228
yeah, totally agree with you. If you're front-end, it's actually better to study some back-end as well, rather than graphic design. If you can study everything, kudos, but if you have to prioritize, back-end is more important to have a grasp on if you want to do effective front-end.
>>
>>60660291
Do you want to have money or not?
>>
>>60661137
not sure about that, but I think that's waaaay out of our playing field. It all goes into webdev, but the people doing ui/ux have a completely different background, I think. I know this girl who is a psychology phd, did hardcore research and stuff, and now she works doing ui/ux research for some big company.

As for resources, check books on genesis library
>>
>>60661185
What's the point of having money when you are old tho, I want them now to fuck shit up when my back doesn't hurt
>>
>>60660866
isn't the point of stateless auth, that you don't need to manage sessions?

did you look into JWT?
>>
>>60661250
This is why you'll never have money. Enjoy your life as a poor man.
>>
>>60660623

halp brehs
>>
>>60661245

>psychology phd
>works as a ui/ux designer

its just liberals pushing women into tech, anon
>>
>>60661421
Well, we live in age when people expect to have everything served to them, UIs used to be much less intuitive. Don't get me wrong I hate liberals as much as any other man, but let's not look for them around every corner.
>>
File: vertical-menu.jpg (8KB, 177x141px) Image search: [Google]
vertical-menu.jpg
8KB, 177x141px
>>60643132
How can i align my menu until the red line, iam new in CSS.
Pic related
>>
>>60661357
eh, try

document.execCommand("Stop");


also what do you mean with "incoming async requests"

can't you just set a boolean that is then checked before handling the ajax responses?
>>
>>60661531

i have a async request that runs on page load, if user navigates to another page, that first async is still going. I want it to stop if someone navigates somewhere else. nomsayin
>>
>>60661570
..but there's nothing there to receive it after you navigate away.
>>
>>60661655

exactly - which throws an error

its the only error my app throws.
>>
>>60661570
guess you are not talking about a single-page-app, right?

How are ajax responses still handled, when you are not even on the same page anymore?
maybe I don't know enough.

Or do you mean, that you don't want the response to be handled, when another page has started loading?
That's actually an interesting question.

do some onclick javascript maybe and check if it's an <a> tag, and if so, set the boolean, that prevents the function that handles the response from running?

see
https://stackoverflow.com/questions/12551920/capturing-all-the-a-click-event
>>
>>60661681
You can't stop an ajax request mid flight. It's already left your computer. The other side has no clue what's going on. You will receive that request and I have no idea why it's throwing an error.
>>
>>60660129
Mentally prepare yourself for a year, and then go for the bank with the biggest safe.
>>
Any of you got successful with any learning website linked at OP?

I can try all of them but I feel I could put that time into a better use.

Wich one would you recommend?
>>
>>60661494
post some of your code then
>>
>>60661686

its a single page app

>>60661693

its throws an error because the ajax request appends some data to a div, but when user goes to different page that div isn't there anymore because i dont need it, and the console logs an error saying it doesnt have anything to put the data

nomsayin
>>
>>60661739
you are being to autistic about it imo.

every website gives off a shitload of errors- it's no prob.
>>
>>60661719
videos are not my thing, and I hate those hold-me-by-the-hand online turds like codecademy where it's more a silly game than real coding. I prefer books: go to library genesis and pick one, follow it til you can't make sense of anything anymore, then drop it and pick up another book.

The only online stuff that kinda works is coursera/edx moocs. CS50x from Harvard is awesome, though there's only a few modules on webdev. Still highly recommended.
>>
>>60661766

fuck that - its a pretty complex app and if i can get it to be 100% errorless then future employers will be impressed with muh js skillz
>>
>>60661795
just make a hidden div and shove it there then
>>
>>60661719
never really got much out of any "learning website".

Imo the best way to learn is to think of something you want to do, and then learn along the way, looking things up on MDN, etc. whenever you get stuck or want to see how to do something specific.

codewars/codefights (prefer this one) is nice to get comfortable with JS though.

>>60661739
guess you are using some kind of framework then?
There should be a hook for route changes, that you can use.
>>
>>60661421
ha yeah, could be a bit of what you're saying. But also, she's not doing ui/ux design, she just does the research that tells the designers whether their shit works or not. Basically, she gets a design from the ui/ux guys, then designs and carries out experiments to test whether said design is actually any good for the users.

Kinda like this but pretty sophisticated, from what she tells me:
https://erikrunyon.com/2013/07/carousel-interaction-stats/

She said they do memory recall tests, eye-tracking to see what the user actually looks at, user speed performance (they designed a game and tested it on groups, where they had the controls set up differently, according to the test group). Then she gives her feedback back to the ui/ux design team, where she tells them what worked and what didn't.
>>
So i need some advice.

I'm about halfway through a CS degree in a three year degree country. I can do 3D graphics rendering algorithms, graph theory algorithms, trie search and B+ trees etc. Done a whole bunch of the software develop theory stuff. All in java and C so far.

So how hard would it be to learn web development for employment? What would I need to learn in order to be employable/able to do webdev?
>>
>>60661884
development*
>>
>>60661739
No, it doesn't append shit to shit. In order to append shit you need to handle the return ajax data and then append shit to your div from the function that handles the return ajax. If your user navigates away in between your ajax request being sent and your ajax request returning it will not error out because it is trying to append to a div. It can't. The javascript no longer exists to try and append to a div. The information should be lost in the ether. Your error is somewhere else.
>>
>>60661725


#secondary a:hover {
background-color: #ccc;
list-style-type: none;
}

#secondary a.active {
background-color: #4CAF50;
color: white;
}

#secondary h3{
background-color: #3b89bc;
color: white;
text-decoration: underline;
text-align: center;
font-size: 1em;
font-weight: 900;

}
#secondary li {
list-style-type: none;
}

#secondary ul{
list-style-type: none;
}
>>
I don't suppose anyone's used the VCR gem for API testing in rails? I'm doing an upgrade to 5, but this damn spec keeps breaking because the URI isn't a 1:1 match to the cassette, and i'm not sure why it's not prepending the authentication token to the generated URI.
>>
Can anyone tell we what this malicious piece of javascript does? Harvest email addresses?

<script><![CDATA[
* / (function (d, s, a, i, j, r, l, m, t) {
try {
l = d.getElementsByTagName('a');
t = d.createElement('textarea');
for (i = 0; l.length - i; i++) {
try {
a = l[i].href;
s = a.indexOf('/cdn-cgi/l/email-protection');
m = a.length;
if (a && s > -1 && m > 28) {
j = 28 + s;
s = '';
if (j < m) {
r = '0x' + a.substr(j, 2) | 0;
for (j += 2; j < m && a.charAt(j) != 'X'; j += 2)
s += '%' + ('0' + ('0x' + a.substr(j, 2) ^ r).toString(16)).slice(-2);
j++;
s = decodeURIComponent(s) + a.substr(j, m - j)
}
t.innerHTML = s.replace(/</g, '&lt;').replace(/\>/g, '&gt;');
l[i].href = 'mailto:' + t.value
}
} catch (e) {
}
}
} catch (e) {
}
})(document);
]]></script>
>>
>>60661936
>/cdn-cgi/l/email-protection
it's the script from cloudflare's email protection thing

i think it hides email addresses from users without javascript, and/or requires a captcha to view email addresses on the page
>>
>>60661264

By session management I meant checking whether or not the HTTP requests to the REST service are valid and forcing users to logout when they're not.

I looked into it, there are Angular libraries tailored specifically for this purpose, but all the examples I've seen use OpenID Connect, which my employer doesn't use. It's honestly a real pain in the ass to be forced to work with ancient technology.
>>
How do I convice my superior to start using a framework?
I just got a junior position and we are the only two developers, I have experience in Symfony and Django.
So far we have been adding features to the existing projects that he made before I got hired. More and more work is being thrown at us and I feel that it would be much easier and faster to develop new projects if we were to use at least an ORM and some template engine.
His code is structured and there is some sense in how he organizes it (naming conventions, directory structure etc.)
So how do I convince him to switch to a framework?
>>
>>60645621
>>60660344
>>60660421
Yeah, no shit, but you really shouldn't need jQuery to write 6 lines of JavaScript.

var xmlHttp = new XMLHttpRequest();
xmlHttp.addEventListener('load', function() {
document.getElementById('bird').style = this.responseText;
}
onPress(event) {
xmlHttp.open('GET', '/keyhandler?key=' + event.keyCode);
xmlHttp.send(null);
}
>>
>>60661739
https://stackoverflow.com/questions/9005822/ie-alternative-to-window-stop-cancel-all-pending-requests
>>60661884
Learn everything you can about Javascript. It is not that difficult. If you are interested into creating 3D games, check Three.js and similar libraries.
>>
>>60660319
Use mb_strpos.
>>
>>60661936

jebus xhrist

lemme guess - you found this in a shitty word press site?
>>
>>60662218
shitty magento site
>>
>>60661909

actually it does.

i dont want it to append to the div, i want to stop the async request so it doesn't append to the div. I slightly misworded the problem.
>>
Writing a freelancing website in Wordpress now (practice because clients are dumb and ask for wordpress because it's simple enough for their small brains)
freelancesharp.byethost17.com
>>
File: file.jpg (14KB, 254x214px) Image search: [Google]
file.jpg
14KB, 254x214px
>>60662262
>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support
>>
C/C++ > OCaml > Go > JVM > Node > PHP
>>
>>60662287
I can use it without javascript fine, screenshot?
>>
>>60662254
No, it literally can't. You're chasing the wrong fucking error here. Your error is somewhere else.
>>
Oranges > Apples
>>
File: file.png (9KB, 1280x720px) Image search: [Google]
file.png
9KB, 1280x720px
>>60662307
what even is this
>>
>>60662164
I'm glad you know pure javascript DOM manipulation off the top of your head. I do not care to learn that, however, so I will use jquery.
>>
>>60662343
>view-source:
Why, anon, how could anyone figure out what you're looking at there. It'd take someone real smart to solve this mystery!
>>
>>60662343
fucking weird, it worked 2 days ago, I could be having malware that tries to make people run JS or something, thanks for the heads up
>>
File: kys.jpg (37KB, 600x600px) Image search: [Google]
kys.jpg
37KB, 600x600px
>>60662262

>This site requires Javascript to work, please enable Javascript in your browser or use a browser with Javascript support
>>
>>60662368
i thought a screenshot of the source would be more helpful than one of a white page with text on it
>>
>>60662164
Shit, that
onPress(event)
should be
document.onkeydown = function(event) {
>>
>>60662382
>disabling JS because /g/ told you to
think for yourself man
>>
>>60662382
>>60662287
>I disabled JS
I hope you feel smart, because that's the closest you'll get to being smart.
>>
NEW THREAD

>>60662479

NEW THREAD

>>60662479

NEW THREAD

>>60662479
>>
>>60661911
try float: left on almost everything

usually werks
>>
>>60661781
>I hate those hold-me-by-the-hand online turds like codecademy where it's more a silly game than real coding

I tried Python on codeacademy and that was exactly what I felt.

Just doing what I was told to do with no thinking.
>>
>>60661719
MDN is awesome for looking up features of HTML, CSS, and JavaScript.

Not listed in the OP:
Learn x in y minutes is great when you want a basic guide to the syntax of a new language.

knowitall.io is a cool site that lets you see all the features of CSS, HTML, JavaScript, etc. and mark what you do and don't already know. Then you can go through all the stuff you still need to learn.
>>
>>60662056
"Hey {{ boss }}, it seems like more and more work is being thrown at us and I feel that it would be much easier and faster to develop new projects if we were to use at least an ORM and some template engine. I've been looking into {{ framework }} and I think it would be a good fit because {{ reasons }}."
>>
>>60663551
@require('sacked')
>>
>>60662164
>not using fetch
>>
>>60662354
That's not DOM manipulation.
>>
>>60664284
It's not widely enough supported yet. And not worth including a polyfill to make that tiny snippet a tiny bit cleaner.
Thread posts: 322
Thread images: 33


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.