[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: 315
Thread images: 31

File: dubyadeegee.png (868KB, 822x552px) Image search: [Google]
dubyadeegee.png
868KB, 822x552px
/wdg/ - Web Development General

Previous Thread: >>57619783

> 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.m.wikipedia.org/wiki/Comparison_of_web_application_frameworks
[Gist] backendDevelopmentBookmarks.md

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

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

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

>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
>>
php a shit
>>
1st for riot.js
>>
File: debian.png (81KB, 1028x1270px) Image search: [Google]
debian.png
81KB, 1028x1270px
Okay, somebody help me here. What exactly that code does? It's a javascript. And how do I check it by myself?

>>>/wsr/225700
>>
Whatr do you guys think of this site in terms of design?

http://www.forbes.com/sites/paulmonckton/2016/11/24/black-friday-2016-best-camera-deals-kohls-target-sams-club-and-walmart/#2198c3c34cde
>>
Study Lounge back up and will remain so for a while.

https://gitter.im/srs-study/Lobby?source=orgpage
>>
>>57677259
ur a shit
>>57677651
generic 2016 technology news site
>>
File: 1.png (719KB, 661x411px) Image search: [Google]
1.png
719KB, 661x411px
>>57677651

It's very p.c.

Just look at that diversity.. - wait, where's the woman? WTF!? Those sexist pigs.
>>
Spent 5 hours uploading my db collection like about a week ago and now its the biggest public database directory in the world. Meanwhile all the sites that I spent weeks making barely gets a few hundred uniques per day, and I'm depressed now.

also should I switch to the new JS memesite or stick to the motherfuckingwebsite design?
https://publicdb.host
https://beta.publicdb.host
>>
File: asshole.jpg (789KB, 2448x3264px) Image search: [Google]
asshole.jpg
789KB, 2448x3264px
In PHP can the user hack their way into post? If I have user validation in get should I just copy paste that validation in post or is it assumed that the user can only be valid if heir got to post?
>>
>>57679066

That's the wrong question..


"Post" is just a method a client throws at a server. Nobody can keep it from using it.

The interesting part what you do as server. Again, nobody keeps you from throwing back "451 Unavailable For Legal Reasons" for every single request. It would be a shit site, but it is totally possible.
>>
>>57679066
Not sure what you mean with hack, but I essentially yes. In my opinion it doesn't matter if you use POST/GET as long as you create a temporary verification code every time a user logs in in order to make sure they actually want to do what they're about to do.

see
https://greysec.net/showthread.php?tid=1272
>>
>>57679066
https://www.owasp.org/index.php/PHP_Security_Cheat_Sheet
https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)_Prevention_Cheat_Sheet
>>
>>57679066
You have just manifested a complete lack of understanding how HTTP works.
>>
I have to make 5 webpages on any given subject for college. Is there any really easy to use tricks that will make the webpages look really fancy? All I've learned for the module in this semester is only basic CSS, HTML and even more basic JavaScript.
>>
Sup guys maybe you can help.

I have a wordpress website running the 2014 theme, and despite all my efforts I'm unable to enlarge the widgets sidebar beyond 172px without it overlapping to the right. I tried this code I found online:

@media screen and (min-width: 1080px) {
.site:before {
width: 200px;
}
#secondary {
width: 200px;
}
}


Anyone can help?
>>
>>57679730
Bootstrap (the css framework)
>>
>>57680281
Have fun with your F-
>>57679730
>>
>>57679066
If you have a post route or a route set up to handle post data, a request to that could come from anywhere and contain anything.

A page/form you set up yourself is not the only path to that route. Just a template/blueprint you set up for your expected user journey.

see: curl, or any functions like PHPs http_build_query/stream_context_create/file_get_contents.
>>
File: 7899.jpg (51KB, 398x499px) Image search: [Google]
7899.jpg
51KB, 398x499px
Is this a good book?
>>
>>57680469

It's ok, nothing there you can't learn elsewhere
>>
>>57677221
Just discovered http://cssreference.io/
Sticky material?
>>
>>57680862

seems pretty useful
>>
File: T2aQkUe.png (199KB, 953x717px) Image search: [Google]
T2aQkUe.png
199KB, 953x717px
Trying to display my rtmp stream on a website.

Just a empty site with a big player that i can share with my friends.

Does anyone know of any easy way to do this?

I've got some experience with writing simple scripts, but never done any serious web development.
>>
>>57681033
I'm using videojs for a rtmp/hls stream.
>>
>>57681118
been following this guide

https://docs.peer5.com/guides/setting-up-hls-live-streaming-server-using-nginx/

How do i stream to the server? the old rtmp adress isnt working anymore with OBS
>>
>>57681445
like the guide says, rtmp://yourserver/applicationname/streamname
if you are streaming with OBS then put the streamname into the key field instead of putting it into the URL.
>>
Got an email (dat linkedin botnet, tho) about a mid-senior front end gig (es6; ideally react and redux, babel and webpack; testing wise jasmine, ava and enzyme) in Central London for 6 months. £450 a day.

Recruitment company is VividResourcing if anyone's interested.
>>
File: 5oztAuA.png (9KB, 754x418px) Image search: [Google]
5oztAuA.png
9KB, 754x418px
>>57681496
i've got it running now. Nginx has created a stream.m3u8 file and a bunch of stream-X.ts.

But i cant play the m3u8. The online stream players give me crossdomain error and VLC gives me what i believe is a permission error.
>>
>>57681918
did you skip the http setup from your guide? it sets CORS headers.
>>
>>57682017
i believe you're right. I assumed he just put that into his config in the next window. I didnt understand what to do with that code.

server {
listen 8080;

location /hls {
# Disable cache
add_header Cache-Control no-cache;

# CORS setup
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Expose-Headers' 'Content-Length,Content-Range';
add_header 'Access-Control-Allow-Headers' 'Range';

# allow CORS preflight requests
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Headers' 'Range';
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;
}

types {
application/vnd.apple.mpegurl m3u8;
video/mp2t ts;
}

root /mnt/;
}
}


Where do i save this?
>>
>>57682050
in your nginx config
>>
>>57682074
nvm, my config file was identical to his the entire time.

must be something else that's fucked.
>>
What a hell is portfolio and what should it contain? Is it like a CV but in a form of a website? If it is why does it exist? Also, is CV supposed to be just text documents with nothing but black text? My shitty friends were saying about adding colors and other shit
>>
>>57680469
Just learn what you need online
>>
>>57681761
>London
Not even once
>>
Do any of you guys use a CMS? What are some good ones? Are they worthwhile?
At my previous workplace we just used a table in our database or resource bundles on the server
>>
>>57682171
It's a showcase of your skills, rather than just you claiming skills on a CV you show them in action. GitHub is essentially a portfolio of code
>>
>>57682467
Oh so I just link the projects that I've worked ?
>>
>>57677221
you ever think, If Trumps ends net neutrality, WebDev might now be the best profession to be in
>>
Is using the html base tag really the best way to reference common files like .css across subdomains? Found this linl on stackverflow http://stackoverflow.com/questions/18998245/how-should-i-link-a-css-file-for-the-subdomain-from-the-main-domain
I created a git server thinking it was a smart move to just host common files but maybe I was wrong.
Anyone?
>>
File: 1441726757962.jpg (84KB, 803x790px) Image search: [Google]
1441726757962.jpg
84KB, 803x790px
Am I doing a good thing by using zero .js on my websites?
Serious question
>>
File: rpW9VlF.png (9KB, 648x364px) Image search: [Google]
rpW9VlF.png
9KB, 648x364px
>>57682074
>no video with supported format and MIME type found

