[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/wdg/ - Web Development General
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 255
Thread images: 26
File: 1454605809263.png (868 KB, 822x552) Image search: [Google]
1454605809263.png
868 KB, 822x552
OLD THREAD >>54192702
> Discord
https://discord.gg/0qLTzz5potDFXfdT

>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/
http://www.freecodecamp.com/
http://www.codewars.com/
>Crockford on Javascript
https://www.youtube.com/playlist?list=PL7664379246A246CB

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

>Backend development
https://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks

>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://www.youtube.com/watch?v=pB0WvcxTbCA
Good videos on the channel too
https://www.youtube.com/channel/UCVTlvUkGslCV_h-nSAId8Sw

>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
>>
Is there any popular website, like a news portal or something, which has a 100% width of its content, no matter the size. I want to know if it can work. The problem is basically how to organize so much content when you have so much space. Idk, I'm constantly thinking about doing that with my site, but I'm currently sticking with 1170px max-width.
>>
So has anyone toyed with PHP-PM?

Seems to just be designers and frontend developers in these threads
>>
Are there any frontend frameworks that aren't just cancerous thin layers over jQuery?

I feel like I'm gonna have to just roll my own shit with React at this point.
>>
>>54222645
what do you need

vanilla js is beter these days so I hear
>>
Eric Pickup (YouPorn) at ConFoo 2012
Building a Website To Scale - Target: 200 Million page views per day and beyond!
https://www.youtube.com/watch?v=RlkCdM_f3p4
>>
>>54222683
Porn - the only true webscale'd industry.
>>
>>54222676

Something with structure and decent libraries for shit like HTTP requests instead of just falling back to jQuery.
>>
Should I learn both react and angular for having a better chance for a job? Just to have a wider amount of places I could apply to
>>
>>54222735
Vue
If you just need to make HTTP requests, though, use something like superagent, or make it yourself.
>>
File: crystal.png (12 KB, 400x400) Image search: [Google]
crystal.png
12 KB, 400x400
When applying for a new yab, does it look good to tell them youre investing some of your time in a lang. like Crystal that isnt ready yet?

Or do they just see that as a waste of time?
>>
>>54222829
it will probably show that you are interested in new technology and that you try to improve yourself for the future
>>
I have a web application where the user can upload some data with ajax. I now want to get a demo up with some demo data users can play with, but without letting users upload their on data. How do I do this? And should I start a new git repository for this demo application, or...?
>>
Thoughts on Mithril?
>>
>>54223697
the guy who is literally behind it posts weekly on reddit

you could ask him yourself
>>
>>54223696
Set ip restrictions in the upload script.
>>
I'm trying to get a front end job because I used to do PSD to HTML, now I'm trying to learn JavaScript but this language is horrible.
I wish I went back end earlier, or gone full java
>>
Opinions on Durandal? http://durandaljs.com/
>>
>>54223826
What does that mean.
>>
>>54223863
Rampant IA/10
>>
>>54223888
Only allow your ip to upload.
>>
>>54223863
Oh boy, yet another js framework...
>>
>>54223979
Oh like that. I'll try that, thanks.
>>
Hello brothers. Can you tell me FRESH stuff for learning flask framework? Tutorial from Miguel has been updated since 2014 and... many more has been changed. Thanks.
>>
>>54223863
Isn't Durandal the guy from Chinci that owns Efukt?
>>
>>54224111
I don't know.
>>
>>54224105
Actually... Nothing has changed. The last big Flask update was 0.10.1 in 2013
>http://flask.pocoo.org/docs/0.10/changelog/
The stuff that has surely changed are the various plugins, but the essential bits are the same. You just need to read the documentation for the plugins you're gonna use to see what's new since Miguel's book/mega-tutorial.
>>
>>54224262
Ok, I'll try something think.
>>
>>54224262
And what are you doing?
>>
File: 1446531097453.jpg (6 KB, 250x240) Image search: [Google]
1446531097453.jpg
6 KB, 250x240
I'm fucking pissed, frustrated, and anxious. Ruby on rails is buggy as shit on windows, even with cygwin and msys2. I can't use 'mysql' from the command line so the "rake db:schema:dump" command doesn't run.

So I installed debain as a dual boot and it's a fucking barebones install with pretty much nothing. Even fucking sudo isn't installed. So now I want to remove debian, but I'm gonna have to fucking deal with having grub as my bootloader on top of windows and really don't want to fuck anything up cause this laptop is actually important to me.


Fuck RoR, I'm going to study node.js instead.
>>
>>54224644
VirtualBox, nigga
>>
>>54224644
I remember you. The anons here told you to use a fucking VM with Ubuntu, dickhead
>>
>>54224644
>it's a fucking barebones install with pretty much nothing. Even fucking sudo isn't installed

just install what you want dumbass
>>
>>54224660
>>54224666
Is there any free VM? The only one I remember is VMware which cost an arm and a leg.

[spoiler]I'm not that other anon[/spoiler]

>>54224702
I didn't know the install was going to be as barebones as it was. I was expecting a windows manager. Even simple commands like "poweroff" or "shutdown" didn't run, hell I couldn't even run a program straight from bin to turn it off because I was logged in as a user instead of root and hur dur "sudo" didn't work either.


I HATE GRUB, UNAESTHETIC PIECE OF SHIT
>>
Should I read the first or 2nd edition of eloquent JavaScript?
>>
>>54224460
With Flask? Small freelance gigs here and there. I do exactly what I told you: Start with Miguel's mega-tutorial/book and from then on, read about the Flask's plugins, mess around with the ones that seem useful and use them on my projects.
This is another great resource when you start building bigger apps and need some structure on your projects:
>http://exploreflask.readthedocs.org/en/latest/
And this:
>https://github.com/humiaozuzu/awesome-flask

My full-time job is with a big enterprise-y codebase in ASP.NET
>>
>>54224814
>cost an arm and a leg
You had to dig deeper, anon

https://my.vmware.com/web/vmware/free#desktop_end_user_computing/vmware_workstation_player/12_0
>>
>>54224666
I was about type type this word for word.

Our cycles are syncing.
>>
>>54224644
Install Ubuntu server in a VM
Connect to SSH and run rails from it
Download SSHFS for windows and mount your VM as a local drive to work on your files in windows
>>
>>54221822
Just went in to an interview. I thought it was with a company that did web-dev stuff but it was just a recruiter that has a job opening. After I go in and talk with the guy for a while he tells me that the job is for a more senior position but that I should clean up my resume and he would talk me up and send me over to them.

Is this normal. The job description he showed me seemed easy Drupal, WordPress, JS, PHP, but they said they wanted 4 yeas PHP experience and I only have 1 year. I'm going to go in anyway and see how it goes but I'm not to confident.

[/blog]
>>
File: 1429573917586.jpg (68 KB, 700x700) Image search: [Google]
1429573917586.jpg
68 KB, 700x700
>>54224644

Are you sure webdev is your thing?
>>
> tfw the good ideas don't stop.

No time. I think I need to just get a part-time instead.
>>
>>54222761
What is vue? Isn't it just a meme? Why use that over Angular, Angular 2 or React, which already have communities? What's with all the faggots who advertise their shitty clones of those?
>MUH MITHRIL, MUH INFERNO, MUH RXJS-DOM

FUCK! How can a community be this cancerous? The fast and uncontrolled growth of subpar frameworks, libraries and tools is literally killing JS.

And the fucking build tools, oh GOD. Setting up a hello world react application with JSX and ES6 is harder than finishing your entire application in Vanilla JS.
I just want something that gives structure to my non-spas. Why is this so difficult?
>>
>>54225253
Good luck. Apparently they dont have many applicants.
>>
>>54225253
If you've already essentially got an interview then the experience means nothing

if you can show them you're not shit you'll have the job
>>
>>54225253

not confident about what?
>>
>>54224880
opinions on Django vs Flask? I've been working on learning the Django for the past few months.

Been hearing good things about Flask and have been thinking about dedicating time to learn some of it.

From what I hear, django is more accessible by different devs since the infrastructure is normally always the same whereas Flask is faster but you're building your own.
>>
>>54225669
Take it easy, anon.

>What is vue? Isn't it just a meme? Why use that over Angular, Angular 2 or React, which already have communities?
Here, read this:
http://vuejs.org/guide/comparison.html

>I just want something that gives structure to my non-spas. Why is this so difficult?

Tha's why I recommended Vue and not React (given that they are similar). It's simpler to get started with Vue, in case you don't want to integrate the full React build-chain into your workflow. I also tried to do something with React, but it was just too many things to read about just to get started that I gave up and saved it for a later time.
>>
>>54225669
>be me, fuck it learn some react-meme-js
>going well, setup my babel with gulp to transpile etc
>build a basic app, works ok
>lol you should have built it with Flux dickhead
>Flux isn't a framework, it's an idea :^)
>gotta go learn some new shit just to store reacts state or apparently I'm doing it wrong
>there's a million competing Flux implementations

