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

/wdg/ - Web development general

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

Thread replies: 321
Thread images: 27

File: 1485563967772.png (369KB, 667x448px) Image search: [Google]
1485563967772.png
369KB, 667x448px
>last thread
>>58684130

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

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

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

>Useful Youtube channels
derekbanas
thenewboston
learncodeacademy
funfunfunction
computerphile
codingrainbow

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

>Backend development
https://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks
https://gist.github.com/dypsilon/5819528

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

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

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

>cheap vps hosting in most western locations
https://lowendbox.com
https://www.digitalocean.com/
https://www.linode.com/
https://www.heroku.com/
https://www.leaseweb.com
>>
dear web people,

i am currently trying to get a certain table layout to work.
i NEED my code to be semantically correct, but i also NEED a specific design.

i want to display a table that has the following headers and respective contents: name, address, mail, phone AND items.
every cell is a link that will be styled to display:block. the link MUST "stretch", the whole cell HAS to be clickable.

the items-column MAY contain several infos for each row, these are generated dynamically.
they also HAVE to be style as a block.

however, i cannot specify any widths or heights to absolute numbers.

what i did so far

<style>
table { width:100%; }
a { display:block; padding:1em; }
</style>

<table>
<tr>
<th>name</th>
<th>address</th>
<th>mail</th>
<th>phone</th>
<th>items</th>
</tr>
<tr>
<td><a>Adolf</a></td>
<td><a>Deutsches Reich</a></td>
<td><a>[email protected]</a></td>
<td><a>66666</a></td>
<td>
<ul>
<li><a>Reichskanzler</a></li>
<li><a>Fuehrer</a></li>
</ul>
</td>
</tr>
<tr>
<td><a>Oppenheimer</a></td>
<td><a>Los Alamos</a></td>
<td><a>[email protected]</a></td>
<td><a>800-GET-A-NUKE</a></td>
<td>
<ul>
<li><a>Hiroshima</a></li>
<li><a>Nagasaki</a></li>
</ul>
</td>
</tr>
</table>


the problem is that links within ul li, as they are styled as block, will trigger a linebreak.
how can i stretch the single links within td? actually: how i can i stretch the clickable background of the links?

i dont want to use rowspan as that would mean counting each li, adding trs and then the rowspan attribute to the cells.
i really don't like that solution and i think that it is wrong as the items in the list are very closely related to the row they are in.

is there any JS free solution?
am i blind? is this easy?
should i us a different markup as this is semantically incorrect?
maybe nested lists?
>>
>>58734358
I just woke up and your question is too long.

We generally have a short attention-span here. Post a codepen, simplify, and I'll look at it.
>>
File: 26gsvPhoBYGuA9qso.gif (2MB, 480x338px) Image search: [Google]
26gsvPhoBYGuA9qso.gif
2MB, 480x338px
Tips to increase ad visibility?
>>
>>58734358
>how can i stretch the single links within td?
li {display: inline-block; white-space: nowrap}
>how i can i stretch the clickable background of the links?
padding
>>
>>58735320
http://codepen.io/anon/pen/EZQWYo

i actually made something work - in ff - but not in chromium

>>58735522
>display:inline-block;white-space: nowrap

nope, the li should display in seperate rows, i want them to wrap
>>
>>58735445
kek'd
get off my lawn
>>
>>58734288
Add this to the general:
2017 Front End Developer Handbook (free)
https://www.gitbook.com/book/frontendmasters/front-end-handbook-2017/details
>>
>>58735445
no point in doing that. google would ban you cause too many false clicks
>>
how did you guis get into web developing?
I really wanna but I feel like there is too much stuff too learn...
>>
File: redux.png (213KB, 3440x3109px) Image search: [Google]
redux.png
213KB, 3440x3109px
I have a question about Redux.

I am using react-native-drawer to create a Drawer component (menu on the side). I want it to open when a user presses a button in a sub-component.

Right now I'm using Redux to change the value of a isMenuOpen variable in the state. And then checking that variable in the component's props:

<Drawer
open={state.isMenuOpen}
onClose={actions.close}
content={<HelpApp />}
tapToClose={true} >
<Ionicons.ToolbarAndroid
onIconClicked={actions.open} />
<CounterApp />
</Drawer>


The problem is that it doesn't animate opening it. I suspect it's because I need to call drawer.open() like it says to in the docs.

How do I call this function through Redux?
>>
>>58736460
web development is the final hacking

lots of hipsters try to shove their fugly UX in your face with the help of technology that was created over 25 years ago with the exact opposite in mind: let the user client handle the interface.

everybody wants to make their design work, but they don't work on all devices, on all browsers. that is why you need this so-called
>too much stuff

everyday usable webpages turn into html5 monsters that ironically use JS on desktop browsers to make a page look like it should look on mobiles, which itself actually creep under the heavy load of JS processing just because some stinker wants a fucking hamburger menu.

and still, even with the modern revision of html, you will bugs like >>58735577 :
looks like this in one browser, like that in the other, is completly unusable and broken in a third browser.

the solution? more JS frameworks. fuck it, just at them all, one will magically work.
>>
>>58736460
see this >>58737163
a fucking stinker wants a fucking menu and his fucking framework does not work.
>>
noob question here

how do I align right in Bootstrap?
I have a navbar.

Do I define the <nav> as a container and split it into columns? I'm not sure I understand the whole column split thing.
>>
What's the advantage of using a getter rather than a function in Javascript?

The MDN example is.
var obj = {
log: ['test'],
get latest () {
if (this.log.length == 0) return undefined;
return this.log[this.log.length - 1];
}
}
console.log(obj.latest); // Will return "test".


Other than not having to call latest() is there any reason to do it that way rather than the following way?

var obj = {
log: ['test'],
latest:function latest () {
if (this.log.length == 0) return undefined;
return this.log[this.log.length - 1];
}
}
console.log(obj.latest()); // Will return "test".
>>
why isnt my box on top appearing?
<html>
<head>

<style type="text/css">

#box{width: auto; height: 100px; backgound: linear-gradient(blue,white)}


c{font-size: 70px; color: red; font-weight: bold}


</style>

<title>My page</title>
</head>

<body bgcolor="gray"><br><br>
<div id="box">
</div>

<c>Welcome to my page</c></br>

</body>
</html>
>>
>>58738408

not sure, worked for me

https://jsfiddle.net/ozwr99sq/1/
>>
>>58738486
alright professor couldnt figure it out either. Gues it's this shity conmputer? Cuz not working on any browsers
>>
>>58738408
><c>
i've been a web dev for years but never heard of this c tag
>>
>>58738530

lol oh you spelled background wrong
>>
>>58738564
wait hold on are you trying to create your own tag?
>>
>>58738577
fuck. Thank you
>>
What's the difference between using <style> and <link> for CSS?
The material I'm reading introduced CSS using <link>, but now is saying to apply it to a document you need you declare it in the head with <style>?
>>
>>58739280
You put your css between style tags like this:
<style>
div {
font-size: 70px;
color: red;
font-weight: bold
}
</style>

You use link to use an external style sheet, that is, a style sheet stored in its own file.
<link rel="stylesheet" type="text/css" href="/css/main.css" />

The advantage of using link is that you don't have to copy your css into every single one of your files, and in case you want to change it, you can just change the contents of your .css file, instead of having to update every single html file with <style> tags in it.
>>
>>58739350
So to apply specific style to a particular document, use <style>
and to apply the same style to the entire site use <link>?
>>
>>58739379
Yes, exactly, but of course if you want to apply it to your entire site, you have to <link> your .css file in every one of your html files.
>>
>>58739409
Okay, thanks!
>>
What's a good a host for making a shitty site to show off to employers?
>>
Just starting here. Should I go through these series of videos as a beginner, or start elsewhere?

