[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: 317
Thread images: 41

File: 1444680862004.png (2MB, 1490x1000px) Image search: [Google]
1444680862004.png
2MB, 1490x1000px
Dumb questions only edition

Previous Thread: >>56282670

> 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/
https://youtu.be/JxAXlJEmNMg?list=PL7664379246A246CB - "Crockford on JavaScript" lecture series.

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

>Backend development
https://en.m.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
https://youtu.be/sBzRwzY7G-k - "2016/2017 MUST-KNOW WEB DEVELOPMENT TECH - Watch this if you want to be a web developer "
https://youtu.be/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
>>
first for javascript a shit
>>
So I just built an entire web application in php, complete with url rewrites so you wouldn't even know because it was ez as fuck. Did I do good?
>>
>>56336503
Show some backend code and we'll tell you.
>>
Why is golang used for websites now?
>>
Who here has worked with Dart? Seems like something that's going to be popular in the future considering the evidence that Google's new operating system Fuschia is going to compile Dart natively. (In most cases you transcompile Dart to JS)
>>
>>56336345
this desu

but then again, it could be php
>>
File: 1470584719184.jpg (16KB, 563x294px) Image search: [Google]
1470584719184.jpg
16KB, 563x294px
What low cost VPS do you guys recommend?
>>
>>56337446
Also, wanted to add that the cloud hosting bullshit in the OP sucks.
>>
>>56337446
>https://www.kimsufi.com/us/en/vps-ssd.xml
>https://www.yourserver.se/
>https://www.scaleway.com/

>>56337504
Haven't checked them, why do they suck?
>>
>>56337152
gotta go fast

>>56337295
>Seems like something that's going to be popular in the future
It's a Google project, so yeah, It might be popular for a year or two, then out of nowhere they'll kill it and switch to something else.

>>56337504
Most people really like Digital Ocean and Heroku. Maybe it's just you.
>>
>>56337613
They have shit legal policies. SJW crybabies can report you to the host and get the server down if you run a forum and someone dares to exercise their right to free speech.
Apparently, a SJW feeling offended or cyberbullied is enough for them to get your server down.
>>
For "float" to "int" conversion in JavaScript, is it fine to use ~~number or number | 0? Any reason for choosing one over the other?

Funny that Math.trunc() is ES6 onwards
>>
File: rarepepe.png (333KB, 931x554px) Image search: [Google]
rarepepe.png
333KB, 931x554px
>>56337564
Thanks anon, these ones seem to actually be good. Have a pepe.
>>
>>56336286
Why cant i just isset($_POST[file.pfd]) :'(
>>
>>56337824
What are you trying to do?
>>
>>56337770
Benchmark those in different browsers.
>>56337824
Google $_FILES
Array keys go into single or double quotes.
>>
What security measures are necessary to avoid getting your VPS hacked, apart from installing Fail2Ban and moving SSH to a non-standard port and requiring a key file?
>>
Best NPM package for encrypted SAML auth?

>https://www.npmjs.com/package/passport-saml-encrypted

Internet high fives for anyone who can provide other options.
>>
File: g-9.jpg (387KB, 787x472px) Image search: [Google]
g-9.jpg
387KB, 787x472px
Please leave a nice message :)

alissa.ninja/paint
>>
>>56339192
I'd add:
- Keep your softwares up to date to avoid bypass or DoS exploits
- PortSentry can be useful against port scanning, but it can easily ban you, so configure it correctly.
- Maybe create firewall rules to only open necessary ports and nothing else.
- Maybe install RKHunter.
>>
File: 1471630116301.jpg (256KB, 1280x960px) Image search: [Google]
1471630116301.jpg
256KB, 1280x960px
>>56339691
Thanks anon.
>>
>be me(me)
>last month of my probationary as a QA lad
>already feel experienced enough
>i have to test work of like 10 devs and tasks only get harder
>4 new QA girls I gotta teach
>meetings with manager and devs every day
>constant discussions of ongoing issues with the devs
>only really work like 3 hours out of 9, I mostly run around the office and tell people how shit is supposed to work
I'm tired as shit and I sort of miss my gardener job.
>>
How much RAM can one expect an idle MySQL to use?
>>
Is practicing this: https://www.careercup.com/ sort of programming test necessary for web dev interviews too?
>>
>>56340709
70-90% of total RAM if configured right.
>>
I some insight.

Recently set up a mailserver. It basically works, but there are some kinks to iron out. On eof them is that the MX record's host name isn't the same as the one in the certificate that I'm using. So I changed the MX record to
www.domain.com (was prefix: mail to IP before).

Now I keep on checking checktls.com and it keeps reporting mail.domain.com as my MX record.

I understand MX records take a while to be available after having been changed, but just in case...
is this even possible, or does an MX record require a prefix? Because in that case I'd be wasting my time and should just get another certificate for mail.domain.com...
>>
How long does it usually take to sell a domain name?
Also, is leasing better than selling?
>>
General job question:

When you are sent an email questionnaire for a job asking various things, what is an acceptable time to complete it?

It's only 15 questions long but apparently it was sent yesterday around noon and I didn't get the email notification on my phone until an hour ago (noon). So it's already been 24 hours.
>>
>>56342000
I don't think you have to worry.
>>
>>56342000
If it was timed, the questionnaire would be on their website or in person, so don't worry about it. Focus on your answers.
>>
>>56342145
>>56342239
Cool thank you both. I'm just really hurting for money lately and I guess I'm being paranoid.

Thanks again.
>>
File: 1461989336778.jpg (255KB, 720x960px) Image search: [Google]
1461989336778.jpg
255KB, 720x960px
>>56337351
I never thought that I would hate a programming language but PHP is fucking cancer
>>
What do you guys think of NoSql tech?
>>
File: booknotemarkdown.webm (1MB, 1046x904px) Image search: [Google]
booknotemarkdown.webm
1MB, 1046x904px
Making a note taking thing to help me track my notes on books. Just added tabular sorting and markdown. How does it look?
>>
>>56343306
pretty cool idea. Id get rid of the date field and just make it automatic when the note is created. Also show it with a timestamp normally you make multiple notes per read.

Next step i guess would be to make the note textarea use some kind of web-texteditor ala wiki so you can style it etc. Also make a search function so i can search notes with a keyword in a given book. Also make notes "rateable" or something so you can priorities the important ones if you are studying for a test.

Sorry might be terrible ideas but just brainstorming
>>
>>56342677
I'm in the process of learning PHP. So far so good for me.
>>
File: reeeeeeeeeeeeeeee.jpg (11KB, 647x133px) Image search: [Google]
reeeeeeeeeeeeeeee.jpg
11KB, 647x133px
I have the dumbest question, hopefully it'll be easy to answer.