thanks Facebook
>>
> think of great idea
> google it
> its been done and has 100 downloads.

I cant be the only one that thinks location based image sharing is a great idea. See what pictures people around you are taking.

I already have 90% of it made. Just need to use cordova geolocation plugin send that along as a plupload parameter.

100 downloads and it's been out for 2 years. Kinda bummed, famallama
>>
>>54225702
>>54225739
that's the thing I didn't talk to anyone from the place I'd be interviewing at. I just went in to talk to a guy who works for the company they hire to do there recruiting. He told me that he would send them my resume and he would get me an interview with them. I still don't even have a time for this interview. would this recruiter know anything about how desperate they are for a Dev.
>>54225740
not confident that they will even take me seriously.
>>
In PHP, if I go to an object view page from a list page, how do I go back to the list page and keep the previous query parameters for that list page?
>>
>>54225811
I see, thank you, anon. Forgive me for being so upset, but this JS-craze is making me go insane.
>>
Made a site to promote vegetarianism, what do you guys think? eolas.xyz/vegetarian/animals.html
>>
>>54225669
Learning them these days is a lot like an investment. You learn the newest meme.js and it dies then you wasted time while another one took the spotlight and you dont know it.

I see a ton of Angular jobs so Angular2 is what I am looking at.
>>
>>54225815
Seems like Redux is the one everyone is using nowadays. It only has one store with one reducer, but this reducer is made by combining smaller reducers together.

I'm not an expert, but to me, copying everything in a huge-ass state structure on every single change seems like a HUGE waste of performance. I can see why people want to have their state in one space instead of having it split in plain js vars, js objects, jQuery .data inside nested children and then have something comfy render the application from that state, but... this just seems incredibly wasteful.

Not to mention that for a good experience, you need to manipulate the DOM anyway. And then there's the initial render time, which is ass with every framework.
>>
File: 1430253450332.png (1 MB, 500x1388) Image search: [Google]
1430253450332.png
1 MB, 500x1388
>>54224644
>>
>>54225820
Yes. Some places need a dev urgently to meet deadlines. They are more likely to settle.

You are in a good place.
>>
>>54225886
Yeah, Angular 2 looks pretty good... aside from the fact that it's fucking massive, holy shit. I don't understand the build process at all, but unlike react, it's at least opinionated enough to provide you with one.

But is it really a good experience to let your users wait for the application to load for like 10 seconds?
And how usable is Angular 2 when not using it in an SPA? I really don't want to make an SPA. The customers want shitty PHP shit with some Ajax thrown in.
>>
File: 1460089370273.jpg (137 KB, 960x806) Image search: [Google]
1460089370273.jpg
137 KB, 960x806
>>54225851
you seamed a bit mad when i answered yes to all your questions. you mad bro?
>>
>>54225851
>eolas.xyz/vegetarian/animals.html
I mean, the website is fine.

I just can't take that shit seriously.
>>
>>54225779
Last year, when I had some sparetime, I started learning Django too but I couldn't keep it, don't know why really.
Besides that first approach, I don't have any experience with Django but the general opinion from people that works/worked with the two of them is same from your last sentence.
>>
>>54225947
Thx m8, wondering why you can't take it seriously?
>>
>>54225981
Because fucking vegetarianism.
>>
>>54225942
I did that too. Hes probably collecting IPs of yes people to send to the PETA hitsquad.
>>
>>54225886
It's not just the frameworks. There are dozens of competing standards for everything. Build tools? Module loaders? Module formats? Transpilers? State management? Async management? Animation-libraries? (Can't wait for web animations, fuck the current animation libraries), Minifiers? Package managers? JS implementations? JS versions?

