[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: 324
Thread images: 47

File: 1456449140972.png (868KB, 822x552px) Image search: [Google]
1456449140972.png
868KB, 822x552px
Previous thread
>>61569379

>Getting started
Get a good understanding of HTML, CSS and JavaScript.
The Mozilla Developer Network offers a good intro (no matter your browser choice)
https://developer.mozilla.org/en-US/docs/Learn

>Free online courses
https://www.codecademy.com/
https://www.freecodecamp.com/
https://www.bento.io/

>What next
https://www.youtube.com/watch?v=sBzRwzY7G-k [Embed]
https://github.com/kamranahmedse/developer-roadmap

>Useful resources
https://developer.mozilla.org/en-US/docs/Web - General documentation for HTML, CSS & JavaScript
https://stackoverflow.com/ - Developers asking questions and helping each other
https://caniuse.com/ - Check browser support for front-end web technologies

>Useful Youtube channels
https://www.youtube.com/derekbanas
https://www.youtube.com/learncodeacademy - codecademy
https://www.youtube.com/channel/UCO1cgjhGzsSYb1rsB4bFe4Q - funfunfunction
https://www.youtube.com/user/TechGuyWeb - Traversy Media
https://www.youtube.com/channel/UC8butISFwT-Wl7EV0hUK0BQ - freeCodeCamp

>an in-depth comparison of VPS hosts
https://www.webstack.de/blog/e/cloud-hosting-provider-comparison-2017/
>>
CJ.com have no styling for anyone else?

Trying to sign up but...
>>
>>61598018
Ha, nevermind. Ad blockers apparently make that website nearly unreadable.
>>
I'm trying to make a simple node app with an express backend and vue frontend, but I'm not sure about the best way to structure it. I want to use es2016+ shit which means I need to transpile the backend with babel, but I also need to build the frontend with webpack. What's the best way to make it all play nice?
>>
>>61598132
Yarn? Or am I missing something.
>>
>>61598132
>transpile the backend with babel
There is no need to transpile code, when you run it with Node.

You can use the vue-cli starter template for webpack or make your own from scratch, by adding pieces whenever you need them.
>>
>>61598216
times are changing, but I still wouldn't recommend transpiling client side
>>
>>61598216
>There is no need to transpile code, when you run it with Node.
There is if you want to use stage-2 features in your server code.
 import x from 'y' 
and the spread operator, etc.
>>
>>61598132
>es2016+
The latest version of Node support ES2016 pretty much entirely, and many ES2017 features, so you probably don't need to bother with Babel for your backend code.

The frontend does need to be transpiled to more widely compatible code. I think Webpack has a Babel module that transpiles your code as a step in the build process.
>>
>>61598291
>Webpack has a Babel module that transpiles your code as a step in the build process.
yes

>>61598243
I use spread and import a lot. Would this also apply to destructuring parameters? Or fat arrow binding?
>>
>>61598243
spread operator is compatible though
https://kangax.github.io/compat-table/es6/
>>
>>61598325
see
>>61598331
do you absolutely need import so that require() is not enough?
>>
Making something crazy
>>
>>61598331
but IE11 :(
>>
File: 1500826073804.jpg (66KB, 590x358px) Image search: [Google]
1500826073804.jpg
66KB, 590x358px
post what you're working on
>>
>>61598379
were strictly talking about Node there
IE always needs Babel for everything
>>
>>61598379
>>61598398
Fuck old browsers desu
>>
>>61598429
true, but you can't really tell corporate clients what to do
>>
File: temp.jpg (185KB, 1101x921px) Image search: [Google]
temp.jpg
185KB, 1101x921px
>>61598390

shopify theme for edgy designers
>>
File: cs.jpg (196KB, 1361x919px) Image search: [Google]
cs.jpg
196KB, 1361x919px
>>61598390
still my stat site
Converting from lowDB to levelDB at the moment, after some anon suggested that as a good choice.
Also adding a column for current board-activity %, relative to the highest activity usually seen during a day. I would need to gather stats for a whole week first though, to get an accurate calculation.
>>
File: 1396969282252.gif (157KB, 500x500px) Image search: [Google]
1396969282252.gif
157KB, 500x500px
>>61598539
damn this looks really gud
can you make graphs next ?
graphs always tingle my dingle
>>
Why are you guys here talking about PHP so rarely?
Is it becoming it's becoming a dead language and I'm unaware of it or what?
>>
>>61599474
because*
sorry, it's almost 4 am here
>>
>>61599474
because c# asp is superior
>>
>>61599474
Because it's not really the way the web works anymore. Preprocessing isn't flexible enough on it's own for a modern experience. You're going to need other tools. Tools that can do the same shit PHP is doing.
>>
>>61598390
Can't. Under NDA :^)
>>
>>61599550
PHP is excellent when used strictly as a language for making APIs.

I agree with you otherwise.

I'm working with a CMS that was built using PHP as an actual templating language.

Imagine what that code looks like.

PHP templating javascript depending on several different things. WEW it's a bloody disaster.
>>
>>61598132
use vue-cli
>>
File: 75b24350c5[1].png (14KB, 688x339px) Image search: [Google]
75b24350c5[1].png
14KB, 688x339px
>tfw too retarded to become a webdev after trying for a year now

I just... don't get it.

How do you guys think when you come up with your stuff? This just looks so complicated. It doesn't help that anytime I look at any actual web dev project like >>61598501 my brain just melts.

What is the secret /g/? How do I become better?
>>
>>61600028
Reading other people's code is like reading someone's hand written notes.
You need to pick some project for you to do and go through it. You'll have to look up solutions to your problems as you go and make stuff up as well.
>>
>>61600028
the secret is actually designing what you want before you ever touch code
>>
guys does anyone has a quick tutorial for MySQL for someone who knows SQL server and SQL lenguage??
>>
>>61601127
if you already understand the concepts, just google what you want to get done. are you having trouble with something?
>>
Can anyone explain what affiliate marketing is and the steps need to be taken when programming it?
>>
Guys, one question, what's your current web dev automation stack?
>>
>>61601491
*architecture
>>
File: image1.jpg (601KB, 1200x628px) Image search: [Google]
image1.jpg
601KB, 1200x628px
Are freecodecamp's project demo codes well written?
>>
File: 1501005943672.jpg (33KB, 495x482px) Image search: [Google]
1501005943672.jpg
33KB, 495x482px
>>61601491
what's an architecture stack
>>
I'm trying to add a login system to my Django site. It seems like Django would include all the default login, logout, reset password, etc. forms that you would need, the same way it includes the Admin features.

In fact, I found that if you add "
url('^', include('django.contrib.auth.urls'))," to urlpatterns, it seems to add this. But it gives them the default of "login/", "logout/", etc. This is fine. But if I go to those pages, there's nothing there (TemplateDoesNotExist error.) Do I have to make all those templates manually?

Also, in views.py, I can import "from django.contrib.auth.decorators import login_required", and put "@login_required" before every def view request that I want the user to have to be logged in for. It's working, but it is looking under "accounts/login/" (which is not found) instead of just "login/". WTF? I changed it with LOGIN_URL='/login/' in settings.py, but now it gives me the error TemplateDoesNotExist: registration/login.html .

So my question is: If all these pieces aren't nicely plugging together, am I using them correctly or should I be using something different? And are there default templates I can use?
>>
I'm new to all "dis" as the kids say, how do I get a live output from the textarea so it changes the age property in the object?

https://jsfiddle.net/0kj7dmv8/
>>
>>61603317
You're gonna want events. Either onchange or onkeypress. https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/Events
>>
What would you say is the best way to learn web development?
>>
>>61603344
Thanks for steering me in the right direction and not just solving my problem for me m8.
>>
>>61603365
>

Depends on your prior knowledge.

But in general: Following a 'getting-started' tutorial from any of the major front-end javascript frameworks (Angular, React, Vue, Ember), and then just build your own thing and research any problems you still have.
>>
File: .jpg (37KB, 680x680px) Image search: [Google]
.jpg
37KB, 680x680px
>>61600028
>>tfw too retarded to become a webdev after trying for a year now
pffff, that's nothing kiddo, 5 years here. though my problem isn't that its too hard it's just that i have no education and whenever i try to make something i lose motivation halfway through so i literally have nothing to show for those 5 years
>>
>>61600028

I'm >>61598501

If I was working with others I would have written comments and used proper formatting/ variable names. Don't feel bad for not being able to read pic related like you would English.

>What is the secret /g/? How do I become better?

Learn by doing. Think of something you're actually interested in making and go through the pain of building it.
>>
How much React/ JS Framework would I need to know to get a Junior job using one of them? I want to get into one but they all require experience already
>>
File: 1501101094459.jpg (49KB, 665x574px) Image search: [Google]
1501101094459.jpg
49KB, 665x574px
What do you think about test-driven-development?
Do you write tests for your code and has it proven useful or is it too much overhead?
>>
I'm receiving http posted data chunks in Node/Express.

Do I need to implement checksums for data integrity? And in case of connection failure and only partial data upload? Or will Express only run its handler if the entire http request was successful?
>>
File: compact frog.jpg (37KB, 400x400px) Image search: [Google]
compact frog.jpg
37KB, 400x400px
>DigitalOcean - Whoops! There's an outstanding balance on your account
>DigitalOcean - Whoops! There's an outstanding balance on your account
>DigitalOcean - Whoops! There's an outstanding balance on your account
>DigitalOcean - Whoops! There's an outstanding balance on your account
>>
File: 1500143397817.png (11KB, 300x300px) Image search: [Google]
1500143397817.png
11KB, 300x300px
>>61604987
It's too much overhead when you're learning how to program or how to use your framework as well as learning the test library but once you have it figured out it's actually less overhead since you can happily fuck your shit up without having to worry about regression.
Also it makes you figure out the interface you are implementing before actually writing the code which is nice in case you don't do it by other means. This is one less thing you have to worry about when writing the actual implementation so again, less overhead.
I'd say once you're used to it and providing you don't have some crazy complex application environment to mock up it saves you time on the long run.
>>
>>61605224
Bonus points for bloating it up and adding test coverage analysis, setting up continuous integration and so on
>>
>>61603317
liek "dis"
https://jsfiddle.net/f5hcb86f/

I skipped the object bit, but you can feel free to implement that. I'm just a lazy fuck.
>>
http://2ality.com/2017/07/class-fields.html
>this.#foo
JUST
>>
Great, now every good app name is taken.

It's almost as hard finding an app name as it is a domain name.
>>
File: VVCtOGV.gif (990KB, 400x225px) Image search: [Google]
VVCtOGV.gif
990KB, 400x225px
>>61605565
>>
What would be good for hosting a small online multiplayer game? Heroku, AWS?

>>61605810

What's your app do?
>>
I am planning to write an HTTP-based API. Just an API, frontend isn't my problem. It'll involve PostgreSQL.
What's the solution with the least amount of pain to do this? JavaScript need not apply.
>>
>>61605923
>What would be good for hosting a small online multiplayer game? Heroku, AWS?
Heroku and aws provide you with useful services and easy scalability in exchange for more moneys so provided you are willing to do some sysadmin work and don't expect your userbase to skyrocket you can try setting your app up on a cheap vps.
But maybe that's just my jew mindset
>>
>>61605224
>Also it makes you figure out the interface you are implementing before actually writing the code
Yeah, I can see the advantage in that
I currently start with a rough idea, but then constantly shift things around, adding or removing features as I go.
It would probably be different on a professional work project compared to a private hobby one.
>>
>>61606313
Yea if you're programming in an exploratory way maybe wait until your stuff stops changing too much and add tests afterwards.
It'll still help you against regression and to understand your project 5 months from now when you decide to finally dig up that old project you've stopped working on for reasons you can't remember
>>
>>61606099
Python?
Whatever is your favourite language?
>>
>>61606099
chose whatever language you're comfy with
if you're not comfy with any language chose java and spring for the sweet auto generated database calls
https://spring.io/guides/gs/accessing-data-jpa/
>>
>>61606468
this is a better link btw https://spring.io/guides/gs/accessing-data-rest/
>>
>>61606468
>>61606501
Hm, looks fascinating. I'll look into it, thanks.
Thankfully, I can just bail on the job once it works or I'd be terrified to use so much automagic.
>>
>>61598501
Pretty horrendous code
>>
>>61603900
Get a job so you get paid to learn new things you can employ on your own later on
>>
>>61604987
TDD dictates writing the simplist solution because you're only trying to pass the test. It requires a lot of foresight to understand the problem. I recommend a mixture of TDD and ATDD
>>
>>61606554
Meh, it works.
>>
>>61606534
>I'd be terrified to use so much automagic
It's nice to make quick prototypes but you might get overwelmed if you need to make more complex stuff using more libraries because this framework is huge so it might take some time to figure out what's what
thankfully it's popular so there are plenty of copy paste material from friendly pajeets on stack overflow

you might want to drop starter-data-rest dependency from second link and use starter-web instead if you want to make a regular http controller instead of the weird hateoas one in example

also don't hesitate to ask for help
>>
>>61606664
btw, is there a realistic chance this framework lives until 2024? Apparently this is going to run on SUSE and I don't want framework-induced security vulnerabilities become unfixable because upstream dies (or abandons Java 8)
>>
>>61606716
It's a pretty enterprisy environment, they try to maintain backwards compatibility and not fuck stuff up every 2 in classic java fashion
https://abi-laboratory.pro/java/tracker/timeline/spring-framework/

Just change dependency versions in project build file if you have to upgrade and you'll eventually have to change a few methods but hopefully not.
2024 seems like a long time tho
>>
>>61606827
SLES guarantees updates for 10 years and the last major release was in 2014.
>>
>>61606595
>"hello i see you have no education on your cv can we at least see your github page to see what you've accomplished over 5 years"
>"there's nothing on there"
>"you're just the person we're looking for, welcome aboard, you can start tomorrow"
>>
uwu c#
>>
I've got to juggle some microsoft office documents conversion, how bad is using the C# interop component to do this? I've seen people discouraging using it but not much explanation is given.

My other choices are either paid, or free but breaks the formatting.
>>
Im having an issue signing with oauth 1

Basically I have to have Authorization: OAuth with my parameters, but the parameters need to have quotes and be separated by commas.

I'm instructed that when signing there cannot be quotes and they have to be separated by &

Is this right? This whole thing doesnt make much sense.
>>
>>61607142
Forgot to say, this will be used for an intranet web service if that matters
>>
>>61607164
I had to make an oauth1 client from scratch about 4 years ago and remember having red this
https://tools.ietf.org/html/rfc5849

It looks bad but it's actually well explained, there even are examples

Your best bet is to find a client implementation in your language of choice tho.
>>
>>61607233
Thanks, I'm reading through it.

I'm just so confused since my Auth header is exactly what they want, and my string to sign is too.

Maybe it has something to do with my encrypting?

base64_encode (hash_mac ('sha1', $stringtosign, $secret, true))

Type is HMAC-SHA1
>>
File: 1500829765082.jpg (36KB, 640x535px) Image search: [Google]
1500829765082.jpg
36KB, 640x535px
>>61607426
signature is made from entire request urlencoded, hashed through sha1 using some concatenation of client secret and nonce as key or some similar bullshit
>>
>>61607590
Yeah, it's just a secret and the string to sign is one line separated by & instead of newline.
>>
>>61599550
Damn, I was learning PHP all this time
What should I learn next to be up to date with the world?
>>
>>61607940
javascript / es6
>>
>>61607940
Depends what you are doing.

Plenty of jobs in PHP.
>>
there is literally nothing wrong with .net
>>
>>61607940

PHP is fine. It still runs half of the web, even if some hipsters don't want to hear it..

But you should also learn some JavaScript of course.

"Jack of all trades, master of none -
that's how web development gets done."
>>
>>61607940
ignore the hipster faggots here man and learn what you wanna learn as long as there are jobs for your craft and there are more jobs for php than for hipster python, ruby and backend js
>>
javascript30.com

Anyone know if this JS course is any good?
>>
>>61607940
>>61608656
ignore the old fuddy duddies in this thread and learn modern technologies unless you want to spend your days maintaining sites written in the 90s
>>
Bruhs I gotta tell ya, I love Javascript right now
>>
Is it just me or is JSBin really fucking slow?
>>
Why does this not work as it should

https://jsfiddle.net/otyjdpx8/
>>
>>61609718
you probably want
var ye = document.getElementById('yee')
ye.innerHTML = 'The number is MORE than 75! ' + 'Number is: ' + a


right now you are just getting the current innerHTML string but not setting it again
>>
>>61609777
Cheers matey.
>>
>>61609718

Because you are getting innerHTML not setting it.

https://jsfiddle.net/945232j4/1/
>>
What would be the best framework for a messageboard system in 2017? Would it still be PHP?
>>
>>61609843
there's no best framework for a messageboard system, but you shouldn't use php unless you don't have time to learn anything else or you hate yourself.
I would use spring or phoenix if I were to begin such project right now though
>>
>>61609843
>>61609964
also here's an open-source forum engine made with phoenix: https://github.com/dailydrip/firestorm
>>
Is it better to apply global styles in CSS with the body selector or with the * selector?
>>
File: cart.jpg (80KB, 1287x761px) Image search: [Google]
cart.jpg
80KB, 1287x761px
rate my minimalist cart
>>
File: 1plus1.png (752B, 82x55px) Image search: [Google]
1plus1.png
752B, 82x55px
Interesting lecture from Dan Lyons about start-ups.

https://www.youtube.com/watch?v=G7vrCpWbmDw
>>
>>61610154
* means it applies to everything on the page. body means it applies to everything in the body tag.
>>
>>61605810
Heroku generates good app names.
>>
>>61610154
Those do different things. So it depends on what you mean by global, and what you're trying to accomplish. I think for most stuff you want the body element.

Child elements will only inherit from properties body if that property is set to inherit (or it defaults to inherit) and no nearer ancestor overrides that property.

The * selector will apply it to literally everything, whether or not things are set to inherit. And if you set a property with the * selector, that property won't inherit anymore, at all. That may be a problem in some cases.

For example, say you want to set your global font to comic sans, so you set it with the * selector. But then you want a paragraph with serif font, so you make a .serif class.
* {
font-family: comic sans ms;
}
.serif {
font-family: serif;
}


But, if you have a word embedded in a tag, in this case <em>.

<p class="serif">the word "<em>emphasize</em>" is emphasized</p>


<em>'s font, which is normally set to inherit, is now set to comic sans, by your initial global selector, and the result is pic related.

If you use a body selector instead of *, then <em> will still be set to inherit, so it will inherit the serif font from <p> instead of using comic sans.
>>
>>61610334
brutalist tier
>>
Hi guys. I copied that exemple here: https://developers.google.com/maps/documentation/javascript/tutorial?hl=en

Replaced the YOU_API_Key with mine and yet it only stays a few secs before disappearing. Why?
>>
>>61607940
Protip: Don't use /g/ for job advice
>>
File: open-source.png (302KB, 1600x900px) Image search: [Google]
open-source.png
302KB, 1600x900px
Do you contribute to open-source projects, /wdg/?
>>
How does PHP handle several requests at once? Does it run one script, then once that's done, goes to the next request?

Wondering how that works because I'm doing some database stuff and I'm worried about lost updates and such.
>>
friendly reminder startup advice is horrendous for indie devs unless you actually want to deal with franchising and vcs
>>
File: image.jpg (63KB, 736x664px) Image search: [Google]
image.jpg
63KB, 736x664px
>>61609271
fuckoff newfag
>>
>>61604278
I mean I've built stuff, I have about 10 projects under my belt both front and back end, I just don't think my stuff is up to par when I see other peoples stuff. That's what worries me.
>>
File: maxresdefault0.jpg (78KB, 1280x720px) Image search: [Google]
maxresdefault0.jpg
78KB, 1280x720px
What's the best guide for learning React+Redux+ES6. I need to build an app with it over the weekend.
>>
>>61610962
I have too many ideas and start too many projects myself to have time to contribute to anything else. However I publish virtually everything I do in my free time under a free license.

>>61611012
depends on the server, but I would guess that usually you have a seperate thread for every requests which runs the script. and the threads can work in parallel.
I think you don't have to worry about lost updates because every decent RDBMS can handle simultaneous access properly on its own

>>61611174
>I just don't think my stuff is up to par when I see other peoples stuff
what you don't see is tons upon tons of shit that's worse than your stuff. people typically discuss only the top 0.1% of whatever gets made so if you're comparing yourself to that you'll always lose
>>
File: 1501133750884.jpg (72KB, 312x306px) Image search: [Google]
1501133750884.jpg
72KB, 312x306px
So I'm trying to get going with a new stack after suffering with React/Redux/Sagas and Node for years. Mainly because of poor testing support that made maintaining apps a pain, and the insane amount of setup of build tools for the client (npm/yarn webpack babel hot reloading...etc)

For server side, I've been learning Go, it's neat and solves my major hurdles with Node: no runtime errors for once and built-in testing tools.

For client side. Things have been painful, I tried Elm but the syntax is too alien for me, I tried React/MobX and while an improvement it was still hard to test and setup.

I want to get out of js for the client because of the poor testing tools of the platform. Any advices?
>>
>>61611525
If you didn't like React or ELM, give Vue a shot. I do almost all my shit in Vue now and it's a billion times more intuitive.

t. Angular/React dev who saw the Vue light.
>>
Why wont this work?

https://pastebin.com/rQAPaN0n

Ignore the quotations in the sign line. I did it with and without.

The top one is the twitter example btw.

Keeps telling me the signature is wrong.
>>
>>61607940
Ignore most of the people here. If you listened to them you'd be writing websites in C or learning some fad language like Elixir that will disappear by this time next year.

Learn one of the major languages (C#, Java, PHP or Python) and stick with it for a while. If you're going to do web development you'll also need to know JavaScript.
>>
>>61611525
patrician .net

>>61611580
>vue over anything
lmao bandwagoning gets you nowhere babe
>>
>>61610629
Really? How do I do that?
>>
>apply for a developer position
>one of the managing partners of the company emails me and tells me that i'd be a better fit for their jr. developer/technical support role and gives me some overview of the position
>sure, sounds like a good fit
>phone interview goes well
>onto the in-person interview
>first round is culture fit
>they ask me the standard "where do you picture yourself in 5 years" type of shit
>one of the interviewers asks me about my knowledge of excel
>excel wasn't listed in the job description or in the managing partner's description
>the only technical skill listed was knowledge of SQL server management studio and SQL server reporting services
>fumble through the excel questions cause it's been 2 years since i've done anything at all with excel
>the very next question is "do you have any questions for us?"
>ask them a couple questions i had prepared
>they tell me about the next steps in the process (skills assessment) if i make it through
>exchange thanks, handshakes, leave
>look at the time
>the entire interview lasted 20 minutes at most

3 "culture fit" questions, 1 question on SSMS/SSRS, and 5 questions on excel when excel wasn't even listed as part of the requirements or responsibilities of the position.

i want to die. this is the only interview i've managed to get so far, and it turns out like this.
>>
>>61614233
>3 "culture fit"
C U L T
R E D
F L A G
Soon you'll be calling yourself a googler.
>>
>>61614233
Did you ask what the position requires?

You did, right? You didn't just ask stupid questions, right?

I always ask, how is pay done here? Is there any relocation offered? What's an average day like for your developers? What would you have me doing?

That kind of stuff.

It sounds like they want you to do some kind of data entry or something.
>>
>>61614233
sounds like a shitty job, I would try to find something else. do you know anyone? knowing people is the best way to get a job tbqh.
>>
>>61615792
it's a lot of generating reports using SSRS. writing stored procedures, fixing database issues, bug fixing in the main application, etc. i asked about the typical hours people work, what an average day is like, if the position is relatively autonomous or if there's a lot of interaction with superiors about what tasks need to be completed, and all that kinda shit.

apparently they want SQL rockstars and people with tons of experience with SSMS and SSRS for a $55k/year position in the seattle area.

oh well, if i don't get it, i don't get it. i guess it's not the end of the world. i'm working as a "full-stack engineer" right now at a smaller company, so technically this would be a step backwards for me, but they have bennies and it's a pay raise (im paid $20/hr lol)
>>
>>61614095
just load a web app up to heroku and it generates a unique name in the url
>>
>>61615792
>relocation for a 55K jr dev shit job
I cant keep up with all these memes are you guys LARPing this or are you for serious?
>>
>>61616220
people are relocating for 40k so uh
>>
>>61611525
Why would you specialize in something easy for AI to do?
>>
>>61599550
You underestimate how many retards bloated their front end recently and they literally dont render above the fold in 2 seconds so they had to switch to server side rendering.
>>
who foundations here?
>>
>>61616220
Funny you say that. I actually relocated for a 50k a year dev job.

I was making 19/hr at my last dev job and I want to work up fast, so it was the right move imo.
>>
>>61616448
I should add that the average household income here is 35k, so 50k goes a long long way here. Especially since my websites bring me in just under 13k a year usually, so I'm doing alright.
>>
r8 my new markup language /g/
>>
Where in public can I take my laptop to and learn web dev
>>
>>61616847
starbucks
>>
>get job integrating apis
>signed request won't work on first task
well this isn't good.
>>
Anyone good with BehaviorSubjects? Read a couple guides and implemented the basics, but having inconsistent random undefineds passed around and can't figure out exactly how they work under the covers .
>>
why can't webdevs into programming? half these libraries are being used to do a simple fucking thing that can easily be coded in normal js
>>
guys im building my own blog from scratch to learn web dev, im using django, mysql and aws elastik beanstalk.

i already know how to use those things (only basics), and i want to make a section where i can submit blog posts, the thing is i dont know how to
to approach this... i was thinking about just writing html directly to a textbox and then storing that in the database, but i got a feeling this is a bad way of doing this, whats the standard way CMS's do this thing?? how can i make pretty blog posts??
>>
>>61618015
Find a wysiwyg and throw it in your site.
>>
>>61617954
The entire stack is rewritten every 2 years and not every site will be up to date with what can be written in JS in 2017 for modern browser users.
>>
>>61618059
which one do you recommend?
>>
>>61618120
TinyMCE is full featured and open source. Also use a subject header and tags or chips to create labels for your blogs and store those to have search across those instead of the content.
>>
>>61618173
i did not thought about that, awesome thanks!
>>
>>61618015
I've heard good things about TinyMCE, as the other reply said. You could also consider using Markdown, which is basically simple concise syntax that can be translated to HTML.

It's basically down to preference. Markdown can be edited in plaintext, whereas TinyMCE is a wysiwyg editor.
>>
>>61605565
WAKE ME UP
>>
File: white.jpg (62KB, 1172x609px) Image search: [Google]
white.jpg
62KB, 1172x609px
Anybody have any experience with web dev bootcamps? I'm trying to decide between galvanize and flat iron school.

Gal sounds like it has really good career services and lets you explore different frameworks but it's really expensive and long(6 months)

flat iron is short and less expensive but I haven't heard too much about it. They have some pretty good job reports though.

Anyone ever attended one of these? Would be awesome to hear feedback.

interviewing for app acad on monday but I doubt I'll get in, obvi that's the goal bootcamp cause free
>>
>>61607940
PHP is the best language for web development. Does not matter what they say.
Probably the guys that talk bad thing about PHP does not used it for ages.
>>
>>61600028
getgud
>>
>>61619992
I don't agree.
I dont' agree so much indeed, that I didn't even learn it to begin with.

What's a good reason to learn PHP in 2017?
>>
>>61610566
Currently listening to his book Disruption.

>Suddenly realize my experience at a cult like large-scale casual game developer is not an isolated incident.
>>
>>61611580
You sound like a cop out who fell for the Backbone 2 meme.
>>
>>61609271
>unless you want to spend your days maintaining sites written in the 90s

And what exactly is wrong with that?
>>
>>61620628
> You dont Agree
> You dont code PHP
> You never learn PHP

Are you joking ? How can you know ?
There is a HUGE diferrence between the people that "code" php and the people that know how to code in PHP , HUGE. If you know what you are doing, you know how PHP is the best for webdev.
>>
>>61600028
You're not passionate enough. Sorry man. If you had passion you would be driven enough to learn erryday and understand it all properly. There's something else for you in this world - webdev isn't it.
>>
>>61610566
lol, nice gem this video (at least something worthwhile in this shit thread)
>>
>>61620725
>Are you joking ?
yes, didn't think I would have to spell it out like that

I know there are great projects in PHP... various forums, Grav, etc.
It's true though that I don't know PHP. I don't hate it, but so far I had a good time accomplishing everything with JS and Node.
Will probably look into it, just because it's so widely used and I sometimes see people writing good things about the newest version.
>>
>>61620846
Start learning, and you ll see what im talking about.
Its also a plus to know as many languages as you can. But its also a plus to be a pro in one.
Its hard to be a pro in all of them.
>>
Can you have multiple conditions in one case in a switch statement in JS? I want to have both
num > 11 && num <=20
but am unsure how to format it correctly, if it even works...
>>
File: 1501082901661.jpg (49KB, 402x604px) Image search: [Google]
1501082901661.jpg
49KB, 402x604px
>>61620655
care to tell us our story ?
>>
>>61621020
Never mind. I hate switch statements and will stick to if statements from now on.
>>
Simple Question:

For production I use WEBPACK DEV SERVER to temp. host my stuff.

What should i use for production? What's the standard or the recommendation here?
>>
How the fuck did Cookie Clicker get so popular? It's literally a single event handler. You clicked on the cookie and the number went up. There wasn't any end to the game, the number just kept going up. Are human beings retarded, /wdg/?
>>
>>61621196
Yes. I suppose some saw it as an easy escape from whatever shit was on their mind. Being mindless is bliss after all.
>>
>>61621168
If it's frontend only, build it and host it like you would any other static site.
>>
why is tasklist empty in a for select loop but not empty everywhere else when i append a task to it
https://play.golang.org/p/3kx5FkDV1H
>>
Can you guys give me an idea of how much one can earn from freelance webdev and how often one can find work?

Some unexpected stuff happened in my life and I found myself with a year of plenty of spare time. I was wondering if it'd be wise to attempt getting into webdev. I'm already familiar with python, C and latex so I'm not getting into CS shit for the first time.
>>
File: _92853451_biscuit.jpg (35KB, 624x351px) Image search: [Google]
_92853451_biscuit.jpg
35KB, 624x351px
Any suggestions on how to optimise the Javascript in my cool new online game? I'm hoping to make big money from this project.

https://jsfiddle.net/qbcxeahm/1/
>>
>>61606554
HTML is one of the few things I just accept will look like spaghetti

XML is very nasty
>>
File: Screenshot_2017-07-29_08-19-22.png (146KB, 1366x768px) Image search: [Google]
Screenshot_2017-07-29_08-19-22.png
146KB, 1366x768px
Django is still the king for fast CRUD and webapps
>>
>>61621462
put the response into an array, and step through that instead.

var resp = ["response 1", "response 2", .... ];
var respIndex = 0;
var clicks = 0;


function btnClick(){
if( ( clicks / 10 )%1==0 ){
respIndex++;
lines.innerHTML = resp[ respIndex ];
}
}

>>
>>61621462
https://jsfiddle.net/qbcxeahm/2/
>>
File: 1496862145250.png (461KB, 611x686px) Image search: [Google]
1496862145250.png
461KB, 611x686px
>>61621462
switch should be easier to read
let num = 22
let result = ""
switch (true) {
case (num >= 50):
result = "wooo"
break
case (num >= 20):
result = "warmer"
break
case (num >= 10):
result = "getting started"
break
case (num >= 5):
result = "letse go"
break
default:
result = "whats going on"
}

console.log(result)


> I'm hoping to make big money from this project.
>>
>material design
yuck, ugh

Do you guys like it?
>>
>>61621639
>python
>fast
>>
>>61621168
nginx

>>61621196
great question. it still baffles me

>>61621908
fast as in dev time
>>
>>61621843
I look at it as the bootstrap of mobile apps. It gives you a ready-made workable design framework so you can focus on your project's functionality instead of spending valuable developer-hours worrying about what kind of paint job to put on it. Obviously something custom-tailored to the app is (potentially) going to be better, but not everything needs to be beautiful, it just needs to work.
>>
File: 1499198119533.jpg (46KB, 600x342px) Image search: [Google]
1499198119533.jpg
46KB, 600x342px
Anyone here using python and selenium? I've posted a question on /dpt/, but maybe you guys know this stuff, since it's web related:

>>61621951
>>
Indians ruin everything.

How am I supposed to make money on the weekends remotely when Indians keep taking all of the work for 3 dollars an hour?

Like a goal for them is to make a whopping 15 an hour remotely in the USA to live like kings in their shithole area.
>>
>>61621908
It's a single user internal application, I don't need speed and concurrecy.

The dev time is fast
>>
>>61621843
Love the way it looks and handles itself. Other anon is right, it just works.
But.....if you want to customize it in any way, you're fucked and better off waiting for Bootstrap 4
>>
>>61621639
Django REST framework is god tier. There's nothing half as good in any other language.
>>
File: 1438895552-4101.jpg (41KB, 620x464px) Image search: [Google]
1438895552-4101.jpg
41KB, 620x464px
>>61622079
move to India
>>
>>61622598
I never tried it Django has come a long way. I use to set up flask and sqlalchemy and my own utils views. I realize I was writing a Django clone so I just hopped over to dDjango since it's way more supported and tested, only for small to mid projects.
>>
>>61622079
>Indians ruin everything.

>get another job, where the competition isn't global
>vote for politicians who care about middle class (sadly there are none, not even Trump)

Honestly I think we're fucked. We need a class war and a new economic system. Capitalism doesnt work anymore
>>
>>61624062
>Capitalism doesnt work anymore

It never really did. The conditions that led to economic growth in the US during the 20th century would have worked under lots of different economic and political systems. We were successful in spite of capitalism not because of it.
>>
Hi guys, having a little trouble, bit of a php noob.
Am using code from here:
https://rosettacode.org/wiki/Bitcoin/address_validation#PHP

I have that saved as validate.php
then on my main page, I wanna have an input that gets validated by that script, returns if it's a true address then does w.e or else "not valid" etc.. tried a few things, but pretty clueless really on how to get variable from one to another, tried getting rid of the array in main and putting $address, as an argument, then in my main page php having $address = the posted input, I have this after "require validate.php".. doesn't seem to work says no such variable in validate.php.. Just having the require validate.php does run the code so I know it kind of works I just dunno how to pass my own variable.. any help greatly appreciated thanks.
>>
>>61624062
Capitalism would work if the consumers would fight back. It's supposed to be a push/pull relationship.

We just take the ass fucking and the government isn't set up to listen to us unless an overwhelming majority of the population rises up, which they never will.

The result is stuff like internet rights going away, the housing market ripping people to shreds in every way possible, and companies penny pinching every little bit they can get away with.

So instead of the consumers going after the companies and saying "no, enough is enough, you need to do this or fuck off", we go to the government and complain that we don't have enough money.

Yeah though, there should be huge penalties for outsourcing anything. A sure way to decrease your rent, electricity, and other required bills is by increasing the price of everything else with American production.
>>
Biscuit man here with the radical idea, flipping heck though how do I get the reset counter to work? All I've found through Google is solutions about fuckin jQuery

https://jsfiddle.net/8w8xgwjx/1/
>>
>>61618271
markdown sounds better actually!, but theres alot of options can you recommend one?
>>
>>61624814
https://jsfiddle.net/8w8xgwjx/2/
>>
>>61624814
>>61624986
I forgot to remove the function name https://jsfiddle.net/8w8xgwjx/3/
>>
>>61625005
Thanks mate, you are a star.
>>
>>61624814
There's a ton of ways to do it.

I went the global route since I think it is the easiest to understand. Please stop putting semi-colons after }. They go after )

https://jsfiddle.net/8w8xgwjx/4/
>>
>>61621602
It doesn't have to look like spaghetti, you pathetic chromi-homie
>>
>>61622079
You should just get their level of comprehension.
https://www.youtube.com/watch?v=BcmUOmvl1N8
>>
>>61625109
WAB S-S-S-SERBER

my seids
>>
>>61624846
I don't really know, I've mainly just used Markdown for Github. Just look for one written in Python that looks easy to integrate; I think they all generate pretty much consistent output.
>>
>>61618015
>using django, mysql and aws elastik beanstalk
that's pretty far away from "from scratch"
>>
>>61624497
solved more or less
>>
File: gayporn.png (810KB, 817x667px) Image search: [Google]
gayporn.png
810KB, 817x667px
If I'd email a business and ask them if they want me to make them a site, how big of a chance do I have that they'll accept?

Also, what is a realistic price that some random ass pizzeria would give me for that?
>>
Has anyone here worked with Spark (the Java web framework)? I've been reading through the docs and SO, but I haven't found a decent answer yet.

How are you supposed to deploy a Spark application the right way? Ideally without building it on the server.
>>
How do I into getting a job online?
I got drifted (my country has conscription) and only really have internet access, nothing else.

I believe I'm good enough for all sorts of entry-level NodeJS/PHP/ASP.NET/Django works, but have no idea on how I'm supposed to get a job like this.
>>
>>61626377
>If I'd email a business and ask them if they want me to make them a site, how big of a chance do I have that they'll accept?

None. Go to the business in person and talk to them.

>Also, what is a realistic price that some random ass pizzeria would give me for that?

Very little. Who ever looks at a pizzeria's website? How will a website increase their income? Also, basic business owners value sites very lowly. Like most normies, they think websites appear out of thin air.
>>
>>61626446

do military themed cam shows
>>
I'm trying to scrape together a hero banner but I'm stuck looking for an image/cinemagraph asset. Does anyone know a good source?
>>
>>61626469
>Who ever looks at a pizzeria's website? How will a website increase their income?

Not him, but generally people want a phone number and a menu.

Also, SEO is important for people googling "pizza in <your city>". But you'd probably have to convince the owner that it's worth it.
>>
>>61622079
Don't blame.india. this s how the capitalist system fixes itself.
>>61626377

Depends on the way you pitch it really.
You can sell anything to anyone
>>
>>61621020
>if (11 < num && num <= 15)

This is a more readable form if that helps.
>>
>>61598002
I have a final for the first part of a coding bootcamp im at this week.

Anyone know a resource that would really help me understand manipulating objects and strings? I feel like a retard when i work with them.
>>
>>61626377
Eh, it depends.

There's an app that is like the Domino's tracker that all the local pizzerias are using foodtecsolutions or something like that. Those dudes are making bank.

I want to take that over to the Chinese market.
>>
In Firefox, how do I get text from an input field onto a <li> by hitting the enter key without the need for type="submit"? This is in Javascript. I can't get charCode or keyCode to work with FF and it's making me ready to hurt mufuggas. I just wanna build a to-do list dammit.
>>
>>61626538

I understand the need for SEO, but mostly when I want a pizza I just type pizza in google maps, pick the closest, and get the phone number.

Also, services like foodora and deliveroo are all over that shit.
>>
>>61627446

For string manipulation you probably want to look at regular expressions, regex for short. Applicable to every language.
>>
>>61628150
Custom jQuery build :3
>>
>>61628250
Ehh fuck jQuery.

Anyway I have my issue kinda sorted. But now when the text is added from the input field it stays on the same line. How do I get it onto a new line /wdg/?

https://jsfiddle.net/2v90a63k/1/
>>
>>61629300
>https://jsfiddle.net/2v90a63k/1/
You only ever run
document.createElement('li')
once. That means every time you append a text node, it gets added to that one <li>. And appending that same <li> with appendChild doesn't actually do anything, because that's already where it is in the DOM.

You need to create a new <li> every time you create a text node, i.e., on every keypress event.

Oh, and also you should clear the input textbox every time, but I assume that's on your meta to-do list.
>>
File: 217168.png (376KB, 419x430px) Image search: [Google]
217168.png
376KB, 419x430px
>>61629449
Excellent help, thank you. God bless this general.
>>
I wrote 533 lines today.

Should be done by tomorrow.
>>
been working on http://sample-env.xmqufaah2t.ap-southeast-1.elasticbeanstalk.com
pls be /g/entle, it's babbys first web dev
>>
>>61629923
the fuck is up with that URL, I'm not going on that
>>
File: 1467904855654.jpg (45KB, 500x474px) Image search: [Google]
1467904855654.jpg
45KB, 500x474px
>>61630062
It's AWS elastic beanstalk, too poor for a proper domain
>>
>>61629923
why the fuck would anyone register for a shitty website that has been done a thousand times??,
drop the login make it anonymous
>>
>>61629923
I like the feature where I can't scroll at all on the login page.
>>
I'm a college baby and have some questions:

Is backend development all the same? As in, it's similar to standard programming.

How can I make pretty websites like the ones that are used nowadays? I can make all the functionality, persistance etc. but cant get the frontend right. Am i just meant to use a meme framework with some downloaded templates?
>>
File: 1493853883898.jpg (9KB, 344x344px) Image search: [Google]
1493853883898.jpg
9KB, 344x344px
>>61625056
>inline js
>>
>>61625476
yeah i agree, what i mean is im learning every one of those from scratch, without knowing how any of those worked and without a cms
>>
>>61631391

1. Hire a designer
or
2. Make a folder of cool websites you find and just copy elements from them.

http://brutalistwebsites.com/
>>
>>61624062
>~100k/yr
>middle class
ummmmm
>>
>>61631391
Design is hard and takes a lot of practice. >>61631599 is very good advice. Bookmark all of the websites you like and try and understand how the elements are laid out. Copy the ones you really like. Eventually you'll have your own style and understand how to implement it.
>>
going to make an io game
>>
>>61631671
>>61631599

Are they really custom made with the elements laid out? I thought it was just a fancy template that most people knew how to use... guess im fucked and forever stuck in backend.
>>
>>61603365
Start with a basic html and CSS site. Then learn the basics of JavaScript and/or php to add functionality to the site. It will take time but eventually it will click and be pretty easy. Sites like w3schools and codecademy among others will help you start.
>>
anyone know of a company who needs a JS/PHP developer? willing to move anywhere in the states.
>>
>>61629923
The lag is bad enough that I can't draw anything. Maybe you should host your website on github, people tend to be more trusting of sites on there. Finally, don't listen to people who say it's already been done. Everything has already been done, you wouldn't any better off making pixel platformers or writing shitty C console games.
>>
how do i convert legacy databases?
>>
File: file.png (51KB, 1249x705px) Image search: [Google]
file.png
51KB, 1249x705px
>>61621462
jesus this is addicting
>>
>>61625056
>https://jsfiddle.net/8w8xgwjx/4/
>I did some shit he's probly not gonna understand yet

Here, >>61624814 :

Your issue is.
1. JSFiddle's default setup runs scripts when the page loads (onload), after which they are no longer available to the DOM. Click the JavaScript button (with the gear icon), and switch that 'Load Type' to 'No wrap - in <body>'.
2. You use a comparison operator (===), not an assignment operator (=). The line 'num === 1' in resetClicks() simply checks to see if the variable 'num' has the type 'number' and the value '1', and returns true or false as appropriate. Instead, you want to ASSIGN the value of 1 to 'num'.
3. You never actually update the HTML (called the VIEW here). So while the above two changes would change the value of 'num' back to 1, you wouldn't actually see this until you clicked the button again. Stick
document.getElementById('totalclicks').innerHTML = num;
in there too.
4. Have you considered using a switch statement instead of this block of 'if/elseif's?
>>
>>61625056 is somewhat right, however, in that you should not be placing semicolons after brackets for if/elseif statements. Generally speaking, semicolons ONLY go after singular, whole statements. So:
//semicolon here ok
var myVar = 10;
//also okay here
var someObj = {
name:'bob',
age:230
};
//not here
if(someObj.age>30){
console.log(someObj.age+' is old!')
}

/nor here
function myFunc(){
//do some stuff
}

//this is a function EXPRESSION, and is essentially a very complex variable, so semicolon okay here:

var anotherFunc = function(){
//do awesome stuff here
}
>>
So, bit stuck on something.
Have a form, with a placeholder, when I submit form I want the entered text to replace the placeholder, but as actual text that if I were to resend form would resend the text (I got it to replace the placeholder with the input text but you cant post a placeholder), google not helping a great deal.. this has obviously been done before just struggling to figure it as noob.
>>
>>61603365

I think >>61603541 is jumping the gun a bit (tho to be fair, they DO say depends on prior knowledge). Don't dive into something like Angular or React until you've learned the basics (HTML/CSS/JS) first. You'll either learn an unnecessarily specific way of doing things that risks crippling you, or you'll just get utterly confused and give up.

I usually recommend freecodecamp, since they walk you thru the beginning bits, and then have you do projects.
Above all, MAKE stuff. Even if all you've learned so far is how to make a simple HTML page with the words "OP mixes spaces with tabs!" on it, MAKE stuff with that knowledge. This is a creative discipline, so if you don't create - or worse, don't LIKE creating - find another profession.

>>61600028
Hmm. I hate to say it, since the teacher in me wants to encourage everyone, but >>61620814
may be right here. Yes, there are days when I just wanna say "fuck it", and not code at all, but overall I see coding as a tool and a hobby, not JUST a job.

You may also be running into the all-too common fault of many online tutorials, where they tell you how to do a specific thing with some esoteric language like "co-join the prototypal manifold of the flux capacitor using a reversed neutron.io flow" and you, the reader/learner think "Oh, great, now I know how to do this one specific thing. Now what?!".
>>
>>61633244
So to clarify, if you had a box like the following (hoping the Chan renders this correctly):

[ enter favorite color ]

And you entered 'pink' and hit 'submit':

[ Pink ]

then the next time the page loads, it'd automatically fill in the word 'pink'? You've got generally two ways of doing this: Cookies or localStorage. I prefer localStorage, since it's incredibly easy to use: it's basically just an object that you access like any other JavaScript object:

localStorage.myFavColor = 'pink';
//now if we reload the page, and say:
alert('My favorite color is '+localStorage.myFavColor+'.');
//it'd say "My favorite color is pink."


You'd probably want to use this stored value to replace the input's 'value' attribute (which is what's actually sent/used by forms), instead of the 'placehodor' attribute.
>>
>>61631800
Same here, bruh. Also geometry fucking sucks/I'm bad at it.
>Game involves building custom objects in a sorta 'jagged grid' format
>For grid element, with coords
>measured as number of blocks displaced left, right, up or down from the initial element
>I need to find the distance to the center of the entire structure

Why am I failing so hard at this?
>>
>>61633313
Thanks, I'm mostly unfamiliar with JS though, could you give this as an example in a form, I don't really see where I can keep the text in the form other than the placeholder..
>>
>>61633403
What ARE you using then? PHP? Because without some sort of scripting language (PHP or JS), there's not much you can do. HTML/CSS cannot process stuff (mostly; inb4 'CSS is turing-complete!')

Something like this tho might work:
https://jsfiddle.net/nhr6bze0/9/
>>
>>61633637
Yeah just know PHP, HTML and CSS really, thanks for the example. I appreciate it.
>>
File: 1500924307984.png (65KB, 598x192px) Image search: [Google]
1500924307984.png
65KB, 598x192px
>>61633339
dood this is (14y old converted to usa classes) level of mathematics
>>
>>61634954
Oh I know. It's absurdly simple. I'm just having a complete brainfart on how to implement it with the setup i have.
>>
Chanstats guy, why don't you add a thread watcher functionality that keeps track of all new threads with a particular thread heading? So if the user types in 'wdg' then they can add it to a dashboard or as a bookmarklet to click on and be directed to the newest /wdg/ thread.

I would love that, personally. Could be a neat addition to your site.
>>
File: temp.jpg (39KB, 756x640px) Image search: [Google]
temp.jpg
39KB, 756x640px
>>61633026
get on my level noob
>>
File: 1438212587533.gif (553KB, 320x238px) Image search: [Google]
1438212587533.gif
553KB, 320x238px
>we'll just call it function currying
>>
>>61622079
By making a better job than them (and proving it with a nice portfolio/GitHub, of course).

This is like luxury goods, for example. Some people are happy paying 50$ for some shitty Chinese phone. But other people are willing to pay extra to get a better phone. Just because the market is flooded with $50 phones, it doesn't mean the $700 phones stopped selling. This is capitalism 101 m8s.
>>
I wanna start making some kind of dating web app but not sure what to use for it. Thinking Laravel and MySQL with Vue or something.

Do you guys think that's a good idea?
>>
>>61622079
Why are you trying to do shit work indians are doing?
>>
>>61638039

Why would you try and enter a completely oversaturated market?
>>
>>61638138
I'm already in it but I just wanna learn some of the newer stuff since I'm stuck with Code Igniter at work.
>>
>>61622030
Had this problem recently - webdriver opens the window. Theres no option around that as far as I am aware
>>
Is it possible in JavaScript to print the console the math process?

So if i put in "A + B * C", how do i see what its doing when it calculates that?
>>
>>61639118
No.
>>
>>61639118
Don't think so but it's basic BEDMAS/BODMAS
Brackets first, multiplication and division second, addition and subtraction last
>>
>>61639236
>eurotrash
PEMDAS, Parentheses, Exponents, Mult, Div, Add, Sub.
>>
Anyone want a CSS/JS chimp? I live in a third world country so I can work for peanuts I guess.
>>
>>61639307
Create something you like, which solves a problem for the people around you. I'll pay you afterwards.
>>
Why are webdevs so salty about having to use another language for iOS if they want native-like apps?

https://m.phillydevshop.com/apples-refusal-to-support-progressive-web-apps-is-a-serious-detriment-to-future-of-the-web-e81b2be29676
>>
File: 1500003658829.jpg (285KB, 500x500px) Image search: [Google]
1500003658829.jpg
285KB, 500x500px
>>61640133
apple is just jewing out by refusing to implement web standards so that applications have to be installed from their app market so that they can get their cut
progressive web apps support from apple would mean this technology would eventually get massive adoption and we could finally deprecate all those pesky mobile devs out there
progressive web apps are seriously great, you should try it, and then you too will cry about apple ruining fun for everyone
>>
>>61640291
Just sounds like webdevs being lazy and throwing fits to me. Apple wants a certain degree of quality on their platform. They don't want shitty webapps. Nobody wants push notifications from a blog.
>>
>>61640291
Pushing back against shitty web apps is one of the few things Apple does that deserves applause. You don't need push notifications for your shit web app and Electron and it's ilk can fuck right off.

Swift is also objectively a far better language than JS.
>>
>>61640514
Swift is not JS, so webdevs don't want to use it.

We have people writing terminals in JS, ffs.
>>
>>61640574
One of the things I respect about Apple is that they use reasonably efficient languages (C, C++, Objective-C and Swift) for almost everything and they actually care about battery life. One shitty electron app uses more energy than basically the entire rest of the operating system and all the native apps combined.
>>
>>61640357
>>61640514

Dood you seem to not even having tried a progressive web app before

1. Go to website using phone browser
2. If chrome, some banner tells you you can install application. if other browser you need to go through some menus to do it
3. Site ui + data you requested gets cached, they now are available when no connection
4. Push notification are only available if user accepts them through a dialog, same as for regular websites and for other features like localization
5. You now have website available with fast loading times even with shit or non existant connection since data gets requested through cache first, download, install and update mechanisms are handled by browser so no need to use appstore

This means you can get a web client + multi platform mobile client in one go with minimal effort, so you save development cost and don't have to maintain 3 different projects. Of course you also don't get cucked by apple terms of service and don't have to pay them shit. As end user this means you don't need to use application store to install and do updates, not to mention sites you usually visit are more likely to have mobile clients since barrier to entry is now lower than ever before.

Try this meme example application, https://www.pokedex.org
You'll see progressive web apps are the hottest new thing since chicken soup
>>
I'm amazed about people getting buttblasted by them taking a cut from apps in the app store, as though they have some kind of right to push their garbage onto Apple's users. It's Apple's platform, so you have to play by their rules.

It's just like distributing a game through Steam. Last I checked, people weren't really upset about Valve taking a cut. If you don't want them to then release on another platform instead.
>>
>>61640643
>so you save development cost and don't have to maintain 3 different projects
That sounds like a benefit for the developer, not for me.

>you also don't get cucked by apple terms of service and don't have to pay them shit
That also sounds like a benefit for the developer, not for me.

>this means you don't need to use application store to install and do updates
I have no problem with going to the app store. As a bonus I know that the stuff there has been vetted by Apple. Downloading random code from the web is a bad idea on the desktop and it's a bad idea on mobile.

>sites you usually visit are more likely to have mobile clients since barrier to entry is now lower than ever before
But I visit them because I'm happy with them as they are, I don't want them to download themselves onto my phone.

BUT! Your shitty webapp will take up space on my phone and be less efficient than a native app.

So to sum up: a worse experience for users, in order to make things easier for developers. Fuck off.
>>
>>61640643
Also all you need is a responsive site, a json file to describe what background color and which logos to load, a js script to handle caching shenanigans and a ssl cert. This is less bloated than electron stuff

>>61640684
>It's just like distributing a game through Steam.
More like as if you only could only install application on windows from windows store and users were somehow cucked enough to defend this.
>>
>>61640684
Having a cost of entry, screening out garbage, and taking a cut keeps the quality up and keeps out some of the desperate poorfags. That alone is worth it.

It's the primary reason the Play store is full of complete garbage and spyware in comparison. Fucking Android courses even have students upload all their shitty tutorial apps directly to the Play store and the fucking users are left to sift through that trash.
>>
>>61640747
>That sounds like a benefit for the developer, not for me.
But aren't you a web dev yourself ?
>>
>>61640779
>But aren't you a web dev yourself ?
I spend much more time as a user. Webdev is a very small portion of my time.
>>
Landed a job in a local gamedev studio
what am I in for
>>
>>61640852
Misery
>>
is java easy to learn?
>>
File: 1501311912425.jpg (62KB, 543x431px) Image search: [Google]
1501311912425.jpg
62KB, 543x431px
>>61640800
geez dude idk what to tell you, this is a way to make mobile clients easier to develop, to distribute them directly to users who then may or may not chose to download them
only reason apple isn't supporting it is to preserve their business model, not to maintain some quality standard
these wouldn't even bloat the appstore since they wouldn't be on the appstore
>>
>>61640902
yes
>>
>>61640907
As a user I don't want them. You want my money? Give me a good quality native app, stop trying to shovel shit to me.

As a developer I'm embarrassed to give my users sub-par products.
>>
>>61640972
but web application are only as shit as you make them
they can be guuuuuuuuuuuud
>>
>>61640852
>>61610566
>>
>>61641016
A web application is never a better experience than a native app with the same functionality.
>>
>>61610566
I always wondered why startups hire so many people.

The only startup I like is the plenty of fish guy, who was making like 10 million a year and he would just moderate pictures.

That's all he did. He eventually hired people to moderate the pictures for him.

That's what a good website startup should be like.
>>
>>61641402
I do realize that a lot of people have to be hired when you start something like Uber because of logistics, but for the average website? Like how many people does Snapchat really need?
>>
File: headagainstwall.png (376KB, 754x577px) Image search: [Google]
headagainstwall.png
376KB, 754x577px
Input fields ain't resetting brahs. Can someone review my code and tell me what is up?

https://jsfiddle.net/nudft5wf/4/
>>
>>61641459
https://jsfiddle.net/nudft5wf/5/
>>
File: 1500553970393.jpg (50KB, 598x582px) Image search: [Google]
1500553970393.jpg
50KB, 598x582px
>>61641459
use '=' not '===' to assign a variable you stoopid
>>
>>61641540
Thank you.

>>61641542
Meanie
>>
>>61641459
https://jsfiddle.net/nudft5wf/6/

Two important things.

=== isn't for assigning value, it's for comparing value.

Anytime you assign value to something use a single =

Next is that you are assigning the variables (paradise, shithole, etc) to the value of that element, but not the element itself, so you can't edit the elements value any longer.
>>
File: takeshiwrech.png (578KB, 1280x1056px) Image search: [Google]
takeshiwrech.png
578KB, 1280x1056px
>>61626469
>>61626538
>>61628163
>>61626647
>>61628032
this didn't answer my question, nor gave me anything useful, really

I kind of doubt anyone on /wdg/ even ever earned any money doing webdev
>>
>>61641540
In this example, you can see they set the variables to the actual elements, so now you can change the values directly.
>>
>>61641605
>>61641622
Thank you (both?) for explaining, much appreciated.
>>
>>61641655
Just me, it was important to explain that last part.

>>61641613
You're basically asking for a percent chance that you will make a sale when no one here knows you, your past experience, your sales ability, your portfolio, or anything else.

The price they would pay also depends on all of the above.

My guess is your chance is 0% and 0 dollars because you're more than likely a loser with very little development experience and terrible social skills.

Also yes, I make money from web dev. Hope this info helps.
>>
File: always_sunny_charlie_frank.jpg (20KB, 480x360px) Image search: [Google]
always_sunny_charlie_frank.jpg
20KB, 480x360px
>>61640514
>Electron and it's ilk can fuck right off
But anon, Cordova (mobile equivalent of Electron) is already an option for developing for iOS. Progressive web apps would actually allow you to forgo any native webview wrapper frameworks.

>Swift is also objectively a far better language than JS.
Swift is fine as a language, the main issue with it is that you can only use on iOS (and Mac) and basically nowhere else. The other main issue I have with iOS dev is the terribly unintuitive UI builder.

>>61641061
Nah, I don't think you've used a good progressive web app. They're basically indistinguishable from native apps if you do them right.

>>61641418
>Like how many people does Snapchat really need?
I think many apps need at least a few devs at the beginning in order to get up and running fast; first mover advantage and all that. But yeah, a lot of apps probably don't need so many devs.

Snapchat I think is actually the exception, because one of the features of Snapchat that people love is the filtersinvolving facial recognition, which probably actually takes a reasonably sized dev team to build/maintain.
>>
>>61642242
>They're basically indistinguishable from native apps if you do them right.
Except for the performance and power consumption and non-standard UI.
>>
>>61642242
>Swift is fine as a language, the main issue with it is that you can only use on iOS (and Mac) and basically nowhere else
This is my biggest issue with it. I actually love the language but fuck that shit is essentially going to waste due to apple being stuffy about everything on the planet.
Even microsoft isn't being that stuck up anymore.
>>
File: takeshitruth.png (812KB, 1280x1024px) Image search: [Google]
takeshitruth.png
812KB, 1280x1024px
>>61641717
yeah, I'm gonna go with "larper that is on an ego trip" because you can't even spell nor use proper grammar

cheers
>>
>>61642294
> apple being stuffy about everything on the planet
> even microsoft isn't being that stuck up anymore.

Swift is completely open source and uses LLVM (another Apple project) which is also completely open source. Linux is supported and a lot of the iOS and OS X libraries, like Foundation, work on Linux. The only thing that won't be ported is Cocoa because it would take years and probably require changes to a substantial amount of the Linux user interface stack to get adequate performance. Microsoft isn't porting over C# UI libraries for mostly the same reasons.

The main problem with Swift is that the language is still in flux and will continue to be until Swift 4 when they provide a stable ABI.
>>
>>61640684
I don't know why anyone would be buttblasted by it. It's one thing if they were expecting $1000 dev fee per year + 30% cut per sale, but that isn't the case. The costs are really low, effectively only keeping away the lowest of the low (99/apple, 25/micro, 25/goog), and it incentivizes sales. Win win for everyone involved.
My biggest problem with the storefronts is that they aren't strict enough. Especially apple and google who are in positions to cut down on apps dramatically. Literally flooding the market with outdated garbage and expecting dumb users to sort it out themselves.

>>61642242
>Nah, I don't think you've used a good progressive web app. They're basically indistinguishable from native apps if you do them right.
It's honestly amazing how much bad information there is about PWA. It's not even that complicated. Of course it's not replacing native apps, it never will, nor is it indistinguishable from a native app. It's a phenomenal stopgap for those who just can't make the native app or don't see an incentive to do so. Like there's no real reason for [news blog] to have a native app, but a PWA is definitely a great option.
>>
>>61642277
I still don't think you've used any progressive web apps. In my experience, they don't use any more power and aren't any less responsive than native apps. I'm sure they might be if they're poorly written, but the same is true for native apps. And Apple's screening process doesn't magically catch every little issue.

The UI looking different is just something you have to get past. I personally don't care about having every app's buttons and switches look the same as Apple's or Google's default. But if that matters to you, then go ahead and take the extra development time to do it.

>>61642294
At least Apple made Swift open-source, but everything app development related is still tightly coupled to Cocoa.
>>
>>61642403
>I can't do anything, so neither can no one else

Ok, have fun with that mentality.
>>
>>61642450
>Like there's no real reason for [news blog] to have a native app, but a PWA is definitely a great option.
A news blog is a website. There is no need for it to be an app, either a web app or a native app.
>>
>>61642539
PWAs aren't exclusive for web apps btw.
>>
>>61642539
It's actually a pretty good candidate for a progressive web app.

- added as a home screen icon for easier access
- optional push notifications if the user wants updates about a certain topic

The main issue with something like that as a PWA is the fact that in general on the web, ads have too much free reign. Native ad frameworks constrain ads so they can't shit up the end result too much. Web ads have grown accustomed to being able to run a shit-ton of JS, which could potentially kill the performance and impact user experience.
>>
>>61642638
Why not just use an RSS feed?
>>
>>61642716
>rss feeds
>in 2017
Devs love the shit, normies do not. Twitter is the closest normies will get to a rss feed. lmao

>>61642638
Yep good point about ads. Which I assume has some influence on why even google now is investing in ad blocking (but ofc not their own).
>>
>>61642494
>they don't use any more power

Yes they do. Just starting a JavaScript interpreter takes more power than most running native apps. It's that inefficient.

> I personally don't care about...

Lots of people do. It's why Apple users are willing to pay for apps while poor people use Android, nobody buys anything and battery life is measured in nanoseconds.

I want the good battery life that comes with writing efficient applications using optimizable statically typed languages instead of the bloat and inefficiency that comes with dynamically typed disasters like JavaScript. I want to be able to use force touch to look up a word in the dictionary or thesaurus. I want to be able to use the same gestures I use in every other native app and have seamless integration with all those same apps. Use the native toolkit and you get all of it for free. Use non-native toolkits and you're left with a poor inefficient imitation that's only good enough for shit eating Pajeets.
>>
Redpill me on "Backbone.js".
>>
Is form validation through Javascript necessary now? I thought Firefox and Chrome already support required forms...
>>
How can I add spacing between the buttons without screwing up the layout?

large buttons are 40vw, half buttons are 20vw.
>>
>>61643515
Give us a JSFiddle to experiment with bro, I personally have no clue what you are currently working with
>>
>>61643515
set half buttons width to calc(20vw - (whatever margin you will use times 2))
>>
>>61643528
>>61643553
I'm trying to hack it by setting a left transparent border on the right button and a right transparent border on the left button.

Not working for some reason.
>>
>>61643553
also, never knew about calc(), that's pretty awesome, thanks.
>>
>>61643605
dood just add some right margin to left button and left margin to right button, then edit button size using css calc property so that button width * 2 + margin * 2 = large button width
>>
>>61643605
Ok so add spacing where exactly, like are you talking about padding out the gap between the buttons further? Give us the code you're working with
>>
File: food3.png (141KB, 373x262px) Image search: [Google]
food3.png
141KB, 373x262px
>>61643657
I have almost 1000 lines and these buttons are added to the DOM with jquery.

It would take me 15 minutes to make a codepen and I'll solve it before then.

>>61643656
That did it! I set a the button width to 19vw and the margin to 1vw for a 2x total of 40vw. Thanks!
>>
>>61643720
in case you didn't leave the thread, are you making an online menu for something?
I'm currently a wage slave cook, and my boss wants to update some of the media
>>
>
>new thread
>>61644042
>new thread
>
Thread posts: 324
Thread images: 47


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