https://www.youtube.com/watch?v=3JluqTojuME&index=1&list=PLoYCgNOIyGAB_8_iq1cL8MVeun7cB6eNc
>>
>>58735445

do floating ads on the side of the screen (can be closed)
fixed on the bottom of screen and slides up (can slide down on click)
put an horizontal banner besides the logo
boxed-type on the sidebar
and do a modal-type ad on the bottom of the content

dont push for ad visibility especially above the fold because google will penalize you for it.
>>
>looking at windows 98 styled website
>2000+ line css
wew lads wish me luck
>>
>>58740409
I use linode
>>
>>58740409
Dynamic? Buy an el cheapo VPS at http://www.lowendbox.com/.
Static? GitHub.
>>
What's the best way to cache data and then be able to read and write to it frequently? Need to persist large API calls on backend while sending realtime data to client...and using that realtime data to update the cached stuff in the backend
>>
>>58744477

im new to devv'ing so forgive me but why not just use a database?
>>
I'm just now learning about EL in jsps because I'm a mongoloid. What's a good resource to learn about this shit?
>>
Shit looks like 2000hrs long, is it any good? Aspiring web dev here with almost no background besides very basic JavaScript
>>
>>58744525
Just started on jQuery myself. It's been fine so far, though a bit "hand holdy"

You won't know until you try it tho, so fucking do it already.
>>
>>58744615
How does it compare to paid courses like udemy, teamtreehouse etcetera?
>>
>>58744635
never tried them. freecodecamp seems to be fine for web development so far though. someone with more experience will prove me wrong though.
>>
>>58744489
Been thinking about it but Firebase is expensive and I don't know that Rethinkdb fits the usecase well.
My team is thinking of using Redis but I don't know if it can handle the frequent read and writes.
Highest amount of data we're imagining right now is 10-20 messages per second, per client
>>
How the fuck do I add ckeditor to a MEAN stack app.
I don't want to just do a script include from their website, I want it hosted on my server. Because image uploads don't work otherwise.
i know it can be done, I've seen others do it...but after 5 hours of shouting I still can't fucking do it.
>>
>>58744728
haha I was coming here after pulling my hair out about why the most simplest shit in socket.io won't work with my flask app.
I've seen every other tutorial and guide do it but fuck me.
Man, is all webdev this painful and slow?
Glad I'm not alone.

>kek'd out loud
>>
>>58744728

>MEAN stack

you mean the MEME stack?
>>
is it the front end or back end that tells the browser what to do for each url like /something, /lol, /ayy, /lmao, etc?
>>
>>58744477
Redis
>>
>>58745159
backend gets user request or post and then from there sends back the correct page.
>>
>>58745510

so why does react and angular have routing then? thats front end
>>
>>58745527
Honestly couldn't tell you. Never used either one.
It could be similar to forms where you give an action of where you basically want the data to be sent.

Take my words with a grain of salt though.
>>
can someone please, test my site?

http://ladys.com.ar/
>>
>>58746036

nice. what did you use? the only thing i can think of is making the transitions/fades faster
>>
>>58746089 Javascript (just basic scripts that hide or show a div), bootstrap and animated.css! thanks haha, i thought the same.
>>
>>58746036

I really hate full screen videos. Kinda distracting. Just make the logo stand out because when I got into the site, I wanted to watch the video rather than see what you have on that site. Just my say.
>>
In JavaScript, what's the best way to run a sequential loop with asynchronous function calls in it?
>>
Any good hosting providers apart from namecheap?
>>
>>58747584
Promises ?

>>58747672
Digital Ocean. Namecheap & GoDaddy are only good for domain registrars.
>>
>>58741491
do anything, look at everything, finish any video series, then look for another, or look for books or tutorial sites, after a short while things will repeat themselves and you start getting the bigger picture and then it gets easier because you stop questioning if the particular tutorial youre following at the moment is the best for you at this exact moment.
>>
hej ale to je dobré :DD>>58735445
>>
>>58747738
How would someone still make the loop synchronous, so that it waits till the async task finishes before continuing?

I'm really just trying to prevent 1000 async tasks from happening at once.

for {
downloadFile(file[i]).then(processFile).then(addToDb).then(logResults)
}
>>
File: ladys.png (708KB, 850x537px) Image search: [Google]
ladys.png
708KB, 850x537px
>>58746036
>http://ladys.com.ar/
weird green background when video doesn't cover the whole screen
>>
>>58747982
The video does actually cover the whole screen, you can see it behind the green thing, btw, I have that too in my browser (chrome 56 on linux).

>>58746036
You should make the text of the links and other shit unselectable.
>>
Using Cheerio I want to get links on a page that has a date in the link name (eg: 2016-02-01). How do I do this? Do I have to use regex or does Cheerio have some function for this?
>>
>>58748121
I'd just loop through every a link and check against the attribute if it matches regex for a date
>>
>>58748032
>You should make the text of the links and other shit unselectable.
why should he do that ?
>>
>>58748369
Basically, if something functions as a button, it shouldn't be selectable, because if it's selectable, it will be selected accidentally, and that looks ugly. And it's not like anyone would ever like to copy the text of a button, so you're not losing any functionality. To be clear, I wasn't talking about actaul text, just the images and the "buttons".
>>
GET TO WORK NOW BAKA!!
>>
I'm not a web developer but I thought this thread would be the best to ask in. Is "cc-web" a real web server or is it another web server spoofing its name? I've seen some pages identify themselves as that but no amount of google search can find a page for it.
>>
>>58749474
I tried googling too, couldn't find anything. Could you link one of the websites here?
>>
File: web-developer.jpg (109KB, 875x484px) Image search: [Google]
web-developer.jpg
109KB, 875x484px
I don't know what to do with my life I need your help guys
Can I learn by my self web development and earn a living with it?
or I will be forever poor?
I don't know nothing about computers :(
html5?
>>
>>58749603
you can learn by yourself skills that'll make you employable, make some demos to prove you're not a pajeet and get employed
>>
>>58749603
I think it's definitely one of the easier skills to self learn, my mate basically self learned most of the web shit he knows, although he started by going to a short web-dev course. Html 5 is just the latest version of the html standard, it's not black magic.
>>
>>58749644
>>58749673
I fear that later I will not be able to find a job after the efort of learning web development, am I wrong?
>>
>>58749720
I don't know, since I haven't been employed yet, but you can definitely benefit from learning a skill now later down the line, like in 5-10 years, and you seem dissatisfied with your current job. So the real question isn't if you should learn webdev, but what you should learn, if not web development.
>>
>>58749766
The only thing that I know that I can learn online by myself from the internet and free that COULD give me a job in the future is web development, I don't know other thing available
>>
I will be waiting for advices
>>
>>58749859
>freelancing
>day trading
>adult cam
>search engine evaluation
>captcha solving
All of those are legal and you can do 100% on the internet.
>>
Noobie here.

A person is asking me to build a website for him.
I already found a nice bootstrap theme to modify and such and he seems happy with the work so far.

Still, I don't know if I'm missing something, nor what kind of hosting or webserver I should use.

Keep in mind that the website is a blog and he wants to expand it in the future with a forum or something similar.

Any tips?
>>
>>58750621
make sure there is some sort of CMS behind it so he can do updates himself, something like wordpress

unless you aren't bothered that he'll bug you for the next 5 years to change shit for him
>>
>>58750631
Should I write one myself or is there something free online I can use with Bootstrap?
>>
>>58750735
i haven't used bootstrap in a few years so i don't know if they added anything
i actually only just started back getting into webdev today, but i always heard that writing your own CMS is kinda hard, but if you feel confident about it sure