Yes, all of those. Dozens. What the fuck?
>>
>>54225889
It does seem like a huge waste. Reacts whole "re-implement the dom from scratch in memory and diff it yourself" thing should be slow but in practice is faster than I expected. But then I haven't exactly been pushing it.

I've been reading about reducers, makes sense in theory I just need to dive in a actually use redux.

I built this in React as a test (with node/nginx/memeDB): http://answerthings.tk
I hadn't used nginx before but I pref it's config to apache already
>>
Made an image based poll website using Rails.

choozeroo.xyz

Where should I got from here project wise?
>>
>>54226039
Well the good news is that they arent all that different and there isnt much you cant google if you're a bit lost.
>>
>>54226039
>animation
Use Greensock.js, nothing else comes close. Nothing else competes.

I've been using it since Flash with AS2, the guy that made it knows animation and what real animators need out of an animation library, it's very powerful.
>>
>>54226125
>implying muh company would pay for greensock
>>
>>54226061
> cant do anything without a jewbook.

I'm upset you didnt include ip based voting.
>>
>>54226158
niggah it's free

saying that the premium plugins are worth the tiny price for supporting the thing
>>
>>54226061
the right picture in the top corner is dead
>>
>>54226182
Really? That's... weird. I don't know why I was so misinformed then.
>>
>>54226036
oh no I need to warn my family and friends they are all at risk of getting fake blood pored on them or being victim to performance art
>>
>>54226237
You better. You wouldn't want your family to be brutally slapped with the force of a blown kiss by a bunch of sickly protein-deficient translucent-skinned teenagers, would you?
>>
>>54226218
>Our paid license is only necessary in projects that you sell to multiple end users.

Nevermind.
>>
>>54226381
I'm sure they would let you make money off it for a little bit before buying it if you asked.
>>
>>54226381
$150 a year is nothing if you're using it in products you actually make money from
>>
>>54226443
Yeah. But you have no idea whatsoever how anal my boss is about spending any money. If he has to choose between billions of shitty open-source libraries that don't work properly and a commercial library that costs one cent for a lifetime license...
>>
>>54225669

If you're thinking what I'm thinking, then we're not the only ones.

This is all because of Java...

Shit like Maven works well there, and Spring is better than handling routes and serving files with raw Java, where the built in libraries are a piece of shit. But to structure an app on the client side, you don't need to apply the MVC pattern, or the MVVC patter, or a virtual DOM. What you really need is JQuery and some brainwork.

Of the current frameworks, the only one I would even consider using, is Backbone, because there's no magic in it. Just plenty of decent structural suggestions (which people still tend to over engineer shit with).

Of the latest round though, I'd only consider Polymer (very likely, with Backbone), because self enclosed components are a really good way to work, and a standardised abstraction for them might well be helpful in the longrun.

Also, a quick word on "ES6", I liked ES5, it was great... Sure, constructor functions and prototypes were weird, but classes are not the answer. Further more, 'let', and 'const' might well be jumping a shark that was already beached (bitch ass Java devs). I'll learn it all, but it's a different language now, and certainly not the favourite it once was.
>>
>>54226503
MVC on the client is bullshit.

I'm also really excited for web components, but with the current polyfill, most customers can either not use programs written with them at all or they have to wait like 12 seconds for the polyfill to to its thing, which is awful.

Also polymer and the webcomponents-lite polyfill tend to be a bit too opinionated... they differ quite significantly from the final specs that the vendors agreed on. HTML imports don't exist at all, registering custom elements is different, shadow dom is pretty different (but better)... only templates are the way they are.

But yeah, the raw DOM api + custom elements and a little bit of data-binding magic is definitelly going to be the most flexible, best performing and long-lasting approach. I don't even want jQuery.
>>
>>54226610
after the cluster fuck of meme js libraries recently jQuery is looking more and more like a good choice

jquery's problem has never been itself, just the way it often gets used by rubbish devs, it's probably the most battle tested javascript library ever made
>>
Does anyone have suggestions for a paid video tutorial site - specifically for MEAN stack? I have experience with html, css, client-side js, I learn best by example so ideally it would be videos of the instructor working through building web apps from the ground up
>>
File: Screenshot_2016-04-25_19-31-20.png (14 KB, 952x430) Image search: [Google]
Screenshot_2016-04-25_19-31-20.png
14 KB, 952x430
>>54226061
Are you fucking serious?
>>
I never thought i'd see wdg praising jquery
>>
all my css is static and I need to transform it to responsive (at least for desktops) and not sure from what part do I start first. Also should I use em or %? and its possible to make it work with pixel sizes if I use media queries?
>>
What do I add?

I'm bad at resumes.

In-depth experience with web programming languages such as HTML, CSS, PHP, Javascript/jQuery/AJAX
Proficient with CSS frameworks Bootstrap, Foundation-flex and Skeleton.
Experience with Linux and Windows operating systems.
Solid ability in the installation of LAMP/LEMP stacks with secure configurations.
Sound understanding of relational database configuration and management through mySQL.
Wordpress installation with plugin/theme integration, Cordova packing and use with phone API, plupload.


I really just want to write a string of everything.
>>
>>54228228
I know SEO and social media bs too, but even a local SEO startup wouldn't have my shit for 30k a year.
>>
File: hqdefault (1).jpg (19 KB, 480x360) Image search: [Google]
hqdefault (1).jpg
19 KB, 480x360
Okay /g/, which one do I commit to?
>Django or Node.JS?
>>
>>54228252
node.

How is this even a question?

Hey guys, do I commit to Javascript or Cold Fusion?
>>
>>54224814
>Is there any free VM?
VirtualBox
>>
How the fuck do I get a job? I've been doing this shit for a while and have made crappy fucking site through freelancing. I made small apps which parse live xml data like a currency converter. I dropped out of college though.

HOW DO I GET A JOB
>>
File: 1448838769700.jpg (34 KB, 245x471) Image search: [Google]
1448838769700.jpg
34 KB, 245x471
noob here

after doing some reading, the consensus seems to be that in order to stay motivated while learning about programming of any kind, you should have a goal project that you keep in mind and try and build

basically i want to make something like soundcloud but less shit and more lightweight

what would you use to accomplish this?
>>
>>54228252
django.

How is this even a question?

Hey guys, do I commit to Python or some SJW shill hipster bullshit meme?
>>
>>54229012
Have you tried applying?

Seriously though, there are a million possible reasons. Are you getting to interviews at all?
>>
>>54229023
I answered this exact post in the last thread, fuck off and read that.
>>
>>54229106
no you didn't
>>
>>54229132