Do you know what might be causing this?
>>
>>57682834
JavaScript is a powerful language. You don't need a library.
>>
I'm taking my first steps into PHP.

I am making a simple blog hosted on a wamp server using a MySQL database for holding the information about the blogs and associated blog posts.
I can access the blog at localhost/blog/index.php

I have limited the content field to 50 characters and then have to click a "More" link at the end to view the whole blog post. Clicking the link takes me to localhost/blog/blogpost.php?ID=id_here

Here's the kicker: I want to know how to use this functionality in a single PHP file. How would I move the code in blogpost.php into index.php without breaking it and being able to retain functionality?
I'm new to this kind of stuff and I hope I can get some pointers

Pastebin of the full code:
index.php: http://pastebin.com/DjvzQ7Ar
blogpost.php: http://pastebin.com/A8VhgHaQ

Any input is greatly appreciated!
>>
Is Java Hibernate a good choice for ORM?

Why is there so little consens on that topic.
>>
What is your opinion on Angular? I is good to know it?Is it a time waste or pretty quickly learnable?
>>
>>57680175
fixed it myself, cheers
>>
>>57683691
I figured it out, here's the final code:

http://pastebin.com/r2jxxAWk
>>
jQuery question,

to summarise my problem, I'm asking about adding content to the DOM without having to recall handlers.

<div id="moo">
<a href="muh">muh</a>
<a href="meh">meh</a>
</div>


## handling ##
$("#moo a").click(function(event)) {
event.preventDefault();
}


Later, adding some item to moo
$("#moo").append(" <a href="mzh">mzh</a>");



how can I avoid to make a new call to ## handling ## and have that 3rd ahref handling ?
>>
>>57684483
Delegate the event and shit.

$("#moo").on("click", "a", function() {});
>>
Is this how an isomorphic React app would work?

The server serves an index.html file on all routes. The index.html file connects to bundled Javascript containing all the React-related functionality. This front-end application handles routing and view-generation, occassionally contacting the server for data or authentication.

Is that right?
>>
ok so the web host i intend to use supports ASP.NET

this means i can use freaking C# right??? i won't even have to touch php?????? please tell me this is real
>>
>>57685920
also is there any way you could help me get an estimate of the amount of computing power you can use in a shared environment? especially since C# should be much faster than most scripting languages, then could i do processing of small (dozens of kilobytes) user-uploaded files, or are you supposed to only do the lightest tasks of handling user sessions and sending emails and whatnot?
>>
>>57680175
having trouble modifying somebody else's template, huh Pradeep?
>>
whats the new meme front end framewokr now? Did NG2 fail? React all the way now?
>>
>>57677221
88 cent .com domains from name cheap until the end of the hour

https://www.namecheap.com
>>
>>57686935
vue.js is the latest meme
>>
>>57687056
if you can get to it. every year the same shit happens where namecheaps shit fucking script cant handle the hundreds of thousands of people trying to load their site. You'd think that a site of this magnitude could be up for more than 5 seconds at a time
>>
>>57686935
React is elegant, but not easy to get into.
Because it's just the view layer you'll have to implement everything else to your liking.
Which can be good if you know your shit but if you are just starting out you are bound to make tons of bad design choices.
>tfw just started a React/Redux job and I barely have an idea what I'm doing

Used to be an Angular guy but the change to v2 is just too retarded.

Did a project in vue.js but it's pretty much babbys first frontend framework, wouldn't bother learning it desu
>>
>>57687320
what dont you like about NG2?

I'm trying to get a re-write green lit at work from a cluster fuck jquery mess to NG2.
>>
>>57687343
Oh I phrased that wrong.

I can't actually say much about ng2. It's probably very elegant and whatnot
For me it just didn't make sense to switch. I invested heavily into ng1, and switching would require too many unproductive hours of learning the new API and possibly TypeScript.
Also I couldn't reuse any of my old directives without rewriting large parts, which is a bummer. Modularity was always the main selling point of ng to me.

>jquery mess
Dear god maintaining a jquery project which goes beyond a few simple hides, shows or whatnot is a real pain in the ass.
Was actually my first ng project, rewriting a jquery PoS into an actual maintainable SPA
>>
>>57687523

Totally reasonable reaction to NG2 coming out. They say its possible to use just JS for NG2 but EVERYTHING is in TypeScript.

The Jquery mess is basically an entire enterprise web client (thick) split into 4 40-50k line js files.

Most html is string+dom manipulation. Only the dead know peace from this agony.

Also jquery.extend(). Fucking. Everywhere.
>>
Any good black Friday web hosting sales out there? Is cloudatcost pay one time and have it forever just a meme?
>>
https://hackernoon.com/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f#.k9rs9fmf0
>>
How do you guys write your javascript code?
In my workplace I am used to typing a few lines then console.log(result)

So its like:
Some Constructor() {
}
console.log(result)

AnotherConstructor() {
}
console.log(result)

But then my supervisor keeps on watching behind my back while I code as if
expecting me to write everything fast. I saw his face doing a facepalm reflected on my monitor. When I'm writing html I could do it fast I already know the result even without refreshing the page. But when I write js I'm a console.log person. I try to make my js code easy to read, easy to maintain, does what its supposed to do and yet my supervisor keeps on facepalming on my "console.log per function" style of writing code. I thing he wants me to just:

"tikatikatikatikatikatikatika [enter],
tikatikatikatikatikatikatika [enter]
tikatikatikatikatikatikatika [enter]
tikatikatikatikatikatikatika [enter]
tikatikatikatikatikatikatika [enter]
tikatikatikatikatikatikatika [enter]

p.s. I follow design patterns as well so my code isn't shit-looking at all. Or am I really supposed to do

"tikatikatikatikatikatikatika [enter],
tikatikatikatikatikatikatika [enter]
tikatikatikatikatikatikatika [enter]
tikatikatikatikatikatikatika [enter]
tikatikatikatikatikatikatika [enter]
tikatikatikatikatikatikatika [enter] method of coding?
>>
>>57687590
Check the LET thread
>>
>>57687590
Would actually want to know as well.
Will soon be putting up my portfolio website and would like to host it outside of heroku.
Also, should I even bother with .com for 15€/year if I can get .us for pennies?
>>
>>57679198
Jesus fuck, PHP is a dumpster fire. Fractally insecure. Someone please remind me again why it's so great? It's impossible to write clean, simple code when you have to constantly dodge the gaping security holes. Not to mention it's hideous to read compared to most other languages.
>>
>>57687919
slack is written with PHP ¯\_(ツ)_/¯
>>
>>57687919
I'm glad you remember articles from the 2000's
>>
>>57687919
>It's impossible to write clean, simple code
That's more down to your level of incompetence.