I am obviously an absolute beginner in html and css.
why doesn't this work? the CSS.css is in the same folder as Index.html
>>
>>56343165
Overrated, relational is still more suitable for most things, Mongo is cancer, but right nosql for right kind of shit is useful
>>
>>56343517
Style tags don't go into CSS. Also are there not any errors on console?
>>
>>56343537
baka me. I deleted those tags, it works now.
thanks anon. and no, I am using Brackets, and there was no error in the console (there is no console, afaik).
>>
>>56343537
CSS never causes errors unfortunately (unless it's the file not being found).

>>56343517
I suggest finding a better book. Styles in seperate files don't go in tags.
>>
>>56343477
All suggestions are good suggestions friendo, don't worry.

I like you're idea of automatically inserting the date! I'll look in to that, it should be really easy.

As for the others, they sound great too and I'm going to add them to the backlog.
>>
why do these threads die so easy
>>
File: hi.jpg (497KB, 3440x1440px) Image search: [Google]
hi.jpg
497KB, 3440x1440px
Whats the best webdev editor? Post your setup
>>
>>56344945
If you're coding in PHP, PhpStorm is the best.
Give it a try, anon, very powerful.

Atom is a bit light but I enjoy it.
>>
>>56343864
School started back about two weeks anon.
>>
Does anyone know where to get Udemy course, more specifically courses from this guy?

https://www.udemy.com/user/moshfeghhamedani/
>>
>>56346046
What's wrong with TPB?
https://thepiratebay.lu/search/udemy/0/3/0
>>
>>56346218
Doesn't have them.
>>
Hey, liberal arts degree who can't find a job checking in. (yes I regret it)

Would I be better off teaching myself web dev and gunning straight for a job, self taught, or applying to Master's CS programs?
>>
>>56347268
Apply for a masters but still learn on your own, it will be faster to get a job.
>>
>>56347268
How much experience do you have in development? By experience I mean have you ever written a single line of code before?
>>
>>56347320
I've taught myself python and ruby, probably written 5K+ lines of code in each.

Debating on whether I should learn rails or Django now.

Have experience with Oracle.

I know a bit of Java (basics), but I really dislike the language.
>>
>>56347373
What types of programs have you written?
>>
File: smh.gif (394KB, 280x242px) Image search: [Google]
smh.gif
394KB, 280x242px
>>56344945
>php
>atom
>serif font
>huge text
>orange, magenta and teal colorscheme
>file called mobile_detect.php, trying to determine the user's device with a server-side script rather than just building a responsive mobile-first page
>devving directly on master branch rather than making new branches for new features and merging later
>Not even using a linter to protect from stupid errors that php is prone to

The only thing in this screenshot that doesn't disgust me is die(); - which is what you should do at once.
>>
>>56347425
just basic enough shit to teach myself. Most advanced was probably a chess program you can play from the command line (no ai)
>>
Why composition is better than inheritance?
>>
first day assignment for my new web programming class : create a simple client-server in Java and send GET HTML requests to server and return HTML files.

seems pretty easy so far
>>
>>56344945
Sublime is all I need desu.
>>
How do I make fancy animations?
>>
>>56347640
https://youtu.be/wfMtDGfHWpA
>>
>>56347432
PHP slander is so first-quarter 2016. Everyone's shitting on Ruby now, keep up.
>>
>>56336503

yes , show us the backend. So I can get some idea, too.
>>
>>56343306

what plugin did you used for the table senpai ?
>>
>>56344945

I've tried Brackets and is good mate. Try it.
>>
If you were challenged to teach someone php, how quick do you think you could do it?
>>
>>56349212
5 hours, asuming they have previous Java/C++/C# programming knowledge
>>
Should I learn Angular or Angular 2? Should I even learn it at all?
>>
>>56349440
No no no this person has little experience with programming.
>>
>>56349455
- Angular 1, jobs
- Angular 2, in beta forever, more years of life
https://codequs.com/p/BksMQsdWj/why-angular2-is-easier-than-angularjs/
>>
Hello
>>
>>56349455
Vue
>>
Did anyone try to stream videos using Cloudflares bandwidth?
Cloudflare says it doesn't recommend it since it's not optimised for streaming but my websites traffic is devouring my budget.
>>
>>56349076
Sorry for the late reply.

I used a library called Sorttable. Here's the link: http://www.kryogenix.org/code/browser/sorttable/

If you mean for the actual table styling, then that's just generic bootstrap 3.
>>
>>56351608
no corporate backing therefore its meaningless for anything besides small personal projects
>>
>every Python role, startup or established, I apply to uses Angular + Django REST
How different is it to pure Django + optional minimalistic front-end frameworks (jQuery and/or knockout.js)?
>>
What languages should I learn if I want to make a dank new website. I'm going to make the next 4chan.
>>
>>56352111
Javascript

You should learn Python as it's the future of backend
>>
>>56352212
Thanks dude. Just wanted a quick reaffirmation of what I already thought I knew. I guess im a bit of a puss
>>
>>56349212
>>56349476
Depends on the person.

To teach them PHP from zero, you probably also need to teach them HTML and some basic CSS.

If it's their first programming language and you don't want them to be dogshit terrible programmers, you're also going to have to teach them basic shit like flow control, boolean logic, networking, data structures, and big O. (At least on a basic ELI5 level. You could obviously spend years teaching this shit.)

I'd say a day or so for someone that knows another c-like language already but is unfamiliar with any web stuff.

For someone with zero exp with anything, maybe a week at the minimum. They'd need to have a programmer personality and mindset though. The right person will just soak that shit up in no time and be a joy to teach. Someone who isn't really into it and just wants to do it for the money can fuck right off (unless they're gonna pay me).

Then, probably 1-2 months to get to where they can comfortably make whatever they want to make.
>>
Where should I learn ASP, it seems to be the most popular technology to build websites, api and game serveurs.
>>
>>56353021
Pajeet pls
>>
>>56353032
Pajeets uses PHP/NPM exclusively!
ASP.Net is an ecosystem used by corporation and big enterprises with high quality community packages.
>>
>>56353059
Pajeet pls
>>
>>56347268
I studied fine arts, graduated with no job prospects, and ended up as a well paid self-taught programmer. If you take self-study seriously and learn on the job, it can work out.
>>
>>56353120
What's your preference?
>>
>>56348778
good video actually. beginners should watch this
>>
Why are people still using php/laravel?
There are no good and stable jobs.
However laravel is very popular just behind Spring Boot and ASP. NET Core, awesome for php!
>>
>>56337755
if true, that sucks. proof?
>>
>>56353294
Not popularity but trending.
ASP.NET Core is still experimental!
>>
>>56353294
Spring Boot is the sanest way to build web backends now. Hope golang will gain popularity but there are no schools and without certification there are no job opportunities.
>>
What? Taylor Otwell, the laravel author, was a C#/.Net developer! Could anyone explain me why?
>>
>>56351608
Vue has no future just like mootools!
>>
Is there a decent lightweight Angular alternative that I can throw into some pages of an existing site where I need to do some fancy JS fuckery without having to include the whole Angular library?

Mostly need the two-way bindings, repeats and ng-show
>>
>>56353157
Most of his videos are really good. He did a couple on .bind() and this recently which is arguably one of the most difficult concepts about JS.
>>
One part of my php code:

<form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method="post">


if i let it run on my XAMPP server, it returns everything to the $PHP_SELF just fine.
But if i run it on my server it redirects me to
http://index.php
and just says "site cant be reached". How do i return the POST value to itself on the server?
>>
>>56353509
>Mostly need the two-way bindings, repeats and ng-show

Pretty much every framework has some way to do that stuff in some way or another and most of them are smaller than angular.
>>
>>56353659
You don't need to do this. If you don't set the ACTION attribute, the form will automatically submit to itself.

Use $_SERVER['REQUEST_METHOD'] to detect the submission
>>
>>56352914
HTML and CSS are pretty basic though. I mean realistically anyone could learn both pretty well in about a week.
>>
>>56353659
As >>56353724 said, you can omit the action attribute, but it's safer to have it post to another page, then redirect to a "Post successful" page or something, then finally back to the original page with a success message. Otherwise, if they submit a form and then hit back or reload, it'll resubmit the form.
>>
>>56353873
Most browsers warn you of this, to be fair, but yeah, if its a critical thing use this.
>>
>>56353761
> I mean realistically anyone could learn both pretty well in about a week.

You're overestimating people. I spent a summer doing a volunteer thing teaching kids (age 12-ish?) to program. You can definitely tell within the first hour which ones will pick it up and which ones will just never get it. If I ever do it again, I'd love to collect some statistics on it. Just as a guess, I'd say it's probably around 30% that get it easily, 20-30% that get it after some difficulty, and the rest just never really get it.

Also, I did say a week for someone with zero programming experience, including HTML, CSS, and PHP.

>or someone with zero exp with anything, maybe a week at the minimum.
>>
>>56353976
Yeah I know but teaching basic programming concepts to a complete noob is hard to do in a week. Unless like you said have an aptitude to learn it'll be difficult.
>>
>>56349455
Fucking Angular.
We use it, we hate it.

>$timeout band aids
>Nobody actually knows how a properly done Angular app should look like.
>Angular plugins developed by morons. Bugs. Missing basic functionalities.
>Ng-if creates new scopes
>Slow dom updating when many elements.
>Magic
>Angular docs doesn't even mention how to register a fucking dependecy at runtime, because maybe you don't need to load everyfucking thing in every fucking page. Here how it can be done:
angular.module('yourfuckingapp').requires.push('fuckingdependency');
>Mixing code logic between html and controller
>A coworker breaks a module, everything breaks.

There's a special kind of hell for those managers who force developers to make websites with lots of angular components.
>>
http://alissa.ninja/content.html

added a CoC so that my website is a safe space for all genders, races, body sizes, etc.
>>
>>56354210
Wrong link:

http://alissa.ninja/paint/content.html
>>
best tutorial to learn js and jquery fast?
>>
>>56354288
>Pick any basic tutorial (freecodecamp, codeacademy, etc).
>Then practice it 8 hours a day, with more and more challenging projects.
>In the meantime, look at open source code of your favorite projects on github
>>
>>56353873
Or post into itself and redirect into another page on success.
>>
>>56354088
>We use it,

Speak for yourself, the last time I did anything with angular was in 2015 and I don't intend to change that any time soon.
>>
>>56354229
Sounds like it's time to get behind 7 proxies and play hide the penis.
>>
>>56354583
I meant "we" as in colleagues.
>>
Anyone have experience using Yesod?

I'd like my web application to be as elitist as possible.
>>
How do you guys structure your JS? I'm beginning to doubt my own patterns.

//file1

(function() {
'use strict';

window.APP = {};

APP.firstModule = {
foo: 'baz',
bar: function() {}
}

APP.firstModule.bar();
})();



//file2

(function() {
'use strict';

APP.secondModule = {
foo: App.firstModule.foo,
bar: function() {}
}

APP.secondModule.bar();
})();
>>
>>56354965
I mainly just use
import { Foo, Bar } from 'whatever';
and let webpack sort it out.
>>
>>56355047
Looks simple. I haven't had the mental stamina to set up yet another module bundler. Still, it's kind of dumb to expose the entire code by attaching it to the window object.
>>
>tfw you check indeed and the listings for node.js jobs surges by almost 1000%
lmao what is this
>>
>>56340767
Please respond.
>>
>>56347373

>Debating on whether I should learn Rails or Django now.

If you know one of them, the other one will be easy for you to pick up. And jobs are there for both. So if you want to, learn both. Put some effort in one of them and git gud, then tackle the next one. In the end, all big backend frameworks are somehow similar..

But which one? Well, depends on the kind of person you are, if you prefer Python or Ruby.

Rails is very opinionated. Every little piece is at a certain place. Rails has it's own "domain specific language" (read: special keywords) so if you work with it, in the beginning it feels like you're only pressing buttons and Rails magically "makes things work". You build something and *skadoosh!* Rails autmatically creates stuff all over the place - here a route, there a controller..
Some people think this is amazing since it really makes thing easier to write IF you understood what happening and how things are connected. But other people hate this because they want more "control" when creating their application. If you don't know the bigger picture it's hard to grasp what happens at a certain line of Rails code and why. And as soon as you start to dig and want something non-standard, and start to customize things you realize how complex Rails really is.

Django on the other hand is pythonic, wich means you have to craft more stuff by yourself. Of course you have a certain place to put things, but unless you explicitly put a line of code somewhere (or use a code generator), it's not there. A python guy would say "it does ONLY what it's supposed to do!" a rails guy would say "what, I have to do this myself? no way!"

I'd say if you want in-depth-knowledge, it's even easier to learn Django because of the hidden complexty of Rails. On the other hand, Rails was a big inspiration for almost all backend frameworks afterwards, because showed the PHP-pajeets how to do things right.


Both frameworks are way better than Node.JS or any PHP frameworks.
>>
>>56354229
>>56354210
added IP banning ya'll
>>
>>56355986
I should IP ban you.
>>
>>56355986
Why?
>>
>>56355986
This isn't your blog
>>
>>56356012
>>56356015
Someone was posting loli
>>
>>56355567
>lmao what is this
As a node dev, profitable.
>>
>>56355879
Increasingly so, yes.
>>
>>56356355
Most of them are listed as phone questions. Does that mean I'll have to solve them with someone looking over my shoulder?
>>
>>56340767
kek no. most questions revolve around your workflow; knowledge and opinion of modern tools, standards, frameworks; and basic concepts of graphic design. generally being a nice person is an important aspect in job interviews most people tend to forget.
>>
>>56356461
Phone questions tend to be more concept-oriented i.e. "Describe how you might design and implement a system that does x, y, and z." or just generally asking you about concepts.

Usually the "You have k lists of sorted integers. Find the smallest range that includes at least one number from each of the k lists." questions are something you'd do on a whiteboard or something. Algorithm questions like that are less common for web dev jobs, although you'll probably need to do a fizzbuzz type question (most likely won't actually be fizzbuzz) at some point early on to weed out the people that actually can't program at all but still apply for some reason.

It's also pretty common to give you an assignment to take home and complete in your own time. For a frontend job, they might want you to build a simple SPA that consumes ${someAPI}. You'll be given certain specifications you need to meet, "Needs to meet such-and-such brand guidelines, needs to show such-and-such data, etc".
>>
>>56355880
aspnet-mvc > spring-boot > django > rails > laravel > express
>>
hobby dev

learning express and the docs recommends jade as templete engine, what do you think about it ?
>>
>>56357533
It's just html with slightly different syntax, like any markup language. What's there to think about?

Personally I prefer ejs, but it's not something I lose sleep over.
>>
>>56357533
>>56357631
jade is such a beauty to write though. the syntax alone is a reason to try it. i'm currently setting up jade-php (well, pug as it's called now)
>>
File: Untitled.png (14KB, 1029x329px) Image search: [Google]
Untitled.png
14KB, 1029x329px
Tomorrow I'm submitting my final classes project wich I've been neglecting for way too long since I've been working my job day and night.

Now on local everything works fine, but as soon as I pushed to release my search function stopped working.

DB access works since I can create users and they can follow eachother. I'm not sure why searching doesn't.

Here's the site if you want to try it out www.instyle.social
Please don't brake it.

Why could this be happening?
Also here's my last laravel logs
http://hastebin.com/idapefujev.tex
>>
>>56358280
>final classes project
>no gui skills
>wanting a $2+/hour job as webdev in 2016
Don't continue, just leave now and get better job opportunities.
>>
>>56358572
Dude, I didn't even apply myself and this was done in like 5-10 hours and it's my first time with laravel, I'm just throwing shit together to show that "I learned this shit" and move on to get my degree.

Also I already have a job
>>
>>56358597
Ok if it's not to get a better job, web development is shit!
Did you really learn laravel in a school? Where are you from?
This framework became so popular in no time for no reason!
>>
>>56358686
I'm from Spain and I took a 2 year "Professional Formation" in Web Dev, at the end of this you're given a job for 3 months in a company (I went to Logitravel) wich I quit because I hated the job and the pay.
You're also required to present a final project wich had to feature some popular framework. I chose Laravel.

Now I'm a barista in a posh discoteque.
>>
>>56358280
Me thinks you forgot to disable the CRSF token verification for ajax posts.
Also, there's a way for having it enabled for regular and ajax requests, if you keep looking and browsing for a fix.
>>
>>56356944

>Spring boot

Java? Really?

>google "hello worl spring boot"

Hey, seems like I have to learn Maven first. And Gradle. And Groovy (that ugly Ruby rip-off). And strore setting in XML files (eew).

Oh, look the classes:
>tomcatEmbeddedServletContainerFactory
>EmbeddedServletContainerAutoConfiguration$DispatcherServletConfiguration
>org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc


..how about "no"?
>>
hey /wdg/ I'm working on my very first website and it's been an amazing experience, thanks in part to all the help I've gotten from you from learning material links and lurking in general. I've never asked a question until today, and it is after first doing a lot of google / stack overflow search on my own.

This is the home page. Every page starts out with the same layout: a picture as a background, words super imposed, followed by an article for reading.

(1/2)
>>
File: 屏幕快照 2016-08-31 14.37.43.png (605KB, 2237x1445px) Image search: [Google]
屏幕快照 2016-08-31 14.37.43.png
605KB, 2237x1445px
>>56359954
So far I've been treating the picture as a background-image. The picture and superimposed words exist within a header element, each header element has an #id to target in the css, that's how I reference the image in the img folder.

I now realize that I will complete and launch the website with at least 150 web pages, meaning the sole css file will have 150 #id's referencing 150 images.

Then I thought, what if instead each picture is an img element inside the header? That way, the sole css file will have 150 less selectors, and each page will simply have one more line of code. The css file will instead tell the image inside the header what to do, which is look like it did previously.

I gave this a try with the image being 100% width, but then the image didn't look the same. Previously as a background-image, it was set to cover and center. I like the look, but I don't want to have 150 selectors in the only css file, but I don't know how to make an img in the header look the same.

Any ideas? Please help me, /wdg/, you're my only hope.
>>
What do you think about perl? Got nice offer but it will require to learn and work in perl (I'm python dev atm).
>>
>>56360141

Perl is oldschool but very funky.

It's an amazing language, but it takes slightly longer to learn that i.e. python.

Just work yourself through a simple tutorial and get your impression, some people love it, other hate it..
>>
>>56360010

I'm not sure I understand what you are trying to do here?

So you have 150(!) completely different websites that are linked together?
Do you automatically generate sub-sites or code them all by yourself?
Do you use caching?
Do you use JavaScript and AJAX?
Do you use a backend and database for the content?
>>
>>56359942
Maven is awesome compared to other shits like npm, composer, pip or nuget. XML is powerful and it's used because Java is for powerful and complex applications. Spring is a massive framework, not really for simple API only applications like express, lumen or flask. Java is quite verbose compared to Ruby but they are not develop for the same purpose. I think you are too young to understand Java or Spring. You need some more years of experience in IT environment. Please don't fall for the "Oracle is bad so Java is shit" meme because it's more complex than what you could expect.
>>
>>56360364

Sorry for not explaining well enough

>So you have 150(!) completely different websites that are linked together?
One website consisting of 150 pages. Each page starts with a background-image (existing inside a header element). Because this website has one css file, each header has a unique id. Upon completion of the website, there will be 150 id selectors in the css file, each selector serving only to reference an image in the image folder.

>Do you automatically generate sub-sites or code them all by yourself?
For now, the website is very much static. No libraries, no bootstrap, no jquery. The only javascript file in 10 lines long, it makes the main nav bar respond to small screen size. Only one css file too, this is all done to make the website light as possible for faster above the fold download times in China, my intended audience.

>Do you use caching?
I don't even know what caching is. Yeah, I'm that new and embarrassed to admit, but I will google caching and learn about it tonight.

>Do you use JavaScript and AJAX?
The only javascript file in 10 lines long, it makes the main nav bar respond to small screen size. No AJAX.

>Do you use a backend and database for the content?
Literally no backend at all, not yet anyways. My current goal is to simply make a minimum viable product and start developing a user base. If, for example, it takes me a month to add more abilities to the website, I could be gaining traffic to the website while I do the work for extra stuff.
>>
>>56360698
You're doing it wrong, either get a database and pull the correct image and content for each page using a single template or use a framework to generate the static pages from it.
>>
>>56360571

I get that Java is more suited for business logic and that some people prefer to build everything in Java. Nevertheless Rails and Puppet/Chef are very common for bigger companies, I wonder why..?
Beause even the hard core Java fetishists prefer to look at non-verbose code every once in a while.

Oracle is really bad, they are the reason so many people switched from MySQL the last years.
>>
>>56360698

>Because this website has one css file, each header has a unique id.

But.. why?
You don't put logic in your CSS, it's there for styling. You want one "figure"-tag that you can style.

And then you somehow fetch the images, for example with a template system..
That's where you usually use a database with something like PHP, Python or Ruby.

In your case you could also do it with JavaScript by setting document.body.backgroundImage.
>>
File: wew.png (48KB, 3072x102px) Image search: [Google]
wew.png
48KB, 3072x102px
>>56336286
Alright /g/, about maxlenght, should I validate it in php as well or it's fine just on html? Could a hacker blow the limit (I'm using the POST method btw)
>>
File: I feel nothing.jpg (207KB, 692x960px) Image search: [Google]
I feel nothing.jpg
207KB, 692x960px
For Non-NEETs ITT, what are the stereotypes of the following people in the workplace:

>Backend Web Dev
>Frontend Web Dev
>Data Engineer
>Database Admin
>IT guy (i.e. hardware)
>Analysts/Business Intelligence

I work with all these kinds of people, just interested in seeing if the stereotypes carry over
>>
>>56362067
NEVER trust user input. Validate that shit in backend.
>>
>>56362067
>Could a hacker blow the limit
If by "hacker" you mean anyone who knows how to use their browser's dev tools, yes. Client-side validation is for convenience of the user only. You need to sanitize everything on the backend. Everything.
>>
File: tsai1.jpg (78KB, 700x467px) Image search: [Google]
tsai1.jpg
78KB, 700x467px
I have good python, SQL, and I'm learning JS atm. I can also use Django.

What else do I need get that Python Web Dev munney?
>>
>>56362145
>Backend Web Dev
Basement nerds
>Frontend Web Dev
Hipster nerds
>Data Engineer
Normal dudes who typically have masters/PhDs
>Database Admin
Chill normal dudes
>IT guy (i.e. hardware)
Old idiots
>Analysts/Business Intelligence
Old smart dudes
>>
>>56362213
>>56362219
Thanks!
>>
>>56362287
A decent python portfolio is a minimum. I get to final of 3 or 4 stage interviews easily because of portfolio. I don't even have to have JS or Django projects on my github
>>
>>56362338
What kind of stuff would make for a good portfolio?

Currently playing around with bots and other automated stuff, would something like that do?

Also got a shitty shmup I made in Lua a while back on there
>>
File: futurama_s03e21_05.jpg (11KB, 290x216px) Image search: [Google]
futurama_s03e21_05.jpg
11KB, 290x216px
>>56362145

>Backend Web Dev
>Data Engineer
>Database Admin
Autistic neckbeard, weeb, /g/entoomen
Either obese or completely shredded. No middle ground.

>Frontend Web Dev
Hipster SJWs or brodudes.
Probably has a macbook pro covered in stickers.

>IT guy (i.e. hardware)
Older, balding, overweight, always sweaty for some reason.
Probably wears kahkis and polos everywhere.

>Analysts/Business Intelligence
Pic related
>>
File: 2dd.jpg (37KB, 600x600px) Image search: [Google]
2dd.jpg
37KB, 600x600px
>>56362454
>Probably has a macbook pro covered in stickers

Y-yeah, what a faggot, right?
>>
>>56354088
You need some elm my friend. Feels good!
>>
>>56362377
Creative complicated sounding things. I have language interpreters for simple esoteric languages, web scrapers, virtual machines for architectures with only 21 to 35 opcodes, and a few other small things
>>
>>56362574
Huh, okay, I'll try something along those lines. I'm used to building scrapers from work anyway

Cheers m8
>>
>>56354825
No, but if you want elitism, then why not erlang or elixir?
Ok, haskell is also pretty dank
>>
>>56342677
PHP honestly isn't that bad.

However times are changing and thus, I am looking into meteor + react.
>>
>>56362619
might as well just make the jump to elm
>>
>>56362772
Have/Do you use it?

How do you find it?
>>
>>56362772
at least for the frontend, you can still use whatever else you like on the backend
>>
>>56362799
Yes I've used it and I'm absolutely loving it. If I was currently building some frontend application I'd be using it.
>>
>>56360010
Inline style.
>>
>>56359011
Would that work on dev and fail on release? I found this fix but it isn't working for me http://laravel.io/forum/11-14-2014-disabling-the-csrf-middleware-in-laravel-5
>>
>>56362454

This was pretty good, anon.
>>
File: Untitled.png (41KB, 1304x766px) Image search: [Google]
Untitled.png
41KB, 1304x766px
>>56362869
Forgot pic, this is what I tried
>>
First of all, thank you everyone who replied for your suggestions. I will follow up and learn more about them.

>>56362823
>Inline style.

Wow, why did I not think of that before!? I guess everything I've ever read about css said the same, "inline styling is bad, we like to keep our content and our styling separate."

Do you have any idea if this would negatively effect search engine ranking? I remember reading somewhere that google "takes away points" for inline styling, but I don't know any other way that would immediately solve the problem.

>>56360731
That's how Yahoo does it, don't they? I always wondered how they manage their massive amount of articles. I'll read / learn more about this tonight after learning about caching. God I'm so new it hurts.

>>56361131
I guess I got to where I am now because I used only one css file. I read that two or more css files slow down above the fold download speeds because each file is requested one at a time and, with slow speeds in China, an incredibly slow download will annoy users and drive them away. My goal is a sub second above the fold download time.

>But.. why?
Then what's the background-image: url(); for anyways? How else do you summon a picture to use as a background? For what I'm working on, each page has a different background. I don't want to sound like I'm complaining to any of you, just confused.

I will also learn more about what you suggested.
>>
>>56363150
>nano
>>
File: dogme-me.png (30KB, 100x100px) Image search: [Google]
dogme-me.png
30KB, 100x100px
>>56362145
>>Backend Web Dev
>>Frontend Web Dev
>>Data Engineer
>>Database Admin
>>IT guy (i.e. hardware)
>>Analysts/Business Intelligence
As a more or less normal person who has to sometimes talk to most of the above they are all autistic shits who I imagine might rape someone if they had the chance. Im surprised half of you niggas didnt shoot up a school or some shit. You also all think you know more than everyone else when in reality you're about as dumb as the average normie, with the only difference normies know its not cool to brag about how good you are with computers.
>>
>>56363544
Gets the job done when I want to uncomment or comment one single line of code
>>
>>56363150
>laravel
cringe
>>
>>56363547
>BI
>Not extroverted enough to be salespeople
>Not introverted enough to be engineers
>literally the Inbetweeners of the tech world
>>
>>56363592
stop being retarded, it's a good framework for php, no matter how shitty php is
>>
>>56363734
>frameworks
I love PHP (even using it for large parts of the g torrent project), but frameworks just make me want to kill myself.
>>
>>56363423
>I guess everything I've ever read about css said the same, "inline styling is bad, we like to keep our content and our styling separate."
In general yes, unless you have a good reason not to. Inline styling makes it a gigantic pain in the ass to change anything if you have more than just a few pages.

>negatively effect search engine ranking
Nobody but google knows for sure. It probably hurts you a bit, but I doubt it's that significant compared to your content.

>That's how Yahoo does it, don't they?
You mean that's how Verizon does it now. But yes, pretty much any medium-large website has some backend software that reads the user's http request, pulls the appropriate data from a database (or inserts into it), fills a template with the data, and returns that to the user in some form or another.

>two or more css files slow down above the fold download speeds
Technically yes, but not even enough to notice. Obviously if you had a lot of large css files, it will slow it down. And if the internet is slow enough that only using one css file makes a difference, your users are probably used to waiting. You'll save way more bandwidth by making sure the images are optimized than by reducing the amount of css rules.

desu, you may want to look into a CMS framework like wordpress. It should do what you're trying to do easily enough. When you get better at web dev, you'll hate it, but for now it should save you the tedium and headache of editing 150 pages by hand.

You could also look into using a flat file CMS like Jekyll. It's similar to a CMS framework except it compiles templates you make into static files. You don't need backend software of a database, but you have to recompile and re-upload your site if you want to change anything.
>>
>>56363726
Not to be rude, but I feel like extroverts and introverts are just made up words for people who maybe don't have that many friends or have a slightly unlikable personality. When I was younger is was super insecure about shit often making people ask me twice about things just to make sure they meant it. This changed as I later in life got better and more popular friends who encouraged the shit I did and could just hang out with casually. Although I was never nearly as autistic as most the people here you guys shouldnt have a hard time becoming more social if you just dropped the whole "I know everything about computers" act and made some non-autisimo friends.
>>
>>56363578
It doesn't even have line numbering, you barbarian. Just use vim.

>>56363925
You sound like a middle school gym teacher.

Social anxiety is the word you're looking for, which is when you're shy and are fearful of talking to people.

Introverted people just prefer to do quiet relaxing shit with a few close friends as opposed to extroverts who want to be loud and party all the time.

And every single person on here and probably 80% of everyone in the IT sector is on the autismo spectrum somewhere.
>>
>>56364061
Anxiety, itrovert, extroverts etc are words that have no meaning behind them. It's just a state of mind that you can either choose to get over or choose to be a waste of human life and resources ;)

Basically: Do drugs, make friends and contribute to society.
>>
>>56364115
Today I learned every word is meaningless.

Fuck a dictionary.
>>
So, I just started playing around with Reagent... ClojureScript actually seems really cool.

Anyone here do anything with it?
>>
>>56364115
>Anxiety, itrovert, extroverts etc are words that have no meaning behind them
They literally do though ;)
>>
>>56364061
Nah IT is full of perverts who organize orgies with naughty sluts.
>>
>>56364061
No, you have misunderstood, but a lot of people do.
Introverts are simply people who need time on their own to recharge, they may every well like being around lots of people, but they find it draining.
Extroverts are the ones that get energized from having other people around.
Sometimes this manifests in the behavior you described, but it's not the root definition.
>>
>>56364787
Sure I need to recharge after cumming 40 times!
>>
>>56364782
Exactly. Who else will organize things on FetLife?
>>
What's a good place to learn Javascript and PHP?
>>
>>56366220
w3schools
>>
>>56353132
What did you self study? Web dev?
>>
newfag, learning html and js.

Suppose I have an index.html and a stylesheet.css

On the index, I have some div with id="faggot"

On the stylesheet, I have the following

#faggot {
background: #111314 url('images/background1') no-repeat center center;
}