i think the easiest way to do things is probably use Wordpress and then find a theme that suits your needs
>>
Can someone knowledgable tell me what's wrong with the following query?

$query2 = $db->prepare('SELECT * FROM numbers LIMIT :offset, :rowsperpage');
$query2->bindParam(':offset', $offset);
$query2->bindParam(':rowsperpage', $rowsperpage);
$query2->execute();
>>
>>58744724
>10-20 messages per second, per client
websocket mate
>>
>>58750756
whats the error
>>
>>58737266
<nav class="pull-right">
>>
>>58750753
Yeah just looked into it, definitely not going to build a CMS from scratch. Might use something like CouchCMS or Wordpress if he's down to paying a monthly subscription.

Thanks for your help.
>>
>>58751027
dude no need to pay monthly subscription for wordpress
just take flat fee for setting the site up and customizing it for him, let him pay for hosting
then take additional money everytime he wants you to install new stuff or make updates but otherwise he's good to go
>>
>>58751084
Well I misread on the Wordpress site, thought I had to pay to use it but I can just download the whole thing and use it however I want.
Thanks again, sounds like a good idea.
>>
>>58751173
ye just install it on your local dev machine and fuck around with it
>>
anyone had a problem, that your server just stopped giving you access to it ?
i have a git repo on my server and when i tried to fetch it just stopped and no response, then i tried to ssh and it gave me message "permisssion denied", then i went on my VPS provider site and log in as a root from their browser bash and it all worked, purged openssh and installed again, now it's working...
anyone got any idea why this happened ?
>>
>>58750756

are you fetching the data...? this won't do anything by itself
>>
any decent books out there for front end web design?
>>
which text editor do you guys use
>>
>>58752352
VS Code, GNU Nano
>>
>>58744724
Your case sounds like what Memcached and Redis were built for, as long as you don't need to persist the data do disk. They're both fast to read _and_ write. If you go looking for benchmarks, though, keep this in: http://oldblog.antirez.com/post/redis-memcached-benchmark.html.

As for RethinkDB, you should ask their forum.
>>
>>58752352
Sublime Text, Vim
>>
>>58750353
>freelancing
Doing web development is it posible?
>day trading
I need minimum a year of salary to be able to do this and it is impossible to beat the market
>adult cam
Discarted
>search engine evaluation
I dont know what it is I will do a research thanks
>captcha solving
I dont know what it is I will do a research thanks

And I can earn a living doing any of these?
>>
>>58734288
Hο
>>
>>58752352
geany
>>
Using Spring. I have a rest controller. I have several required params for one method, and would like to accept an arbitrary number of params besides those.

Is there an easy way to do this? I tried just listing the @RequestParams that I required, and then at the end having a @RequestParams Map<String, String> (a catch-all map that takes arbitrary params), but the map contained all params, even the ones I listed explicitly.
>>
>>58754263
If you know what parameters to expect you can mark them as optional with java8 syntax like so
@RequestParam("name") Optional<String> username,


If parameters are unknown just put everything into a map and process everything from there
>>
>>58754492
thanks anon. btw you can do the same thing with
@RequestParam(value = "name", required = false) String name


looks like i have no choice but to do something messy with a map though
>>
>>58754545
why do you want to keep track of unknown parameters ?
>>
>>58754653
i have some methods that list my database objects in an admin interface. i'm putting a filter on many fields, and they'll all use the same type of query for filtering. it would save a lot of code if instead of listing every single field as a parameter, i could just get a map and loop through it to apply all filters.
>>
MongoDB or CouchDB for a chat/twitter-like application?
>>
>>58756340
Use MongoDB, it's web scale after all. https://www.youtube.com/watch?v=b2F-DItXtZs
>>
>>58756340
Cassandra
>>
>>58756376
nice meme
>>
>>58752663
Please respond
>>
I've been working on customizing flask-security forms. So far I can get them to display and overwrite them.
However what do I use as my action for the register forms?
Do I still use url_for_security('register') ?
Or do I have to somehow manually register users now?

Any advice or tips would be amazing right now.
>>
>>58752663
>>58756668
You can make a living freelancing but it will be difficult without experience and connections.
>>
>>58757271
> and connections
How indians persons can work from the India and export their services (web development) if they start their freelance web developmenr carrier without any conection?
>>
File: 56806287.png (19KB, 180x197px) Image search: [Google]
56806287.png
19KB, 180x197px
Laravel for the api and vue for everything else is literally perfection.
>>
Interview tomorrow. Entry level. They're looking for the holy trinity and some .net
I don't have any experience with .net and I guess there's no point in lying to them about that.

The interview was offered to me short notice today during my lunch break and I just got off work so I haven't had any time to study.

This is just the first interview, 30 minutes or so in length. I imagine it's going to be the whole "where do you see yourself in x years?", previous job stuffs, etc...

What kind of stuff do I need to brush up on for an entry level position /g/entlemen?
>>
So I bought a domain on namecheap and I set the DNS to Amazon Route53. I've got A records pointing to an elastic IP, associated with an EC2 server.

How the hell long does it take for this to work?
Will it even work?
>>
>>58758239
just run though some things you think you need practice on

how long have you been coding?
>>
File: 192473-dogs-bored-looking-puppy.jpg (148KB, 1920x1200px) Image search: [Google]
192473-dogs-bored-looking-puppy.jpg
148KB, 1920x1200px
>>58758417
I finished school last May and essentially had to relearn everything and fill in the gaps because the curriculum was so fucking awful.

I really fucked up with that school program, got high marks and all I just never noticed how far behind they were until it was too late to turn back.

I got a 2 year degree in Design but for coding I'd put myself at the level of about a year in or so with basic javascript.
>>
>>58758543
Not that guy, but if you were heading for a track outside web development, I'd be able to help you, but unfortunately I'm simply shitting around web dev here and there for class assignments involving web servers.

If you're interested in things other than web development, or if the job implies expansion into fields other than web development, I can tell you what to read.
>>
>>58758040
Is it easy to handle authentication and authorization in vue?
>>
>>58758691
Why would you want to do that client side?
>>
>>58758592
I used to do helpdesk but got burnt out. what kind of stuff are you into anon? I'm only focused on web dev because it's somewhat in the area I studied in school.
>>
I made a hate site for my congresswoman

http://barbcomstock.com/
>>
>>58758763
I don't know.

I mean, if I need to display the logged in user data somewhere in Vue, I would imagine some form of authentication must be implemented.
>>
>>58758810
Officially I do ``cloud'', but I'm really a traditional programmer. I do algorithms and machine learning.
Understanding how to program is merely considered a drop in the bucket and is taken as a given.

Our real jobs are to have a strong understanding of data structures and algorithms, to be familiar with multiple threads of execution and synchronization, and of course understand the basic concepts of software engineering--design patterns, testing and such.

``Cloud'' as it happens, implies a basic understanding of databases (relational, nosql, either is fine but you need to know at least one), an understanding of telecommunications (encompasses the entire process that occurs between communication between an end-user and a web server), and nowadays machine learning and data science.
>>
>>58758858
Or you can just show it in the navbar with blade?
>>
File: 1479396066300.jpg (43KB, 535x225px) Image search: [Google]
1479396066300.jpg
43KB, 535x225px
>>58758883
Are there any books you could recommend to get me into those subjects?

My biggest problem is right now that I have a basic understanding of how to write the code in JS and PHP but I don't really know what to do with it. My school honestly had us follow projects out of a book, almost copy and paste.