>constantly dodge the gaping security holes
See above. If you know what you're doing, writing secure code in PHP is about as easy as any other language.

>hideous to read compared to most other languages
Do you really care that much about how it looks?
>>
>>57683772
Hibernate is great, if you're using spring then consider Spring Data, it still uses Hibernate but abstracts it some more for you
>>
>>57684232
Glanced over it. Line 99 with the $_GET id is very insecure and open to sql injection. Look into mysqli_escape and use that before you use the variable inside a sql query. Or look into PDO. That's just what I saw. You should also be suspicious of anything in the $_server super global also
>>
>>57684232
That's some terrible looking code, a few tips:
* Move the configuration variables to the top of the script along with the mysqli connection
* Use classes and style them with CSS instead of using bgcolor
* Don't
echo "<td>"
, do it the other way around like this:
<?php while($row = $result->fetch_assoc()): ?>
<tr>
<td><?php print $row['id']; ?></td>
</tr>
<?php endwhile; ?>


And like >>57688550 said, never use user input directly in queries. PDO is preferred but you can do prepared statements with mysqli also, read: http://php.net/manual/en/mysqli.quickstart.prepared-statements.php
>>
having a pretty decent month so far
>>
Anyone here use and enjoy react.js
>>
>>57688937
no
>>
>>57688937
who would enjoy a bloated crap?

riot.js for the win!
>>
>>57688937
I'm hating it less each day.
It sucks at the beginning due to the JS memestack you have to get into (webpack, babel and all that other shit)

But when that is done it makes for a pretty comfy dev setup. Hot reloading is nice for sure.
However it all will probably be for nothing due to some new hot framework coming out in 2 months tops.

frontend, not even once
>>
>>57687735
if he knows what he's doing? he wouldn't need you in the first place. just ignore him. don't overthink. focus on code, not on people.
>>
>font-size

smaller < small
large > larger

Explain this
>>
>>57687735
Try to find a code formatter (on save) suited for your needs.
>>
>>57689042
don't use -er. learn how to typography. I have to talk to graphic designers just on typography alone.
>>
>>57687735

lol fuck that guy. my attitude toward work has become, unless someone tells you there is a problem, try to ignore any "noise" or vibes or whatever. so just keep doing what you're doing.

but seriously who watches someone code over their shoulder? that's what reviews are for.
>>
>>57689015

yeah the memestack is cancerous

I've been practicing without using ES6... maybe I should be doing it with ES6 instead
>>
>>57689079
async await
>>
>>57687735

Just have a bit more confidence in your coding. If you're in the zone try writing at least 15-20 lines before checking your work. What helps me is just a quick comment on what I expect functions should output.
>>
>>57689145

its like they're trying to turn it into a real programming language
>>
>>57689079
I tried to fight ES6 as long as possible but I'm afraid nowadays it's easier to just go with it.
I mean eventually it's gonna be the standard anyway, right? Might as well get used to async and await while you're at it.

http://es6-features.org/

Arrow functions are pretty nice.
Also creating a copy of an object is ez

var copy = {...original}
>>
>>57687735
Things like this are my fear because I always code like shit when there are people watching me code. Even if it's someone I know like my sister or another friend

Now that I think of it, I do everything like shit when there's someone watching from my back, even playing games

How do I explain this to a potential hirer? I hope no hirer does this when I graduate
>>
>>57689196

yeah i know. basically every platform thats having trouble with their load times are migrating immediately
>>
Wait isn't async/await an ES7 feature?
>>
>>57689273

yeah it didn't make it into the 2016 release, but soonTM
>>
File: lab05-form.jpg (196KB, 966x1641px) Image search: [Google]
lab05-form.jpg
196KB, 966x1641px
Require some guidance as to how to go about make the form in the picture.

Here is how i would go about doing it:

For “JobSearch.com”
Create div set height in pixels set width to 100%
For “Create Your Account”
Set margins so Create Your Account is a bit below
For “*Required Information”
Create h2 header with margins so basic information box is a bit below
For “Basic Information Form”
Create Div width 90% centered somehow
P tag basic information

Any criticism is would be great.
>>
I need a basic site with a database and member list.

Skills I require: HTML, CSS, jQuery, PHP or Python or Ruby or whatever language you can do it in

Site will need to query a database, register members, post messages, and download/parse URLs and a basic design. You'll also need to know nginx and linux setup and the site will need to be modern and flip between pages seamlessly with jQuery.

Shouldn't take more than a day to complete. Can pay in bitcoin. $25 maybe is fair, maybe more.

Anyone interested?
>>
Hey guys,
I'm trying to make a script atm with Tampermonkey but I'm having some trouble with it.
My goal is to either redirect me to a certain page when I open a certain page
OR
to close the tab when I open a certain page and then open a new tab with a certain page.

So far I've got it working but the problem is - the script only starts working and doing what I said above when the page already fully loaded, which renders the script completely useless.

Anyone got an idea how to execute the script immediately before the page is fully loaded?
>>
>>57688937
I prefer Mithril.
>>
>>57689534
https://www.smashingmagazine.com/2011/11/extensive-guide-web-form-usability/

if it's a registration with multiple parts maybe make a progress bar? Overall the design seems good, just seems like a lot (even though it isn't)
>>
File: ...canned bread...wtf....jpg (57KB, 954x679px) Image search: [Google]
...canned bread...wtf....jpg
57KB, 954x679px
The domain name that I bought for my digital ocean VPS always changes the url to my server's IP address
I'm using google domains and it is written in node js
can someone help me out?
>>
>>57689547
>Site will need to query a database, register members, post messages, and download/parse URLs and a basic design. You'll also need to know nginx and linux setup and the site will need to be modern and flip between pages seamlessly with jQuery.
>$25 maybe is fair

lol niggas got jokes

go get a pajeet off freelancer.com
>>
File: 1431657537099.jpg (18KB, 413x395px) Image search: [Google]
1431657537099.jpg
18KB, 413x395px
>>57689547
>$25 maybe is fair
>>
After learning bootstrap/html5/css3/js/jquery what stage is next on getting a 3d waifu and a shitty apartment?

Making post ironic websites about fake businesses it starting to lose its zest.
>>
>>57689547
>this specific knowledge about web technologies (at least enough to namedrop them)
>this low-ball estimate of time and price
this is bait
>>
>>57689983
>>57689909
Well I could do it myself in a few hours but don't want to. $40 is the highest I'll go for what is really a very simple site to make.

Maybe I'll find an Indian to do it instead.
>>
>>57690036
you'll spend more of your own time and get a lower quality website by dealing with a pajeet, do it yourself or don't be so penny wise and pound foolish
>>
>>57689547
>>57690036
I'll do it, but all the font is going to be in comic sans
>>
>>57689547
>25$
Even if you were talking about hourly rate you would be a delusional faggot :^)
>>
>>57690156
this