I would like to write some Javascript on my index.html that checks for certain conditions, and picks a variable "background" + x where x is some number, then passes that variable into the above line in the css, so that I can have it load a different image depending on whatever condition.

I've got all the code worked out to do it, I just don't know how to interact with the stylesheet from my index.html page.

I've found solutions using stuff like php, but I'm hosting my page on github, so have to limit myself to Javascript.

Any help?
>>
File: sd.png (24KB, 394x333px) Image search: [Google]
sd.png
24KB, 394x333px
What else should I add?
>>
>>56367180
fs and leftpad
>>
>>56366889
Basically, you want to play with
document.querySelector("#faggot").style.background

?
>>
>>56368267
getElementById is better for Ids (And way faster), but querySelector and querySelectorAll allow you to use the same selectors from your CSS.
>>
File: fe8Si0Z.webm (1MB, 270x480px) Image search: [Google]
fe8Si0Z.webm
1MB, 270x480px
>mfw learning a new framework for the first time
>>
Hey. Does anyone have a good tutorial on how to set up authentication (create account, login, logout, recover pass, etc) with either Zend Framework 2/3 or with any new-ish version of Symfony?
>>
In the MVC pattern, do the Controllers have all the logic? Are routes in express like Controllers? I'm looking at an Express tutorial and they're basically putting all the logic inside routes, from connecting to the db, to processing requests and responses, and the models are basically just database schemas and collections.
>>
>>56368544
Controllers should be kept as thin as possible. Models are place for logic.
>>
>>56336286
anyone used google app engine in recent years? i heard it got better and i want to use a paas (cant be fucked doing my own infrastructure)
>>
>>56368658
This.