I don't really understand the steps to take to create a project... I feel like I'm pretty fucked.
>>
File: i hope this is wrong.png (19KB, 450x450px) Image search: [Google]
i hope this is wrong.png
19KB, 450x450px
>>58758961
But then what's the point of using Vue or other js framework if you're still in direct contact with the backend?

I've never used a front end framework so I'm trying to understand here, but it sounds like the workflow is something like pic related.

At that point it just adds complexity rather than anything else.
>>
File: 1438558516540.jpg (611KB, 1600x1200px) Image search: [Google]
1438558516540.jpg
611KB, 1600x1200px
currently i know PHP and i'm looking for something else to learn that i can do backend with, so i have some question

right know i have node in mind but reading this board is giving me second thoughts

am i been memed by node haters?
is it worth to learn it?
should i stick to PHP and just learn some framework?
what else can i learn for backend that is worth it?
>>
>>58759001
You don't need to understand how to create an application from start to finish. In a job environment, more senior engineers will decide this for you. And then you'll learn by watching.

To think like a more traditional programmer, you'll want to adopt a more traditional language. One with static typing, (more) explicit casting, and with an entry point.
Web programming can be confusing for a start because it lacks these things, and immediately throws people into asynchronous programming with lots of shit and callbacks going on at the same time.

Try any one of these languages: C++, C#, Java, Python.
Pick up the book Introduction to Algorithms by Carmen et al. Another option is Algorithms by Vazirani. Reproduce the data structures and algorithms in the book from scratch using one of the languages.

There are other things you should learn (computer architecture, multithreading and synchronization, databases), but I don't have any definitive books for that. Try asking /dpt/. Maybe they can help.
After you've learned those topics, you should read a book called Programming Language Pragmatics. It will teach you why and how programming languages are designed the way they are. From it, you will learn and understand how to leverage functional and declarative paradigms in your everyday programs, and have a better intuition on how to design and architect your programs.

Unfortunately I also don't have any books for networks and software engineering. You'll have to ask /dpt/ or something for that.

By the time you've finished Cormen's or Vazirani's book, you'll have a good understanding of programming. Once you finish PLP, you'll have an excellent understanding of programming.

For Machine Learning, you should take Andrew Ng's Coursera course on machine learning.
>>
>>58756340
Riak. Or just plain PostgreSQL.
>>
>>58759134
wow thanks for taking the time to write up all of that anon. I really appreciate it sir and sorry for the late response. Hope you see me thanking you.
>>
>>58758239
>holy trinity
HMTL/CSS/Javascript?
>>
>>58760125
yes sir.
>>
File: serveimage.png (44KB, 658x662px) Image search: [Google]
serveimage.png
44KB, 658x662px
I want to start making an imageboard software in golang. I pirated a few different webdev textbooks for golang, but none of them seem to really discuss the basics. I'm not connecting the dots between creating a struct named "post," and then getting it working with a posting form in an html file.

Anyone know some reading material for complete retard noobs like me?
>>
>>58760281

hmmm Go is pretty close to C, might not be best for beginners. Try PHP...and the struct is most likely for handling the data you get from the form
>>
>>58760340
I've done intro courses to C++ and Java. The syntax isn't too confusing, but I can't conceptualize the structure of the server and shit like that. Like what is a handler? What is the most barebones, step-by-step way to create an HTML page that lets me send text to the server, and then put the text into an instance of MariaDB? That kind of thing. I can't find videos or textbooks that tackle it that way. The textbook "Web Development In Go" seems to have these topics, but it's pretty in-depth.

I'm just not interested in working with PHP, everything I read about it sounds awful.
>>
>>58760441

nah, cloud services are written in PHP. It does the job just fine. Your most likely being shilled by javascript start up fags.
>>
>STILL haven't started learning anything
>>
>>58760481
I know even Facebook was written in PHP, but the fact is that they had to create a c++ transpiler for it. All the big imageboard software is written in PHP and it's slow as shit. And the "fractal of bad design" blog post is pretty convincing.
>>
>>58760603

well dude when your app is getting as much hits and sessions as fb does.....yeah you'll need the best language of all time ((((C++))))
>>
>>58760618
again, tinyboard and infinity (and similar software) are slow as shit. I know part of it is just because they're badly made, but part of it is also PHP being shitty and also encouraging bad code.
>>
>>58760661

>languages never update or improve they just stay the same forever and ever

lel, you have no idea about 7.0 then
>>
>>58760691
OK, do you have an article or explanation for how PHP7 solves all the old problems? I doubt it does.
>>
>>58760717

what problems? its had tight security since 5.0, and 7.0 made it a lot faster. you're not (((actually))) saying that javascript for your back end is better are (((you)))?
>>
>>58760776
OK, since you're just outright shitposting, I'm gonna assume you're a Pajeet.

>you're not (((actually))) saying that javascript for your back end is better are (((you)))?
Actually, I'm saying golang is better for backend, which literally nobody with an IQ above 100 will dispute.
>>
>>58760794

GoLang has nowhere near the features python, php, .net have. It's powerful, though.
>>
File: ty_mummy_for_tendies.gif (1MB, 326x256px) Image search: [Google]
ty_mummy_for_tendies.gif
1MB, 326x256px
Anyone else learning Typescript and Angular2? It's been great so far
>>
Does anybody actually use coffeescript?

Is it gud?
>>
>>58758856
>democrat
>hotlinks an image
Unsurprising, really.
>>
Just did FizzBuzz for the first time on the first try in JS. When do I get my web dev job?
>>
>>58761362
6-18 months.
>>
>>58761537
* If by "job" you mean freelancing on Upwork.
>>
>>58761014
I used Typescript with React. Typescript is seriously underrated. A lot of shit code suddenly makes sense when it takes structured input rather than memes.
>>
>>58761065

I was sorted of forced into it for the sake of Rails. I don't really get it.

I mean I get that "JS is shit and ruby looks nicer, so let's make Ruby syntax transpile to JS" but it doesn't offer an appreciable improvement over straight JS for anyone looking outside "more like Ruby".
>>
How can I improve this to make it responsive with page resizing/different resolutions

https://jsfiddle.net/9rgjsc34/

doesn't seem to be working properly and the "width" and "display: inline-block" seem to be wrong
>>
>>58735320
> We generally have a short attention-span here
Hello, millenial fags cancer
>>
>>58761646
Flexbox and media queries
>>
Should I take a job where they use C# + ASP.NET + Aurelia + TypeScript?
>>
>>58762530
Yes if

>you like .NET
>you like the company
>you like the people and their culture
>they're offering you a decent amount more money

Aurelia and typescript are kinda memey but it won't hurt you to use them. Honestly company people and culture are most important.
>>
>>58760281
>>58760441
In your html you should have something like
<form action="/something" method="post">
<textarea rows="5" cols="80" name="postdata"/>
<input type="submit" value="Submit">
</form>

This creates a form with a text area for your post and and a submit button. When you click the submit button, it sends the contents of the textarea named postdata to your webserver, and the you can use your webserver's api to get the contents of this post request. The action attribute in the form specifies the target of your request, that is yourwebsite.com/something in this case. The method="post" means it will send a post request (get requests put your data in the url, and shouldn't be used for modifying the contents of your site, such as creating a new post). The rows and cols specify the size of your textarea, and the name attribute is used to identify its contents on your server (if you sent multiple things at once, you'd need a way to tell them apart, that's what the name is good for). The second input tag is a submit button, with the value "Submit", this is the text that will be displayed on the button. When the button is clicked, your post is submitted. I don't know jack shit about go, so it's your job to find a webserver that works with go, but this is how posting things work in general. To put shit into a db, you should use a go library to interface with mariadb: https://mariadb.com/resources/blog/using-go-mariadb
>>
>>58759024
Wait, why does the frontend get to touch my session state? It can fuck right off.