real web devs make six figures pretty easily, most people aren't going to do a significant amount of work for such a small amount
>>
>>57689534

For logo area, create Div, set padding around "JobSearch.com", to create the proper spacing, no need to set width 100% since that automatically happens to divs unless you have a framework that overwrites it.

Create a "form" div, set padding of ~25px on top, 15px on sides

Inside form div make H2 with Create Your Account, set it's margin-bottom to ~30px.

<p> with Required information, margin: 0 0 18px 0;

Underneath that create div with class of "infoInput" or whatever, set the bachground color to be grey and overflow:hidden;

Inside the infoInput div create another div with class of "headline", and put "Basic Information" inside of it, also set bg color to darker grey.

Use <label> tags for the form labels, set their width to ~30%, float:left; and text-align:right;

Use <input> tags for blank inputs, use float:left; and set their widths to ~45%
>>
Looks like I'm taking that fucking coding test again tomorrow.

Getting a job in web dev is fucking hard. Lottery without a BS. Indeed won't even send your resume if you answer no to having a BS.
>>
>>57690036
I think I'm the only one that gets what you're doing.
>>
what's an easy way to obfuscate all my classes from multiple files?
>>
File: feels bad man.jpg (6KB, 250x169px) Image search: [Google]
feels bad man.jpg
6KB, 250x169px
Tfw can design really nice designs in Sketch, but can't wrap my head around shit languages like PHP for wordpress
>>
in vue, is there any decent way to have custom directive/component listen to events from some root/parent scope? I was thinking of utilizing this vuex that is redux like state management system, but they don't seem to be able to trigger customized events after mutations.

I wanted to utilize 3rd party library that manipulates dom and is sort of outside the virtual dom. It would require some update events to refresh it and shit.
>>
>>57689951
pick from angular/react if you want to be a better front end dev
or learn how to get stuff from a database like mysql, or general backend stuff if you want to be a jack of all trades full stack dev
or be marketable right away and make a simple login page, put some facebook/google api in it, etc
>>
>>57688923
I don't know if I'm looking too hard for it or what but I kinda see two people having sex.

Guess that makes it a good month.
>>
hey, so I'm fairly new to this whole web developer thing, I am doing part time working for a family friend and part time free lance
as it stands my part time job is becoming more full time, and my free lance thing is very slowly growing, I've been talked to about using google analytics and such, but I'm lost on what to do to move forward... any suggestions?
>>
File: fragezeichen yui.png (94KB, 396x395px) Image search: [Google]
fragezeichen yui.png
94KB, 396x395px
If I am writing a HTML string to document.getElementByID("div").innerHTML, should I be concerned with pretty printing the HTML, worrying about linebreaks, etc? Or is it considered acceptable to just write a blob of HTML with the assumption that a browser's element inspector will be fine parsing it anyway?
>>
>>57693024
you can just slap it without formatting.
browsers take care of displaying it, as long as it's valid, it'll work fine
>>
File: 1474637771648.gif (68KB, 500x293px) Image search: [Google]
1474637771648.gif
68KB, 500x293px
>>57693024
>should I be concerned with pretty printing the HTML
Of course
No point doing webdev if you aren't autistic :^)
>>
>>57692288

still do web development (if you want to) and make profit only from Analytics and such. Make money and learn more complex stuff. I've been with WP for several months now and (I think) after this, I can pursue again development while making quick bucks for my addiction.
>>
>>57689547

>Shouldn't take more than a day to complete.

Absolutely!

You might think about adding video uploads and streaming them, a chatroom, a rss feed. I also like when you can chose from 10 different languages for the menus. All those should take only 2 or 3 additional hours of work, but it's worth it.

Oh and make sure it also looks nice on IE6 and embedded systems browsers from 1998. You knever know.
>>
>>57692288
what site are you currently doing freelance?
have you considered learning corporate specific api like facebook, google, paypal, even steam, etc?
>>
>>57694248
I lol'd. Seriously people have some unrealistic expectations.
>>
>>57677259
No, PHP best
>>
>>57679730
Bootstrap
>>
Can someone tell me why making a web app for iphone is so retarded? It supports an app loading screen but that barely works as you need to give it the correct image size which is different for pretty much every version of the iPhone. Then when you want to make part of your app available offline, you need to use this AppCache, but if you want to redirect the person to an "This page is offline" page or even detect if you are no longer online, you need to use some stupid unreliable javascript property which MAY or MAY NOT work with different combinatios of WIFI, 4G and Areoplane mode - so the best way to implement a cross-device supported way you can detect if you are online is to do an XMLHTTPRequest to a web resource and give it 2 seconds to see if it returns successfully or not. Just ridiculous.

AND THEN THE w3c MAKE THE FUCKING APP CACHE DEPRECATED FOR SOME STUPID API WHICH ISN'T EVEN FINISHED OR SUPPORTED BY SAFARI YET.

Seriously why is the internet so fucked?
>>
>>57682834
Yes. Your site won't blow up CPUs
>>
>>57694436
And don't get me started about the latest trend of "let's create 10 fucking libraries for everything we can possibly think of in JavaScript to confuse the shit out of everyone"

Go for a job interview, be like, "Do you know Angular
Backbone
Cappuccino
Chaplin
Echo
Ember
Enyo
Ext JS"

OH NATIVE JS? NO WE DONT USE THAT BECAUSE WE'RE FUCKING NOOBS. NATIVE JS IS FAR TO RELIABLE AND WE DONT HAVE ANYONE IN HOUSE WHO IS SMART ENOUGH TO DESIGN PROPPER FUCKING SOLUTIONS USING A REAL LANGUAGE SO WE USE COFFEE SCRIPT
>>
>>57679730
bootstrap works enough. it just fucking works once you call it. of course experienced devs will know bootstrap at first glance
if you want some extra cheap wow factor learn how to use modals in bootstrap
>>
>>57694473
all the frameworks you mentioned are old and not cool anymore

get with the times please
>>
>>57694473
Lets go to the next thing. Microsoft's Universal App Platform.

Are you fucking kidding that there is no SSL support? No HttpListener support? Also why do i need to access the file system using some new age retarded API - what, too lazy to make System.IO namespace functionality work?

Now for every file extension i want to read or write from, i need to put it in my app.manifest?? Seriously what a pain in the ass. Also don't get me started on the lack of support for CPU and Memory performance debugging for this platform - AND THE FACT THAT EVERYTIME I WANT TO RUN IT, I NEED TO DEPLOY IT TO MY LOCAL APP STORE? SERIOUSLY DEBUGGING IS SO SLOW NOW
>>
>>57694524
SORRY EVERYONE - I VEERED MY RANT AWAY FROM WEB TOPICS >.<
>>
riotjs+underscorejs= grenade
>>
>>57678722
Go with the beta meme if you want it to look better. If you don't care how it looks stick to the motherfuckingwebsite design.
>>
>>57689547
>do my web dev course final project
>for 25$