>>54211322
>>
>>54229096
I've applied to 6 jobs and didn't get any replies.

I shouldn't bother with the one that say they require a bachelor degree right? Or the ones with too many requirements I don't fulfil?
>>
>>54229171
thanks senpai, i missed that
>>
>>54229206
Post your resume and/or portfolio. You can anonymize it if you're a pussy.
>>
>>54229206

>I shouldn't bother with the one that say they require a bachelor degree right?

Wrong. You miss 100% of the shots you don't take, senpai.

>Or the ones with too many requirements I don't fulfil?

Depends on the requirements. New language you don't know anything about? Yeah, probably skip it. New meme.js framework that you can get the gist of in an hour? Go for it.
>>
>>54229206
Are you me?
6 or 7 jobs applied to here and I know this place has no devs. They can't even find instructors for a local bootcamp for 140k a year so they are posting on craigslist.
They actually raised the salary to 150k this last week.

How the fuck am I not getting work? Has to be my resume.

Gents, here is my skills section. Previous jobs don't matter, not related. Military.

>In-depth experience with web programming languages such as HTML, CSS, PHP, Javascript/jQuery/AJAX
>Proficient with CSS frameworks Bootstrap, Foundation-flex and Skeleton.
>Experience with Linux and Windows operating systems.
>Solid ability in the installation of LAMP/LEMP stacks with secure configurations.
>Sound understanding of relational database configuration and management through mySQL.
>Wordpress installation with plugin/theme integration, Cordova packing and use with phone API, plupload.

yes, I posted that earlier.
>>
>>54229719
Are you changing your resume to fit the jobs at all? At medium-large companies, your resume will go through HR before anything else, and they don't know jack shit about programming, so you need to rephrase things to match the job description exactly.

Also, consider doing the usual job applicant stuff like writing cover letters, checking back in, contacting the person you'd be working directly under, etc. Anything to get your resume in the 'keep' pile.
>>
>>54229719
What have you actually done?
>>
>>54229206
>>54229719
>>54230008
Also, you need to keep your online presence in mind. If you google your name, does your portfolio site or linkedin or something come up? If not, that's okay, but make sure you don't have any easy to find mugshots or bad press.

And ffs make sure your social media is sanitized. If your facebook profile image is you doing lines off a tranny stripper's dick, you shouldn't be surprised when no one contacts you.
>>
>>54222829
i think it looks good
>>
>>54230118
They can't find anything with my github name.

>>54230008
I was told to add as many buzzwords as possible. Is that bad?

>>54230020
Like on github? Nothing...super..impressive. I have a website that gets 5k hits a week :^) and a city distance calculator using Haversine that detects cities within whatever distance you choose. Returns as JSON. Finally, a really stupid vanilla javascript thing that wraps images with data-* attributes in <div> tags and overlays copyright information on mouseover.

I just learned how to use git last month. I should probably add that to the resume.
>>
>>54230210
and the problem with git is that since using it I mainly make websites that I intend to launch. Can't give that stuff away.
>>
>>54230210
Mine is mostly accomplishments from my job along with technical skills.
>>
>>54230210
>They can't find anything with my github name.

I mean your real name, dumbass. Are you not putting your real name and contact info on your resume?

>I was told to add as many buzzwords as possible. Is that bad?
You don't want it to look like you just threw every buzzword you could think of on there. List major things like languages, OSes, source control, etc and then try to match the phrasing they use. HR doesn't know that jQuery is a javascript library, as far as they know, they're two separate things.

>github
The stuff you have on there is a good start. Make sure your code is clean and keep doing projects.

>I just learned how to use git last month. I should probably add that to the resume.
No shit. Everyone uses git. Git gud at it and put it on there.

>>54230236
You can use git locally without putting it on github. Or you can put it in a private bitbucket repo (free) private gitub repo (not free). Also look into gitlab.
>>
>>54230008

Also wanna add something to this post for that guy; before you apply do some research about the company and what they do. When you're writing the cover letter try to integrate their main aim/objective into what you write (don't copy and paste the same shit tho). It'll tell them you've at least put some effort into find out what they're all about beforehand.
>>
>>54230555
Seconded. Companies prefer hire people that actually want to work for them, not people that just want a job somewhere. They don't want someone that's going to slack off or jump ship as soon as a better offer comes along.
>>
>>54230555
>>54230618
Do developers actually write cover letters? What I've read says not to bother.
>>
>>54225818
market it better than the other asshole, dumbass.
>>
File: 1433680631704.jpg (31 KB, 599x315) Image search: [Google]
1433680631704.jpg
31 KB, 599x315
I currently work in an IT service desk dealing with Pajeet's on a daily basis and currently have close to 2 months paid leave stacked up. My employer is pushing me into using this up, since apparently it's a liability to have employees sitting around with lots of paid leave outstanding.

I'm thinking that I don't want to waste it playing video games or basically just goofing off, and am considering dedicating this time to immerse myself intensively into web dev stuff. I've already dabbled with it, I am quite familiar with HTML and CSS from years ago as a kid I used to make websites for fun, but not much experience in terms of actual programming. Pretty comfy in using the terminal, managing files etc. so it's not as if I am a complete helpless noob who can't into computers.