A model should not only hold data, but also the operations you want to do with said data.

Controllers are just logic from the user standpoint, but any real work on a particular type should just a call into the model.
>>
>>56362145
>Backend Web Dev
Good programmers, slightly academic, tend to overengineer.
>Frontend Web Dev
End up being the ones who actually figure out business requirements.
>Data Engineer
Hardcore, most educated, but passive.
>Database Admin
>IT guy (i.e. hardware)
These go together. Tend to prematurely scale things and overcomplicate things. Would be better off replacing them with a PAAS in many cases.
>Analysts/Business Intelligence
Absolute muppets who try to get involved in everything but understand nothing.
>>
File: 1450379066800.png (24KB, 189x189px) Image search: [Google]
1450379066800.png
24KB, 189x189px
>>56364177
That was from the Clojure thread earlier.

There is a lot of automagic that happens with Reagent. Like, having changes happen in realtime as you modify files (without reloading) and the ability to tell the browser what to do from external programs. (Like the default REPL)

Debugging even shows Clojure in the web inspector. It's actually pretty slick!

It's cool that "lein new reagent <project>" basically gets you completely set up to do whatever too.

This is a pretty good intro if you are just trying things out: https://www.youtube.com/watch?v=pIiOgTwjbes
>>
>>56364177
it looks really good, but i wonder why they don't wrap a lighter/better virtual dom library or even implement one in clojurescript itself
>>
>>56368914
>intro
Wow, *demo

