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

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

Thread replies: 255
Thread images: 36
File: aQv63Dtt_400x400.jpg (9 KB, 400x400) Image search: [Google]
aQv63Dtt_400x400.jpg
9 KB, 400x400
>dont have the OP picture edition

> Discord
https://discord.gg/0qLTzz5potDFXfdT

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

>Learning material
https://www.codecademy.com/
https://www.bento.io/
https://programming-motherfucker.com/
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md
https://www.theodinproject.com/
https://www.freecodecamp.com/
http://www.w3schools.com/
https://developer.mozilla.org/
http://www.codewars.com/
https://www.youtube.com/watch?v=JxAXlJEmNMg&feature=youtu.be&list=PL7664379246A246CB lecture series.

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

>Backend development
https://en.m.wikipedia.org/wiki/Comparison_of_web_application_frameworks
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
https://www.youtube.com/watch?v=pB0WvcxTbCA - "WATCH THIS IF YOU WANT TO BECOME A WEB DEVELOPER! - Web Development Career advice"
https://www.youtube.com/watch?v=zf_cb_Nw5zY - "JavaScript is Easy" - If you can't into programming, you probably won't find a simpler introduction to JavaScript than this.


>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
https://www.openshift.com/
>NEW!
https://scaleway.com/
>>
First for Go and maintainability.
>>
Last thread because OP forgot:

>>55399211
>>
>>55488692
the last thread had the steve jobs picture
>>
>>55488344

Death to JavaScript

Long live PHP
>>
>>55488744
Death to both! Long live Go and WASM!
>>
>>55488692
>>55488721

Got it now
>>55445416
>>
>>55488344
>dont have the OP picture edition
badly compressed .jpg when .png or .gif would have been fine edition.

If only 4chan supported .svg master race.
>>
Will becoming a web developer allow me to work from home? Are any of you here working from home as a web developer now? I need to know. My normie land wagecuck job is killing me.
>>
>>55489282
If you enjoy freelancing and getting payed less than POO IN LOOS then sure, but any real web dev job requires you to be on site to communicate with your team members.
>>
>>55489282
It's easier to work from home as freelance after you've been at a company for a while and see how it's done.
>>
File: pajeetPC.jpg (24 KB, 459x288) Image search: [Google]
pajeetPC.jpg
24 KB, 459x288
>>55489282
>>
File: old_doctor.jpg (27 KB, 305x450) Image search: [Google]
old_doctor.jpg
27 KB, 305x450
I'm not sure if this belongs here.

I have a basic knowledge of python, however, I want to focus on Web Development and networking (especially networking) . Where do I start?


Thank you
>>
A lot of places like coding bootcamps and entry positions want to see a twitter account or some sort of social media.

Is there an easy way to set up a Twitter that makes me seem like a normie and get a few followers and shit?
>>
Why do some colo facilities like to keep their exact location a secret? Is it that dangerous to reveal your actual datacentre location?
>>
>>55490858
lmao what the fuck kind of shady bootcamp are you looking into

just set up an instagram and follow a bunch of people, you'll immediately get some follows (some bots). Twitter's bots are way more obvious. And then just take two pictures a day.

If they explicitly care about twitter, it's because they want to see your outreach in the dev community - and that's much harder to fake
>>
>>55489754
>>55489823
>>55490313
Well thanks for giving me the hard truth. I guess I'll abandon all hope now.
>>
>>55489282
it's not as hard as people make it out to be, if you treat it like real work not as a hobby :) then it's ez to make lots of moneyy
>>
>>55491197
I might give it a go. Is it really possible to learn everything yourself and get a job just off that? I really don't think I can go back to school, but I do have a few hours of free time each day.
>>
>>55490655
web.py
>>
>>55490905
If you're a TNC/MNC, it's less the data in them, more the employees and other stuff you need to protect.
>>
>>55490655
flask
>>
File: aXXX2rz_460s.jpg (39 KB, 460x532) Image search: [Google]
aXXX2rz_460s.jpg
39 KB, 460x532
I want to start with PHP,

so first off with codecademy ? also would do this
https://www.youtube.com/watch?v=iCUV3iv9xOs&list=PL442FA2C127377F07, what would be the recommended #3 ?
>>
>>55491047
Or just learn social skills, and find a thing you can do in life that you actually like.

I didn't get into web development because I was looking for the easiest highest-paying job available. I do it because I've been programming as a hobby and dabbling with this shit for fun since 2003. I like going to work, its fun. Now I get paid to do what I would have been doing as a hobby anyway.

Find something you like doing.
>>
>>55490655
Flask or Django
>>
>>55490992
>coding bootcamp
>only complete noobs apply
>they want to see my developer community outreach through twitter.

wat?

I do webdev for a living, I don't even have Twitter.

Most likely its a pyramid scheme and they want to use their students to spam their shitty bootcamp so that other idiots will pay for it.
>>
File: logo-w3c-screen-lg.png (16 KB, 249x107) Image search: [Google]
logo-w3c-screen-lg.png
16 KB, 249x107
>>55488344
why the fuck is this image a jpeg and not a png