Anyone else out there done something similar? I want to make sure I'm learning and working as efficiently as possible, since I really don't want to waste these 2 months. Ideally from here I can work in my 3 days a week off to keep going, and then branch out onto projects and hopefully land jobs and break out of service desk work (it's shit-tier honestly, computer janitor, I hate it immensely and this has sparked my motivation to really try and teach myself and get competent at web dev and find the jobs).
>>
>>54230681
Why not? It might take you 20 minutes and it shows that you want the job more than everyone that didn't include one. At worst, no one will read it and you're right back to where you were before you had one at all.
>>
>>54230724
For me it's a mentality thing. I have a job. If I wasn't interested in working there I wouldn't apply.

I'm a badass. They should be beating my door down.
>>
>>54230362
Thanks bb.

I think I'm going to copy that layout of the skills section posted in the last thread.

>tfw use Indeed so it doesn't matter.
Just scrapes the resume and puts shit all over the place.
>>
>>54230866
>Indeed
Indeed is a good resource, but you should still have an actual master resume that has everything organized nicely and looks professional. It's good to have one you can print out in case you go to a networking event or something. Btw, you should be going to networking events. If you can actually shake hands and talk with someone important at a company, you're waaaay more likely to get hired.
>>
>>54230715
If I were you I'd just pick a project idea that you like and any of the common frameworks (rails/django/flask etc) and start working
>>
>>54230715
they probably just don't want to pay it out if you leave
>>
>>54230943
Like the ones from meetup, or is there a more professional system to use?
>>
>>54231001
Meetup is good. There might be other resources depending on where you're at. Craigslist may also be a good place to look. Also see if there are any coding/tech related facebook groups for your area.
>>
File: 1447159098533.jpg (790 KB, 1920x1200) Image search: [Google]
1447159098533.jpg
790 KB, 1920x1200
>>54230960
Yeah, I think that's the case as well

>>54230946
Ok, sounds like a good idea
I am interested in building something like Soundcloud, Bandcamp, Mixcloud etc.
I am actually the guy that posted earlier asking for advice, someone suggested building a CRUD app, but not much in regards to frameworks?
>>
My first 2 days with a resume up I turned down a job maintaining a cash thing for 45k thinking I would get a web dev offer.

It's been a month and have had nothing else. No responses. Nothing.
>>
>>54231952
Pretty crazy of you. Unless you're absolutely certain to get something better you always choose the smaller jobs as a temp fix. Don't beat yourself up though, just another life lesson.
>>
>>54232166
There are so many web dev job postings here I thought I would get one.
>>
How do I go about building a portfolio? I need at least 10 WP projects by July.
>>
I have a rest api to put on github. Yay.
>>
What's the cleanest way to work with a SQLite db in PHP?
>>
>>54232578
use a real programming language
>>
>>54232642
It's for a job, NEET.
>>
File: VlV3f0S.jpg (77 KB, 599x559) Image search: [Google]
VlV3f0S.jpg
77 KB, 599x559
Okay this is gonna sound stupid, but i was on a random website and it had me type in a email address, so like a normal modern person i typed in the first letter and clicked the autofill option. Then I realized, I dont really trust this site, how do I know there are no other hidden fields, programmed in the HTML of the website to have the fields accept the rest of my autofill info (full name, address, or more) and they are just hidden from being visible?

With my very basic understanding of HTML, it seems possible, and like a very easy way to collect private data on people. They autofill their email and dont realize the website has hidden fields for all the rest of their info stored in their browsers autofill, so they only see the email filled but they just got all their info)

Is this a stupid idea or is it possible?

If it is possible, is there anyway to prevent it?

Picture unrelated.
>>
with jquery how can i replace an inner h1 tag which belongs to a div with an id? the following does not work

            <div id="totalSites" class="pull-right" align="center" style="margin-top: -75px; margin-right: 40px;">
<h1><?php echo count($matchedSites);?></h1>
<p>Your Sites</p>
</div>


                $("#totalSites.inner").replaceWith("<h1>"+<?php echo count($internetTechnologies);?>+"<h1>")
>>
>>54232578
>SQLite
use a real database
>>
>>54233116
autofill shouldnt work with sites that you havent added to your trusted list afaik
>>
Alright, I've always wanted to try practicing UI+UX. I know most of my HTML and CSS. What's the next step, /g/entlemen?
>>
>>54228252
Node.js

Python django is just shit for webdev.
>>
File: Screenshot_2016-04-26_04-15-58.png (3 KB, 348x113) Image search: [Google]
Screenshot_2016-04-26_04-15-58.png
3 KB, 348x113
WHY
>>
File: rmm.png (28 KB, 561x359) Image search: [Google]
rmm.png
28 KB, 561x359
Who hypermedia here ?
>>
>Javascript has no foreach
>Javascript has no string.format()

Fucking seriously? So I have to use C-style for loops like it's 1975 and ALSO have to write ugly unreadable "a" + b + "c" + d + "e" shit
>>
What's the point of Redis?

Do you have some real-world usage examples that aren't caching of sessions or a pub/sub chat program both of which can be implemented in a ton of other ways?
>>
>>54234051
for in/of? generators/yield?

http://stackoverflow.com/questions/610406/javascript-equivalent-to-printf-string-format/610415#610415

There I did the googling for you.

>inb4 I don't want to use libraries
>uninstall your package manager and all frameworks faggot
>>
>>54234148
I used it once to provide fast fuzzy search results.
Dataset was indexed in Redis by it's string representation through a phonetic algorithm, results sorted by levenshtein distance.
I used it to fill a typeahead type dropdown on my search form to suggest results.
>>
>>54234277
Were you trying to generate ebonics verses for your mixtape?
>>
>>54234051
E S 2 0 1 5
S
2
0
1
5


faggot
>>
>>54234439
That looks like an actually good webapp idea
>>
File: slide show.png (81 KB, 1920x1022) Image search: [Google]
slide show.png
81 KB, 1920x1022
I'm trying to make one of those sliding banner reels in JS. The problem is I have no idea how to make the img slide to the left and get the effect like its sliding into the end of the border of the frame. can anyone walk me through how thees things work.

Pic related its what I'm trying to learn to make
>>
>>54234527
css animations ?
>>
>>54234527

http://www.w3schools.com/css/css3_transitions.asp
>>
>>54222676
Not him but.. what's a simple replacement library for $.ajax() ? Every alternative anyone shows me is 30KB in size - I might as well just stick with jQuery.
>>
>>54234616
You don't need a library just for that.
>>
File: fawRchq.jpg (214 KB, 1008x1323) Image search: [Google]
fawRchq.jpg
214 KB, 1008x1323
Not sure if I should've gone to /sqt/, but:

I have a search text input box with a fixed position in the lower right corner. When it gets autofocused on page load, the page scrolls down to the bottom. How would I make the page start scrolled up, considering the input box is fixed to the screen anyway?

My HTML/CSS skills are basically this image.
>>
worldwideweb.website.web

.web is a dumb extension.
>>
>>54234794
It could be used for special networks though.

Like a, uh, collection of sites? Landing page?

Yeah nevermind it's stupid.
>>
>>54234794
spiderman.web
>>
>>54231479
>someone suggested building a CRUD app
That guy here. I didn't suggest a framework because it depends on what stack you're working with.

If you're doing it in JS, I would start with the backend first, probably using express. Whatever you use, set up a file storage mechanism for the music files and a database to store info about the songs (could even be just a .json file to start off with) with something like an id, track name, artist, uploader username, etc and most importantly a column to store the path to the file.