It is a good demo to show that you can basically ignore that it is a browser after some point.
>>
What's a good place to find ideas for projects and such? I'm pretty new to webdev but I think I have a decent enough grasp of the basics to do some portfolio boosting. I've been trying to find a job and I want to be able to get some more stuff under my belt before I give up entirely.
>>
>>56369042
Know of anything that irks you?
Or maybe there is something that you already use that you think you might be able to write?

Basically, making things you want to use can be a good starting point.

If nothing like that exists, try making a note taking application and integrate it with everything you can. That way you can know how to do integration with other things more easily if you ever need to professionally, and it looks pretty good having experience in all of the things you choose to integrate with. (Since each integration can be a bit of a project in itself that lets you learn a bit about the thing you are integrating with)
>>
File: maxresdefault.jpg (102KB, 1280x720px) Image search: [Google]
maxresdefault.jpg
102KB, 1280x720px
Okay, I looked for a programming general thread, but didn't find one, so I'll ask here

I want to create a simple game as a tool that helps me learn something.

When I was a kid I used Visual Basic 6 and made some simple programs, but I haven't used a computer for anything other than porn for the last 15 years, so I don't remember any of the language.

Anyway, I know Visual Basic is dead, but is there something similar, where I can create a layout visually like you could in vb?

I was going to do this in Javascript, but I don't feel like learning it from the ground up, then having to brush up on HTML and CSS to accomplish what I need.