My backend will put the auth var there, and I encrypt it just so no fucking retard will touch it using some JS niggery.

In my app the back end gets a request.
If you're not logged in (or your login has expired), you get 302 redirected to logg/inn (It's in foreign you see), where you can log in.
If you are logged in, then we check your privilege. If you're privileged enough, you get to see the site.

At no point should the front end part of this get involved.
>>
>>58763430
Sorry, forgot to close my input tag, should have been
<input type="submit" value="Submit" />

(notice the / at the end, before >). You should also learn about javascript, css, ajax, cookies and http later down the line to create a proper chan website.
>>
>>58763478
This. I don't get some people, it's either every fucking thing is javascript or there is no javascript at all.
>>
>>58759067
> Good backends that are tried and tested
> Java with Spring/Spark
But make sure you use a modern environment.
> C# with Asp.net
You can use IIS with PHP too, so you can learn the webserver before you learn Asp.net, if that's what you end up with.

> Somewhere in between large enterprise and small business
Ruby, Python, PHP.

Pick anyone of these so long as it isn't PHP.

> Node.js
Whenever these niggers decide what build-tools they're supposed to use, and start to stabilize, it'll be a good tool. Until then it's a bit too shaky for long term enterprise projects.
>>
>>58763430
>>58763507
Thanks for spelling that out a bit. Go has its own webserver built into the language.
>>
the irc channel is better anyway
>>
>>58761362

lol fizz buzzing just proves you can do basic conditions and math. Doesnt mean shit for web dev
>>
I have my launchcode interview in 5 minutes.
>>
>>58765462
gl fagget
>>
>>58765462

da fuq is launch code?
>>
>>58763430
>>58763507
input and textarea are void elements and do not need a closing tag, it's best to omit them.
>>
>>58765797
I've looked it up and apparently <input> and <input /> are both fine for void elements, are you mixing it up with <input></input>, or is it still legit bad for some reason?
>>
>>58763478
>>58763631
>it's either every fucking thing is javascript or there is no javascript at all.

But this was my point from the start...
If you want to use a js framework then all aspects of the site must be javascript, meaning even logging in implies sending an ajax request to some server with form data. The other guy even said he used Blade which is not compatible with this workflow (because templates are handled by Vue, not php)

So my question still stands, how easy you can do this in Vue? Or if you want other wording, how does Vue handle cookies, or does it have its own mechanism for persisting session data?
>>
>>58765953
input is a void element, hence ignores the / at the end of the start tag.
It does nothing.

XHTML is long dead.
>>
I "passed".

I was told I'm where I need to be, but they might have troubles because I'm outside of a hub city.

Adding a few more projects to my portfolio so they have some better things to show to the companies.
>>
File: 1475332625599.jpg (167KB, 400x566px) Image search: [Google]
1475332625599.jpg
167KB, 400x566px
>>58766218
gratz
now got get high or something
>>
File: nigger.jpg (31KB, 350x350px) Image search: [Google]
nigger.jpg
31KB, 350x350px
I've come here to say fuck bootstrap.

That is all.
>>
What's the best domain provider if you want to keep your address and name hidden?

Godaddy?
>>
File: Girls.png (490KB, 449x401px) Image search: [Google]
Girls.png
490KB, 449x401px
>>58763478
>he still uses session states
>>
>>58766515

paranoidsperg.com
>>
>>58766529
what do you use
>>
>>58766515
if the registry policy of a tld forbids it no one will do that and still have you being the owner of the domain name.
>>
>>58766687
tokens
>>
>>58766515
freenom.com has something called ID Shield, where your name and address are not made public: http://www.freenom.com/en/doc_idshieldagreement_v0100.pdf The problem is that I don't know if it's free or if you have to pay for it.
Also you can get one of the free domains without disclosing your name & address by simply logging in with google+ or by registering an account there, but there are some caveats to free domains, such as freenom taking them from you if their bot sees that you don't actually have a webserver running, and you also can't put up racist content, porn or content that is hateful towards any religion. I have not used their paid domain service, but got a free domain for my test website.
>>
>>58766472
I agree with you anon. I think a lot of people hate bootstrap.
>>
>>58766773
>freenom
>no https
>second result from google "Is Freenom a fraudulent company? - Quora"
>>
>>58766773
You could always give fake info.
>>
>>58766852
or pay like 4.99 a year for whois protection.
>>
>>58766852
i always use jewish names for registering to hosting stuff
>>
>>58766954
Haha why?
>>
File: index.jpg (14KB, 245x206px) Image search: [Google]
index.jpg
14KB, 245x206px
>>58766831
>>
Just finished a basic HTML/CSS course, I'd like to start learning either Java or JavaScript.

If I want to be able to make webpages but focus on Android game development which language should I focus on, or learn first? I've read up on JavaScript webgames in HTML5 and shit but I'm not sure if the skills learned in that would be useful in actual Java game development in an engine.
>>
>>58767468
Java and javascript have nothing to do with each other, they just have similar names. I'd start with java, since you can use it both to develop server-side shit and to write android programs, and you can make relatively functional websites with just a little knowledge of javascript, they just wont be really modern.
>>
>>58767468
>>58767546
ECMAScript is better than both java and noob javacsript (for fags)
>>
>>58767558
>noob
>fags
>ECMAScript is better than javascript, an implementation of ECMAScript 5
Are you twelve?
>>
>actually using javascript for your back end
>>
File: image.jpg (69KB, 600x375px) Image search: [Google]
image.jpg
69KB, 600x375px
>>58767626
>Are you twelve?
he actually took my post seriously
he actually replied
mfw it wasn't even bait and you still got baited
>>
File: 1472392185728.png (7KB, 1103x232px) Image search: [Google]
1472392185728.png
7KB, 1103x232px
>be non-meme programmer
>decide to write a somewhat complex "webapp" for personal purposes
>spend this entire day figuring out what to use and then learning react, webpack etc.

HOLY FUCKING SHIT I KNEW WEBDEV WAS A MESS BUT I DID NOT EXPECT THIS
DOZENS OF STANDARDS
TRANSPILE EVERYTHING
MULTIPLE WAYS OF DOING THE SAME FUCKING THING
HUNDREDS OF PACKAGES THAT JUST MAKE A TINY CHANGE TO THE TRANSPILING PROCESS
I HAVE NO IDEA WHAT'S GOING ON UNDERNEATH ALL THESE LAYERS

pic a bit related
>>
File: image.png (88KB, 286x319px) Image search: [Google]
image.png
88KB, 286x319px
>>58767881
your attempt at damage control is bad and you should feel bad
>>
>>58768128

>falling for the .js meme

it really is a shame. i don't blame you, though. i blame the meme's and over zealous start ups thinking they invented the wheel or something.
>>
>>58768180
I really have no other choice though, I need this running in a browser.
>>
>>58768274

dude - you don't need react to run an app through a browser...
>>
>>58768128
D A R T
A
R
T
>>
File: 200ae2e321.png (717KB, 1000x581px) Image search: [Google]
200ae2e321.png
717KB, 1000x581px
What's the cheapest host that can be solely be used as a MySQL DB with ~50GB of database content?
>>
>>58767677
Get back to work Pajeet, there's no breaks if you want to become a slumdog millionaire cranking out cookie cutter retro PHP drek.
>>
>>58768867

