[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: 321
Thread images: 30

File: Z6zEcJj.png (731KB, 824x553px) Image search: [Google]
Z6zEcJj.png
731KB, 824x553px
Previous thread >>59005100
>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
thenewboston
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 (embed)

>Useful tools
https://pastebin.com/q5nB1Npt/ (embed)
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/ (embed)

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

>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
>>
currently working on the most complicated code of my life deshoe
>>
It's sad how dead this is.
>>
>>59053381
Yeah, well..
>>
Which front-end framework would you recommend for Django?
>>
>>59053381
It's slow, but web development generals often end up ultimately reaching the bump limit, so it's not so bad.
>>
>>59053567
I don't why your back-end framework would have anything to do with the front
>>
>>59053381
Yeah. It's a big field too.

I like to think most of have jobs but these threads die within 6 hours over the weekends.
>>
File: agsdg.png (166KB, 264x245px) Image search: [Google]
agsdg.png
166KB, 264x245px
>>59053890

I lurk this general but have never really built anything or created a web presence. I know enough to hold a conversation about web dev in general but I don't have any practical experience.

Feels bad. Idk why I can't motivate myself to start building and creating a small business.
>>
>>59054394
I know the feeling. You just have to get an idea in your head you like enough and you'll take off.
>>
>>59054394
Just start doing some shit, once you have it half working, you will have a million ideas about adding new features and improving the site. I know because I'm the most unmotivated piece of shit I know, yet I can spend an entire day coding my website.
>>
File: help2.png (22KB, 1483x527px) Image search: [Google]
help2.png
22KB, 1483x527px
>>59054471
I'm learning skeleton and trying to use it's grid. For the must part it's worked. However for this row that I've outlined with dashes it's not working. I set div one and two each equal to three columns and div 3 equal to six columns. Why aren't they evenly spaced out? div 1 and 2 are on each other but 3 is spaced out and doesn't even span the whole row( ie: 12 columns)

<div class="row" style="margin-top: 4em; border: dashed">

<a href="/link1">
<div class="three columns" style="text-align: center; background-color: greenyellow">
<h4>DIV 1</h4>
</div>
</a>

<a href="/link2">
<div class="three columns" style="text-align: center; background-color: indigo">
<h4>DIV 2</h4>
</div>
</a>

<div class="six columns" style="background-color: grey; text-align: center">
<h4>DIV THREE</h4>
</div>

</div>



are the <a> tags messing up the div lengths?
pic related
>>
>>59054569
The colors are absolutely disgusting. And please start using lorem ipsum instead of just wrintin a bunch of 1s (disregard this if you used 1s for a specific reason).
>>
>>59054605
I know. I was just trying to see where one stopped and the other started. Found out it was the <a> outside of each <div> fucking up.

I'll try to use lorem ipsum next time.

Now my question is: I know what I want my site to do and how to do the backend but I have no idea how to have it laid out nicely. Should I put the chat to the left like twitch or in a rectangle above the content. Sucks being 0% creative.
>>
>>59054605
> complains about colors
> muh comfy
> can't help with html
/g/ 2017
>>
I'm trying some O'Reilly Learning Path videos for HTML, CSS, and JavaScript.

Would be better if they actually had some tests or projects to make instead of examples of the basics.
>>
>>59054394
>>59054471
>>59054531
I have some ideas, just need to learn more of the language and how it works with hosting.
>>
I see thousands of machines trying to log into my website with the same non-existent browser. He tried over 9000 times already (seriously).

I blocked the useragent from my website, but the bots keep trying. There is nothing further I can do about it, right?
>>
>>59055157
>but the bots keep trying
They don't reach my website though. They all get blocked. But it just annoys me they clog up my logs.
>>
>>59054640
a {display: block}
>>
>>59052343
hi anons i already create a portfolio but how i put in online, i need find web-host or not?
an example is that https://timmyomahony.com/
i create similar portfolio but how i put him online?
>>
>>59055157
Disable remote root login.

They will stop once you do that.
>>
File: Screenshot_20170208_185329.png (124KB, 764x981px) Image search: [Google]
Screenshot_20170208_185329.png
124KB, 764x981px
>>59053567
>>
>>59055387
Yes. Get a webhost to put him online.
>>
>>59055600
but there is al ot free web host, but i find this page and its look interesting ,using git hub for hosting https://medium.freecodecamp.com/hosting-custom-domain-on-github-pages-8c598248d2bc#.yltihl9b8
>>
Anybody here use Kohana? It's not actively developed but I find it fun and easy to use.
What would be a similar modern replacement?
>>
>>59055546
How is that thread relevant to his question?
>>
>>59055675
Use whatever you want. Read the OP for some good choices.

Where are you from by the way? Does your name begin with P and end with T?
>>
File: 1486941127902.jpg (16KB, 300x400px) Image search: [Google]
1486941127902.jpg
16KB, 300x400px
Why don't you feel motivated? Do you think you will be happy doing any other job?
>>
Can you guys give me a rundown on making websites accessible for disabled people? I'm being contracted to get a commercial site up to spec and I want to make sure I do things the way they should be done in 2017. Also I don't want to get them sued
>>
File: 1482708533945.jpg (129KB, 1080x1281px) Image search: [Google]
1482708533945.jpg
129KB, 1080x1281px
gimma a .jsbeautifyrc that is perect for jsx and es6 plz, ic an't type for shit and there's too many brackets /parens to account for.
>>
vue vs react

I'm leaning towards react since I plan on using react native in the future, but I think I can still be swayed in the other direction
>>
>>59056479
vue is babbys first SPA framework
do yourself a favor and get into react instead, shit is lit
>>
>>59056513
So vue is generally easier to get started with? I'd assume the opposite, since react does away with the whole forced MVC thing. That's pretty much half of the reason PHP won over so many inexperienced developers
>>
>>59056102
i find that in reddit
??????
NO
>>
>>59056569
>>59056513
Vue and React themselves both don't give a shit about the rest of your stack, they're just view libraries.

That said they're both popularly used with their respective fluxy libraries(redux, vuex).

Personally I think Vue is best for retrofitting some more advanced interactive components to regular old websites(It doesn't force a build step on you(for JSX and such) and React for building complete SPAs(A large project is more manageable than in Vue imo).
>>
Cassandra or RethinkDB for realtime?
>>
>>59056776
postgresql
>>
>>59056901
no HA
>>
>>59056726
So React unless I'm hacking some fancy frontend shit onto a shitty codebase I'm forced to work on. Sounds good
>>
>>59056244
I hate complex questions, I'm more of a yes/no/reply-with-fact guy.
>>
>>59056285
Anyone?
>>
>>59057091
Google "html 5 aria" and "html5 accesibility"
>>
Good JS project for a beginning portfolio? Want to get hired, dunno what to put on there.
>>
>>59057206
idk something devoid of creativity and passion would prob be suitable tho
>>
Is webpack as good as the hype? haven't used it and keep seeing it pop up everywhere

not interested in cutting edge unless it's actually better, I've used grunt/gulp and similar in the past
>>
>>59057288
yea is fukin sick m8

Also configuring it is a skill onto itself
>>
Why do people praise React if Inferno is 2x better?
>>
>have to learn object oriented php for new job

Fuggg....help me laracasts.
>>
File: 1486687580434.png (180KB, 469x237px) Image search: [Google]
1486687580434.png
180KB, 469x237px
I seriously hope you guys are using Angular 2 with Material.
>>
>>59057807
imagine your happy place while you're learning
>>
>>59057870
>tfw no happy place.
>>
>>59057277
That's what I was thinking. Exactly. Any ideas?
>>
>>59057206
todo app :^)
>>
>>59057206
The more complicated the better.

Throw in some tax calculators, a Haversine calculator, some animations and d3.js shit. Basically just put shit everywhere so they can keep playing around and see that you know js.
>>
where do you guys get free .json datas?
I'd like to practice manipulating json objects
>>
>>59057902
You'll be a good php programmer then.
>>
anyone else trying to join the THREE.JS club?
>>
why the fuck are my commits to master branch not showing up on my github contribution chart? im using my github email as well. I need my greens! my chart greeeeeens!

>muh greens
>>
>>59059264
another meme flavor of the month js concoction i see?
>>
Been trying to figure out the least horrible way to render a only-constructed-as-needed hex-editor-like byte table with dynamic mark-ups in javascript.

Monospace text field with span's for the markup: markup is too limited; can't have anything overlapping in a non-hierarchical way.
Tables: so apparently you can't make table cells fixed-size'd. What the hell is the point, then?
Divs with classes per every byte: slow as shit.

Fuck it, I'm just rendering this shit in canvas. HTML "layout" cannot be justified. It can't even do a grid.
>>
>>59058753
shoot, look at the web responses here on 4chan.
Just open dev tools > network tab and filter for XHR type responses. Bam, free json data lol
>>
>>59058753
Use the 4chan api https://github.com/4chan/4chan-API or any other json api.
>>
best way to load balance a site between servers?
>>
what do you think about using fastcgi with C/C++ for simple web apps?

https://kristaps.bsd.lv/kcgi/
https://github.com/eddic/fastcgipp

it is kinda silly to set up large, unsafe botnets like apache and php and top it with all kinds of unsafe hipster ridden template engines and wordpresses just to make something simple as fuck?
>>
>>59062588
I'd rather use something like Kemal.
>>
Do assets i lazy-load count towards my page load time as calculated by google for seo purposes?

There is an embedded youtube on my site that calls a mega huge .js file and a zillion smaller files.
>>
any personal experiences with bolt cms?
>>
>think I might be happy when I'm finally employed
>9 months and 2 promotions later at my first office job, first IT job
>I fucking hate it with passion because of the absolutely retarded shit the managers pull out
>like creating a set of requirements which spread across 6 projects, waiting till 3 of these projects are deployed and tested, and changing said requirements

Many and many dozens of man-hours wasted. I am so fucking mad right now.
>>
Guys i'm using spring with redis, if in my model I delcare a @Id Long Int, does spring make sure it's is unique?

I checked that it generate a value, but i'm not sure if it is only pasting some mem trash
>>
>just get job by inviting myself for an interview and showing skills
>new recruiter calls today
>asks about experience
>been going since 9 years old, freelancing is my exp and I launch my own web businesses
>tell him I have a dev job starting march but am open to hear what he has

"We thought you had more experience, maybe you can call when you start coding and heading in the right direction."

Cute, dude. This is why I hate recruiters. It's all about paper to them which is why they hire shitty devs for people. I just have to keep building that passive to leave this wild ride.
>>
Is it feasible to try to learn programming just for getting a job, not because of "hobby"? I mean, I'm a useless NEET even without any degrees, I just thought programming is kinda interesting. But I'm dumb and lazy. I did some courses and read few books back in the day, but I was so bad that writing a line of code was a miracle. Nevertheless, I should probably start over. I wanted to jump over this bullshit and just try doing projects, but I'm so dumb I don't know simplest things, so I think I'll have to step back for now. I have this bad feeling that it's way over my head sadly, even though I know it's easy, I just don't understand shit. I see code as plain english, instead of math.
>>
>>59066047
If you don't enjoy it you'll probably kill yourself within 5 years.
>>
>>59066047
Well doing it as a hobby makes it easier because you learn and imorove in your offtime.

The alternative to liking it is to be endlessly motivated.

The best combination is to be both.

I say go for it. You will never know until you do it.
>>
>>59065423
gotta be happy with what you have "now" or you'll never be happy

>>59065918
They have a list check boxes they have to fill. There's no room for critical thought
>>
>>59066377
i'll be out on the streets in less than 5 years anyway. I dunno if I like it, I'm not sure I like living at all in the first place. I just have some interest in it.
>>59066410
I just wanna know if I'm too stupid or slow for programming. Hard to judge it myself, but I feel like I'm really behind how fast other people learn or understand. Even captchas don't let me post...I think I need to give it one serious try whatever it means and be done with it. Not tiptoing around it all the time.
>>
Why doesn't my jslint plugin for sublimelint work as it does on the jshint site? For example when I use an undeclared function in a file I don't get any warnings. Any options I need to activate that I haven't found?
>>
>>59067267
Look in the plugin conf if you haven't already. Been a while since I used that.
>>
>>59067267
jslint and jshint are different if that's not a typo
I know eslint doesn't do anything until you run eslint --init for the project, so there might also be some config file you need to set up first
>>
js in cancerous. it slows down your app like crazy. Disable JS in your browser and go to web sites. Trillion times faster. Why use js?
>>
>>59067589
It's usually not the sites JS that's slowing it down, it's the billion ad, social and analytics scripts.
>>
>>59067589
things are often faster to load when they're not doing half the shit they're supposed to do, yes.
>>
>>59067589

A little JS for simple lightweight front end stuff is fine, but everything else should be server side. I have JS disabled on my phone and yea i much prefer it off
>>
File: 1453549104675.jpg (60KB, 1018x518px) Image search: [Google]
1453549104675.jpg
60KB, 1018x518px
>>59067589
most web idiots will use loads of render-blocking javascript adding seconds to startup time

disgusting

others will make SPAs with javascript without using SSR

disgusting

others will insist on avoiding javascript for interactivity in favor of server side logic FOR DISPLAYING THINGS(???) and force you to do 4 pageloads to accomplish anything

disgusting


web developers are garbaj
>>
How is Odin project for learning this stuff lads? Just curious if I should choose that or freecodecamp.
>>
can someone help me with a query?
I have a table of messages
the first message has a parentid of null and its children have a parentid of the first messages id.
for each parent (that is, row whose parentid is null) I want to get five messages whose parentid matches that messages id.
>>
>>59066536
>There's no room for critical thought
Then their methodology is dated and they beed to be replaced.

I'll do it. LaunchCode has the right idea, but they only contract $15 an hour.
>>
>>59069019
its been like this since the beginning of time. if they knew anything about anything they wouldnt be recruiters for 28K per year plus commish
>>
>>59066663
You cant solve a captcha?

Are you a robot? Compile this: while(1);
>>
>>59068985
Show a screeny of the tables. I'll help.
>>
>>59069047
Time to change it then.

I just launched my projects so this came at the perfect time.
>>
File: tablesql.png (24KB, 576x291px) Image search: [Google]
tablesql.png
24KB, 576x291px
>>59069065
It's only one table for this, I thought it be the easiest way to do it but now I'm not sure. I might make a table for threads instead of this disgusting flat mess.

Anywho I'd appreciate the help
>>
>>59069147
sounds like a great use case for MongoDB
>>
>>59069313
Would the children be nested into the parent in mongo or something?
>>
How safe is torrenting old movies from the pirate bay? I wanna watch blazing saddles. I ask here because you're my bros
>>
>>59069845
bruh they gon catch you right away, my homie torrented a movie from the 60's and he on deathrow now.
>>
>>59069313
He wouldn't even have to implement thread deletion, it's a win-win.
>>
>>59069953
Holy shit laffed out loud.
>>
I don't know what to study next.
>>
>>59069147
I'm guessing these are threads and posts?

Why not create a table for your threads (just the thread ID with auto increment is fine) and have a foreign key reference it in the posts table.
>>
What would be the simplest way to make a website which will basically contain sections about car parts and images and info about each part? Few sliders and similar decorative stuff. Also, purchase will be done via phone/email in the beginning. Is it hard to implement online purchase(add to cart, order a delivery, etc.) ? And the last thing would probably be a classic forum. How hard is it to make forum or at least comment sections for under each item?
>>
I'm writing a textboard and since It's not going to be anything used by many people I've just been storing the posts by writing them directly to files without using a DB. Is this a bad approach, if so which DB should I use?
>>
>>59070753
Ah, basically I didn't want to spend much time dealing with sql because it's not really my focus.

And now here I am
>>
>>59071223
>What would be the simplest way to make a website
Pay a webdev to make it for you.

>Is it hard to implement online purchase(add to cart, order a delivery, etc.) ?
It depends. Contact your nearest webdev for details.

>How hard is it to make forum or at least comment sections for under each item?
Those are two different things tho. Forums are dead and seems overkill for your purposes. For comments, all the cool kids are using Disqus.
>>
>>59071497
Sounds like a use case for nosql.
>>
>>59071496
How would you organize posts, a folder for each thread? Or an append only file? Probably better with a db (see the gentoowiki Databases page), you'll learn more anyway.
>>
>>59071903
Not really sure a nosql db is a good fit for a kind of forum or message board
>>
>>59071968
I have a numbered file for each thread.
>>
Whats the nicest field to get bucks. Webdev or mobile dev? These two are my second and third most insteresting programming subjects.
>>
Ok, /g/, I need some help. I need to figure out how to take a URL with values in it, not unlike the ones Google uses when doing a search, and pull said values from the URL to put them into text boxes.

What functions should I start looking into to do it in javascript?
>>
ok
>>
>>59072652
Search engines are your friend.
http://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript#2880929
>>
>>59069845
Use a vpn and you'll be alright.
>>
>>59072736
Thanks, that's a big help. I wasn't exactly sure what to look for, so my google-fu couldn't help.

I'll go and try to see if I can reimpliment it into what I'm working on.
>>
/wdg/ I need some help.
I've got a chat that when users login on the main page they can talk with other users about the game(site based around a small game). Should the chat be on every page? if so I have to deal with the user not having to log in/out everytime they load a new page.

Also having a hard time laying things out. Don't want to cram to much on one page but don't want to have a bunch of pages where everything is spread out.

>fucking design, man
>>
File: fuck this.gif (1MB, 320x240px) Image search: [Google]
fuck this.gif
1MB, 320x240px
>Having a hard time finding any web jobs to apply for in town (or out of town too)
>Everyone saying "Hey anon get on LinkedIn, it'll really help you out"
>Reach out to a recruiter via LinkedIn
>Tell them I'm looking for a job in web dev, they say no problem we can help you out
>Get bombarded with Help Desk jobs
EVERY
FUCKING
TIME
WWWRRRRRYYYYYYYYYYYYYYYYYYYYYYY
>>
>>59074513
How does linkedin work?

I'm just now entering the web dev field, as in I got a job finally, and I don't have a linkedin.

How do connections work and all that shit? I just add random people in my field?
>>
Launchcode anon here.

Two months waiting for an interview. Still waiting. Launchcode staff are enthusiastic when I interact with them but slow to respond to emails. Feeling disheartened and have started applying to jobs on my own.
>>
>>59074788
In person?

I passed their webcam interview and they are trying to place me.

I recently found a job though and start this week.

Also yes, during the interview he wanted to see me repurpose a website I made, so I did and sent it to him the next day. According to my ip grabber he never even visited.
>>
>>59074513
>going to a recruiter
Why? Don't they take like 25% of your salary for the first year you work at the job they get you?
>>
>>59074853
I did an in person interview with them and they made me a "candidate": they're supposedly looking for jobs for me to interview at. But so far I've had none. They tell me to be patient.
>>
>>59074969
Are you the st louis dude?

Definitely look for jobs on your own. Launchcode told me to be patient too. They are SWAMPED with candidates and don't have enough partner companies to pair them with. His words, not mine.

I got my job from craigslist. Posted in the resume section and got the job when I interviewed. Also posting there lands you some freelance gigs too.
>>
>>59074588
It's like Facebook except it's all professional. You kind of have to accept friend requests from people that they suggest I've heard. If you add randoms I've heard that the site penalizes somehow, I'm not really sure man desu. The only thing I've gotten out of it is it's a good tool for keeping networked folks in one place. I don't even understand how to make the most out of it.


>>59074875
Varies can range anywhere from 3 months to a year. Sometimes they use it as an opportunity to never make you an employee (you're an employee of the recruiters during this period) so they never have to pay you benefits.
>>
>>59075085
You got a full-time job posting your resume on CL?

I'll do that tomorrow. Yeah it seems they're just loaded down with candidates unfortunately. I couldn't attend their last job fair but will kill a man to make the next one. Probably the only chance I have to get hired through them.
>>
>>59075580
>You got a full-time job posting your resume on CL?
Yep. Of the dozen or so job websites I posted to, it turns out craigslist actually came through for me.

I didn't even post a resume. I just said "I know it's hard to find a good web developer. So here I am!"

That's it. I said I did PHP and Javascript but that's all.
>>
File: minch1.png (7KB, 299x276px) Image search: [Google]
minch1.png
7KB, 299x276px
If anyone is interested in some srs learning sessions hit me up on discord. Determined goal is jorbs.
>>
>>59076751
define srs learning sessions. interesting.
>>
>>59077094
We'll learn, finish projects, and offer feedback + criticism. Great experience, and discipline and dedicated is demanded. The purpose is landing JOBS so it will be rewarding.
>>
File: 1487689615954.png (22KB, 1024x512px) Image search: [Google]
1487689615954.png
22KB, 1024x512px
Recommend a Java library/framework for making a HTTP REST API.

Been looking at Jersey and Spring but would like some input before I start.
>>
>>59077624
BTW my name at discord is MAUSER, so anyone srs hit me up!
>>
>>59077656
Openresty, faggot. Fuck your cancerous Java shit
>>
>>59074875
Not sure what it's like elsewhere but recruiters here get paid by companies to hire people for them, they don't get a dime from the employed candidate.

Makes them really clingy to good candidates though, like an overly possessive girlfriend
>>
Is it possible to write an Android keyboard (used system-wide, not an app-specific one) using some frontend-dev-friendly framework? I gotta write one and don't have time to learn native android dev
>>
>>59078611
You'll probably have to splice in android syscalls
>>
>>59078670
Could you explain what it means in practice (as in: why is it good/bad)? I'm a fairly inexperienced programmer, so excuse me if it's a dumb question
>>
>>59078559
>Fuck your cancerous Java shit

Don't have a choice, it's part of a project in a compsec class and needs to be written in java (due to peer review and stuff I think.)
>>
i work as a non-web developer, but i want to build my own website.

is it better to learn html/css or wordpress?
using wordpress as a programmer just feels wrong.
>>
>>59079341
>i work as a non-web developer, but i want to build my own website.
Wordpress, done

>is it better to learn html/css or wordpress?
Wordpress from what you described above

>using wordpress as a programmer just feels wrong.
I thought you weren't a web developer, what does it matter?

This is confusing
>>
So let me get this right, in Mongoose assuming you have a User, Post and Thread scheme, if you want to store a Post you need to do

Thread.query(whatever, function(found) {
var thread = found;
User.query(whatever, function(found2) {
var user = found2;
Post.query(whatever, function(found3) {
var post = found3;
post.author_id = user._id;
post.thread_id = thread._id;
post.save();
})
})
})


who the fuck thought this was a good idea? not to mention it uses RAM like crazy because of all the queries and objects fetched, even if you limit results
>>
>>59079408
to be fair, you're not doing this efficiently. You're storing things in memory that don't need to be

Thread.query(whatever, function(thread) {
User.query(whatever, function(user) {
Post.query(whatever, function(post) {
post.author_id = user._id;
post.thread_id = thread._id;
post.save();
})
})
})

and if you're using jquery you can combine the last three lines
$.extend(post, {author_id : user._id, thread_id: thread._id}).save();
>>
>>59079535
Is the first code supposed to be any different? I just added the "var x = y" in my example to make things more clear but in production my code is pretty much like the first one you posted. Also it's nodejs and not jquery
>>
>>59079408
Because anything NoSQL is trash. I was part of a conversion team that had to restructure the company's database systems because of the giant cluster fuck that non-relational data gives.

I don't know why people in their right mind would use noSQL for their business when most of the time they aren't even utilising the benefits it provides.

Then their business naturally gets additional requirements, more schemes and more things to link up and they need to hire more programmers to write complex scripts that update all previous records with new schema designs and apparently they need to delete a bunch of specific records -- something otherwise easily using SQL.

Unless you are:
• running some sort of search engine or
• are gathering very large amounts of data and
• your data doesn't have dependencies and
• you don't care about data integrity
• you often need to query many fields

Then you shouldn't be running noSQL.

My advice? Just make a PostgreSQL/MariaDB/MySQL database, index your shit and call it a day.
>>
>>59079578
I see. What >>59079672 says answers your question really well actually. You're learning first hand what no SQL means. It means maintaining all relationships manually pretty much
>>
Is there a more elegant way to do browser-side logging than calling methods on the global console object?
I have set it up so production builds have every console.X() call removed, but it feels somewhat hacky
>>
File: 1284647610982.png (61KB, 252x221px) Image search: [Google]
1284647610982.png
61KB, 252x221px
>project with 11k stars on GitHub
>written in CoffeeScript
>>
>>59079831
what does it matter if console calls are left in production? User never see them
>>
>>59079672

>noSQL
>Complex
>using noSQL for what SQL was built for
>blame it on noSQL instead of pajeet level programmer

hahahaha
>>
>>59079974

more power needed, and they are usually synchronous calls so can slow down the app

also, why should normies be confused by some stupid rambling of programmers, UX my man, UX
>>
>>59079998
NoSQL is great at what it does but for some reason it's been advocated to use with everyday webdev which it isn't meant for.
It's really just a overhyped meme
>>
>>59068985
Do you want to use an SQL, procedure, self-join fuckery, or n SQL calls to do this?

The simplest and slowest way would be something like this, assuming the table is called messages:

> SELECT id from messages where parent_id is null;

This gets you all the starter threads.

Now you just do (and how you do top 5 varies with db vendor!):

> for every id $id in previous query:
> select id, user_id, timestamp, text from message where parent_id = $id

This works, is easy to understand but is slow (you have to send a bunch of stuff over the network).

The BEST way is probably to write an SQL procedure and just call that. But if you're not an SQL-person, neither that nor the self-join stuff is going to be obvious to you.

SQL is a lot like Prolog.
>>
>>59077656

For Java?
> Spark and Kotlin
> https://sparktutorials.github.io/2017/01/28/using-spark-with-kotlin.html
give it a look.
>>
I tried..

I applied as a junior dev to bank
There were 108 candidates

I was selected to top 10, where only two would pass
I didnt, because I seemed insecure in second interview and my cognitive test score was not as high as the dudes who got chosen

Unrelated to topic in hand, but does anyone know some sites where you can do these cognitive tests?
>>
>>59080077
Derp.
I mean:

MS SQL Server:
> select top 5 id, user_id, timestamp, text from message where parent_id = $id [limit 5]

Postgres, MySQL/MariaDB:
> select id, user_id, timestamp, text from message where parent_id = $id limit 5

IBM DB2
> select id, user_id, timestamp, text from message where parent_id = $id FETCH FIRST 5 ROWS ONLY;

New Oracle SQL:
> select id, user_id, timestamp, text from message where parent_id = $id FETCH NEXT 5 ROWS ONLY;

Old Oracle
> select id, user_id, timestamp, text from message where parent_id = $id and rownum <= 5

Some languages (Java for example) demands that this shit is smoothed out by the driver so that the ANSI SQL FETCH FIRST 10 ROWS ONLY or whatever it was will work correctly. (Microsoft bitching about this in their JDBC docs is hilarious.)

Yeah. So now you know.
>>
>>59080034
>more power needed
Unless you're logging a ton of things, this sounds like last-step fine-tuning to me

anyways, I know angular has the $log service that may be helpful to you. I think you can toggle debug on and off to turn it on and off. Maybe there's a logging service in whatever framework you're using
>>
>>59080186
>cognitive tests
>my cognitive test score was not as high as the dudes who got chosen
>108 candidates
what in the.. is this real? Where do you live? They must have had major outreach for this position
>>
>>59080300

It was a junior-level position for a development position. I imagine these sort of things do get a lot of attention

The ad was up for an entire month if that matters
(I'm located in Helsinki but the job itself would have been in Estonia)
>>
>>59080334
>Estonia
I guess that makes sense. Things just aren't nearly that competitive in the U.S. In fact, there are more jobs than there are developers here.
>>
>>59079408
Why would you query thread and user for a post? Should this data be already present if you are making a post to an existing thread?
>>
>>59080512
I'm saving the references to thread id and author id in the post, then storing the post. I'm using referencing instead of embedding
>>
File: Screenshot_20170223-095302.png (254KB, 1440x2560px) Image search: [Google]
Screenshot_20170223-095302.png
254KB, 1440x2560px
Lel

Just woke up to this.
>>
>>59052343
I'm going through the JavaScript lessons on freecodecamp and they're absolute dogshit. I can't retain any of the information there, they seem to be jumping around without any consistent points to be made, does anybody know of a better way to learn JS?
>>
>>59081291
Yep, it be like that. I love Diceâ„¢ but I unsubbed from that real quick
>>
>>59081430
well.. what exactly do you want to learn?
>>
>>59081453
I want to learn JavaScript.
>>
>>59081527
for what purpose?
>>
I think I know vanilla JS pretty well but I think that I'll still be considered a codemonkey by most people as I don't really know much programming theory or terms. I can DO THINGS but I don't know what functional programmnig, async this and async that and etc means. Making myself job marketable isn't impertive but I just want to feel confident in my own abilities and be able to hold my own when I'm with the big boys before moving onto Node and all the other "fun" stuff. What's a good way to learn these things?

Thanks, /wdg/

I've managed to make things that I would use so I can't wait to be able to use node to actually make them "real apps" that aren't basically self-destructive. It's all so exciting.
>>
>>59081430
Read books and practice. I'm assuming freecodecamp is something like codecademy where you have excercises? If not, codecademy is more hands on rather than just having you look at slides.

Just make things. Think of a program you want to make and then as you learn one concept, "upgrade" your program and add new functionality to it. The way I learned was just by doing things like that.

watchandcode.com is pretty nice, he guides you through a project and there are multiple videos with people doing similar. Having a start and end point helps a lot, even if it's other people setting them for you.

I literally just drowned myself in JavaScript with things like SoloLearn on my phone that I used when I had downtime. It worked for me.

Head First JavaScript Programming is a nice 90s-esque cheesy textbook that is easy to read and does a good job of breaking things down, but I'm the same guy in >>59081600 so don't expect this method to teach you everything.
>>
>>59081579
I want to make wicked websites and eventually some wicked mobile apps.

>>59081600
Thanks, will look into it. Yes freecodecamp has exercises.
>>
>>59081856
Free lance or for a firm? Are you more interested in the design or in the programming? Looking to eventually make huge apps or small and simple?
>>
>>59082076
free lance
want to do both
small and simple
>>
Hey I'm trying to make a greasemonkey script for 4chan; how do i get it to do something whenever a thumbnail is clicked (specifically, after the image has expanded) from the index page?
>>
>>59082085
>free lance
do you have a client base? Who are they? What do they want? Also realize you're going to be spending 90% of your time NOT programming and designing when freelancing.
>>
>>59082768
set a 'click' event listener on each image
>>
>>59082837
I tried that, they all trigger immediately though.

code is
threads = document.getElementsByClassName('thread');
for (i = 0; i < threads.length; i++){
a = threads[i].children[0].children[1].children[0].children[1];
a.children[0].addEventListener("click", alert('ayy'));
}
>>
>>59080092
Thanks, this was just what I was looking for. Spring and jersey came with so much more than I need for this little project. I was looking for something like pythons flask or ruby's sinatra so this looks perfect!
>>
>>59082894
Hmm.. So I got it to work with:
for (i = 0; i < threads.length; i++){
a = threads[i].children[0].children[1].children[0].children[1];
a.onclick = function() {
alert('hello');
};
}
>>
>>59083550
what's the difference?
>>
>>59083686
I don't really know.. I'm a complete noob to js
but it sets the onclick attribute of the html object itself rather than using an event listener.
Sadly it executes the function before the image is expanded as well.
>>
File: laughing elf man.jpg (16KB, 255x352px) Image search: [Google]
laughing elf man.jpg
16KB, 255x352px
>mfw ASPajeets and PHPajeets think they're actual programmers
>>
>>59083733
>Sadly it executes the function before the image is expanded as well.
Which I managed to get around with this godawful monstrosity:
        threads = document.getElementsByClassName('thread');
for (i = 0; i < threads.length; i++){
a = threads[i].children[0].children[1].children[0].children[1];
a.onclick = function() {
setTimeout(function(){alert("you've clicked an image");},50);
};
}


Javascript really needs to die :(
>>
>>59083782
What are you going to do with it when it expands?
>>
Anything wrong with using bootstrap? How do you make it look like not bootstrap?
>>
File: 1477042253959.jpg (54KB, 1315x509px) Image search: [Google]
1477042253959.jpg
54KB, 1315x509px
>>59084012
I want to adjust the height of the thread if necessary to stop pic related from happening
>>
>>59084016

materializecss.com is the modern alternative.
>>
>>59084016
>Anything wrong with using bootstrap?
no, as a professional I use it every day and it has saved me weeks of work
>How do you make it look like not bootstrap?
use the customization page on their site
>>
>>59084016
Use it if you like it. I just avoid it because I find myself overwriting a lot of its unnecessary styling. There's tons of alternatives out there like Pure and Foundation, with lighter ones like Skeleton and Milligram. Just pick one, learn one and use one.
>>
I believe there's a way of styling the picture and the parent div so that the parent automatically scales.. but I could be wrong
>>
File: 1474795490696.jpg (65KB, 517x135px) Image search: [Google]
1474795490696.jpg
65KB, 517x135px
>>59084012
I am so confuse.
Halp pl0x
>>
Writing a shitty search function for my textboard.

Any way I can improve this?

<?php
$search = htmlspecialchars($_GET['search']);
foreach(glob("posts/*.php")as $post){
$get = strip_tags(file_get_contents("$post"));
if (preg_match("/$search/",$get)){
echo("<a href='$post'>$get</a><br/>");
}
}
>>
Want to learn Angular 2.

Went through some tutorials, but all seem kinda straight forward and won't look deeper into any mechanism. Most are just "that's a component aight, and dis a service".
To dig deeper I find myself looking into StackOverflow way too much, finding solutions that were never discussed in any tutorial.

Can anyone recommend some decent, deep digging ressource to Angular 2?
>>
>>59085270
Will
thumb.getElementsByClassName('full_image')[0];
be ok?
>>
>>59085627
A native call to grep is faster, but will leave you exposed to shell injection,

http://docstore.mik.ua/orelly/webprog/pcook/ch13_07.htm

Or check the second example, for a memory-friendly PHP script. Use preg_match_all instead of pref_match
>>
>>59085972
Apparently not;
alert(a.getElementsByClassName('full_image')[0].src);

gives
Uncaught TypeError: Cannot read property 'src' of undefined(…)

I don't think it's actually a child of thumb even though it appears to be.. thumb.children.length = 1
>>
File: 1457136043593.jpg (33KB, 433x428px) Image search: [Google]
1457136043593.jpg
33KB, 433x428px
>>59085972
Has a bit of a look through the page sources and this appears to be the code which handles image expansion, perhaps this will clear things up
>>
>>59085773
Nvm going with ng-book 2 I guess.

It's funny how people upload some PDFs into their Github repository accessable by everyone... thanks guy whos username obviously origins from a pajeet.
>>
>>59086304
>perhaps this will clear things up
Actually I'm just confused.. I don't see any child of fileThumb with class name of expanded thumb.
>>
>>59086398
I think you spend too much time on 4chins
>>
>>59053567
http://mithril.js.org/
It's like React, but smaller, faster, more elegant and has built-in state management. I enjoy it.
>>
>>59056726
>A large project is more manageable than in Vue imo
Can you elaborate why? It seems like Vue imposes more structure than React, which should be good for large projects.
>>
>>59058753
http://jsonstudio.com/resources/
>>
>>59085773
>Want to learn Angular 2.
Why? Not trolling; I really want to know why you'd want to learn it. Other than TypeScript it looks very unattractive to me: a lot of abstractions for (as far as I can tell) the same payoff as React + Redux. I can see learning it for a job, but for my own projects? Forget it.
>>
File: o-MICRO-APARTMENT-570.jpg (88KB, 570x456px) Image search: [Google]
o-MICRO-APARTMENT-570.jpg
88KB, 570x456px
Does anyone in here have their own business?

My goal is to be able to support myself from development alone and work for myself if I choose. I suppose I could end up at an agency if I found the right place, but I am more focused on achieving autonomy and perhaps even being a digital nomad.

For example, building three projects a month that average $500 each would be enough for me to at least support myself while seeking higher earnings.

>t. 26 year old nerd who is tired of working shit jobs for the past 10 years
>>
I don't understand promises, more specifically in javascript, someone please explain.
>>
>>59088867
https://developers.google.com/web/fundamentals/getting-started/primers/promises
Apparently they fix problems that emerge when you want to check if something worked, but your js loads too slowly, and the event you are listening for has already happened.
>>
Help /g/. Ive been reading you dont know javascript (found it first linked from here, thanks for that whoever you were)

What front end JS framework should i use? Everywhere i look i keep getting different answers. I work at a small-medium organization and i want to start working on web applications in my spare time to try and impress them.

I've tried looking at AngularJS, and read that that is the best... but then ive heard React is better.

Help me i don't know what to learn. Thanks.
>>
>>59089205
Angular 2 is better and more robust than both. You can also use React in conjunction with Angular 2 more easily but to be honest the view component of Angular2 is better and simpler to understand than React in my opinion.
>>
>>59088618
If you just want $ and maybe an excuse to dress up and get some basic exercise/walking do desktop support.

Yeah I do the freelancing but in my experience the best revenue is off the books untaxed and its no way to start a family imagine your piddly little $1500 after taxes.
>>
>>59088867
Listens for problems in your code
>>
>>59088867
It's kind of like callbacks but it provides a cleaner way to chain up asynchronous and watch for errors. ES2016 is bringing async/await though
>>
>>59084037
modern alternative? IMO the only difference between MaterializeCSS and Bootstrap is the Sidenav and Grid Breakpoints. I already have a Bootstrap theme with Semantic UI so I've finally flushed out Materialize out.
>>
>>59089205
>>59089690

React is harder to get into but scales much better into big projects than Angular.
With Redux components are super simple to test and understand (you'll be using pure functions pretty much everywhere), with Angular you are getting ugly two way bindings all over the place.
Then of course React is just the view layer, if you don't know how to design a scalable SPA you're better of with a rigid MVC framework like NG or Vue
>>
>>59088618
It takes a while. You have to play word of mouth.

Basically you start low in prices and slowly increase until you have just enough work. You do this until you're charging about 80% of a dev companies fees. This is about 40k per month. 300k per year if you're slow.

You have to be very good though.

Alternatively just pump out wordshit sites for 2k a piece. You can get 2 or 3 a month easy.
>>
>>59090038
>do desktop support
Why would you suggest that to someone who can program? Might as well tell them to go flip some burgers.
>>
>>59089205
see
>>59088264
Going by my experience, it's easier to get started with than pretty much anything else. If you have a solid understanding of vanilla JavaScript and how to use Promises you're ready to go.
>>
>>59069845
123movies
>>
File: 1486675522001.png (105KB, 362x492px) Image search: [Google]
1486675522001.png
105KB, 362x492px
BEST WAY FOR CENTERING MAIN CONTENT?

Preconditions: must look good.
>>
>>59094417
I have one box,

.box2 {
display: inline-block;
width: 200px;
height: 100px;
margin: 1em;
}

Everything's in it.

I want it to be centered horizontally on the screen.
>>
>>59094417
If it has a size then

margin-left: auto;
margin-right: auto;
>>
>>59094417
http://howtocenterincss.com/
>>
let's say I'm doing a trace route

if two IP addresses of network hops have the same first 3 dot numbers e.g. 113.5.101.77 and 113.5.101.9

how can I tell whether they have the same geographical location (town, city) and owner in terms of ISP ?

I can only use a DNS lookup on one IP address but not the other.
I found this article which says
http://ask-leo.com/can_i_determine_whether_two_ip_addresses_come_from_the_same_source.html
> In reality, it has to be the first three of the four numbers that have to be identical. AND the number of numbers available in that last number (which can be anything from 0 to 255) can only be one of five specific values.

but it doesn't say what the rule for the last dot-number is.
Does anyone know or know what to search for or where to find out?
>>
>>59094616
https://www.quora.com/How-does-GeoIP-work
>>
>>59094656
>>59094656
thank you very much, but I think this link is about a slightly different question.

I'm not trying to do a geolocation from scratch.

I'm able to use a DNS lookup service to find the city and ISP owner of a hop (ip address)

what I then want to do is verify whether another IP address with the same first 3 dot-numbers is on the same location and with the same owner as that first IP address that I KNOW about, without doing a DNS look-up on that second one, just looking at the numbers of its IP address.
>>
Is it still feasible to use those Learncode academy videos to learn? I mean, it's from 2013, they are kinda old, but still included in this dude's graph. Did any of you get anywhere by learning like that?
>>
File: 1292201601801.jpg (9KB, 126x122px) Image search: [Google]
1292201601801.jpg
9KB, 126x122px
>start a Webpack production build
>takes 2+ minutes
>node process starts eating memory alive (1+ GB as a minimum)
Is it normal or am I doing something wrong?
The project is not even nowhere near big
>>
where do i start on php
>>
>>59094616
Did dpt send you here to make us look bad?
>>
>>59095475
no, I posted the question first in dpt because I didn't know about web development general then I saw this thread in teh catalogue and posted an expanded version of the problem here.

any ideas?

at the moment the best I have is "if the first 3 numbers match and both IP addresses are hops on trave routes with the same start and destination just swapped over, then they're probably owned by the same network company and in the same city"

I just want to find out what
> the number of numbers available in that last number (which can be anything from 0 to 255) can only be one of five specific values.
means dang it!
>>
>>59088867
Promises are what you use when you want to run something after some async code. For example, I want to fetch all the users in my database and once I have those, sort them by name.

So this ends up looking like this. This is basically copied from my angular project

var self = this;
//this runs first
console.log("first");
self.$http.get(self.Commands.data.getUsers)
.then((response) => {
//this runs when async call comes back (third)
console.log("third");
self.users = response.data;
self.sortMyUsers(self.users);
})
.catch(response => { self.GlobalServices.DisplayError(response.data) });

// this runs second
console.log("second")
>>
>>59095475
those dang kids.
>>
>>59095750
Tbh that might work on isp that lease static ip address to their customers, but i cant see that working for dynamic ones
what you need is a small db with ranges to check location, this one is free, there are other free ones too
>https://db-ip.com/db/download/city
>>
>>59094489
Use flexbox. https://jsfiddle.net/jkk3jqej/1/
>>
I've got a 2nd job interview at a company on monday. The interviewer has asked me to read up on asp classic, does /web/ know any good books on that, or am I doomed to use w3schools?
>>
>>59096127
>asp classic
run
>>
>>59096144
I'm fresh out of school with an AP in computer science. So I can't afford to be picky.
>>
>>59096171
Where do you live? I'll let indeed be the judge of that.
>>
>>59096206
Denmark, non-capital region.
>>
>>59094489
>>59096090
Sorry, the first version was impractical, here's the basic second version: https://jsfiddle.net/jkk3jqej/2/
And here's the third version, with multiple divs above each other: https://jsfiddle.net/jkk3jqej/5/ (menu is always on top, you may place some other divs below it, and then box2 is centered on the rest of the screen).
>>
>>59096216
Oh my goodness. I'm always surprised by how many non-anglosphere people there are here. I have no idea what the market looks like in that area, nor do I know a way of finding out.

However, if you can find something that wasn't designed for the 1996 internet, I recommend that. That is about as old of a web technology as you can get. You don't want to be left behind
>>
So:

promise
.then(something)
.catch(somethingElse);


vs

promise
.then(something, somethingElse);


I while back I read that one of two was more correct than the other (more adherent to standards or something), but now I can't find any reference to it and I don't remember which was which
Thoughts?
>>
>>59096438
They have quite a lot of old business logic which is written in ASP classic, but as they develop new modules and whatnot, they're changing to .net solutions.
>>
>>59096512

The first is more correct, the second is rarely used nowadays.

its A* compliant which is what the latest version of ecmascript uses.
>>
File: Screenshot_152.png (330KB, 957x887px) Image search: [Google]
Screenshot_152.png
330KB, 957x887px
sup /wdg/
i need help
https://github.com/AxelAli/Tensorflow-Image-Classifier-Web-Demo
i had to do it before the deadline so i couldn't make it look good.
instead of having a html page then a php page, this should be a single page
>>
>>59096512
I prefer the first because it's more readable and intuitive where your catch block starts. Also, you can have a ".finally" block (that runs after either a success or fail) with the first method
>>
>>59096661
So what do you want help with exactly?
>>
How the fuck do I normalise these tables?
>>
>>59096661
You Don't Have To Capitalize Every Single Word On The Page
>>
>>59096703
we'reWaiting.gif
>>
File: Screenshot_153.png (14KB, 422x342px) Image search: [Google]
Screenshot_153.png
14KB, 422x342px
>>59096694
oh thanks.
i just know css and html (pretty basic)
instead of being an upload page and a main page this should be just one .

>>59096722
i always do it, don't ask why, is second nature to me
consider ir to be for Aesthetics
>>
>>59096769
It's not a bad approach, but use your judgement. 'Made by Axel Ali' and 'All values are figurative.' would be more pleasing.
>>
>>59096841
it was just a "proof of concept"
im more of a software programing guy.
i know just enough of web developent to change phone numbers and shit in webpages
>>
>>59096769
>instead of being an upload page and a main page this should be just one .
So you'll have to upload the image with either an html form or javascript. This is pretty advanced for javascript so I'd go with the html form.
so it's gonna look like this https://www.w3schools.com/TAGs/att_input_accept.asp
>>
File: Screenshot_154.png (22KB, 725x710px) Image search: [Google]
Screenshot_154.png
22KB, 725x710px
>>59096956
(i barely know php)
this was the original idea
>>
>>59065918
Recruiters are worse than venomous snakes. They're almost as bad as lethally poisonous invisible jellyfish.
They are slightly less terrible than Joseph Stalin.

So if I had a choice between swimming with box jellyfish while red belly black snakes hiss at me from the beach and Jo Stalin taunts me from a nearby boat or attending an interview with a brain dead recruiter who tells me my 10 years of experience and uni degrees don't cut it... I'd probably take my chances in the water.
>>
>>59097000
Function first, then make it pretty. Doing it that way is beyond your current level
>>
>>59097044
yeah my bad
>>
File: PHP.png (23KB, 1023x767px) Image search: [Google]
PHP.png
23KB, 1023x767px
Editor or IDE for PHP development?

I am about to enter into php/wordpress web development and I really hate idea of using vscode/atom or some java-based IDE for my future daily work. I would like to go with either Vim or Evil/Emacs.

Which one can be configured and easily maintained for PHP development?
>>
>>59098039
If you're just starting out programming, use an IDE. But if you know what you're doing, an editor can be an option. Just be aware that you're going to handle a lot of command line scripting
>>
So what's the easiest way to do frontend if you barely know any frontend memes. Do I just copy shit from bootstrap or how does it work?
>>
>>59098274
What do you want to accomplish? You want to make something or learn something? You doing it for fun, a client, or to get a job?
>>
>>59098706
It's just for a personal project of mine. I just want something that doesn't look like it's from the 90s.
>>
Hi lads.
About how much time it takes until I'm able to take a few gigs to make some money? Say I'm putting 4h of dedicated study each day.
I'm a thirdworlder and strapped for cash.
>>
does anyone use Iris? I want to learn a modern powerful back end. I was thinking Node but I don't know if i want to fall for the js meme. Go has been proven to be faster.
>>
>>59098274
install mint

it automagically runs apache just copy your assets in the terminal:
sudo cp index.html /var/www/html/Public/index.html


open up a browser and go to http://localhost/index.html to see it

the memes get linked in your html from cdns that you will find on the websites of the meme frameworks. dont download memes even if youre memeing so hard you find yourself using webpack dont download and pack the memes into your DG just link to them.
>>
>>59098274

this is the problem with web dev.
>>
>>59098736
Yes, bootstrap is a good way to go then.
https://bootswatch.com/

And these courses are what I used to learn.
https://www.codeschool.com/courses/fundamentals-of-design?from_search=design
And if you couple that with a design course (paid, but first lesson is free)


and bootstrap course. Just tthe bootstrap course will put you ahead of 90% of people currently using bootstrap professionally.
https://www.codeschool.com/courses/blasting-off-with-bootstrap
>>
File: sampl.png (8KB, 961x98px) Image search: [Google]
sampl.png
8KB, 961x98px
What causes this?
This is the navigation bar, but why this space between the top? How do I solve this?
>>
>>59098837
Thank you kind stranger. I'm not sure if I'm willing to pay for a course but I'll consider it.
>>
>>59098940
post your html and css
>>
>>59098964
Lemme put it this way. If you learn by doing like I do, this is hands down the learning resource for you. I've tried the whole field of options available to learn. There's a reason it's paid, and it's because they know what they're doing.

I used code school to get my current job. I was able to walk into the job with the skills I needed after 1 course on that site and lots of practice. I kept the pdf notes from the courses and referred to them at my job for the first 6 months. I can't recommend the site highly enough
>>
>>59098940
The default margin or padding of your html element is not 0, but the browser default, you should have something like
html, body {
padding: 0px;
margin: 0px;

in your css. And yeah, maybe post a jsfiddle next time you ask something.
>>
>>59099156
Forgot closing the curly brackets, fixed code:
html, body {
padding: 0px;
margin: 0px;
}
>>
What's a command line tool to get a desired script INTO the directory with blazing speed?


for example,
xxxxxxxxx jquery.min
and I get the jquery.min.js
>>
>>59099033
Do you do freelance marketing or do you work for the site cuz i need a good inbound marketer and you seem like a shrewd individual that doesnt take no for an answer.
>>
>>59099252
I'm just trying to help by telling someone what I wish I was told when I was starting out. That's kind of what these threads are usually about
>>
what's the correct way to write this out? it's throwing an error

style={ {backgroundColor: rgb(this.props.color[0], this.props.color[1], this.props.color[2], .5) } }>


this.props.color = [233,120,255], just random numbers between 0 and 255. this appears to be the only way to adjust opacity of this div without messing the opacity of the inner text
>>
>>59093008
>Basically you start low in prices and slowly increase until you have just enough work
It's bad to underprice yourself, it's basically saying "I'm terrible but cheap".
>>
>>59099715
js framework you're using? Or vanilla?
>>
>>59099841
react with jsx syntax
>>
>>59099167
>>59099156
Don't use 'px' when defining a 0 value.
>>
>>59099908
Couldn't find any info on this, why shouldn't I use px?
>>
>>59099715
style={{ backgroundColor: `rgb(${this.props.color[0]}, ${this.props.color[1]}, ${this.props.color[2]}, .5)` }}


>>59099951
0 0px 0em 0rem 0pt all mean the same, it's more clear to write just 0 since the unit doesn't matter.
>>
>>59099715
How about like this http://codepen.io/anon/pen/PpwZBp

although, I like >>59099982 also. Nice use of ES6 M8
>>
File: _1 (12).gif (982KB, 285x171px) Image search: [Google]
_1 (12).gif
982KB, 285x171px
When will live editing for web design be the standard for simple text editors?

>try brackets
>shits all over its self

>try atom w/live editing package
>pretty buggy but it works

>try atom+pinegrow
>mfw
>>
>>59099982
that worked, ty
>>
>>59099199
no clue what you're trying to do. You want to move a file?
>>
im doing some ajax calls on "onkeyup" but how do i do one when the page loads? i want both to happen
>>
>>59101063
vanilla JS? Jquery? js framework?
>>
>>59101074

yeah i got it now. I just called the onkeyup function i made on document ready as well. Brain fart
>>
>>59101074

>js framework

I'm really close to being red pilled on these JS frameworks. There is borderline no point to them. You can make a super lightweight async app with just html/css, and a back end that AJAX talks to. Shouldn't which back end you use be the better question? Why would you ever need anything else? And if you were to do some fancy front end, why not just use vanilla JS or at most a minified jQuery?
>>
>>59101325
It's about convenience, sure you can do everything with vanilla JS, but once you start going above "my first website" it gets messy easily so you end up building your own mini-framework and now you've spent a lot of time re-inventing the wheel.

But sure, if you're only using minor JS then it doesn't make sense to import a larger framework.
>>
>>59101629

i've been writing web apps with python and php for over a year now and never had to use a js framework, dont even want to. I don't see the benefit of doing your routing through the front end either.
>>
>>59101325

AJAX is what JS should only be used for. Backend -> AJAX -> vanilla front end is best tier.
>>
>>59101678
And that's absolutely fine too.

The reason I like having frontend routing is that your backend becomes much cleaner, it's just an API that can be used by any other frontend. It's easier to manage the cache as well.
>>
>>59056285
follow WCAG for some relatively universal regulations

https://www.w3.org/TR/WCAG20/
>>
>>59101745
>is best tier
Then the client starts bitching that the site is not responsive enough and now you have to implement websocket support
>>
File: e45.jpg (56KB, 633x758px) Image search: [Google]
e45.jpg
56KB, 633x758px
Some of the criticism I received during my web dev internship:

- I'm too harsh about other people's code.

- I sometimes choose for the easy way and save time, and other times do things that are not requested.

- I deliver code sometimes not entirely finished (so they can review it) but they want it 100% complete.

But I'm like pic related.
>>
>>59083686
Less syntax.
>>
>>59102420
So you're an autist?
>>
>>59102536
I'm actually diagnosed with autism.
>>
>>59102581
I can tell
>>
>>59102596
How? What gave it away? You need to be explicit, I can't read this stuff verbally.
>>
>>59102581
You also seem to have some minor OCD over punctuation
Does, this bother? you!
>>
>>59102624
It makes me uncomfortable.
>>
>>59102624
>applying basic punctuation rules is being ocd
webdevs everyone
>>
>>59102654
Ain't nobody got time to add periods to every sentence
>>
>>59056361

what the fluck, how can she be so curved.
This should be haram.
>>
>>59077673

I need your 4 digit tag
>>
File: 1484181842077.jpg (43KB, 540x720px) Image search: [Google]
1484181842077.jpg
43KB, 540x720px
Fellas, can you help a brother out?

>>59098837


I'm using Boot4 to make a navbar but the <img > that is meant to be to the left of the burger menu keeps jumping below the brand when the menu collapses at md.

closer inspection shows the <div> containing the image occupies the entire width of the viewport

pen:
http://codepen.io/anon/pen/qrERBP

I've spent like 5 days on this shit now its eating me alive.
>>
>>59053381
I'm ok with how slow it moves. It reminds me of old bb forum communities and makes me feel comfy.
>>
>>59079341
Use WordPress. Leave annoying web dev horseshit to us.
>>
The more I read about asp classic, the more I worry about my job interview on Monday.
Young now its bad when people say that php is superior.
>>
I'm new to rails and having the dumbest problem. I'm trying to give each user their own private resources, so they don't see everyone else's stuff, and it's just not working. I've googled/stackoverflowed extensively and I feel like I'm not even searching for the right thing.

I'm using devise, and (for example let's say) each user has posts and comments. No matter which user you're loggin as, you will see every user's posts in the same place. I've tried setting user_IDs and limiting each view to current_user, and a few other things. I'm not sure if I've structured the app wrong or what.

If anyone could provide advice as to what to try/where to look/what to search for to find helpful answers, it would be much appreciated.
>>
>>59102420
>I deliver code sometimes not entirely finished (so they can review it)
so whenever things got fucked and they traced the source backed to you, only you can be blamed. not all of the team. bs tbqh.

>I'm too harsh about other people's code
just destroy the code, not the coder.

>I sometimes choose for the easy way and save time
so let them do it the hard way so they can fucking suffer, ungrateful imbeciles.
>>
Anyone got a good place to find pretty site designs to steal?

I checked http://www.webdesign-inspiration.com/ but it's full of retarded full-page CTA garbage.

>>59104381

Have you made sure that ser has_many posts and that each post belongs_to user?
>>
>>59104956
I have, I'm going to try out CanCan
>>
>>59104956
Is there anything additional I have to do in the view or anything? I know I'm missing a step
>>
>>59105083

Have you made sure that the controller method that gets the User.posts and passes them to the view only gets the posts that belong to the current user, and not ALL posts?
>>
>>59105228
That did it! Thank you, anon!
>>
Rewrote my textboard's search script.
<?php
error_reporting(0);
$search = htmlspecialchars($_GET['search']);
$posts = array();
$count = 0;
foreach(glob("posts/*.php")as $post){
if($post!=="posts/randompost.php"){
$get = strip_tags(file_get_contents("$post"));
if (preg_match_all(strtolower("/$search/"),strtolower($get))){
array_push($posts,$post);
$count+=1;
}
}
}


echo("<link rel='stylesheet' href='CSS/style.css'><h1>found $count results</h1><br/><a class='link' href='index.php'>go back to index</a>");
foreach($posts as $found) {
if(file_exists($found)){
$get = strip_tags(file_get_contents($found));
echo "<link rel='stylesheet' type='text/css' href='CSS/style.css'><a class='link' href='$found'>$get</a><br>";
}
}
?>
>>
>>59106100
kys
>>
>>59106110
y
Thread posts: 321
Thread images: 30


[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.