is it supposed to be spoofing w3c logo cause it looks nothing like it. wrong color, font is too wide compared to pic related

(though I'm used to seeing the blue on white logo since that's the one that's used on all the web specs)
>>
File: 1444919537454.png (39 KB, 946x473) Image search: [Google]
1444919537454.png
39 KB, 946x473
>>55478097 again.

I have written some code (in Java) that gets the current time in the ASCII format specified.

What would be the best way to get this onto a webpage? What about having it update when the time changes?

Thanks again.
>>
>>55493613
>What would be the best way to get this onto a webpage?
Rewrite it in a better language, called Javascript.

>What about having it update when the time changes?
Javascript is the only way to get things to do stuff in the browser.
>>
>>55493649
Did you read my OP? What would be the best way to re-implement it?
>>
who /vue 2.0 with jsx/ here? also there needs to be a webpack-2.0 vue-cli template. the vue-cli templates are among some of the best default webpack configurations ive ever used.
>>
>>55493476
>only complete noobs apply
But that isn't true
>>
I'm rebuilding my portfolio site and want to make it with actual RESTful URLs,

Is there a way to do this without routing?
>>
i'm building something that checks a url and returns to the user information about what's on the page

would it be bad practice to just use jquery and ajax for this?
>>
What kind of interview questions should I expect for a "application developer" position with html/css/js with Python and sql?
>>
>>55493490
dude I jus typed "wdg" in google and hoped for the clasic OP picture, just picked a random image
>>
>>55493663
>What would be the best way to re-implement it?
How am I supposed to answer this without basically writing all the code for you?
>>
>>55495056
jquery and ajax would only display what is returned. You would need a server side code to run a curl on the remote url to fetch the content
>>
>>55495927
>>55493663
Nevermind. I basically wrote all the code for you

http://codepen.io/anon/pen/yJzzJW
>>
How do I declare a variable in Go without declaring the type?

this var X 
not var X int
>>
>>55490858
Just retweet a bunch of random click bait shit and rant about politics like everyone else. You'll also seem super hipster cool if you follow Paul Irish
>>
>>55496889
you have to declare the type unless you're assigning it to something. If you're assigning it, the compiler can infer the type.
>>
>>55496993
But what if I want to wait for the user to assign it?
>>
>>55497020
then you should either reevaluate whatever you're trying to do or switch to a weakly typed language.
>>
>>55496889
>How do I declare a variable in Go without declaring the type?
are you stupid?

don't answer that, I already know.
>>
Okay. I'm gonna ask it. Why does everyone hate Java for web applications running on servers? I'm talking large, complex software applications, not a CRUD app.

I use it because:
Java is fast, high level, easy to develop, and huge community of open source software written in Java.
Don't want to pay for/pirate Windows Server and SQL Server, so no point in using C#.
Python is slower.
C++ and below are too low level for what I'm doing.
Go... haven't used Go. Primarily don't use it because it is too new and a meme language.
Haven't used Ruby. Mainly never tried it because it's slow and kind of a meme language.

Why is Java bad again?
>>
File: 1459589159324.gif (789 KB, 138x207) Image search: [Google]
1459589159324.gif
789 KB, 138x207
Second interview they want me to "code an HTML email".

That's just an HTML template right? I've never done that but it sounds piss easy, any tricky components I need to be aware of?
>>
File: Capture.png (374 KB, 1007x876) Image search: [Google]
Capture.png
374 KB, 1007x876
>download web design course
>see pic related
>lose confidence in instructor
>>
>>55497700
>Why does everyone hate Java for web applications running on servers?

If the basis of that assumption is made up of what you see on /wdg/, then you really need to ignore it. If you want to know the true pros and cons you really should be looking elsewhere.

If Java works for you then so be it. Every application will have its use based on the type of app you're making.

I've worked with just about every mainstream language and I'll tell you PHP is my favorite - but the general consensus here is that you're a 'pajeet' for even using it. Do you, senpai.
>>
>>55498053
>he doesn't want to learn how to make a wanderful page

You're not gonna make it
>>
File: java.gif (85 KB, 1680x740) Image search: [Google]
java.gif
85 KB, 1680x740
>>55497700
>Java is fast
Premature optimization

There's no point in shaving a few CPU cyles off when you're going to be waiting for millions of CPU cyles while a network request to resolve.

The requirements of most web applications will be met just fine with pretty much whatever language you want to use. No language is going to magically make all technical debt and problems disappear.

>high level
Except when you have to fuck around with threads and shit.

>easy to develop
lel, pic related.

>and huge community of open source software written in Java.
So does every other language.

>Don't want to pay for/pirate Windows Server and SQL Server, so no point in using C#.

So you're developing "large complex software" but you're not a company who can pay for things, you're doing it alone in your bedroom instead. Okay

>Why is Java bad again?

Personally I don't want to learn or use Java because don't trust Oracle at all.

Oracle's MO with stuff that they've acquired which isn't printing money for them, like Openoffice and Opensolaris, is to basically forget about it. Java EE is another property that isn't printing money for them. The Java EE 8 specification was approved in 2014, but release is still supposedly being sometime next year?

That's quite a fucking long release cycle.

Plus they keep trying to sue the shit out of Google. which is fucking stupid.
>>
>>55498053
>excuse me while i add box shadows to everything
>>
>>55498053
Textbook Dunning-Kruger effect there
>>
File: wanderful.png (41 KB, 200x317) Image search: [Google]
wanderful.png
41 KB, 200x317
>>55498053
>>
>>55498053
>form with no labels or placeholders

>
>
>>
>>55498016
Don't be this cocky first of all. Email clients are not like web browsers and much buggier. There are different best practices. Javascript is not supported. You can't use too many styles in the head and you have to use a lot of inline styles. Images have to be hosted on your server and linked with an absolute path. I would read up a little more
>>
>>55498176
Its fine, I'm sure he salts and hashes the passwords in the database. Looks totally safe.
>>
>>55488344
Who has experience with cloud hosting providers?

I'm build a small webapp but want to host the different parts in their own instances. So there will be a database server, main site delivery server and another server for cron tasks that populate the database with things periodically. I've only ever messed around with vps's so am I right in thinking if I want to use digital ocean I have to pay for 3 of their plans to get this kind of setup? same with AWS etc. Just wondering how this kind of setup works.

Ignore the fact that it's a small project I just want to learn how this cloud hosting stuff works for now, assume it has to scale up eventually.
>>
>>55498256
>am I right in thinking
ya pretty much what you said.
>>
What are the chances for a VPS hosted server (gunicorn under nginx) running an app to crash randomly (and thus need billable sysop maintenance), as compared to a shared hosting ? (I have yet to see a heroku app crashing)
>>
>>55498313
Am I missing something? You can't determine if it's secure or not if you can't see how the server side code procsses the form. The html is fine
>>
>>55498366
I thought the action attribute was left blank, and was making a joke, because it didn't do anything. I didn't realize at some point he added a .php file.
>>
This may be a stupid question. Are there any services that host free "redirection security" (I use the term security very loosely) pages, like those on forums?
>>
File: 1419654111063.png (51 KB, 1000x1000) Image search: [Google]
1419654111063.png
51 KB, 1000x1000
Anyone know of a good tutorial for JS Promises?
>>
Should I be learning PHP? I already know JS and the premise of learning Node and sticking to just one language for everything is very tempting.
>>
>>55499559
PHP is super fucking easy to learn, so it really wouldn't hurt. Plus it makes you more marketable.
>>
>>55499433
the mdn page is a good place to start.
>>
>>55498148
my fucking sides...
>>
>>55496747
Jesus christ. You legend man. Wow.

Thanks dude.
>>
>>55496747
Just read through the code and comments, and even though I'm [now] shitfaced, that is so clear, understandable and useful. Based anon.
>>
File: 070215113415_cnfc5r6cph.jpg (153 KB, 720x480) Image search: [Google]
070215113415_cnfc5r6cph.jpg
153 KB, 720x480
What's the easiest framework for a single-page static site? Like clicking the nav replaces the body content kind of thing.
>>
>>55498016
Go read some HTML tutorials from the late 90's and you'll be fine doing emails.
>>
Having trouble with RWD. Should I just bite the bullet and use bootstrap?
>>
looking for an ubuntu mysql client. anyone got any suggestions?
>>
>>55501185
nah. You got this anon
>>
I am new to writing JavaScript...
I am writing a communication protocol between two websockets and I am not sure I am doing this correctly.

I want to wait for a message and then react based on what state I am in.

While loops are forbidden in JavaScript, so should I just use a recursive loop or should I make a dispatcher model?

It feels like I am writing Assembly again.
How are you supposed to do?
>>
>reading a javascript textbook
>wrote 5 pages of notes today and my hand hurts
>still not very far
>>
>>55500222
try ember
>>
File: reactjs.jpg (219 KB, 1020x535) Image search: [Google]
reactjs.jpg
219 KB, 1020x535
>>55500222
Angular 1 just because there's so many resources and just makes sense.

React if you wanna be cool, and it's still pretty easy but just unnatural at start.
>>
Trying to change an element's display from none to block through JS, but it's not working. It works with display none, but changing display to block does nothing. Any ideas?

Just doing this btw:
document.getElementById(id).style.display = "block";
>>
>>55502193
Thanks anon, this seems really comfy.

>>55502221
I'm a little bit limited this time around, but I may refactor it using this in the future
>>
File: gitgood.webm (1 MB, 614x480) Image search: [Google]
gitgood.webm
1 MB, 614x480
Made a "search for users" system for my site, but the results look really ugly. How would you guys suggest styling the results?
>>
>>55501522
Try mysql.
>>
>>55503160
what's the point of having a small search box when the wrapper is so big anyway? the box being small and then getting bigger doesn't save any space.
add more info to the autocomplete, add their avatars, number of pokemon or team composition as tiny images, anything
don't make the result just a plain link list.
what's the point of having the autocomplete and a list after searching? why not just use the autocomplete alone, this seems to be an unnecessary step/click.
>>
>>55502279
that's exactly how it works, you fucked up something else.
>>
>>55499433
Promises are amazing as long as you're not a baddie and try treating them as callbacks, nesting them inside of each other.

I think this explains it quite well:
https://www.youtube.com/watch?v=g90irqWEqd8

Kyle Simpson is good at JS.
>>
https://jsfiddle.net/o2tau8kt/

Why won't the back button work. I know its giving the correct radio button the checked property, but it won't display as checked on the webpage.
>>
>>55501811
>dispatcher model
I use this with a map of message types to functions. Works pretty well.
>>
>>55505996
when you click next you set choice to -1.
so clicking back afterwards checks if -1 is equal to the index of the checkboxes, which is never true.
besides, you rerender the checkboxes. your reference would have been lost. the element no longer exists.

doesn't seem to make any sense.
>>
>>55506095
>when you click next you set choice to -1.
so clicking back afterwards checks if -1 is equal to the index of the checkboxes, which is never true.

'choice' is set to the index of the checked radio button as next is clicked. If the user was to click back, 'choice' would still be equal to that index therefor the function should check the button at that index. My problem is getting the code to render this.
>>
How do I check with js if an iframe loaded a certain file?
>>
File: cat.gif (16 KB, 180x236) Image search: [Google]
cat.gif
16 KB, 180x236
reading this as a noob and I already found 2 critical errors in the code after 38 pages

have someone finished this book, the content seems to be fine ?
>>
>>55506226
because the element is gone.
what happens if you click back twice? you only store the last choice.
>>
>>55506247
can you post the pages and point out the error?
>>
Video conference interview tips? Anything to know?
>>
>>55506666
>>
Between FCC and Odin, which one is better to start with?
>>
>>55508200
IT DOESN'T MATTER
PICK ONE.
>>
>>55500222
>framework
>for a single page static site

HTML+CSS+JS no frameworks needed.
>>
>>55503160
Don't make people click the name to see the information. Put a summary in the search results.
>>
>>55506226
Just make 'choice' an array and store the choice for question n in choice[n]
>>
>>55502279
The script might be getting run before the element loads. Try putting it in the footer if it's not already.
>>
is it worth learning node.js, PHP or both?
>>
I got an odroid that I want to set up as a local web server to start learning webdev. Do all backends have ARM builds, or is there some specific setup I should go for?
>>
>>55510225
Node.js is a meme that'll die soon, PHP will stay alive for a lot longer.
>>
>>55510225
Node is really comfy. Php is not comfy
>>
>>55493490
Dude get checked for autism please
>>
>>55500222
i use jquery for that
>>
>>55510225
You should know javascript, which node uses, and you can learn the basics of PHP in like 4 hours easy, so there's no reason not to try both, imo. As for which one you should spend a good amount of time with, it depends on what kinds of stuff you want to make. PHP is generally used for more traditional web apps like forums, imageboards, etc and node is used more for SPAs and shit.

>>55510290
also seconding this, node confirmed for comfy, PHP confirmed for not comfy. YMMV though.
>>
>>55498256
Use openshift. It's comfy. I have that exact setup. Server for web app. Server for db. Server for scraper
>>
>>55510290
This comfy word is gayer than pink jelly beans
>>
File: zdumienie.png (172 KB, 409x409) Image search: [Google]
zdumienie.png
172 KB, 409x409
>>55510389
>>
hello lads, any idea how best to integrate mongodb with flask? just basic post-get stuff..
>>
>>55510481
Don't use Mongodb
>>
>>55510494
unfortunately im restricted to this DB for what i'm doing
>>
>>55510619
Kill the retard who made the decision.
>>
File: 1467479108954.jpg (303 KB, 1135x1751) Image search: [Google]
1467479108954.jpg
303 KB, 1135x1751
>>55506247
>learning node from books
oh man dont do it, its all outdated
>>
>>55510384
how much is it costing you for your stuff? looks like it relies on you containerising your app as docker instances, is that right?
>>
>>55511124
Yea. It costs me $0. To update code I just git push. Very comfy.
>>
File: Selection_005.png (33 KB, 1207x114) Image search: [Google]
Selection_005.png
33 KB, 1207x114
Fuck CSS.
>>
>>55511143
>to update code I just git push
This is what I want but I think I can set it up manually with some git hooks.

I'll be honest I have 0 experience with docker or RHEL so need to look into properly.
>>
>>55511416
>git hooks
Jenkins.
>>
I want to write a simple text editor in python, but I have no idea where to start. Should I use curses or tkinter?
>>
>>55512266
Sorry I just realized I posted this in the wrong thread.
>>
>>55511313
ok
>>
in SQL is it possible to automatically update a date/time field whenever the data in that row is updated?
>>
>>55513262
Yes. How you go about doing it depends on what database you're using.
>>
>>55513470
Using MySQL. I've been searching but so far it says thats not possible without manually generating the time and inserting it.
>>
>>55512306
>>55511313
By the way, if anyone ends with a similar tab set, you should probably use
<meta name="viewport" content="initial-scale=1" />
>>
>>55513645
>if anyone ends with a similar tab set

What?
>>
>>55513559
https://dev.mysql.com/doc/refman/5.6/en/timestamp-initialization.html
>>
>>55497700
>not a CRUD app

Everything is CRUD.
>>
I wanna make a website like grailed.com or ebay where it's an online market vending place. What should I learn? Currently learning basics of ruby on rails, javascript and html/css.

Is there something specific I should focus on?
>>
>>55513776
Bless you.
>>
Any angular lads out here?

At the moment I have a plain javascript/electron app that uses modules and networking

Basically I'm listening for some data to arrive and when it does I call a certain method in all of the modules and it looks like this

//create connection
var con = net.connect({...})

//an array that contains a bunch of modules which are just objects with certain functions..
var modules = [{...}, {...}, {...}, ...]

//add a listener
con.on('update', function(data){

//call update function in all modules when update event is fired
modules.forEach(function(module){
module.update(data);
})
})


Is something like this possible with angular? afaik there is no way to call a function of an angular module simply because that would defy the purpose of angular (have an isolated container) so I'd have to create a bunch of new connections or a bunch of new event listeners inside controllers and directives whenever I'd want to use them but that seems redundant and a bad practice in general
>>
Any self taught developers here? I am teaching myself web development and am wondering if it's possible to get a job as a self taught developer without any related degree.
>>
>>55514438
yes
>>
>>55514530
Where do I look if there's no programming jobs around me? Can I start as a freelancer or remotely from home?
>>
I'm using TinyMCE to provide a WYSIWYG editor for our custom markup code as well as jquery-textcomplete to add mentions & emoji completions. While these libraries work as intended when used separately, I ran into a problem when combining them. Basically when I attempt to submit the auto completion with keyboard the library spergs out and does not handle the key event properly however it works fine when I autocomplete with the mouse. From my understanding both libraries handle the key event and TinyMCE adds a newline, effectively invalidating the cursor that jquery-textcomplete needs and thus why it doesn't work. I'm not sure how to tackle this issue at this point and it's something I've been delaying because I have no idea how to fix it. Any directions would be appreciated.

>>55513880
You're on the right track. The only piece of the puzzle you're missing is the datatabase, so you should also learn SQL (MySQL and Postgres will both be fine) and whatever RoR provides to interact with those (would be nice if you could find an ORM library with it as well, it will ease the work).

>>55514326
Wouldn't you need something like Redux except for Angular?
>>
>>55514550
move somewhere where there are jobs.
>>
>>55514550
you can start as a freelancer, get a portfolio, then apply for remote jobs.
>>
>>55514550
Where are you located at? Either do remote work (difficult to get clients if you don't already have connections in the industry), go after local small businesses (hit or miss, and expect to deal with a lot of bullshit), or look into moving within range of $localPopulationCenter.
>>
>>55514594
Was thinking of doing this, thanks.
>>
>>55514550
http://weworkremotely.com try your luck here. I've been rejected so many times that I've given up on this site, but then again I'm not American so you'll probably have better luck than I did.
>>
File: Capture.png (6 KB, 506x315) Image search: [Google]
Capture.png
6 KB, 506x315
Is this some sort of new-age hipster web dev tier question people like to ask when hiring?
All the other questions are standard, then I get to this...
>>
How do I get a fundamental understanding of CSS? Sure, I can look up how to do something on Google, but I want to know how CSS works so I can just figure this stuff out on my own, if I ever have to do something more complicated
>>
so I converted all my variables to a json file how do I call them in the main file?
>>
>>55515065
You're in a desert walking along in the sand when all of the sudden you look down, and you see a tortoise, it's crawling toward you. You reach down, you flip the tortoise over on it's back. The tortoise lays on it's back, it's belly baking in the hot sun, beating it's legs trying to turn it'self over, but it can't, not without your help. But you're not helping. Why is that?
>>
>>55515231
ajax GET request on the .json, then use it as a normal js object
>>
>>55515323

Because if I save it I won't have turtle meat for din-dins.
>>
>>55498096
Pic related is a straw man, any code who uses OOP knows that only retards use inheritance over composition.
>>
whats a web dev interview like? will i be able to get a job if ive only taken one class but have been on and off web dev most of my life? what should i be able to know off the top of my head
>>
>>55515630
Idk man, like, I've never gotten that far before.
>>
what kind of machines/setups are you guys using ?

win/lin/mac ?
>>
>>55517871
Debian in a virtualbox.
>>
I used to develop with wamp on win7 until i switched to php7.0. It turned out wamp is using mod php and in 7.0 for some reason mbstring extension works only with fastcgi. Since i was lazy to look into the subject i just made an 50gb ext3 partition and installed loonix on it, then set up the same dev environment i got used to and ran php in fastcgi mode. All hail loonix!!!!
Opinions?
>>
Hello /g/entles, at the moment Iam writing my own site in just HTML and CSS, without JS and all the other shit. I have done now a responsive desktop version which starts by mind-width: 1024px until "openend". Now I wanna start to make a tablet and a mobile version for all the stuff under 1024px. How I can start with that, Iam a little bit confused. Any tips or helpful webseites?
Is ist necessary to have a database in the background when I finished the site and bring that on my webserver? No JS, no PHP, no database? Just HTML and CSS.
The last question is because security. Is there any point of security in HTML or CSS which I have to notice?
>>
File: 1450875537238.jpg (42 KB, 418x467) Image search: [Google]
1450875537238.jpg
42 KB, 418x467
>>55517871
Linux because it's so much comfier than Windows.
>>
File: 1467848835687.jpg (84 KB, 750x725) Image search: [Google]
1467848835687.jpg
84 KB, 750x725
>reading about graphs, graph theory, adjacency lists, etc.

I know it's newbie material, but I'm in love. My autismo brain loves this stuff.
>>
>>55518889
ur fukt cunt
take the time to learn Javascript
>>
>>55519527
You too? I had some kind of mathematical orgasm when I understood graphs as some kind of fundamental data structure.

And then I started looking at hypergraphs. And then I read a paper that defined them in category theoretical terms.
>>
>>55519550
I'm not even going to google any of that because I will stay up even longer tonight.

I think we're very lucky to enjoy all this, anon.
>>
>>55519579
Let me summarize it then.

Hypergraph = H = (V, E, f)
V are vertices, E are edges, and f are mappings from E to V.

http://math.stackexchange.com/a/1303445

Now this is all in my head but... Why are edges distinct from vertices? Why can't edges point at other edges?

What if we make a graph where H = (X, f) where X = V U E ?

What sort of hell have I unleashed here
>>
>>55519622
It's beautiful
>>
>>55519541
best answer so much information, are you an autism fgt? Name me one reason to use JS on the site, srsly?
>>
>>55519643
Wait so if I have a set of X, and arrows f : X -> X, isn't this just category theory itself?

So is these hypergraphs the simplest, most fundamental data structure above category theory?
>>
>>55517871
Ubuntu with Openbox. Would be using Debian, if not for amdgpu support.
>>
>>55517871
Ubuntu on my laptop.
>>
File: 1365377486235.jpg (40 KB, 490x490) Image search: [Google]
1365377486235.jpg
40 KB, 490x490
>unironically ADHD
>cant force myself to learn enough to actually use practically
I got myself hyperfocused few times and it was amazing. Now I want to cry.
>>
>>55520700
Take lisdexamphetamine fucko. Not kidding.
>>
>>55520700
I also feel like crying

nice digits btw
>>
>>55520760
Only methylphenidates in my country, tested Concerta, didn't help one bit.
>>
>>55518729
Use a virtual machine
>>
>>55520800
Those are shit. You need real meds.

If it doesn't work, you also have humor disorder that you need to treat. Take some antidepressants.

Fuck just talk to your doctor.
>>
>>55518889
>without JS and all the other shit
If you're just doing it as a hobby...whatever I guess, but you need js skills to be a modern web dev. Plus it's comfy.

>I have done now a responsive desktop version which starts by mind-width: 1024px until "openend". Now I wanna start to make a tablet and a mobile version for all the stuff under 1024px

Best practice is usually "mobile first" fyi. As in, design the site for phones and shit first, and progressively make it fancier with media queries.

>Any tips or helpful webseites?
use a css framwork or implement your own grid system. There are tons of em that don't have as much baggage as bootstrap. Makes things a lot better in the long run.

>Is ist necessary to have a database in the background when I finished the site and bring that on my webserver?

Not unless you plan on storing / retrieving stuff from a db, no. In fact, if it's all static files, you can host it on github pages for free, fyi.

>Is there any point of security in HTML or CSS which I have to notice?

No, not really. Keep in mind everything in your htdocs / www / public / whatever folder is potentially visible to the public, so don't put anything stupid in there. Other than that, HTML / CSS are just markup, they don't do data processing really, so it's pretty safe.
>>
>>55520827
I hardly feel depressed, because I think I just get distracted by happy thoughts, on Concerta I do feel depressed though.

>talk to your doctor.
I'm in Iceland, my appointment (not just one, it's probably going to be chain) is estimated in over a year from now. That's how horrible medical system in this country is. The best I can do is try self-medicate, but so far no luck.
>>
>>55521017
best answer I could get from /g/, thanks mate really.
>>
File: 6T2mfzj.png (435 KB, 542x400) Image search: [Google]
6T2mfzj.png
435 KB, 542x400
Few days ago i posted about apache taking up all the memory on my server. Well i moved my shit to nginx and php-fpm still takes up a lot of memory comparable to what apache was doing. How do i analyze whats going wrong here?
>>
>>55522049
Your PHP scripts are likely leaking memory, because Pajeet. Profile them and find which part is leaking.
>>
>>55498176
Check them, I wouldn't be surprised to find
<input type="UserName" />
>>
>>55522049
Have you configured them to use a small amount of memory? By default they will use as much as possible for better performance
>>
>>55489282
Working from home at the moment.
Was a wagecuck for a large company for 5 years.

I miss my bros and the bantz though.
>>
>finally update site
>tfw its now completely broken on anything other than chrome
>>
Does "code"/"coding"/"coder" trigger anyone else?
>>
>>55523123
Sure.
>>
>>55523123
Sorry, I don't have autism.
>>
File: angularjs was a mistake.jpg (133 KB, 1500x1000) Image search: [Google]
angularjs was a mistake.jpg
133 KB, 1500x1000
This is how I feel today.
>>
>>55523240
It's broader than that, javascript as a whole was a mistake.

node js was a disaster.
>>
Is there a way to import an es5 module that has the "with" statement on an es6 proyect without errors? I am having problems that babel throws an error everytime i try to import that es5 module
>>
>>55523123
'coding' is shorter than 'programming', and thus more efficient.
>>
>>55523331
with is deprecated and for good reason. You need to patch that ES5 module to not use with.
>>
Trying to learn php. What's a good starter project get the fundamentals down?
>>
I normally use JS for all my web stuff, but do you think it is a good idea to learn Go? If so, where do you recommend I start?
>>
>>55523547
Connect a MySQL database. Then execute Write, read, and update statements. This will give you great experience that a lot of people are looking for!
>>
>>55523547
Make a to-do list application. Sounds lame as fuck but at least you'll get the hand of pushing and pulling data from the database.
Either that or make a simple forum (pls no more imageboards).
>>
>>55523652
What's wrong with making imageboards? As long as they aren't in PHP.
>>
>>55523547
<?php
echo "hello world";
?>


Getting php up and running is half the battle.
>>
>>55523620
Go ahead. Being quick to learn was one of the language's design goals. Start with the official tour https://tour.golang.org
>>
>>55523673
>As long as they aren't in PHP

He...he's making a project in PHP.
Plus I've been posting in these threads for at least a year and 80% of the personal projects people come up with are imageboards, at least half of them are shitty af.
>>
>>55523715
This is awesome. Thank you!
>>
>>55523336
i bt u fnd dis sentence mor efficient 2

ya dis is wat 'coding' feels lyk
>>
>>55523675
>INSTALL XAMPP
Whew that was hard
>>
>>55522049
>finds memory leak
>randomly blames the webserver, not the webapp
you couldn't run "top" or something?
>>
>>55522477
of course but even then it uses that amount of memory and requests starting timing out even though there isn't that much traffic.
>>
>>55497700
>Java is fast, high level, easy to develop, and huge community of open source software written in Java.
>Why is Java bad again?
high memory usage, difficult to

>Go... haven't used Go. Primarily don't use it because it is too new and a meme language.
Go is too new, yet it's superior to Java when it comes to network services. Go is very fast, mostly safe, has a great toolkit, not OOP, supports concurrency, high level, very easy to develop, and has a huge community of open source software.
go read some benchmarks, you'll be surprised.
see >>55523715 to start learning it
>>
>>55524349
>difficult to
*deploy...
>>
Did Github change fonts today? Looks slightly different, if I'm not mistaken
>>
>>55525204
Seriously, only UX/UI faggots will know this shit.
>>
What's the difference between

var str = new String("string")

and

var str = "string"
>>
>>55526110
new String creates an object where you can append properties.
the other one is just a string.
>>
>>55526110
One is a String object, the other is a string literal. You should almost never use the former.
>>
>>55523547
I'd second that,
i'm trying some tutorials to get to know stuff,
but don't know in what to invest my future knowledge.
>>
Has anyone here used uberspace? https://uberspace.de/

It's a German shared server hoster. They call themselves "web hosting for command line enthusiasts" and you pay whatever you want but at least 1 Euro a month. They support python, ruby, node, erlang and some other stuff.

It sounds too good to be true but I haven't found anything wrong with it yet.
>>
>>55498053
LOOKS VERY MATERIAL
VERY MEDIA FOCUSED
I LOVE IT
>>
Tempted to build a text-based game, but then I remembered while I can technically do so, my writing is shit

the struggle
>>
>>55526447
What are the bandwidth/CPU limits? That's probably where the issue is.

Compare it with https://www.arubacloud.com/ for example.
>>
>>55526537
Build the engine/logic and then go ask around for a writer, I'm sure you can find someone decent that would work with you.
>>
I don't visit these threads but I just read the OP.

>scaleway
>almost twice the resources for half the price compared to DO
What's the catch?
>>
>>55526603
actually that just gave me another related idea, thanks anon
>>
>>55526634
one is eu focused and the other is na focused
>>
>>55526637
I want 10% when you become a billionaire.
>>
>>55526725
How does that make a difference?
>>
>>55526634
Scaleway has networked storage also.
>>
>>55526745
because depending on the region they operate they go through different systems, and some of these systems are obstacles that raise costs.

in addition, scaleway literally refuses to display any other forms of currency
>>
>>55526587
They say if your bandwidth is more than 100GB per month, shared hosting is not right for you and they suggest a different plan. But there's no limit on cpu or ram. It all seems like a trust based system. Unless your app bogs down the whole server you can do whatever you want and it scales accordingly.
>>
>>55526785
I'm from Europe, my droplets are hosted in NL.

Couldn't care less about currencies but I just refuse to believe that this much of a difference comes without some sort of a catch.
>>
>>55526793
Sounds like a waste to me, but maybe if you're just running very small stuff it could work.
>>
>>55526831
Then just contact them m8, I don't see what the big deal is.
>>
>JavaScript automatically converts primitives to String objects, so that it's possible to use String object methods for primitive strings. In contexts where a method is to be invoked on a primitive string or a property lookup occurs, JavaScript will automatically wrap the string primitive and call the method or perform the property lookup.

So they're both pretty much the same thing?
>>
Is spider or scraper developing considered webdev experience?
>>
>>55526985
If it's written in a language used for web development I'd say yes.
>>
>>55525204
I happened to have an old tab open, looks like they switched to segoe ui from helvetica neue according to a quick glance at the css
>>
Need some guidance when it comes to databases, mysql specifically. What is the most optimized and correct way of doing things?

Lets say im doing a database for a callcenter. To keep things simple, lets say i have a table called "people". Each row is a person (name, phone number etc), that needs to be called. There are different states a "person" can be in: Not called, Call again, Yes, No (buy or not buy).

My question is: When a person's state changes, should i simply change the field and keep the row in the same table, OR should i "move" the row into a separate table, such as a "Yes" table or "No" table (so each state has its own table).

Lets also say that every week, we add another 5 thousand people to the database, so after just a few months there are over 100.000 people on it. With this in mind, what is the most optimized and correct way of doing things? At what point does Mysql shit itself, and at what point do queries become slow?
>>
>>55526836
Unless you're sharing massive files I don't see how a webapp could use 100gb a month even with thousands of active users
>>
How slow are Node servers compared to others?
>>
>>55527120
100000 is nothing. you can start sweating with a few hundred million rows.
I'd keep the people in one table and the status in another one, so you can keep a history of when a status changed.
you could keep the current status in the people table as well to avoid having to join.
>>
>>55520700
I know that feel, bro. I have wasted two months on nothing. ;_;
>>
>>55524225
well but then you have to... no wait
>>
>>55526946
I think string literals are more readily optimised in modern JS engines, but from the language spec point of view they are the same.
>>55527284
Faster than any other scripting language servers and on par with Java/C# for most things. Slower than Go/C++.
>>
File: leblackcomputerguyface.jpg (344 KB, 5000x5000) Image search: [Google]
leblackcomputerguyface.jpg
344 KB, 5000x5000
>>55527688
>people still use RoR
>>
File: 123.png (4 KB, 512x101) Image search: [Google]
123.png
4 KB, 512x101
noob here, why doesn't this work?

note: the animate is the problem, since replacing it with fadeOut works.
>>
>>55527284
About same with Java/Asp.net enterprise level with all their overhead when comparing only IO.
>>
>>55528051
http://www.w3schools.com/jquery/eff_animate.asp
>>
>>55528051
Background color is not animatable without plugin. In fact its specifically said so as example in manual. So next time RTFM.
>>
File: 1368430350304.jpg (67 KB, 427x294) Image search: [Google]
1368430350304.jpg
67 KB, 427x294
>tfw phone interview with spotify

I'll never be able to forgive myself when I blow it
>>
>>55528544
what languages do they use?
>>
>>55528966
No clue, the Jobvite tells me exactly nothing about the job itself.

>The technologies you are familiar with are less important to us than your ability to demonstrate practical experience of web application development in its many forms. We want to see what you've done and we want you to tell us why you are proud of it.

Great
>>
What are some good tools to compress images with?
>>
>>55529349
I've had great results with https://pngquant.org/, there's multiple node-wrappers for it too to use in build tools etc.
>>
>>55529349
Photoshop, otherwise whatever image program your language uses, pil, gd, imagemagick etc etc
>>
>>55528544
Time to start loading the gun bruh.
>>
>>55527688
>
EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i


Fuck you.
>>
>>55526985
It's actually much more valuable experience.

>>55526946
JS strings are primitive objects and just like numbers they don't have properties. If you call a method on them, it boxes them into a String object so that property lookup can take place. Look into valueOf.
>>
How do I make my website not display like

http://mysite.com/blog.php?id=5


but instead like

http://mysite.com/blog-post-title-here/


using PHP on Apache?
>>
>>55523299
Node.JS could become good as a development platform if it gets worker threads. As it is right now, you have to fuck yourself backwards in order to do any real computation because of the single threaded event loop.

I checked their repo and it's on their todo list for v7. Let's see.
>>
>>55530239
URL Rewriting.
Thread replies: 255
Thread images: 36

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

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.