just buy a spot on a cloud and you let it do all the scaling and optimizing for you
>>
>>58752009
bump my own shit
>>
>>58768128
>too dumb for webshit
dpt is that way...
>>
Whats is the best OS for tiny 256mb openvz vps?
-Ubuntu 14.04 64/32
-Ubuntu 16 64
-Centos 6 64/32
-Centos 7 64
-Debian 7 32/64
-Debían 8 64
>>
>>58736460
Literally Vue.js.
Use whatever server you are comfortable with and strap on vue.js
It's the jQuery of SPAs.
>>
File: 1471633455427.jpg (217KB, 1751x900px) Image search: [Google]
1471633455427.jpg
217KB, 1751x900px
Making a personal website to showcase my applications.

Need Domain name.

1. Best domain for personal website (ie. a portfolio of apps)

2. Best place to register domain name

3. do i really have to pay extra money so people can't 'whois' me. Seems like bullshit!
>>
>>58766016
>Child goes to command line for useful software in a popular package manager. Gets pumped full of javascript. Many such cases!

There's tiny-cookie and there's vue-cookie which is a vue friendly wrapper around tiny-cookie. That is what I would use.
>>
>>58769050
Are you trying to start memes?
>>
>>58769124
Namecheap offers whois protection
>>
Would NoSQL be a better solution for searching provided I have 70M+ records over two MySQL tables?
>>
>look on codeacademy
>HTML & CSS course takes 7 hours
>Javascript course takes 10 hours
>MySQL course takes 3 hours

These numbers seem way too small. Surely it must take longer than that to learn these things, right? What will I actually be able to do after finishing these courses?
>>
>>58771433

Oh I meant to just say SQL, not MySQL.
>>
>>58771433
learning the basics is legit that easy
>>
i realize there is a better way to do this, but could i use stylish to make the css for certain websites (twitter)blank, effectively blocking the sites? if so, could someone help me out/set me on the right path?
thanks
>>
>>58769027
Not CentOS. It uses more RAM than Debuntu.
>>
For an application with chat-like functionality but with deeply nested relations between messages.

Do I go with a write-heavy DB like Cassandra or something optimized for graphs like OrientDB?
>>
>>58772910
Honestly? Try relational first. If it doesn't work, then look into graph.
>>
visual studio will take over webdev as well:

https://www.youtube.com/watch?v=gfjFJ-v_h2s&t=327s

how can other text editors and IDEs even compete?
>>
>>58772955
The real question is, how can other companies' shills even compete?
>>
Sup /wdg/, would it be wise to set up a business just to take 1 or 2 freelance jobs on a bidding site? I know Upwork requires you to have at least a sole proprietorship, but from what I can tell Freelancer and a few other sites aren't that strict. Also, my state taxes web dev in such a way that it assumes you have certain permits that are usually only granted to business entities. My only problem with doing it this way is that I'd have to wait like a month for the paperwork to be processed.
>>
>>58772955

who fucking cares. OMG IT HAS JQUERY SUGGESTIONS WHILE YOU TYPE

just open up the docs of whatever language youre learning. Theres nothing special about this. Fucking M$ shill faggot.

>herrrp derrrp M$ said visual studio is da best for muh web developmentssss and since im a monopoly loving faggot shill it must be true!! yay visual studio omg lemme go post how great visual studio is on /g/!! hurrrrr
>>
>>58773014
>>58773561

>being this assblasted

why would microsoft ever shill webdevs to use visual studio? it's not like it can hide telemetry in your javascript or something. they gain nothing
>>
>>58773934

I've had enough of M$'s bullshit, son. Ya hear me? They have paid shills everywhere especially in India. You might as well call India Microsoft Island. Seriously. They throw so much money at advertising and shoving their .net shit in the faces of poorer nations. They are attempting to dehumanize us with their shitty layered error prone code. It's a scam, my friend. You have been so duped, so fooled. It is (((bullshit))) that M$ gets to poison the entire country of India with fucking asp.net, and then in return the USA gets these poo in the loo's over here taking jobs and being M$'s puppets. It's bullshit and Indian women smell funny.
>>
could somebody post their webpack.config.js using the babel-loader please. i wanted to compare my setup since its not transpiling.

femanon here btw
>>
>>58774017
It should be named webpack.config.babel.js instead.
>>
>>58766472
>>58766811
Can anyone elaborate why?

>tfw just discovering bootstrap after learning html and css
>>
>>58766472

>i don't know how to use a simple css framework
>>
backend here, should I learn clojure, go or stick with java?
>>
>>58774924

probably just stick with java, Go doesnt have the features yet to compete with Java, Python, PHP. Super fast tho. Gay logo tho. So yeah tho. Good luck tho
>>
>>58774056
thats the 2015 method. i need to see 2017 config for webpack2 . shit docs really
>>
>>58774903
full of opinionated bloated bullshit that you just end up overriding. even bootstrap4 a shit.

leave bootstrap to the pajeets as a resume-filler. try sass + bem then make just make your own classes
>>
>>58734358
i think you can do
td, th { position: relative; } 
td a, th a { position: absolute; top: 0px; bottom: 0px; left: 0px; right: 0px; }
>>
>>58737163
it sounds like a problem with the component, you're not supposed to call functions through redux. lots of react components out there are unfinished or buggy
>>
>>58738331
I don't see any advantage. it's just making the semantics messier. they're adding some stupid features really
>>
>>58747584
use an event system or even better, streams/signals (frp)
>>
>>58752352
i moved from emacs to sublime to vs code
>>
>>58759067
learn go, it's not a meme. very solid and simple
>>
>>58756340
I'd use redis lists, it's the right data structure for append-only streams such as chat. you should see good performance
>>
>>58760281
i don't think many people start webdev with go, most move to it from other languages. might be worth learning web basics in python or something
>>
>>58761014
i rewrote all my libraries in typescript. it's awesome. angular ain't though
>>
>>58766687
jwt
>>
>>58772910
we ran into performance problems with orient in my last job and had to switch back to good old postgres
>>
>>58774924
learn all of them and see what you like most. i prefer go
>>
File: neo thinks youre a dick.jpg (97KB, 551x549px) Image search: [Google]
neo thinks youre a dick.jpg
97KB, 551x549px
>>58775852
>he hasn't learnt angular yet
>>
>>58775983
I had to use it for a contract 3 years ago. It's bloated shit.
>>
>>58776055
>3 years ago
wasnt angular 2 then, angular 2 fixes everything, makes things way simpler, dont have $scope everywhere, directives and controllers are basically the same things now
>>
>>58776142
2 is even more bloated. Look at the source. freaking enormous. Looks like enterprise java. The whole approach is backwards imo.
>>
>>58773934
1) Because you have to pay for the full version of vs.
2) The telemetry code is in vs, and in case you switch from another os to windows for vs, in windows itself.
3) Public image. If vs becomes a popular editor for webdevs, then people associate the microsoft brand with it, and they will no longer think of microsoft in the context of web development as the company that made internet explorer.
>>
>>58735647
This is nice, I'm going to read this, thanks
>>
>>58776203
As a Java developer I take offense to that.

A lot of Java code might seem bloated but it is so for a reason.

The less you control about where your code is to run, and the less leeway you have about what your code is supposed to do, the more code you have to write to get around this.

JS has to work with different versions of different browsers. So you have a lot of shit that can go wrong there.

You have several options here:
> Use the minimum subset of functionality that you know will work everywhere.
> Use whatever you need, and demand your users upgrade.
> Use some sort of tool to let you use whatever, and then have the tool transform it down to the first option.

In Java, you don't do the third thing. What you do is you abstract away the differences and let your users fill in the blanks for you.

As a toy example, pretend that there is no ORM and we need to talk to an SQL RDBMS.

Now, while something like "SELECT password_hash FROM users" would probably work everywhere, something like, "SELECT user_name FROM users inner join departments ON departments.head = users.uniq_id WHERE departments.name = 'your mom'"; is asking for fucking trouble.