maybe should of started at 150$, but this shit would take a decent dev 5 or 6 hours to do. 150 is on the low end
>>
i want to make a ajax call for a glossary, but i dont know how to write the call to get all the Elements from db that begin with the selected letter. doing it on rails. anyone have any tips?
>>
So I asked this in the /fgl/ thread yesterday and that didn't really fix my problem.

I'm a novice to hosting web services, but I'd like to host a pomf clone for my own personal use.

I have setup the pomf clone and have it working, but I'm a little uncertain about some stuff.

I'm using apache2 as my webserver, and pomf has been installed under my webroot /var/www/ in a directory called /pomf, in the pomf settings I have pointed the upload file location to /var/pomf/files/, now all the other pomf clones I see on the net, when you upload a file you get a link back as such:

website.com/image.jpg

in my case it would be:

website.com/pomf/image.jpg

However, I don't understand how I can achieve this without either setting the storage location for files to my installation directory (which I don't want to do as it will make it a complete mess) or I would have to make the link like website.com/files/image.jpg which I don't want to do either. Is there a way to link to the uploaded files stored in /var/pomf/files/ without littering my install directory with files?
>>
are there no entry level jobs fuck
>>
8 GB or 16 GB of RAM? I know for most things you don't need a shitload, but I'm about to start on some more RAM intensive stuff and think that it might be worth the small "future-proof" at least even if I don't use it all right away.

Currently between the XPS 13 and 15 and the 13 is limited to 8 GB. I'm going to try getting my hands on them to test screen sizes. If the smaller is okay might look at the Razer Blade Stealth, too, since it actually does 16 GB. Mac prices are just too ridiculous right now considering the specs and I use Windows for my current work anyways.
>>
File: 1445109575325.jpg (55KB, 500x498px) Image search: [Google]
1445109575325.jpg
55KB, 500x498px
>>57694473
>cappuccino
why am I not surprised there's a framework named after coffee
>chaplin
>echo
>enyo
>Ext JS
literally wat
>>
>>57694838
apache???
did you travel back in time?
use nginx
>>
>>57695135
its because javascript has java in it...a type of coffee and also another word for coffee
>>
>>57691592
Design for me :^)
>>
>>57695148

That wouldn't automatically solve my problem though would it? I've been trying to use aliases in apache to link from the pomf directory to the location where the files are stored but that just seems to fail.
>>
>>57695281
ln -s /var/www/pomf/files /var/pomf/files
>>
>>57694473
I'm a /realprogammer/ just passing through this ghetto because I want to make a web application real quick for my students, and I've caught wind of this sentiment in passing a few times now: that actual Javascript isn't used that much and people are "<framework> developers."

Is that really true? Are there really people out there who find vanilla js too close to the metal or something? Are actual web devs expected to keep pace with all these memes? Sounds like hell.

Oh and even though we generally mock webdev I actually quite liked writing my app in Javascript. I could write almost everything in a TCO functional style. It was nice, compact, and cozy.
>>
>>57695314

That wouldn't work, would just make the directory available inside rather than the contents on the root. Honestly I'm probably going about this the wrong way or something.
>>
>>57695360
you think that's hell?
wait until you're expected to have your website look and function exactly the same across the hundred or so web browsers. And then there's mobile too
>>
>>57695389
That's actually where I'm at with my own little educational program right now.

All the code is done, but it's full of placeholder art and divs that need a stylesheet.

Something tells me that's going to be way more of a hassle than the js code itself
>>
>>57695360
I think it's a symptom of the past where Javascript wasn't as standardized as it is today and you had to use jQuery or write huge boilerplate functions for everything to work properly.

With that said, using a framework can really speed you up, give you good extensibility and a common base for all projects.

>>57695389
Most browsers behave well nowadays, Safari is the one causing the most issues for me now.
>>
>>57694473

W3C and Apple (as part of the WHATWG) are old enemies, so to speak.

Also nobody expects you to know 10 different frameworks that do (more or less) the same. If you apply for a job you can either check out what they use beforehand. And if they don't tell, it won't matter so much.

What's important is that you are willing to learn. Which one would you hire?

A:
"Yes, I know you use Angular2, I have learned the complete API. I also made a website with it."

B:
"Oh well, I have done a couple of projects in React and Redux. I used Ember for one project, but that was 2 years ago. I have worked with Vue 2 times for smaller websites.."


I'd definately hire B, because he's definately willing to learn. And a team that has some know-how on the side is also cool. Imagine you take over some legacy code where they used Reac? Cool, we prefer Angular, but last month I hired this guy with 2 years react experience..

Frameworks are only tools, the further you get the less important they become. It's only interesting so a team can (theoretically) share more knowledge about the project structure and therefore be more efficient. But it's never a show-stopper if you don't know a particular framework.

>>57695360

>Are there really people out there who find vanilla js too close to the metal or something?

JS had a lot of flaws. Therefore they came up with stuff like CoffeScript, TypeScript and so on.. Nowadays we have ECMA Script 6 (the latest versinon of JS) which will bring salvation.


But to be completely honest:
Web guys just love to try out new things. They would invent a specific language for each website if they were allowed to.


It's about the mindset to tackle each problem with the appropriate tool instead of mastering one tool so well that you can tackle every problem.
>>
>>57691592
I've basically mastered PHP and I still fucking hate Wordpress. It's a clusterfuck especially if you're dealing with third-party themes. They are all filled with un-necessary shitty functions.
>>
>>57695123
If you don't play games or edit video, you honestly don't need a ton of ram. I dev on a memepad running arch memeix with 8gb and it's never been a problem. Only time I ever get close to using it all is when I'm doing some networking shit with virtual machines. Obviously 16 is "better" but 8 or even 4 would be fine for web dev since you mostly just need a browser and a text editor.
>>
>>57691592
tfw you're decent at programming but everything always turns out looking like shit
>>
Come try: korbo.ga
Basically "real-time collaborative drafts" but actually "dick drawing contest".
>>
Is there any downside to using JP hosting if language isn't an issue?
>>
I dont know shit about html or css.

How do i go about making a bunch of text behind everything on my page acting as sort of an background image?
>>
>>57697197
It's way more expensive and the hosts are shit.
>>
i want to remove two style rules on a website using greasemonkey, but apparently i'm too retarded to get it to work.

#mainContainerFrontPage {
background: #ededed url("../images/mainbg.png") repeat-y;
}

and
.barRight {
padding-left: 475px;
}



>>57697252
put a DIV on top that covers the entire page with the real content inside
>>
How much should i take for freelance job?
>>
I'm working on an Angular 2 based frontend for an API that I'm developing, and I can't figure out how to import arbitrary packages from npm, ie ones that arent specifically meant for ts.

Things I tried:
install @types -> undefined at runtime
import with every path that I think made sense -> can't find it

Bear with me I'm usually a C++/# guy
>>
>>57697705
about three-fiddy
>>
File: 1cvnY2f.png (959KB, 1920x528px) Image search: [Google]
1cvnY2f.png
959KB, 1920x528px
I have this shit on the bottom of my page. There's three different empty fields down there that expands the entire page for some reason. I cant find them in the code.