THANKS!
>>
File: wew.png (29KB, 1778x116px) Image search: [Google]
wew.png
29KB, 1778x116px
why doesn't this work /g/? All I'm getting is the string "$nome" and "$email" instead of their values.

> pic related
>>
>>56369136
Single quotes don't let you replace values. You need double quotes for that.

>>56369134
Delphi, yo.
>>
>>56369175
>Delphi, yo.

Thanks, I'm checking it out now
>>
File: lad.png (37KB, 1192x142px) Image search: [Google]
lad.png
37KB, 1192x142px
>>56369175
>Single quotes don't let you replace values. You need double quotes for that.
Thanks pal, I did pic related and it worked.

I'm just mad that I didn't figure out a way to do this without JavaScript, is there any way?
> inb4 header(), it just gives me the "headers already sent" error every time.
>>
>>56363734
why not just use ror/django? using frameworks with php is stupid.
>>
>>56369134
VB was replaced by C#, check out WPF.
>>56369175
isn't Delphi only a little less dead than VB?
>>
>>56369136
Quotes like already said. Also check out sprintf.
>>
>>56369318
Header must be first thing in page before any output. This is usually achieved with good structure and templating.
>>
>>56369134
write the classic 'snake' game in whatever language you pick. probably you should go for javascript though
>>
>>56369930
> form
> user submits the data
> php kicks in
> saves everything in a mysql database
> at the end, of this process, I need to go to another page (index.php)
wat do?
>>
>>56345026
I used to use Reshaper for C# from the same company, so switching to phpstorm/webstorm was an easy decision to make - Can definitely vouch
>>
>>56369977
You do redirect with headers. I don't get where you start output. Maybe show your code?
>>
Can I have a job yet?

I made a countdown clock that can also count up, to either a selected time or to infinite.