So you need to let the user override these statements in case they use something weird. DDL statements will also need to be overridden. And sometimes some faggot will demand that he can tune the query.

Now if you just use VUN UND ONLY VUN RDBMS, this is not a problem. If you only deploy on Linux, this problem disappears even more.

So how do you do that shit? Well, you prepare some property file where people can point to .sql files that contain the correct queries. That way they can override any query that doesn't work, and you can let the DBA handle that shit. But all that stuff takes some extra code.

And then you end up with some fairly complex set shit up code that makes it easier for the DBA. But it's all for a reason and it's actually a tradeoff.
>>
>>58766529
What's wrong with using session state?
It works, it's simple to use (from the backend pov), and it's not exactly expensive to read/write.
>>
>>58746036
I don't know if this is what your customer wanted, but the background video is giving me nausea.
>>
File: mdvu.png (75KB, 1364x661px) Image search: [Google]
mdvu.png
75KB, 1364x661px
I made a side by side markdown editor because boredom. It's pretty comfy desu
>>
>>58746036
- If you do a background video use a static camera, or at least a steadicam, this gives people simulator sickness
- I have a bright green vertical bar about 10px wide on the right don't know what it is
- 1366x786 The logo thing covers 3/4 of the page and the buttons are half visibile when scrolled to top, which looks bad imo (show them fully or hide them fully)
>>
I think using React is giving me cancer.
>>
>>58777806
tokens are more scalable and flexible

i'm not gonna list out every advantage but you can google if you really want
>>
>>58778713
It's a singular string.
It's not going to be a fucking bottleneck.
You sound like the guys who minimize all the js for performance and include 20 fucking megabytes of advertisments.
>>
>>58778863
options for session state storage:

>in-memory
>if you restart the server, all sessions are lost
>you can't scale sessions across separate instances

>database
>you have to store extra data
>requires an extra database query for every request, more overhead than decrypting a token

not to mention that mobile apps can't maintain sessions, so if you use session states you're stuck with browser clients only
>>
Will people think bad of me if i use materialize?
>>
>>58778957
If I restart the session, I WANT the tokens to die.
It's a login token.

And scaling over separate instances is only an issue if you will need separate instances. This web application will not have that many users, so it's not an issue.

Now if I wanted to store other session state than the login token, then I'd consider a simple postgres db with a field for user, and a JSON field for state. Fetch out the JSON, and I'm good.
>>
>>58779056
>wanting the tokens to die
>"sorry guys but i need to deploy some patches, you're all gonna be logged out :^)"

if you are SURE that the application will never have many users and will not need to scale then fine. but most backend frameworks make it easy to set up stateless sessions, so if you're releasing a site to the public you may as well go with that imo
>>
I'm doing a web scraper that goes through 30 links and for every link there're 30 text files that I'm requesting. I'm doing all this asynchronously so there're a lot of requests at the same time. My question is this: Should I have some delay between the requests and maybe have it all done one after each other? I don't want to break the site by having too many requests.
>>
>>58734288
How do I make a website that people will want to use and come back to? Coding is ez but finding an audience is harder than I expected. Anyone have any ideas for websites that people will use?
>>
>>58779107
Yes you should respect the site's rate limit. If you are using memescript https://www.npmjs.com/package/async
>>
I think I'm retarded but how can I recreate this simple bootstrap slider with a range between two values, with the option to change the values in both the slider AND the textbox.

Basically whats going on in this jsfiddle: http://jsfiddle.net/FPCRb/

But I can't figure out why my slider won't modify the textbox values and vice versa.

     <input id="slider" type="text" class="span2" value="" data-slider-min="10" data-slider-max="1000" data-slider-step="1" data-slider-value="[0,1000]" data-slider-id="RC" id="R"/>
<button id="reset" type="button" class="btn btn-success">Reset</button>
<input type="text" class="form-control form-inline col-xs-1 sliderValue" style="width: 60px" placeholder="From" data-index="0" value="10">
<label class="col-xs-1" style="font-size: 22px">→</label>
<input type="text" class="form-control form-inline col-xs-1 sliderValue" style="width: 60px" placeholder="To" data-index="1" value="90">
<button id="reset" type="button" class="btn btn-info">Set interval</button>


$(document).ready(function() {
$("#slider").slider({
min: 0,
max: 1000,
step: 1,
range: true,
values: [10, 90],
tooltip: 'always',
slide: function(event, ui) {
for (var i = 0; i < ui.values.length; ++i) {
$("input.sliderValue[data-index=" + i + "]").val(ui.values[i]);
}
}
});

$("input.sliderValue").change(function() {
var $this = $(this);
$("#slider").slider("values", $this.data("index"), $this.val());
});
});


For some reason its not working, what am I missing?
>>
>>58779091
For the type of application I'm making, you getting logged out whenever the server restarts is a good thing.