Does anyone know why this might be?
>>
>>57698279
Looks like AIDS have crept into your website, did you develop this on a Mac by chance?

Right-click > Inspect them
>>
>>57698279

I'm glad that I'm not the only person whose web endeavours always look this terrible.
>>
File: REuSK3n.png (48KB, 1288x233px) Image search: [Google]
REuSK3n.png
48KB, 1288x233px
>>57698303
i tried inspect element but all it points me towards is the background image.

pic related is my shitty code.
>>
>>57698348
figured it out, its the buttons.

How do i put them somewhere where it doesnt expand the page?
>>
>>57698348
>a with onclick that changes location

what the fuck are you doing
>>
>>57698433
no idea
>>
>>57678570
It's actually one of the least generic sites I've seen. There are patterns you have to follow, though.

>>57677651
I think Forbes doesn't look bad at all, even though it seems they didn't spend much time on details, but the amount of ads and horrible performance makes it shit for users.
>>
>>57691592
>tfw can do both

I feel like trash even if I code a whole template from scratch with custom PHP functionalities, though. Just because it is """Wordpress""".
>>
php, sql password hashing and salt. How to?

>hash data+salt
>rainbow table has the hash
>you can now see both the data and the salt

how the fuck am I supposed to do this anons?
>>
I'm trying to build a full-stack application that runs React on the front and Express on the back. I'm trying to keep it simple, so there won't be any server-side React rendering.

If I want to do this, do I just:

- Create a wildcard route on the server to serve an index.html file linked to my react bundle
- Allow React to handle routing from there
- Use the server as an API essentially

If that's correct, then how do I handle the user hitting refresh at a url handled by the react router? Will I just have to boot them back to the index page within the React application (because it'll be hitting the wildcard server route)?
>>
Help, /wdg/

I usually do front-end but a client of mine is asking for a website that displays an inventory of books (eventually to be sold). He mentioned databases and search and stuff so I'm guessing it's backend stuff and I've never touched anything like that before. I told him this but the client was okay with me learning.

What do I use/learn? How do I pull this together?
>>
>>57700561

You really, really should have insisted on not doing this...

Guessing your php and sql knowledge is near zero.

You could possibly achieve what he wants with Drupal without having to do anything but front end code, That said, Drupal will probably be an absolute nightmare if you go beyond hundreds of books
>>
>>57700642
I told him I've never done anything like that, so he probably won't be surprised if I back out
>>
>>57700328

If you've php 5.5, use the password functions : http://php.net/manual/en/book.password.php

Salt needs to be a string that isn't stored but can always be generated and ideally is unique for the user. The salt doesn't need to be secure, it's just needs to be unique to that user to prevent rainbow tables.
>>
>>57700642
>Drupal will probably be an absolute nightmare if you go beyond hundreds of books
Your reasoning for this?
>>
>>57700762

awww the salt goes on top of the hashed password? then gets hashed again?

in any case it seems that the result can eventually be cracked
>>
>>57700995
The point of a salt is not to prevent cracking, it's to make it much more time consuming.
>>
Best Python framework for a simple textboard?
>>
Are meta tags used for anything in the modern day? Should I not even bother putting them on my websites?

<meta name="keywords" content="keywords, keyword, keyword phrase, etc.">
>>
>>57701211

Keywords are barely used but most of the other ones have a use.

Plus you've a bunch of new ones if you're doing a responsive site.
>>
File: webpy.gif (2KB, 154x66px) Image search: [Google]
webpy.gif
2KB, 154x66px
>>57701131
web.py
>>
>>57701324
dead, the founder literally killed himself
>>
Need a site idea.
>>
>>57701353
Guess the framework was just that shitty.
>>
>>57701131
Flask
>>
>>57701353

This guy is an inspiration, all Python developers should follow this brave example. Bravo!
>>
>>57701538
Don't we all? Basically everything has been done already.
>>
>>57701131
Django, if you don't want to worry about picking stack and integrating it together.

Flask is okay too.
>>
File: 1875943285.png (164KB, 1265x750px) Image search: [Google]
1875943285.png
164KB, 1265x750px
Is it better to fully grasp the language features or is it better to just understand the basics of the language and plunge balls deep into projects.

>reading a textbook or practical project creation
>what do?
>>
>>57702456
You can't fully grasp a language unless you've used it, so go fuck up and learn from your mistakes.
>>
File: 298654853853.jpg (13KB, 336x116px) Image search: [Google]
298654853853.jpg
13KB, 336x116px
>>57702498
But following youtube tutorials to create projects doesn't even allow me to fuck up.

Or should I be completing projects completely unaided save for the odd google search?
>>
>>57702565
You won't learn shit from just following tutorials, use them to learn some basic concepts and then work on your own stuff.
>>
File: images.duckduckgoose.com.jpg (39KB, 387x594px) Image search: [Google]
images.duckduckgoose.com.jpg
39KB, 387x594px
>>57702609
thanks senpai
>>
best backend for very large file uploads?
currently using asp.net core, but it buffers the request before the controller gets the reply.
it's a massive performance hole when uploading several gigabytes.

does nodejs do a better job there?
>>
>>57702865
php7 fast as fuck
>>
>>57677221
Hi /g i am trying to install arch onto a usb, but lile and virtual box giving me problems and when i use refus or rawrite, i can not mkfs to part because already mounted. is something different i should know about usb version versus hdd? -anonnoob
>>
>>57702975
one other, what does g recomend for windows to usb iso burn
>>
>>57702975
>>57703027
are you looking for >>57691853 ?

use rufus to write isos to usb.
>>
>>57703055
yeah i used rufus also, it creates partitions, i delete try to mkfs and mount and tells me already mounted, cant make mount point. wont umount is busy

and no thanks just had turkey kek
>>
>>57703084
wrong thread you idiot.
you didn't even get the hint.
you are hopeless, just give up and kill yourself.
>>
>>57703104
<?php echo $thanks;>
>>
newbie to modern HTML/CSS here

I had a div with accompanying style to lay it out with its contents centered in a column and a shadow that is added on mouse over. When it came to implementing the div as links I found that you can wrap entire blocks in a tags so I wanted to do just that. Doing so "breaks" the styling that I applied to the now-child div. I tried moving the styling from the div to the a tags--this fixed the horizontal style of the elements but screwed up vertical style and the shadow. Any advice? Can provide screenshots, webms, html/css samples, anything needed.
>>
>>57703162
why don't you post the code instead of letting people ask for it?
are we supposed to guess what you did wrong?
>>
>>57703141
Notice: Undefined variable: thanks
>>
>>57703223
$thanks = 'kys';
>>
linking several css files like this doesn't seem like the proper way to do things.

base site is example.com and is located /var/www/html
sub domain is site.example.com and located at /var/www/site

both of these sites will share at least 3 .css files in common
I tried having the common files one level higher with ../ but it doesn't work.
the bulk of my website is at site.example.com so i have the css files at
/var/www/site/css/one.css
/var/www/site/css/two.css
/var/www/site/css/three.css

from my site.example.com i can link using href="css/one.css"
but from my main site in it's index.html header i do
<link ref="stylesheet" href="https://site.example.com/css/one.css"> etc