Then make a RESTful API to GET existing songs and POST new ones, etc.

Then make a user accounts system so that user information is stored with uploaded songs.

Then work on the front end. To start, you need a home page (where you maybe just list all uploaded files for now, you add search functionality and fancy recommender shit later), new user page, a page for each file, and file upload page where logged in users can upload new ones. For front end frameworks, just go with whatever meme.js you like. You're going to need something that, one way or another, plops AJAXed data into templates.

That should be enough to give you a good start. After that, just keep iterating and adding stuff. Set up a real DB if you didn't already, add commenting, etc. It's wide open. Good luck and have fun.
>>
>>54235841
Thanks man, I appreciate the input
This is really helpful, giving me a lot of things to go and check out
Definitely going to enjoy this! Will post back here with results when I get somewhere.
>>
is there a way to replace only a subpattern in javascript?

"the quick brown".replace(/the (quick) brown/, /* what */); // should return "the slow brown"


chrome has backreferences but they're behind a flag

"the quick brown".replace(/(?<=the )quick(?= brown)/, "slow"); // this works
>>
So, the site in PHP I'm developing has social login through Facebook, G+ and others. Among other things we get the social picture for the local profile
Here comes the problem: there is no way (at least I couldn't find) to download these pictures and save them in our server without using allow_url_fopen, which is deemed like a terrible idea and really insecure, specially since I'm using a framework. On the other hand it seems to me that it's generally a bad practice to save in the bank the hotlink for the picture.
Which way should I go? I tend to the second one because it's safer
>>
>>54236463
>save in the bank
I mean database
>>
>>54236427
"the quick brown fox jumped".replace(/(the) (quick) (brown)/g, "$1 slow $3"));
//the slow brown fox jumped

This is the only thing I could think of.
>>
>>54234616
https://github.com/visionmedia/superagent

9.9Kb minified
>>
>>54233617
Is this similar to what you want?

https://jsfiddle.net/L2gs3vug/
>>
Why do people hate jquery? Is it just not cool enough for you kids anymore?

Don't tell me jquery is bad. People writing bad jquery is the problem, but thats true for every language and framework.
>>
File: DSC00244.jpg (70 KB, 640x480) Image search: [Google]
DSC00244.jpg
70 KB, 640x480
Looking for an open sores inventory tracking restful api implementation. Anyone know of one? I can only find closed source hosted solutions.
>>
>>54237397
Get outta here, Resig
>>
>>54237397
>People writing bad jquery is the problem
That is exactly the problem. There are some legitimate claims against jquery itself like bloat and performance overhead and so on, but the real reason it's shit is the people writing it.

>but thats true for every language and framework.
it's not though. Jquery lets you do a lot of good stuff without actually knowing what you're doing. So naturally pajeet loves it, and people like me who have to come in after pajeet and fix all his stupid broken shit hate it.

And it's not just pajeet either. Most developers don't know JavaScript beyond the basics, and many of them end up having to write JavaScript at some point. Jquery lets you do that without having to learn how to properly build a front end system in js.

It's generally easier to sidestep all that bullshit and just use something that forces developers to know at least a little of what they're doing.
>>
>>54237573
I am also interested in this.

I want to be able to be implemented into POS (point of sale, not piece of shit) software for a project, bit would like to work on inventory stuff.
>>
>>54236463
Save it on the backend.
>>
File: ybWKjSM.png (44 KB, 753x772) Image search: [Google]
ybWKjSM.png
44 KB, 753x772
>>54237711
s/irrelevant library/jQuery/g
>>
can someone give a TL;DR explanation of how MySQL works

like if you have web hosting with MySQL, what exactly can you do with it? just upload your website to it or can you also have clients connect to the website's server and read/write to the database?
>>
>>54237904
You have a website.
You also have a database full of data (clients, articles, whatever).
MySQL let you manage that database (add/delete/update/select data).
You can use it on your website to manage your database from there.
>>
>>54237850
This.

Every fucking stackoverflow question.

"I'm try to do this in Javascript..."

"In jQuery you can just..."
>>
>>54237904
MySQL is a database. You don't "have web hosting with it".

Think of it like a big excel spreadsheet, with rows and columns. You connect the backend of your website to it and then you can read/write data to it by passing SQL commands. For example,
SELECT (*) FROM people WHERE age > 30


Then you would get a list of every row in the people table where the age column is greater than 30. Then you could do something with that data, like put it into a web page template so a user can see it.
>>
>>54237904
You need to convert your html into a serialized form and enter it into a mysql blob to host a website. This is the way fortune 500 companies do it. Most secure
>>
File: [email protected] (124 KB, 2119x739) Image search: [Google]
hero@2x.png
124 KB, 2119x739
What is the best editor of webdev and why is it Brackets.io ?
>>
>>54237711
I mostly use it for animations to be honest because that's kind of a ball ache in vanilla js though I suppose it's easy enough to use css instead these days.
>>
>>54228252
Rails. How is that even a question?
Full stack Rails devs are sought after
>>
>>54237967
>>54238025
>>54238034
i'm not sure if i understand completely

if i have a mobile app, then can i set it up so that each user can upload and retrieve data through the app? data such as images or game save files. can i get by with web hosting for that or do i need some extra server/cloud service?
>>
>>54238115
You just need a domain name and a mysql database. Upload the ssh key of the domain name into the mysql table.
>>
>>54238115
MySQL is outdated anyway, why do you even care?

Look into NoSQL, XML databases, NewSQL, MongoDB, this is the future...

Don't both learning technology that is becoming outdated as we speak.
>>
>>54238115
To be clear, you want users to upload data to a central server, right? As in not stored locally on the device?


Assuming you mean the former, essentially what you're asking for is a cloud storage service. If it's a small thing for personal use, I'm pretty sure google drive, dropbox, and similar all have REST APIs you can use. Otherwise, you might want to look into AWS's S3 service.

Rolling your own MySQL server is kind of overkill and it sounds like it's a ways outside your ability for now anyway.
>>
>>54238256
>>>/pol/

we need a code of conduct for this thread
>>
Its like everyone is hiring web developers but no one wants a fucking web developer. These fucking nig nogs want senior level shit basment autism level knowledge for 30 an hour. Fuck you. No responses. Fucking nig cucks
>>
>>54238297
>>54238284