If this was like a forum or something where people go in and spend a lot of time, it'd be fine, but it's a tool for people to report stuff on. They log in, report, and then log out. (Or don't log out.)

They're not going to be logged on for a long time.
>>
Mental retardation is a problem of serious social concern. In view of the large number of persons considered to be mentally retarded, such concern is certainly justified. Using the conventional criterion of 3 per cent of the population, the U.S. President’s Panel on Mental Retardation (1963) estimated that almost 5.5 million children and adults in the United States are mentally retarded. The criterion for mental retardation established in the “Manual on Terminology and Classification in Mental Retardation” (Heber 1959) and adopted by the American Association on Mental Deficiency as well as the Biometrics Branch, National Institute of Mental Health, is that all those at least one standard deviation below the population mean intelligence quotient (IQ) are considered retarded. If one accepts this criterion, and many do not, there are almost 30 million mental retardates in the United States. If the more conservative estimmate is employed, mental retardation is twice as prevalent as blindness, polio, cerebral palsy, and rheumatic heart conditions combined (Doll 1962).
>>
>>58778957
>>58779056
What are you two talking about? Sessions work like this: you create a new session on the server, then store some data in that session, using the server's api, and then when you get a cookie that has a sesssion ID, you check, using the server's api, if the owner of that session is logged in as some user, correct? Compared to that, what do tokens do, and how are they different from a scalability point of view, why doesn't it need to read from a database? Sorry if I'm entirely on the wrong track here guys.
>>
>>58779180
at the most basic level, tokens work like this:

>user sends credentials to server
>server verifies credentials
>server encrypts the user data using a passphrase only known to the server and passes back the hash ("token")
>user sends this hash (token) with each request
>server decrypts the hash (token) with its passphrase to find out who the user is
>if the server is able to decrypt the hash with the passphrase this also implies that the user is authenticated
>>
>>58779132
it's working for me on firefox 51, chrome refuses to load the script because jsfiddle uses https and the script source does not.
>>
>>58779180
what is this, 2005?
server side sessions are fucking awful once you start spreading loads on multiple servers.
>>
>>58779107
>>58779124
Yes I'm using Node.js

I assume I'm going to use something like parallelLimit(tasks, limit, callbackopt) ? How do I know what's an acceptable rate limit?
>>
>>58779220
The jsfiddle works for me, but I can't get the code to work offline on my own files
>>
>>58779265
so how should we know what's wrong?
>>
>>58779219
Oh, so the decryption step is also the verification step, makes sense. Symmetric encryption should be used for this, right? Is AES good?

>>58779237
I just didn't know how you could save on database reads using tokens, because I had the classic remember me tokens in mind.
>>
>>58779278
I posted the code, cant tell what I'm doing wrong
>>
>>58779384
I assumed the jsfiddle and the code were the same, why do you make it so difficult.

your #slider element is an input, the examples is a div.
go figure.
>>
>>58779425
Turns out the jquery-ui needs an empty div like in the example as well. I am derp today
>>
>>58779321
>Symmetric encryption should be used for this, right? Is AES good?

I was wrong about how it's done actually. And no, you wouldn't use AES.

Correction:

>entire token consists of at least two parts (plus an optional expiration date at the end) separated by a period
>the first part of the token is base64 encoded user details (username, password, role, etc)
>2nd part is hash generated by server using a hashing algorithm (SHA-256)
>the server will decode the user details part of the token, hash them with the same algorithm and passphrase, and compare it to the 2nd part of the token (the hash)
>if they match, the user is authenticated
>>
>>58779475
whoops do not encode the user's password in base64 that's a bad idea. just the username or some unique detail is fine.
>>
>>58779219

>user sends this hash (token) with each request

How can this be secure against replay attacks?

Either the backend has to remeber which token is "currently active" and destroyis it after login:
Then it's basically the same as sessions and I don't see any advantage.

Or you give a "free ticket" token, then you are royally f*cked if somebody can get a hold of this token becasue it can be used "forever"..?


I don't get it.
Are you sure thos tokens aren't just the next hipster hype?.
>>
So I am currently 30 and have been working as a data analyst for the past 8 years. However, this industry (healthcare) sucks sweaty taint and has permanently damaged my outlook on life.

Is a career change into webdev feasible at this point? It seems like a field with relatively low barriers to entry, but being this far along already I'm not sure what my odds are.
>>
>>58779525

OK, I just read this:
>>58779475


So basically tokes are like sessions, only difference is that they don't send a (meaningless) string for authentification but a string that contains the "login data" with every request?
>>
>>58779574
https://auth0.com/blog/cookies-vs-tokens-definitive-guide/

in terms of security both are the same.
but you can switch out the server without any of the clients noticing.
>>
>>58779545

Just do it, mang!

I started web developing when I was older than you are and it's great fun.

Just take your time to learn the basics, there is so much to know at the beginning. You don't get webdev in two month, take at least half a year preparations and solid fundamentals in JS, HTML5 and CSS3 or you will have a hard time at your first project.

You can ALWAYS make your own website and try fancy stuff there, then make a simple site for a friend, then try to get customers. Just put in some work, you can do it!
>>
>>58779475
>>58779519
I see. You would still need a secret salt tho that is not sent with the user data, otherwise users could just create fake cookies to fake logins or change their roles (e.g. from normal user to admin). The salt should be the same for all users, unlike password salts, since if it wasn't, you'd have to do database reads.
>>
>>58779525
You use SSL to make the whole thing secure, obviously.
You also encrypt it so that nobody else can just recreate one and send it to the server.

It's just like a little keycard to a hotel.
>>
>>58779574
doesn't send login data with each request, but information identifying the authenticated user such as username.

the advantage is that you can communicate with any server in a cluster rather than only the one holding your session data.
>>
>>58779618
Create a random salt whenever your server starts or something. Yeah, you have to login again, but you wouldn't get any more inconvenience than that.
>>
>>58779618
correct. you can just use a passphrase as a salt and store that in your config or something.
>>
>>58779616
Thanks for the encouragement!
By 'try to get customers', do you mean that freelancing is my best bet? I had thought that direct employment was the norm nowadays, but this is largely an assumption on my part
>>
I'm new to web development. I'm currently using codeacadamy to teach myself HTML and CSS. So far I'm very satisfied with this site.

Is it worth it to upgrade to codeacademy Pro?
>>
File: 1486140455962.png (65KB, 432x1095px) Image search: [Google]
1486140455962.png
65KB, 432x1095px
Short and stupid amateur CSS question, what's the best way to align several things the same distance away from the edge of the screen?

I'm currently just giving everything a margin in percentages, but seeing as how type has hidden tracking values etc, I give everything a different percentage taking visual weight in mind. It seems to work and is responsive, but I'm just wondering if I'm making a rookie mistske or something here.

Pic related, all these elements should be aligned to start at the same vertical line.
>>
>>58779732
wrap it and use padding.
>>
>>58779732
read this :
>>58779750

and also in chrome use the right click> inspect menu to know whats what.
>>
Tinfoil here, any way to access the materials on bento.io without providing google/fb credentials?
>>
>>58779005
I use it and so far the bank has not rejected any of the money I made.
>>
>>58779628
Creating a new token every time would fuck your shit up if your shit is distributed (one server has this salt, another has that), and it would also log everyone out on server restarts, as you've mentioned. Problem is, tokens are supposed to prevent all of that from happening, so creating a new one every once in a while would defeat a large part of their purpose.
>>
>>58779817
dunno, cant you fake a fb account using 7 proxies and firefox hidden credentials and also a mailinator e-mail ?
>>
>>58779545
be so good they cant ignore you
>>
>>58779817
It seems to me that you can't, but creating a dummy facebook without providing a phone number should still work, jewgle now asks for phone number when you register a new gmail account tho.
>>
>>58779545
just got in. got my first freelance. i went into a pizzaria and asked the owner if he had a webpage. he said no. i said i would do it for free. i have this feeling if i asked him for money he would do it. but since im starting and im strugling alot to do it i think its the best approach.
>>
>>58779832
fb rejects mailinator addresses
>>
>>58779750
>>58779768
Makes sense, thanks.
>>
Hey /g/

I joined this facebook page that I found off of le ebin reddit XD c/o Google about how to make money out of web design. Apparently these people can pull 5 figures a month doing freelance web dev using methods such as cold emailing or calling. The founder is probably shilling (as many SEO specialists or online entrepreneurs do) since he charges for coaching or his forum use.

I was just wondering if some of you faggots did the same, and if not, what's stopping you from outdoing these literal reddit-tier normies? Is it because they're less autistic? Don't get beaten by these guys, /g/. Make lots of money.
>>
>>58779673

>By 'try to get customers', do you mean that freelancing is my best bet?

No, do some web projects and THEN get hired.

If you are are a little "older" you want to prove some experience. It's much better to hire somebody who has done stuff in RL. What you want is being able to go to a job interview and basically say (more politely):
"Look, I will make great sites anyway. Either you hire me and I will make you some good money or I will continue to freelance. Your choice. But since you are sooo great, I'd really like to have a comfy litte cell here."
>>
>>58779545
>>58779616
>>58779673
>>58779864

>freelancing websites at 30
this is a great idea if you want to reset your income to that of a 19-year-old.
don't be an idiot, stick with what you know at this point
>>
>>58779545
>wants to do webdev to improve 'outlook on life'
i've got some bad news for you my dude
>>
When you counter CSRF attacks, is it okay to use the same token for all your forms, and is it okay to generate a new token every session, or should the token be different for all forms, and should it be regenerated more often?
>>
>>58780730
http://security.stackexchange.com/a/22936
>>
>>58780018
eh thats pajeet tier. you could make more money picking up cans on the side of the road.
>>
>>58780787
Well that's reassuring.
>>
>>58779545
It's feasible. I'm 28. Been doing webpages since 10 but I'm just now entering the field.
>>
>>58779864

keep in my mind making web "pages" or web "sites" isn't really what makes a company get boners. They want full stack developers who makes web (((applications))). The term "site" is dying.
>>
Can I break a site by sending too many requests with a script? Or is there some kind of defence against this on the server side?
>>
>>58781498
It's called DoS or DDoS, you can probably break a few hobby sites on your own if you find a good endpoint to bash against.
>>
>page 9
is this how the development of web dies?
Thread posts: 321
Thread images: 27


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