This just feels so wrong. Any help?
>>
>>57703522
symlink the file, then both use the same.
>>
>>57703540
that actually makes a lot of sense
is that common practice?
>>
I hate html
>>
>>57703588

It's far better practice to as few CSS files as possible and compress the fuck out of them.

Sites render faster if they have to load 1 minified file than making requests all over the place.
>>
>>57704360
http2 is a thing.
so unless you run on an outdated server it doesn't matter anymore.
>>
>>57704409

Still better to compress though.
>>
File: 4847187541450281.jpg (19KB, 300x300px) Image search: [Google]
4847187541450281.jpg
19KB, 300x300px
hey /g/
dont have my actual code on hand so i replicated it
this snippet will be enough to show my issue hopefully or it may just look like shit

I want to update my table, setting a specific column's value if another column's value happens to match one of the values in my array

so how do i use WHERE blah = (check if the value of blah matches any of the values in my array)
right now im trying in_array() as you can see below

$valArray = array(11,22,6,1,42);

UPDATE " . theTable . "
SET myval = '" . $genVal . "'
WHERE theID = '" . in_array($def['theID'], $valArray). "'


hope i explained this well enough for some anon to understand
hopefully someone knows a solution
>>
>>57704654
surely your server has gzip enabled, so compressing does nothing.
>>
>>57704731

".(in_array($def['theID'], $valArray) ? 'TRUE' : 'FALSE')."
>>
>>57704784

Proper compiled CSS gzipped is better than regular CSS gzipped.
>>
>>57704814
>>57704731

Also, sanitize those strings!
>>
>>57704863
>sanitize
there wont be any user input or anything like that
so its safe, dont worry
>>
Why is this not working annons?
$url = file_get_contents('https://maps.googleapis.com/maps/api/geocode/json?address=City, Street');
$contents = file_get_contents($url);
$contents = utf8_encode($contents);
$results = json_decode($contents);

>>
>>57705543
Why are you calling file_get_contents() twice?
>>
>>57705681
error, but nothing is changed after deleting it
>>
>>57705706
Remove the space from your URL.
>>
>>57705732
link is working with or without space, you can try it in browser
>>
>>57705755
It works for me when I remove the space. file_get_contents() works slightly differently than a standard http request in the browser.
>>
>>57705792
So how would you suggest me to get json data from url?

I have form, and in that form you enter your address.
When you enter address i need to get lon/lat from maps.google and embed google map with those coordinates.

When i get lon/lat all i need to do is embed
maps.google.com?q=lon,lat
>>
Is c# something that I will need if I do webdev?
I'm so far I'm going html -> css ->
Not sure what to go next, maybe php or javascript? I already know mysql
>>
>>57705899

C# is pretty uncommon for web development
>>
is there any easy way to display current viewers on site?
>>
File: Code001.png (63KB, 1554x326px) Image search: [Google]
Code001.png
63KB, 1554x326px
Pic related is my code. Why won't the color of the links change when I hover the mouse over them? HTML/CSS. Links displayed to the left.
>>
File: SS_001.png (9KB, 236x189px) Image search: [Google]
SS_001.png
9KB, 236x189px
>>57706682
>>
>>57706789
I must be a dumbass because I typed in what you wrote exactly and removed the link to a separate css document and it still isn't working. :( I tried it in the head, body, and directly in the div. It followed the color instruction of a:visited, and text-decoration: none of the a selector. What gives?
>>
>>57706789
Put the :hover inside the brackets, Pajeet!

You dun jeet'd
>>
i'm new to webdev.

i have a domain name and a free web host (i might upgrade later) that offers MySQL database and supposedly unlimited storage.
I just want a database, ~10GB, accessible remotely through the internet. do i just migrate the db to the website through my cpanel? do i need a local machine with the db, acting as a server? is it safe to have a db listening to all connections from the mysql ports? stackoverflow claims it is a security issue, even with authentication.
I wouldnt normally bother wdg/ with questions like this but, I dont know how to look for these answers. maybe one of you can direct me to a guide?
>>
>>57707274
What? Codecademy doesn't mention that at all in this lesson. If I do that, what pseudo-class selector would I use, instead? And the hover would be an attribute, or a value?
>>
>>57707676
Ignore him.
>>
>>57706682
<!DOCTYPE html>
<html>
<head>
<style>
a:link {color:green; text-decoration:none}
a:hover {color:red;text-decoration:underline}
a:visited {color:pink; text-decoration:none}
a:active {color:yellow; text-decoration:underline}
</style>
</head>
<body>

<div> <a href="http://boards.4chan.org/tg/catalog">4chan /tg/ Catlalog</a>
<a href="http://boards.4chan.org/a/catalog">4chan a</a>
</div>
</body>
</html>

I tried it and it worked for me, not sure what's wrong on your end
>>
>>57707274
Hi Xultra
>>
What python framework should I use if I only want to display a python script in the front end? It requires user input if that makes any difference and I might need to store PDFs on the back end that it can access. It will be a small website with most of the other pages being static.

It looks like 'micro-frameworks' like flask and tornado would be better than using django for my use but I have little experience with any of this.
>>
I want to learn web development.

What language or framework should I start with? I have never done anything web development-related but have some experience with programming in general albeit never working on a significant project.
>>
>>57693925
What kind of addiction?
>>
File: 7888be2.jpg (375KB, 1735x1012px) Image search: [Google]
7888be2.jpg
375KB, 1735x1012px
Worth continuing? Pretty much I just run a command to search for and download webm files from common porn tags on /b/ and /gif/, which I could easily automate. Havent worked on it in like a month, and currently dont have any other projects so..

https://randomporn.site/?cat=straight
>>
>>57708310
Just learn html and css in a day, try to git good with css and then learn PHP. After that you can become a hipster faggot and use a frontend language for backend like 90% nerds on here, but the first 3 are really all you need. With frameworks you don't learn shit.
>>
Anyone in here who isn't removing PHP from your minds and learning javascript instead is going to be unemployed soon
>>
>>57708839
>actually doing web dev as a job
have fun dying in your 50s because you're too poor to afford food for yourself.
>>
>>57708878

Thank god we'll have a hard ai by then and everyone will be unemployed

it'll probably be written in javascript
>>
>>57708839
why not use ASP.NET? C# is actually an acceptable programming language (although still inferior to java and C++)
>>
>>57708907

Honest answer? Javascript is faster write, easier to deploy, and supported by everyone automatically.
>>
>>57708907
Wish my keyboard had a puke emoji
>>
>>57708902
Of course it will be written in javascript. We need a way to defeat it in case it runs amok.
>>
>>57708790
what's the point if bootstrap takes care of all the html and css bullshit?
>>
>>57709043
bootstrap is too rigid
>>
>>57709043

>using memestrap