please be respectful
>>
>>54238284
No safe spaces in life. Kill yourself, fairy princess
>>
>>54238310
*twirls skirt*
>>
>>54238297
>These fucking nig nogs want senior level shit basment autism level knowledge for 30 an hour. Fuck you. No responses. Fucking nig cucks

Gee, I wonder why they don't want to hire a well-rounded and considerate individual such as yourself.
>>
>>54238184
>You just need a domain name and a mysql database.
sounds good but i don't get this part:
>Upload the ssh key of the domain name into the mysql table.

>>54238203
it's what's included with the web hosting service

>>54238280
>To be clear, you want users to upload data to a central server, right?
yes, kinda like for example imgur or instagram but not necessarily through a website interface.

>Rolling your own MySQL server is kind of overkill and it sounds like it's a ways outside your ability for now anyway.
but it would be possible with just web hosting with a MySQL server and no cloud service? i just want to know if it's possible. the web hosting plan has a lot of traffic and storage included so it'd be interesting if i could utilize it without paying for an additional cloud service.
>>
>>54238070
Brackets > VSCode > The Classicsâ„¢ >>>Basic text editor >>>>>>>>>>>>>>>>>>>>>>> Atom
>>
>>54233116
Now you've made me hungry.
>>
>>54238360
Irrelevant. They dont even interview.
>>
>>54238360
Uh, most of the people that anon is talking about demand stupid shit like solving their entire problem before even granting an interview - in which even if you do solve their problem, they use it, pretend as if they give a fuck about you, and keep it moving.

Horror stories are real boys, stay safe, don't do drugs, and remember to call mom.
>>
>>54238070
Brackets takes a decade to startup and thats if it doesnt lock up first. I've lost so much work when trying to open another file before saving because it locks up.

Fuck brackets.
>>
>>54237817
How? Is it possible without allow_url_fopen?
>>
>>54238401
I had a company wanting me to use their API for a code test but it was down. Their whole server was down. I told them and they did nothing and ignored me.
>>
>>54238441
file_get_contents
file_put_contents
>>
>>54237397
It's not exactly light, and people are using it in replacement of JavaScript to the point that employers here ask for "jQuery, experience".
There are a lot of projects that could do perfectly without it and a lot of functionalities you could write easily in JavaScript if necessary
>>
>>54238363
>but it would be possible with just web hosting with a MySQL server and no cloud service? i just want to know if it's possible. the web hosting plan has a lot of traffic and storage included so it'd be interesting if i could utilize it without paying for an additional cloud service.

It's certainly possible. You're just reinventing the wheel to save like $2/month if that.
>>
>>54238501
amazon aws s3 is $2/month for small/medium usage?
>>
>>54238363
Dood just install mysql locally on your computer and try a few tutorials
>>
>>54238547
Believe it or not, amazon has graciously taken the time to put all their pricing info online. They even put it into some nice little tables for you. Perhaps you should go take a look at that.

In fact, everything you keep asking about is easily found using google.
>>
>>54238632
i think i'll do that, thanks. i just had no idea how it actually works but i guess most any reasonable websites like 4chan etc lets users upload and download content so it has got to be possible.

>>54238645
the web hosting service has 5 TB of monthly traffic and 250 GB storage included. it could serve 5 million monthly users if the average user uses 1 MB in a month.

1 single core cloud instance with 0.5 GB ram and 20 GB storage would cost $12+ a month and it doesn't seem necessary at all since i'm not doing real-time online multiplayer or anything like that

also i looked at aws a while ago but the pricing structure was not very clear
>>
>>54238645
>>54238703
and i'm not literally asking if it's $2/month for aws s3, just calling out your claim that not using a cloud service would save "like $2/month if that" because i doubt it unless perhaps you use very little traffic and storage
>>
I made a Greasemonkey script that adds some little useful things to Youtube. I have to create some new DOM elements and it always turns out like this:

var clearLink = document.createElement('a'); 
clearLink.style.float = "right";
clearLink.style.fontSize = "smaller";
clearLink.style.clear = "both";
clearLink.style.paddingTop = "5px";
clearLink.style.display = "block";
clearLink.style.color = "#b00";


Is there a better/more compact way of doing this?
>>
>>54238765
give it an id and style it using css

// @grant    GM_addStyle

clearLink.id = "clear-link";

GM_addStyle(`
#clear-link {
float: right;
/* ... */
}
`);


or use Object.assign

Object.assign(clearLink.style, {
float: right,
// ...
});
>>
to the germans or other eu people
can you recommend a cheap webhoster for my first ever website ?
>>
>>54238813
thanks a lot

>>54238919
all-inkl.com if you want hosted webspace and domain, 5€, great support
>>
>>54238919
kimsufi (OVH) or online.net: cheap and reliable hosts but often out of order because they're so popular.
>>
Do people use c# mvc for any serious projects? I tried playing with it but the type-sensitivity is driving me crazy. Another thing is somethings are abstracted beyond what is sane (Model/DB connection), while other features requires type juggling through several functions to get an output (getting an md5 hash for a simple string).
>>
>>54238986
>reliable
>but often out of order
>>
how do I make an automatic counter in AngularJS?
I want to see the increment as it happens
$scope.unlimitedShekkles = function() {
$scope.shekkles = $scope.shekkles++;
$timeout(unlimitedShekkles, 1000);
};

I've declared $timeout in my controller and shekkles is a $scope variable.
>>
>>54239014
How do the two connect for you?
How does the fact that they're out of servers to offer because the demand is very high mean the servers they give are unreliable?
>>
>>54238365
Brackets is buggy though, granted most of the bugs are ui related.
>>
>>54239056
Learn english.
>>
>>54239076
not him but i dont get it either
>>
>>54238986
>>54238919
what about https://www.one.com/
>>
>>54239076
>>54239105
I got what he said.

A: The fact that they're out of servers because they are in high demand.
B: The servers are unreliable as a result of A.

Where is the link between A and B? How do they co-relate?
>>
>>54239105
>reliable hosts but often out of order
>out of order
As in not working.
>>
>>54238703
>>54238738

>1 single core cloud instance with 0.5 GB ram and 20 GB storage would cost $12+ a month

That's cloud computing( like aws ec2), not could storage (like aws s3). You don't need that unless you're going to be doing something with the data.

>the pricing structure was not very clear
That is fair, aws gets a lot of shit for its wacky pricing.

Here is the pricing for s3: https://aws.amazon.com/s3/pricing/