You can show the zeroes 00:00:01 or hide the zeroes which would be just 1.
You can have hours or have no hours.
Font is customized with Google Fonts.
jscolor for font color.
Styled with a heavily modified cutestrap.
>>
>>56370419
Creating a small function like that is not the same as build a real, heavy, complex project, anon.
>>
>>56370437
I built an fmylife clone that is actively used. It hasn't got me a job a yet.
>>
>>56370447
Do more projects in the meantime, then.
Your countdown is not bad, just make sure you build different things, some widget, some serious projects, etc. It'll look good on your portfolio.

How many companies have you sent your reference, though?
>>
>>56367180
>mongoose
Enjoy your data loss
>>
Whats the best resource/tutorial/site/youtube channel/whatever for learning how to write good sql queries?
>>
>>56370496
Every single one. After I send my projects over I never hear from anyone again.

I'm rewritting the fmylife clone and open-sourcing it.
>>
>>56370523
Experience.
>>
>>56370523
Learn joins and normalization rules.

Queries are easy though. You know what you need and when you need it, so you just ask for it. Not sure why SQL experts make 80 an hour where I live.
That said, I just learned you can do variables in SQL yesterday.
>>
>>56370523
Remember to use the correct function
msql_escape_string_v2_actuallyworksthistime_v4()
>>
>>56370572
>msql_escape_string_v2_actuallyworksthistime_v4()
You still use that deprecated shit? We use the mysqli2_absoposilutelygoingtoescapethestring_v2-v4.03alpha_001_beta() already. Get with times, gramps.
>>
>>56370563
Database design and functions mostly. It's design that's difficult and hard to learn.
>>
var css = { 'opacity': 0, 'background': 'var2' },
var 2;

var2 = '#000';
$kek.css(css);


var2 doesn't inherit #000 in css variable, why?
>>
>>56368908
10/10 agree
>>
>>56370996
I don't know what language that is but I don't think assigning a random string to a variable will set CSS. And #000 isn't valid CSS. It's just a string.
>>
>>56371215
It's javascript and it works, but I'm trying to figure out how to update a variable in a variable basically.
>>
>>56371247
Nigga wtf

var var2 = '#000',
CSS ={background: var2};
>>
File: babbb.png (15KB, 552x662px) Image search: [Google]
babbb.png
15KB, 552x662px
How do I make CRUD apps that look acceptable?
Does my usermangement GUI looks acceptable?
Text becomes black and background becomes black for buttons on hover, that's about it.
>>
>>56371270
CSS.backgriund ='fuck coding in phone'
>>
>>56371274
Different labels that aren't variableNames.
>>
>>56371270
Let me rewrite to show you in a cleaner example.

var css = { 'opacity': 0, 'background': var2 },
var2;

var2 = '#000';
$kek.css(css);


Variable css gets declared first with var2 variable inside it being undefined.

THEN we set var2 to string '#000'. The var2 inside variable css does not get set to '#000', it remains undefined.

You're wrong.
>>
Kinda new to programming here, can anyone tell me how to make forms bigger? They are a reasonable size on a pc but when i change the device to a phone its incredibly small, i know i can change the pixel count but i would prefer something like em to make it more consistent but it doesn't work, i cant find anything when i search online
Can only use html and php since the it's for an assignment related to both, thanks to anyone who can help
>>
>>56371395
> HTML, CSS
not programming

just use bootstrap or some other good tier css framework.
>>
>>56371516
I will eventually, but with regards to the project its the only problem i have and i don't really have the time to be learning new stuff as it is almost due, i just need to know how to solve this one thing right now
>>
>>56371600
increase the font size, increase padding, you can even define the minimum height and width of each input
>>
>>56364115
>do drugs
>contribute to society

Pick one
>>
>>56371703
tell that to steve jobs
>>
>>56343562
The Web browser's console
>>
>>56371666
Thanks for the help, seems i'm just messing it up somehow because it stays the same size
>>
>>56344945
Webstorm. Only Webstorm.

Atom/vim for misc (shell/nginx/Ruby etc)
>>
>>56371761
After enough searching i discovered the meta tag
>>
>>56371761
Try using !important, something might be overwriting it.

input[type=text] { padding: 25px !impotant; font-size: 30px !important; }

should do the trick
>>
Hey anyone know any web frameworks for x64 assembly?
>>
Been out of the webdev game since 2013, what are some new trends? Last time it was responsive design, JS frameworks errwhere, is the nightmare over yet?
>>
>>56372072
Nope. Angular and Node are still really popular among startups and new devs.

Ruby is dying tho so thats good
>>
>>56372100
Just ban me from life senpai
I'm glad that slow piece of shit is dying
I guess JS and it's frameworks made it possible for really every person to program so that's why the cancer is spreading, even women and black people can code now, what times we live in. Thanks bro
>>
>>56372100
I always wonder those who shit on PHP, Node, Ruby. What do you like? What tech do you use for webdev? You seem to hate everything.
>>
>>56369907
>isn't Delphi only a little less dead than VB?
Yes. But it and it's IDE still see some real-world use today. (There is also a rumored Linux release sometime down the line.)
Object Pascal and Lazarus are on a similar level.
>>
>>56372158
PHP is tolerable because it has multithreading. Python and Perl aren't bad, some frameworks can handle huge amounts of requests. Java,Scala,Clojure etc have some amazing frameworks. Go also has some decent stuff, it's just JS and its frameworks that are cancer
>>
>>56372218
this plus erlang
>>
>>56371748
You should get off those drugs, man.

He's dead.
>>
>>56372218
Okay, thanks and what is an amazing framework for you?
>>
>>56372039
No frameworks, but this is a server that can get you started in the right direction: https://github.com/nemasu/asmttpd

If you do this though, I highly reccommend lots of testing. The web is complicated, and assembly doesn't give you very many fancy abstractions to work on web stuff with.
C unit testing frameworks can be used with the assembly of your choice, so you should pick one of those: http://stackoverflow.com/questions/65820/unit-testing-c-code
>>
>>56372277
Syntax wise I enjoy laravel, performance wise I enjoy urweb for java
>>
>>56372125
Relax pol. You are obviously not even white just another bitter alt right italian slavic jewish hybrid monster. And of course you sound too dumb for html.
>>
>>56372324
Didn't mean to trigger your inferiority complex m8, tho I can't blame you for having it
>>
File: 1439305685dream_1438627004.jpg (95KB, 640x427px) Image search: [Google]
1439305685dream_1438627004.jpg
95KB, 640x427px
>>56372237
B-but I'm conducting classical music...
>>
>>56372345
You have the smug sense of self importance that only comes from some half african quasi westerner that claims he invented apple computers the moon landing and the lightbulb.
>>
>>56372158
There is the inevitable Eevee link any time you ask about PHP, though I can't link it because 4chan thinks its spam. (Just Google "PHP is bad". It's the first result)
Though good libraries and knowledge of its gotchas tend to fix a lot of the problem.

>Also, a lot of people like Java. The likes of Jetty servlets and JSP is super-common these days.
>Ruby has Rails, which is still incredibly popular.
>There are also smaller frameworks in Ruby like Sinatra that are common.
>There are also static site generators like Jekyll. (Also Ruby)
>Python has a lot of things that copy Ruby for people who like Python and don't want to learn Ruby.