Semantic UI is superior in almost every way
>>
>>57709043
bootstrap looks bad and its much easier to just write your own shit once you know what you're doing with it. can't take someone serious when they use stock bootstrap or a public skin. write your own shit like jesus its not that hard, and you don't have to include 2 MB extra in css and js files. if you watch the new google dev summit video they talk about how important it is to keep shit as small as possible considering your average mobile user has to wait multiple seconds before they even start to download the site
>>
File: url.jpg (16KB, 221x228px) Image search: [Google]
url.jpg
16KB, 221x228px
why are all frontend shits these day so fucking obsessed with dark on light? I have to fucking stylish every website I use heavily so my eyes don't blow out of my face.
>>
>>57709211
example of this? most sites I use either go full nigger or full white.
>>
>>57709211
Do you also go blind reading black ink on paper, you fucking meme queen?
>>
>>57709171
>you don't have to include 2 MB extra in css and js files
they only care about normies who dont configure their browsers and already have those files stored
>>
>>57709244
this full white shit is part of the dark on light i'm talking about. Grinds my fucking giblets.

>>57709250
>reading things on paper
i'm not a fucking barbarian.
>>
>>57709171

You stupid retard 99 times out of 100 bootstrap/jquery is already cached from when you visited some other normie site.

Also backend devs dont give a fuck about memeangular frontend "modern" memes.js
>>
>>57709293
>when you're so bad at your job that you decide to add multiple extra mb to your shitsite instead of just writing the fifty lines of css you're actually using out of 5000 lines in the shitty framework you included.
>>
>>57709293

>lol backend doesn't care

good thing all "backend" shit is moving to a frontend language
>>
someone give me a 30 second crash course on animations in CSS please.
>>
>>57709211
get a non-shit monitor
>>
>>57709441
https://css-tricks.com/snippets/css/keyframe-animation-syntax/
>>
>>57709441
Did you say 50 minutes of shady but functional practices?
https://www.youtube.com/watch?v=r94IxRRKR0A
>>
>>57709485
jesus christ that's a bit much.

how about transitioning from normal to a box-shadow on hover
>>
>>57709532

Don't use CSS animations. Create a flash app instead.
>>
>>57709553
#throwback
>>
>>57700527
I've yet to use React/React-router, but I would imagine its similar to creating a backend that simply serves json and then have a frontend server the strictly consumes it using React. If like angular it should save history. This way you don't have your backend do anything but serve json
>>
bootstrap and jCurry belongs to the garbage. also that reactjs
>>
>>57694341
right now I'm doing a mix of freelance and part work for an actual job in which I'm updating the code for their site and fixing all the problems they have site side
>>
What is your guys opinion on Laravel?
>>
I'm having a lot of design issues with a SPA. It's a very dynamic scientific web application. Anyone who can link me to a similar sounding web application for some inspiration? Doesn't have to be scientific, but it needs more user interaction than button clicking.
>>
What is a good captcha alternative to Google?
>>
>>57715507
Why are you avoiding google?
>>
>>57715776
take a guess retard
>>
>>57715796
You are making a cheese pizza website on tor?
>>
Is it possible to setup sendmail on laptop?
I installed it but emails are not getting sent.

I need it for php function, i need to send mail with mail();
Path is set in php.ini
>>
>>57715831
Yes
>>
>>57715837
Can you give me any documentation about that?
I used postfix on server and everything worked fine, it was debian or ubuntu server, i dont remember.

On laptop i have Arch, everything is installed but i cant even send email from terminal with echo "body" | mail -s "subject" [email protected]
I dont get errors
>>
>>57715859
Certainly
https://wiki.archlinux.org/index.php/Sendmail
>>
is grinberg's flask mega tutorial still a good start for a beginner or are there better and newer tutorials out there now?
>>
Why i cant get json data from maps.google api?
i tried to get it from url
http://maps.google.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA

but aint working, od i need maybe token or something like that?
>>
>>57715881
It's excellent
>>
>>57716232
thanks, starting now
>>
what defines a js library? how is it different from a js file that just has a bunch of functions in it?
>>
>>57709394
>good thing all "backend" shit is moving to a frontend language


good thing everything enterpri$e is meme-free for the foreseeable future. have fun developing glorified todo lists and blogs for peanuts.
>>
File: itworks.png (45KB, 1008x771px) Image search: [Google]
itworks.png
45KB, 1008x771px
>>57716193
works on normal chrome and postman
what ajax response are you getting?
>>
>>57716363
it's just a file but usually people mean you install it with npm into the node_modules dir
>>
Moving silly logic to the frontend is a good idea and allows the backend to cache more efficiently thus serving more requests faster.
>>
>>57717067
wow what a genius you are
>>
>>57717067
>use retarded amounts of cpu and memory on client side
>user closes down your shit
>leaves your site forever
but at least you got the server resource usage down
>>
>>57683772
>>57688300
It's great, I've used it on java all the time along with spring data. Latest versions of spring make it unbelievable easy to get repositories up and running.

>>57683827
it's good, helps a lot. haven't gotten round learning angular 2 or react

>>57687590
Check WHT and LET

>>57685920
Yeah but I'd rather get a cheap VPS (with KVM virtualization if possible) and run ASP Net Core with nginx as reverse proxy
It's absolutely lovely and performs very well.
>>
File: chink.jpg (148KB, 857x1200px) Image search: [Google]
chink.jpg
148KB, 857x1200px
>>57717816
Isn't ASP Core still in beta? And doesn't ASP run much better on Windows than it does in Linux right now? I'm assuming it uses MonoCLR to run it on Linux.
>>
>>57718142
Nope, it's already """"final"""".
I've been using for microservices mostly and it was been doing very well.
Net Core is native in Linux as far as I know, the Core CLR runs natively
https://www.microsoft.com/net/core#linuxubuntu
>>
>>57709293
>bootstrap / jquery is cached from ANOTHER site
is this actually true? wtf
>>
>>57719208
that's the point of a global CDN.
>>
>>57719230
if only that existed!
Having competing CDNs completely defeats the purpose from a caching standpoint
>>
or you can customize bootstrap on their fucking site and only get the things you actually need, for example bootstrap with only the grid is 12kb
>>
>>57714411
Have you tried not being a faggot?
>>
Where is the most fun at lads, front end or back end if you know what I mean?
>>
>>57707533
Try looking into remote mysql in your cpanel. Many hosts offer this
>>
>>57719499
That's like asking if you like the plot or the backstory better :^)

Seriously, I enjoy back end a bit more, front end is too full of memes. Back end work with scenarios that require robust architecture and optimization seem more entertaining to me.
>>
>>57716193
You may need a Google api key. They made it mandatory in August this year for Google maps. Generate a key from the Google api console
>>
>>57719499
Back-end, if only because you have to deal with customers and their "creative input" a lot less.
>>
>>57719499
>hip frontend dev with mouchtache is blissfully unaware that all the bloated frameworks he stacked on top could tip the iceberg at any moment
>backend developer is drowning himself
>>
>>57719499
Depends on "What does your product solve?"
Both are fun.
>>
is it ok to use flexbox?
>>
>>57720734
>>57720734
>>57720734
NEW THREAD
>>
>>57686655
>he never stole templates

kek
Thread posts: 315
Thread images: 31


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