You get a free year of 5GB with some restrictions. If you go over that, the regular storage pricing is:

- $0.03 per GB up to first TB/month, and cheaper if you use more
- $0.005 per 1,000 PUT, COPY, POST, or LIST requests
- $0.004 per 10,000 GET requests

If that's still too rich for you, there are a gorrilian other cloud service companies. Google is generally a bit cheaper, too iirc.

>the web hosting service has 5 TB of monthly traffic and 250 GB storage included. it could serve 5 million monthly users if the average user uses 1 MB in a month.
Good luck with that. I'm sure your killer app is going to be the next facebook or whatever. Seriously though, if you had 5 million monthly users, you should be able to monetize it enough to pay for something better than your little shared-hosting server.

Most importantly, if you don't even know what a database is, you should really do some more learning before you worry about any of that stuff. You need to deal with database security, load balancing, backups, and a whole lot of other shit. Just start working on it on your local machine. Free code camp (In the OP) has a section on mongoDB and some node backend stuff. You might want to look at that. And for fucks sake, please talk to someone that knows what they're doing before you do anything with any actual users.
>>
>>54238986
>>54239014
>>54239105
>>54239164
>>54239168
When I said "out of order", I meant sold out, sorry.
>>
>>54238645
Not him but half the fun of these threads are learning with other people.

The only the we do other than that is argue about stuff and the final percent are people who cant find jobs.
>>
>>54239164
>>54239168
i thought he meant out of order as in sold out
might have to do with english being my second language
>>
>>54239144
Is that php only?
>>
>>54239177
If he got a vps it would be hacked in 5 seconds by chinese bots.
>>
>>54239231
https://www.one.com/de/produkt
you will also understand it in german
>>
>>54239202
if they get sold out all the time why don't they expand to meet the demand
>>
I need to make a website for my business, it's only going to be a small 4-5 page site that is responsive. We can't afford to hire someone at the moment but I have a fair amount of HTML and CSS experience.

What is the best way to make a nice site easily and fairly quickly? I looked at some of the Bootstrap templates which looked nice, but I worry about the use of JavaScript in certain areas. I am always cautious about using JS when its not necessary as I worry people (like me) disable it by default or just don't have it installed (alot of my target audience is older and may not have up to date browsers).
>>
>>54239280
What is fail2ban
What is ssh key

I'll take dumbass for 100
>>
>>54239437
Disable jQuery in Bootstrap then, and do not get any user input.
But I think you'll be fine if it's a couple static pages.
>>
>>54239015
you have to use "$scope." when doing stuff

shekkles++ did not seem to work for me, +1 did, weird

you should probably use $interval for this kind of thing

this works:
app.controller('MainController', ['$scope', '$timeout',  function($scope, $timeout) {
$scope.shekkles = 100;
$scope.unlimitedShekkles = function() {
$scope.shekkles = $scope.shekkles+1;
$timeout($scope.unlimitedShekkles, 1000);
};
$timeout($scope.unlimitedShekkles, 1000);
}]);
>>
>>54239457
Forgot to turn off root password. RIP
>>
File: image.jpg (16 KB, 547x335) Image search: [Google]
image.jpg
16 KB, 547x335
Does anyone use pic related with Emmet? Every time I open It I have to disable and reenable Emmet for it to work correctly.
>>
File: me.jpg (89 KB, 407x419) Image search: [Google]
me.jpg
89 KB, 407x419
>>54239846
>"does anyone use pic related"
>file named image.jpg
>>
>>54239890
>this faggot doesn't even use image.jpg
>>
>>54239912
how am i supposed to know what "pic related" is when i don't know what the thing in the image is

what about screenreader users
>>
>>54239518
Why would anyone willingly put themselves through this PHP look-alike framework?
>>
File: image.jpg (20 KB, 547x335) Image search: [Google]
image.jpg
20 KB, 547x335
>>54239890
>>54239912
>mfw
>>
>>54239927
If you are using a screenreader, you aren't using pic related.
If you aren't using pic related, you can't anwer the question.
Now fuck off.
>>
>>54240095
>fuck off
>>>/b/
>>
>>54240173
no u
>>
So nobody knows what the Atom logo looks like? What kind of shithole is this?
>>
File: helpmeG.png (18 KB, 579x211) Image search: [Google]
helpmeG.png
18 KB, 579x211
I have a specific question to web devs!

Im not into web development but im using an ftp server to upload my photos through java and php on my mobile device.

I have set
php_value upload_max_filesize 5M
in my .htaccess
because my photos will never exceed 5mb.

But after ~30 photos the server returns 413
>pic related
and ill have to wait around more then 24 hours for the upload to work again

Is there a setting to upload an unlimited amount of pictures <5mb? Or is there a specific time ill have to wait to start the upload again?

Thanks in advance!
>>
guys is there an app or something that can test my site to see how long it takes to load and what parts of js take most time?
>>
>>54240319
https://developers.google.com/web/tools/chrome-devtools/profile/
>>
>>54240319
Clear your cache, inspect the page, the look at the load times after you refresh
>>
>>54240026
>>54239912

kek
>>
>>54239890
The editor is brackets. My mistake, assumed it was common knowledge.
>>
>>54229012
Meetups. Check if there's a meetup in a city near you and go there. If you make friends, they can usually find you something.
>>
>>54222829
Has anyone here done anything with crystal yet? I just downloaded last night and played with it for like 5 mins.
>>
>>54240709
>http://crystal-lang.org/
Looks good. Why should I use it instead of RoR, for example?
>>
Can someone tell me what I'm doing wrong here? I've been stuck on it for a while. I'm trying to do a HEAD request to get the status code of testURL, but it hangs indefinitely. Also, is there a better way to do this altogether?

let http = require('http');
let url = require('url');
let validator = require('validator');

exports.checkUrl = (testUrl, callback) => {
if (validator.isURL(testUrl)) {

let options = {
method: 'HEAD',
hostname: url.parse(testUrl).host,
path: url.parse(testUrl).pathname
};

let req = http.request(options, (res) => {
console.log("Got status code: " + res.statusCode);
res.on('end', () => {
callback(null, res.statusCode);
});
});
req.end();

} else {
// validator says testUrl is an invalid url
let error = new Error("Invalid URL");
console.log("Couldn't validate url");
callback(error);
}
};
Thread replies: 255
Thread images: 26

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.