There is also the groups who likes something not super-common.
>>
>>56372362
Uhhh cool I guess? (???)
>>
>>56336286
Anyone know where I can get a 1-10 gbit unmetered vps?
>>
How can i add Play over html <video>.
So when video is loaded it has "poster", i want to be able to click on poster, and to start video.
It works on firefox but not chrome
I tried:
$('.video').click(function(){this.paused?this.play():this.pause();});

but it doesn't work
>>
>>56372456
output the this variable on console and see if it's really the .video element
>>
>>56372456
>this
Try $(this) ??
>>
>>56372535
this (sorry, but really). read the jquery docs.
>>
>>56372551
sorry just guess. I dont use jquery
>>
>>56372551
to be more specific, it's something like $(this)[0]
>>
>>56372619
dude just stop, wait for him to reply, you're alright lol
>>
>>56372638
We need ids

>>56372535
>>56372603
me

>>56372619
some other dude
>>
>>56372665
kek, had so many times when I got chewed on or attacked because someone thought I was someone else, indeed we need id's
>>
File: 44zhZ37.png (356KB, 506x662px) Image search: [Google]
44zhZ37.png
356KB, 506x662px
>>56372039
>>
File: Selection_050.png (164KB, 1330x574px) Image search: [Google]
Selection_050.png
164KB, 1330x574px
>>56372535
not working
>>56372514
>>
>>56372801
why don't you check $('.video').attr('paused')?in the console btw
>>
>>56372960
>$('.video').attr('paused')

i added video-js, fuck it
>>
File: 2016-09-01-202947_1280x800_scrot.png (308KB, 1280x800px) Image search: [Google]
2016-09-01-202947_1280x800_scrot.png
308KB, 1280x800px
>>56372801
works for me
>>
>>56354965
I'm using ES6 classes (transpile them with Babel) with UMD (Universale Module Definition), to make my modules work with RequireJS, CommonJS, and also without them.
Also, it's fucking easy to handle my dependencies with UMD+RequireJS
>>
>>56372365
And that eevee post is from 2012. We now have PHP7.
>>
>>56373039
>>56373040
so i tried again, removed video-js fuck it
i did:
var video = document.getElementById("videoWebm");

function pP() {
if (video.paused)
video.play();
else
video.pause();

}


then i set
onclick="pP()"

and everything works
>>
>>56373354
gg
>>
Hello, I'm from /dpt/. I hate the web and think it's a big meme, however, I need to make a website. While I have knowledge of javascript, basic html and basic css, I need help making a layout for my site. I'm tempted to just use a big table and shove everything in its spaces, but then anyone who looks at the code will cry about that being bad, so how do I learn to lay out content properly?
>>
>>56374442
Just use a template. It will teach you while you work with it and your first 3 sites wont look like shit.
>>
>>56374442
Look at the big boy from /dpt/ who can't make a simple layout. Go write another fizzbuzz, babe.
>>
>>56374442
If it is just a layout and you are complete ass at designing, you can use something like Bootstrap... If it is an actual site in general, a static site generator like Jekyll can do wonders.
>>
>>56374515
You are kinda mean, anon.
>>
>>56374519
Jekyll: https://jekyllrb.com/
Bootstrap: http://getbootstrap.com/
>>
>>56374515
My programs just shit out results onto stdout, I normally don't have to worry about making them pretty.

>>56374496
>>56374519
I don't believe in offloading work to others, so I'd really just rather learn how to make a layout myself. It can't be that hard anyway, I'm guessing it'll just be a bunch of css float and clear.
>>
>>56374579
You don't use any libraries when programming?
>>
File: Oshasad.png (30KB, 224x224px) Image search: [Google]
Oshasad.png
30KB, 224x224px
>>56374579
The reason I suggested that was because web design is not something you can learn overnight. If you loathe the web, doing good at it will be even harder for you.

I mean, CSS isn't super-hard, but making something that looks nice with it is another matter.

>I don't believe in offloading work to others
If you use libraries, or an operating system for that matter... You are offloading work to others. Building things with technology is entirely based on this.

Though I guess this can be a bit more DIY than making a language or something. So, uh, if you really want to learn... I suggest starting with some of these: https://www.smashingmagazine.com/responsive-web-design-guidelines-tutorials/

Actually, Smashing is really good for guides in general for web design, UI, and UX. Also, MDN makes a good reference for CSS, HTML, and JS: https://developer.mozilla.org/en-US/

Also, when you start out, play around with the tooling you have. Web inspectors these days are actually totally boss development environments. Firefox and Chrome have inspectors that let you see CSS changes instantly as you edit them on the source tabs. Also, Chrome lets you hotswap JS into pretty much anything while it is running or debugging and associate source files with files on your hard drive so you can just save and reload after you find the thing you like.

Also, keep layouts in mind... You have no idea what devices your site will be viewed on. Responsive design kinda sounds like a meme until you see how garbage some sites look like on different screen sizes than the original developer. It reflects on you really badly.

Anywho, good luck..!
>>
>>56374704
Of course I do, but I try to only use libraries which I could build myself (or at least understand the principles of), or that I'm simply forced to use even if I wouldn't know how to make them myself.
>>
File: href.png (1001KB, 1366x768px) Image search: [Google]
href.png
1001KB, 1366x768px
How can i make link clickable?
It is like, it is under video, i cant select it or click on it.
links css is
.next{
position: fixed;
top: 8px;
right: 16px;
color: white;

}
>>
>>56373313
PHP 7 solves almost none of the gripes in that post though.
>>
File: 1453738488991.gif (892KB, 320x240px) Image search: [Google]
1453738488991.gif
892KB, 320x240px
>>56374579
>It can't be that hard anyway
It looks far easier than it actually is.

The barrier to entry is pretty low, but after that... Thar be dragons!

The entire reason we make frontend toolkits and frameworks are so people with development abilities (Like you) don't have to worry about the absolutely massive headaches that come from supporting nearly infinite targets without sacrificing design.

A lot of people don't like the web, they think the stuff we do is frilly and something that anyone can do without much effort because it is so far away from the bare metal of a system. Honestly, I don't blame you all. From the outside looking in, this entire craft seems like getting paid to tweak colors and be sad about about the odd pixel.

However, these are the kinds of people that will have an incredibly hard time if they ever try to do what we do because this view couldn't be farther from the truth.

So, we make these libraries to make it easier for developers, so they don't have to worry about things outside of code and logic.

>>56374777
It is still worth looking into these libraries, because their internals can give you some hints about how to design things yourself.

A lot of work went into making these things work well and look nice, so if you look at the things they produce, you can often get a good idea about how to make good things yourself.
>>
>>56374777
>>56374928
That said, here is that starting point: https://www.codecademy.com/learn/web

Good luck.
>>
>>56374813
>How can i make link clickable?
<span onclick="alert('dicks')">Next</span>
>>
HURR DURR CAN'T HANDLE A LARGE NUMBER OF REQUESTS
>implying that any of you dumbfucks has anything on the web that takes a large amount of request
SO STOP HAVING A SEIZURE AND JUST DO IT!!!!
>>
>>56375756
B-BUT MUH WEBSCALE!!!111
>>
emberjs , vue or reactjs ?!
which one ?!
>>
>>56375798
vue is simple enough that you learn it in a day or two, then I'd say react
>>
So how does redis-server work? It's fired up but there are no request are sent its way. is there something to run other than localhost:3000?
>>
>>56375798

Ember is pretty cool, but you have to put some effort in it before you can use it.

It's like a "frontend Rails" (opinionated, lots of magic happening), take from that what you will.
Thread posts: 317
Thread images: 41


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