[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: 316
Thread images: 37

File: wdg_432968.jpg (161KB, 824x553px) Image search: [Google]
wdg_432968.jpg
161KB, 824x553px
Surviving till 310 Edition

>Getting started
Get a good understanding of HTML, CSS and JavaScript.
MDN web docs offer a good intro (independent of 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/

>Roadmap
https://github.com/kamranahmedse/developer-roadmap

>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

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

>in-depth comparison of VPS hosts
https://www.webstack.de/blog/e/cloud-hosting-provider-comparison-2017/
>>
>>61897140

I'm using a function because I want to make a toggle switch using knockoutJS similar to.this jsfiddle.

HTML
<button data-bind="event:{click:UpdateColor}">Update Color</buttom>
<div data-bind="style:{background:selectedColor}, text:selectedColor"></div>


JS
var color = ["Grey", "White"];

var data = [];
data.remainder = ko.observable(0)
data.selectedColor = ko.observable(color[0]);

data.UpdateColor = function(){
data.remainder((data.remainder()+1)%2);
data.selectedColor(color[data.remainder()]);
}
ko.applyBindings(data);


I'm trying to make a group of buttons though, but I have no idea how to change the observableArray once it's been set :\

this.markerType = ko.observableArray([
{ name: 'foo1', tglStatus: 0},
{ name: 'foo2', tglStatus: 0},
{ name: 'foo3', tglStatus: 0},
{ name: 'foo4', tglStatus: 0},
{ name: 'foo5', tglStatus: 0}
]);

this.navbtnToggle = function(data, index){
this.remainder((this.remainder() + 1) % 2);
this.selectedColor(onoff[this.remainder()]);

console.log(index, data);
};
>>
>>61898150
I don't know knockoutJS at all, but can you describe at what exact step you are stuck at?
Can't you just access this.markerType with the "index" variable and toogle "tglStatus" as you would with any other array?
>>
>>61898153
Could be a few days, could be months.

I started applying to jobs 2 months ago and only now getting replies. I also got 4 replies from companies I applied to last week. They were startups though, who reply much quicker.
>>
>>61898255

Yes but how would I have selectedColor set the color of the text to color[tglStatus] on button click?
>>
>>61898896
ah man, if it was Vue I could probably help no problem.

so on click it calls "navbtnToggle", which sets remainder and selectedColor properties on the button *element/component*?
I guess your current style binding already looks like this?
style:{color:selectedColor}

and "onoff" being an array that holds the color variable?

Post a jsfiddle of your current code maybe
>>
>>61899156

http://jsfiddle.net/w2mnvmtp/56/
>>
>>61899230

Also, here's one that has what I want working but it uses css instead of style if that helps.

http://jsfiddle.net/JvqHs/18/

The documentation is extremely lax :\
>>
How long until you start applying for jobs?

I have made a lot of small, simple projects with basic JS and some with React.

I've also made a very basic business page for a small company in wordpress.

I'm not quite sure what to write on my CV. Any protips on getting a job?
>>
Has anyone here used vue? How have you liked it?

I'm starting a big front end project at work soon, and I get to choose the framework. I've used React in the past and am kind of done with it. I'm leaning toward vanilla JS, but this is an open source project, and I want to make contributing as easy as reasonably possible.
>>
>>61899367
Go ahead and apply for jobs. Worst case, you'll learn what you need to do to make yourself a more attractive candidate. Best case at your level is probably to be told, "Well, we can't hire you as a dev, but we've got this well-paid internship you can do," but you never know.

More important at this point is to go out and network. Learn from people working in the industry. They'll be able to point you toward jobs you have a better chance of landing, but learning from them is more important. It will make you a much better developer. Talking shop with them will also help you know/practice how to talk during interviews.

Make sure that your small projects are visible because they're going to be the meat of your CV. Put them up on github and link to them on your resume.
>>
>>61899230
here, is this what you intended?
http://jsfiddle.net/w2mnvmtp/59/

>>61899410
liking Vue a lot personally
single-file-components are great and the code is nice to read imo
>>
>come to work on time
>been here 20 minutes
>none of the other 6 devs here yet
>boss isnt even here yet
>lights are off

It's like this every day. How do I find out whats going on without seeming like a dick for asking why everyone is always super late.
>>
can we ban vueposting yet
>>
>>61899632
Thanks! How much tooling do you need to be able to use vue sanely? I'm avoiding react because I don't want to start a new project with a million extra tools. The vue docs say you can use it with no extra tooling, but react says the same thing without mentioning that no one uses it that way so good luck finding docs/tutorials/support for that way of doing things.
>>
>>61899738
>It's like this every day
I think you have your answer. Devs usually don't give a shit about getting to work on time because it doesn't matter. They don't deal with customers. As long as they are available during enough business hours and get their work done, what time they show up is irrelevant.

If you're confused by that, ask your boss. Frame it as asking whether or not you're allowed to do the same thing. Asking for clarification of what's expected of you is allowed/encouraged.
>>
>>61899632
>http://jsfiddle.net/w2mnvmtp/59/

<div data-bind="style:{background: $parent.colors[b()]}">


Thanks a bunch!

And how does knockout bind itself to html? Does it scan the html and find data-bind then replace it after its parsed the line and done x y z with it?
>>
>>61899777
Theoretically none.
Vuex only if you want some extra library for state-management, though I personally never had the need for it.
Webpack if you want to have .vue single-file-components in your project.
https://vuejs.org/v2/guide/single-file-components.html
It's not adding extra functionality, but just helps to keep your components organized. To be fair, I wouldn't even use .vue files straight away, if you just want to get a feel for the library itself.

https://vuejs.org/v2/guide/comparison.html#React
might be of interest

>>61899860
no idea, most frameworks like that work with a virtual DOM
>>
>>61899738
It was the same at my last dev job. If it's a startup or smaller company, completely normal.

If you're new, try not to be late even though they are.
>>
>>61899738
On mornings when I go to the gym I can end up being 20-30 minutes early. Boss is always here. Shame it's not all productive time, often he'll spend a lot of time roaming around chatting to people.
>>
LOL-ing at you guys. Everybody can make their own website by themselves. Your nothing special.

https://www.youtube.com/watch?v=4aWkqe4O9kE
>>
>>61900282
>5 minutes
i hope that includes long breaks otherwise wtf why did he take so long
>>
>>61900068
I am new.

There are two other new guys that started a few weeks before me. One was 45 minutes late and 58 minutes for the other.

This is just so bizarre to me.
>>
IS THERE ANY WAY AT ALL to NOT call setInterval immediately but to save it in a variable and use it later on? OR DOES JAVASCRIPT JUST LIKES BEING A BITCH
>>
>>61902270
Then don't call setInterval immediately but wait until later?
wtf are you doing anon
>>
File: 1460671691582.png (140KB, 300x410px) Image search: [Google]
1460671691582.png
140KB, 300x410px
>>61902270
>being mentally retarded
>>
>>61902270
I love it when retards blame the language when in fact the problem is that they are a retard. You should hit the books because you aren't ready for any kind of programming.

what I think you are trying to retardily do: https://hastebin.com/raw/unatuziliy
>>
>>61902332
Ok so here is my conundrum and I won't be so mentally retarded this time.

I am making a game in JS. The user clicks on a button and a number decreases until it reaches zero. The user has to reach zero before the opponent does, the opponent being a DASTARDLY (oops sorry, slipped out) setInterval() function which decrements its own number.

This game has many levels. Level 1, the speed at which the setInterval decrements is very slow. But with each successive level, the speed increases.

So here is how I have the code laid out. I was going to describe it here but it would take too long, so here is a jsfiddle:

https://jsfiddle.net/b0s2c7dq/

I am referring to variables that exist in local scopes in this setInterval() to make the game work as it should, so the setInterval() should go inside the same scope right? No, because then it gets called a second time, third time, fourth time etc with each new level.

So what are my options here, shoot myself in the head or stop making things so difficult and put each level of the game into separate functions rather than one gigantic function?
>>
>>61899410
Vanilla.
Frameworks are a meme.
>>
>>61902550
>because then it gets called a second time, third time, fourth time etc with each new level.
Do you not want that? you should be clearing the interval at the end of the level and starting a new one with the new speed at the start of the next level
>>
>>61902599
Fuck it, that is the easiest way to do it. Fuck the DRY principle, I'm repeating shit.
>>
>>61902755
It's in a loop. You're not repeating yourself
>>
>>61902550
`setInterval()` returns a value that can later be passed to `clearInterval()` to terminate it. Hold onto that value and call `clearInterval` at the end of every level.
>>
How should I learn React as a total noob? I've tried some youtube channels but everythig's deprecated. Any recommended udemy course or something?
>>
>>61902997
Read the documentation my man.
>>
>>61902997
RTFM
>>
File: nav.png (2KB, 417x81px) Image search: [Google]
nav.png
2KB, 417x81px
Ayy, I'm working on the main nav for this site and I've achieved the effect I want, a little slide down effect on hover using just CSS. It looks fine in both Firefox and Edge but in chrome when you first load the page the nav always has a one pixel line in between at least two of the items, pic related. That's how it looks when the page first loads and if you hover over the menu items to get the transform effect it can disappear and reappear but the menu items don't shift at all, the widths stay consistent. Any idea what could be happening here? Is it just a bug in chrome?
>>
>>61903825
inspect the element and check which rules apply.

Are you already using something like normalize.css ?
>>
How did you guys learn Python?
>>
I looked at other Python code and read the docs
>>
Posted earlier in the /sqt/ but it died and I got no response. I'm trying to learn a bit of webscraping with Python and Selenium webdriver. I managed to scrape the table I was interested in like this:
try:
element = WebDriverWait(driver, 10).until(EC.presence_of_element_located((By.ID, "table-type-2")))
finally:
for i in element.find_elements_by_xpath('.//tr '):
with open("C:/test.csv", "a") as csvfile:
print(i.get_property('innerText').strip(), file=csvfile)

How would I have to do this if I wanted to go through cell after cell instead of printing out the complete rows? For now I am simply importing the file into Excel but I would rather work with the data directly, so being able to access specific cells in the table that match certain critiera would be ideal.
>>
>>61904483
read a bunch of books. Maybe start with Automate the boring stuff with Python, it's pretty good.
>>
File: 1500327460516.jpg (51KB, 586x808px)
1500327460516.jpg
51KB, 586x808px
Running a backend in Node.js with mongoDB - where do I deploy? Its a small e-commerce site.

Who do you host on? I found Diigital Ocean to be ok. Any recommendations?

Most providers want me to get a VPS
>>
>>61904483
DO or Vultr is fine
>>
how does /wdg/ version control?
>>
>>61905799

git
>>
>>61905799
There's effectively no reason to use anything other than git.
>>
>>61905799
git

>>61905331
vultr, digital ocean, heroku
>>
>>61905799
I keep folder backups and just put shit live.

Which is odd since I use git at work.
>>
File: cypher.gif (57KB, 320x240px) Image search: [Google]
cypher.gif
57KB, 320x240px
>>61906047

u crazy nigga?
>>
>>61905223
I realized when I print the rows there are always a certain number of spaces between the values of each cell so now I am just splitting the string like
 print(i.get_property('innerText').split('    ')[2]) 
for example. That way I can get to each value of the cells. Please let me know how bad of an idea that is.
>>
just set up an apache on ubuntu. I don't have permissions to edit under var/www/html though. I can't even edit the index.html file apache provided me. What the fuck do i do
>>
>>61898150
Obviously. But the click binding expects a function. You don't need to call it. Knockout calls it with the correct parameters already.

>>61899860
>scan the html and find data-bind then replace it
The DOM, actually, and the handlers don't usually replace it, but just clone or remove the child(ren), attach handlers, and/or modify attributes. data-x attribute becomes DOMNode.dataset.x so it's not horrible terrible performance-wise. afaik it doesn't use shadow DOM.
>>
Any good good ORM-like libraries for node? I want to do an application with a lot of dependent data and I dont feel like writing SQL.

Django's models are an example of what would work well here but I want to build a single page app and Django for API's is eh
>>
>>61906658

anyone?
>>
>>61906658
>>61906802
>doesn't understand basic unix
>pointlessly tries to bump own post by spamming
>never asked a support question before
>shitposts support questions in /wdg/ instead of any of the many valid support channels for apache
Go fuck yourself.
>>
File: 1473016597588.jpg (254KB, 500x652px) Image search: [Google]
1473016597588.jpg
254KB, 500x652px
I have finally succumbed to the webdev meme because webdev jobs are practically everywhere, thank you for making this thread and the guides & links are great OP, thank you all for participating in this thread and sharing your knowledge by answering questions in your spare time (you are all very busy I know).
Thank you once again.

pic semirelated, replace the greek statue with webdev
>>
>>61907723
Don't you call my passion a 'meme' you cretin
>>
>>61907723
yeah it's nice
>>
File: sterons.png (17KB, 597x423px)
sterons.png
17KB, 597x423px
>>61907723
I miss /fit/ :(

If you have any questions about getting a web dev job then I can answer probably.
>>
Is there some

php -l file.php

alternative that does a syntax check on the file, but doesn't run it?
>>
File: Capture.png (716KB, 1163x574px)
Capture.png
716KB, 1163x574px
<- screen of the portfolio site I'm building

WebGL2 transform feedbacks are too good to be true for anyone who loves to animate a few thousands particles on screen with your mouse

At 60fps on chrome things like these gets easily addictive to any type of visitor
>>
>>61908869
You have a good tutorial for that kind of thing?
>>
>>61907904
:-)
>>61908320
Definitely, plus this gen is pretty new
>>61908389
Should have guessed it came from /fit/ considering the bodybuilder.
Which jobs are more fun in your opinion? Front end stuff or the back end stuff ?
I'm guessing you need a portfolio for the front end stuff?
>>
>>61909074
WebGL2 is pretty new so there's little choise for tutorials specifically on transform feedbacks but this may help

https://www.ibiblio.org/e-notes/webgl/gpu/bounce.htm
>>
Today I learned: Inheritance! woot!
function Cname() {
this.a = "";
this.b = Number;
}

Cname.prototype = {
z: 2,
method1: function() {
return this.a = "zzzzzz";
},
method2: function() {
return this.b = 22;
},
sum: function() {
return this.z + 1;
}
}

let xx = new Cname();
console.log(xx.method1()); // zzzzzz
console.log(xx.method2()); // 22
console.log(xx.sum()); // 3

xx.z = 4;
console.log(xx.sum()); // 5

let item = Object.create(xx);
console.log(item.sum()); // 5
console.log(item.method1()); // zzzzzz

let obj2 = new Cname();

obj2.aa = function() {
let inh1 = this.method1();
let inh2 = this.method2();
let str2 = "ownstr"
return inh1 + " " + inh2 + " " + str2; // zzzzzz 22 ownstr
}

console.log(obj2.aa());

let item2 = Object.create(obj2);
console.log(item2.aa()); // zzzzzz 22 ownstr

console.log(obj2.hasOwnProperty('aa')); // true
console.log(item2.hasOwnProperty('aa')); // false

console.log(item.hasOwnProperty('sum')); // false
console.log(xx.__proto__.hasOwnProperty('sum')); // true
>>
>>61909179
Object-oriented is so fucking retarded for most things.

I love when companies are like WE USE JQUERY BUT WE NEED OOP PHP.

Like wait, so you want me to create an object of the class I'm creating and echo out the results so you can get it in ajax? Like what?
>>
KEEP
IT
SIMPLE
STUPID
>>
>>61909143
It's hard to find back-end and front-end really separated these days.

Sure, you usually have a designer that usually makes ads and stuff and also tells you what to change on the layouts, but most places that I have seen expect you to do back-end and front-end. Actually my previous job didn't even have a designer. We were as full-stack as you could get.

Yeah though, the best portfolio is a pretty one. Take the lead of the person doing the WebGL2 stuff. Some basic stuff like hitting a geolocation API to find the closest starbucks and a simple login system, or a guestbook.
>>
>>61909179
Inheritance is trash tho.
>>
>tfw no ideas for personal projects
How do I keep learning if I don't know what to do?
>>
>>61908530
What's wrong with that?

>>61910728
Does /wdg/ have no dice roll sheet?
>>
This probably extends just regular Web development but how to make something like this? And embed it into a website, and making it interactive?

https://www.fractalfantasy.net/#/7/visceral_minds_2

I've literally no idea. Is it something I could do in WebGL? Or what do you think.

Theres quite a few other 3d animations and visual things on that website which I think is cool
>>
>>61911107
Sure man.
>>
any recommended book/course/anything to learn PHP?
>>
File: pn9oi0Co.png (55KB, 481x481px) Image search: [Google]
pn9oi0Co.png
55KB, 481x481px
How do I develop website startups as quickly as possible?

Python Django or Ruby on Rails?
React or Angular?
etc.
>>
File: 1454602886891.png (359KB, 595x574px)
1454602886891.png
359KB, 595x574px
>>61911144
>PHP
>>
>>61911197
anything your heart desires
after all, it's your startups
>>
>>61911197
Depends on the type of website.
>>
I'm looking for resources on front-end design (not development), but Google isn't really turning up anything. Where do I start?
>>
>>61911245
Why is that carpet so fucking filthy? She deserves better than that.

Anyway, you don't self-teach design. In order to be decent at design you need to get a degree from a good traditional college program. It's basically the opposite of web development.
>>
>>61911245
>I'm looking for resources on front-end design (not development), but Google isn't really turning up anything.
you lie you lie you ain't ever lie so damn much
>>
>>61911288

>Anyway, you don't self-teach design.
>>61911288

I would disagree
>>
File: no .png (689KB, 1357x1035px) Image search: [Google]
no .png
689KB, 1357x1035px
>>61911339
>>
I believe there should be a list of simple website projects one could make? Like movie/book archive or a site of a school/university.
>>
Can you self teach to senior full stack level?
>>
>>61911445
I tried to do weekly challenges once but no one did them. They were simple.
>>
>>61912174
Yes but it becomes horribly inefficient.
>>
>>61912439
what's the best route to take? i already have a web dev job but can't progress past intermediate.
>>
How do I show a random string of text on the page every time its refreshed?

As simple as possible. <3
>>
>>61909629
Thanks for the advice.
>>61912357
This would be useful. Or at least a list of ''good for portfolio" ideas. Guestbook, interactive, own forum, filesharing site etc...
>>
>>61912769
Do you mean a random phrase or a literal random string of characters?
>>
What is the best way to create annotated interactive images?
>>
>>61912979
Phrase, so i will have a list of them, and it will pick one at random.
>>
>>61908869
pajeet tier
>>
>>61911288
>Why is that carpet so fucking filthy?

It's the Eric Andre Show, you know? Look that shit up.
>>
File: spanish stuff.jpg (157KB, 1345x422px) Image search: [Google]
spanish stuff.jpg
157KB, 1345x422px
Is there a website that teaches about good layout design? i have something like this picture but i want it to dont look like shit

any recommendations?
>>
>>61913005
Initialize an array with the Strings, create rng for the amount of elements in the array -> pick the String from the index of the random number. Tada
>>
>>61906895

fuck linux
>>
How do people create and save webpage posts to datebase, so that posts aren't just plain text following one template?
>>
>>61913707
As HTML, of course. Usually a subtree that drops into one of several templates, in a designated place.
>>
>>61913913
So somehow people create a form which then saves post content as a html file?
>>
>>61913956
See tinyMCE for the authoring side. The viewing side can be as simple as querying a database and printing the value of a text column directly to the response stream.
>>
>>61913986
Want to create blog page similar to ones being made on wordpress. Thx for the help, will definitely look into it.
>>
File: 1407675243688.jpg (418KB, 2793x1862px)
1407675243688.jpg
418KB, 2793x1862px
I'm playing with a CGI python+html site. The html code has an input box, and i want to take the string from the input and run it through a python function and post the function output to the site again. From what i've read i should be able to do that with ajax but i cant get the syntax right.

Anyone experienced with CGI want to help me out?
>>
Very simple question:

Why use wordpress for static promotional pages? Can't you just use html and js/css files exclusively?
>>
>>61914646
yeah, but I guess if you are not into frontend, then some wordpress theme makes it ez pz to set up something half decent looking with little effort
>>
>>61914646

So your client can edit the pages without knowing how to code.
>>
Is extJS so clunky and verbose i need sencha or should i pick up extjs for my electron ui framework? Right now im making material toddler themes ready to step up to big boy designs.
>>
>>61915617
that shit looks soul draining as fuck
These big corporate/enterprise web garbage dumps make me nauseous.

I just want to make some fun & lightweight webapps with Node and Vue
>>
>>61915773
Its easier than reinventing the wheel if you actually want to finish a project
>>
Guys, is there a proper way to set up development and production version of a wordpress website? To show new features to the client before deploying
>>
>>61914537
AJAX alone isn't going to help you much with CGI. You'll need to create an endpoint to return the data you need from the ajax request. That will probably involve more steps than you've been doing so far with CGI (eg, parsing the ajax request, putting the return data into JSON or XML).

A more standard way to do things with CGI is to do a standard form that loads/reloads a page on submit. Ajax with forms is kind of a hack that everyone does to avoid the page reload. If you don't care about the reload, you don't need to mess with it. Otherwise, you're going to have to do some nontrivial javascript programming.
>>
Is there any android app, book or some kind of resource that I could use on the go?

I'm going to travel from tomorrow to sunday and I have little sleep when travelling, so might as well do something useful when.
>>
>>61912769
Make a string of possible characters. AbcdefgABCDEFG etc

For loop on the length of the string you want to make.

YourEmptyRandomString += CharAt a random number between 0 and the length of the string of possible characters you wrote.
>>
>>61911198
Why do people hate PHP?
>>
>>61917257
Because they're bandwagoners like the rest of 4chan
I don't mind it, not my first choice but that's just a personal preference.
>>
>>61911144
https://github.com/ziadoz/awesome-php#resources

Hopefully this sets you on your way
>>
What first got you into webdev, /wdg/? When did you first realise you enjoy it?
>>
>>61917600
>What first got you into webdev, /wdg/?
Necessity to survive
>When did you first realize you enjoy it
I'm still waiting for that moment
>>
>>61917616
Are you...are you a pajeet?
>>
>>61917623
Thank you, come again
>>
>>61917636
No, but seriously, are you Indian? I would like to hear from Indians about their perspectives on webdev and whether most of them actually like it or just work to put food on the table.
>>
>>61917654
I'm a fat mexican, does that count?
>>
>>61917673
No, Mexicans are too dumb to count
>>
>>61917695
You're not wrong, thank god for the low bar that is webdev
>>
>>61917257
Because you can't async well
>>
>>61917600
When I was 10 and cracked out on Ritalin.
>>
>>61917322
Thank you my man
>>
>>61916097

Host it on your own server.
>>
>>61917874
That's what I am doing rn. How should I sync?
>>
>>61917909

WP Migrate DB
>>
File: 435590.jpg (591KB, 3648x2736px) Image search: [Google]
435590.jpg
591KB, 3648x2736px
guys, i've been fooling around with jQuery on a simple webpage with an h1, and some buttons. At some point $("h1") started returning just null, but just the $ command seems to get recognized. How can I fix this ?
>>
>>61917959
fuck, it was the frame of the vimium chrome addon, disabled that shit on localhost and it started finding my elements
>>
File: b.png (37KB, 375x52px) Image search: [Google]
b.png
37KB, 375x52px
I was always using Vue and just figured something out I think.
When it comes to Redux and MobX, the idea that "everything that 'can' be derived from the application state 'should' be derived from it" was kind of confusing, because I assumed that's how its done by default already.
But I guess that's just because the whole state in Vue is already observable from the beginning.
Now I am wondering though why that is not the case with React. It's called "React" so I would expect that the library automatically "reacts" to any changes in its state and wouldn't need a specific function call to initiate the re-render or some additional library.
This also means that MobX and Vuex have partially different purposes right? With Vuex mostly being concerned with managing state shared among components, while MobX/Redux is also concerned with how the view should be re-rendered I guess.
Thanks for reading my retarded post.

>>61917600
I was always into programming and figured that webdev might be a nice path to take, since anyone can open and use your "program" simply by entering a specific URL in their browser.
>>
>>61909179

It's not inheritance, really. Just a work-around trash.
>>
>>61898106
I probably should ask /dpt/ but are there any good resources for learning Java online other than Oracle's docs? A lot of the web companies in my area either work with it, PHP, or C# for the backend and my dumb ass only knows Node and Python well enough (Well, I suppose I know PHP, but it's been a while.)
>>
>>61919230
I learned Java in Uni, so I don't know many decent places to learn online. From a quick search, looks like Codecademy has a lesson on it. NetBeans also apparently has a place to learn it, and there's always tutorial's point.
>>
>>61919230
there are lots of basic tutorials out there
check baeldung out for more specific stuff
>>
How many of you actually enjoy programming and learning about web dev?
How many of you are doing just for the cash?
>>
>>61919612
I do, it's just so fucking rewarding to have a problem, fix it, and see others appreciate that
lmao no
>>
How much demand is there in the CRM market? I currently have a part time job writing CRM-CTI integrations for Salesforce, Microsoft Dynamics, and SAP (Though I've never personally worked with SAP; I mostly work with Salesforce).

Is this something I can translate to a higher paying job after graduation?
>>
If it came out that boolean values were lying the entire time, and every single thing was actually false, what would happen /wdg/?
>>
Odd question.

API wants me to POST to a URL with custom URL parameters.

I'm manually taking them out of the URL and inserting them into POST fields, then hitting the base URL with the request.

It's saying the parameters aren't recognized. If I leave then in the URL then I get a signature mismatch.

Whats the right way to deal with URL parameters during a POST request?
>>
>>61921186
urlencode parameters and their values, put resulting string in request body
set content-type header accordingly

aka post data like you would a form
>>
Asking for golang advice.

I'm going to have a REST service which may have some complex url patterns. Example:
Here:
GET http://api.site.com/gallery/files
Lists all files.
GET http://api.site.com/gallery/files.json
lists all files in json format.
GET http://api.site.com/gallery/files.xml
lists all files in json format.

Here:
GET http://api.site.com/gallery/files/123129381293893242093429
Gets a single file with that ID.

GET http://api.site.com/gallery/files/123129381293893242093429/edit
Links to a page where one can edit said file.

http://api.site.com/gallery/files/123129381293893242093429/


plus all the PUT, PATCH, DELETE and other things. Question is, what router or net package makes this the easiest? Consider how easy Django REST framework makes it with nesting url patterns.

Any clue?
>>
>>61921620
dunno what libs you need to use but consider only exposing >/gallery/files
and specifying format either as query parameter or using appropriate http header
>>
>>61922213
To be honest, the /edit endpoint is a holdover I may not end up using at all.

But there will be a path like this:
http://api.site.com/gallery/files/123129381293893242093429/revisions

and

http://api.site.com/gallery/files/123129381293893242093429/revisions/23
>>
>>61921469
I literally create a form based on the parameters because it creates an SSO session and launches an app after the session is generated.

Im based off of gist.github.com/matthanger/1171921
>>
if a host supports 4.5, does that also mean they support 4.5.2? Or would that be specified?
>>
>>61922781
Does the API follow semantic versioning? If it follows semantic versioning, then in theory 4.5.2 should be completely interoperable with 4.5. According to semantic versioning, 4.5.2 would only have bug fixes and the like, no API changes at all from 4.5.
>>
>>61922868
shit forgot to mention its .net, so it probably does.
>>
>>61914537
>cgi
>2017
>mfw not enough smug anime girls in my smug anime girls folder

>>61917257
Because it's a giant collection of worst practices and internally inconsistent af.
>>
File: 1489628781857.jpg (15KB, 240x320px) Image search: [Google]
1489628781857.jpg
15KB, 240x320px
>server code and markup on the same file
>>
>get balls deep into ruby and rails
>approaching the point where I can make something portfolio worthy
>check the potential job market for a rails dev job
>one posting in the last six months
>meanwhile there are PHP and front end jobs out the ass

Feels bad man.
I'll probably still fit the criteria for a general full stack dev but it sucks to realize I've been investing into the wrong path.
>>
>>61919817
Call yourself a Salesforce developer and you'll be OK.
>>
>Typescript

I really don't undertsnad what the big fuss is about very this?

Everytime I try to set this up in one of my angular projects it always feels like a fudge of a solution, and doesn't really add much over just writing javascript. And I always end up having to find hacky solutions just to get different js libraries (like moment) to work properly because there is no consistent way to define and import/export modules.
>>
how can I get the name of a class as a text in js?
>>
>>61923345
In what sense? You want Javascript to output the class name of an HTML element?
>>
>>61923456
yeah I used $(this).attr('class'), but how can I use it in an array format? like array[0].classname
>>
Bruhs I need another way to find out if a number is lesser than or equal to another number in Javascript cos the old reliable way of [number] <= [number] isn't working so good in my code, it's playing tricks on me brahs, I'm playing with intervals, event handlers, all sorts and now I can't get two SIMPLE FUCKING NUMBERS TO UNDERSTAND WHETHER ONE OF THEM IS GREATER THAN THE OTHER WITHOUT THE ENTIRE SYSTEM CRASHING
>>
>>61923550
Put it in a jsfiddle. Your use of jQuery is tripping me up, I'm allergic to that stuff. I'll be able to help you in basic Javascript.
>>
>>61923092
Those skills will translate to lots of other domains. Most major backend frameworks are more or less loosely based on rails patterns.
>>
>>61923565
get a good night's rest
tomorrow you'll be sober and rested, you'll either be able to compare numbers again or reevaluate your life choices and pick a career path that does not involve numbers
>>
>>61923550
What the fuck are you even trying to ask? What is it that you want to do?
>>
>>61923565
What are their types?
>>
>>61923693
Both are primitive numbers I think, one is a variable that starts as a number which then decrements down to 0.

'[variable] === 0' works fine
'[variable] < 1' or '.. <= 0' does not, it fucks shit up. Tears the whole operation apart
>>
>>61923611
>>61923678
https://jsfiddle.net/7oud2e2b/

I want to replace the data name from the array "test" with the class of the button
>>
>>61923758
>Both are primitive numbers I think
You need to check with typeof.

>does not, it fucks shit up. Tears the whole operation apart
What the fuck does this mean?
>>
>>61923776
>I want to replace the data name from the array "test" with the class of the button
Trying and failing to parse this statement. You're trying to modify the contents of the array? Do you want to get the class name of the button and put it into the array somehow?

Or do you want to change the class of the button to be the contents of the array?
>>
>>61923565
>>61923758

you are not >>61902270
by any chance?
whats wrong with you, if you can't compare 2 numbers man.
Post a jsFiddle
>>
>>61923345
If they're actual DOM elements, then the entire list of class names is just simply '.className', and is a space-separated list of class names (just as it appears in the HTML).

Is the array (>>61923550 ) an array of DOM elements? Or did you mean that you want an array of classnames? If so, considering a DOM element 'n', the classnames can be obtained by 'n.className.split(" ")';
If it's NOT a DOM element, then what are you using as a selector, or how else are you 'picking' the thing(s) that has (have) the class?
>>
>>61923565
parseInt both variables?
>>
>>61923889
>Do you want to get the class name of the button and put it into the array somehow?

this. each button has to get its data from the array, so I want to make one function for all buttons and get data from the array like this array[0]. +(this button class)
>>
>>61923993
Why are you incapable of expressing yourself in a manner that is possible to follow?
>>
>>61924039
probably sleep deprivation or too much glue sniffin
>>
>>61923776
>https://jsfiddle.net/7oud2e2b/
Firstly, don't fucking name your array "array". That's just asking for trouble later. Second, I agree with >>61923889. An array is just a list of values. It doesn't have a 'data name'. Do you mean you wanna make the array say '{"table":1}', etc. instead of '{"test":1}'? If so, you'll need to go thru every object in the array and replace the object's properties:
//for an object x
x.table = x.test;
delete x.test;
>>
>>61924083
>>61924039

dudes, I have array data like this array[0].test, array[0].test2, array[0].test3 and buttons with classes like this .test, .test2, .test3. I want to make one function and make each button call the array data named after its class
>>
>>61924129
https://jsfiddle.net/f79f5v50/
Trying to un-retard this for you.
>>
>>61924161
cant this work for different array format?
>>
>>61924238
Well, the one you had made no sense. You just had an array with a bunch of identical objects in it. Something like this would make more sense:

[
{
key: 'test1',
value: 1,
},
{
key: 'test2',
value: 2,
},
].find(record => record.key === 'test');


Because then you can easily lookup the records by key. The way you had it is a big pain in the ass:

[
{
test1: 1,
},
{
test2: 2,
},
].find(record => Array.from(Object.keys(record)).includes('test1'));
>>
>>61923847
They are both numbers. And that last statement means that those operators does not work

>>61923959
That I am. And I've worked out the issue through console.log, turns out the number is continuing to decrement into the negatives which is throwing shit apart.

>>61923990
Good suggestion but not fit to my situation
>>
>>61924479
>They are both numbers.
Then it should work.

Throw in some console.logs chances are it's working but something in the conditional is not. It literally cant not not work.
>>
>>61924479
>it doesn't work!
Unhelpful.
>>
>>61913281
>>61919422
>>61913281
>>61919422
Get on it.
>>
File: 1420099814802.jpg (13KB, 250x239px) Image search: [Google]
1420099814802.jpg
13KB, 250x239px
Would it be better to store images in a database directly as binary data, or just store a varchar link to the image? I want to use Javascript to build the page dynamically based on what is in the db. On one hand I would need to send more data over ajax calls, but on the other hand I would just need to send short links over ajax. For just sending links, I would also have to put together some kind of image hosting area that the links actually go to, right?
Anyone done something like this?
>>
>>61924537
It was a piece of a shitpost, not a demand for you to fix my issue. I was just saying that those operators do not work in contrast to the ones which do work. If you are looking for in-depth theses or reflective essay writing on how I experimented with an issue and about everything I have tried, then 4chan isn't the place.
>>
>>61924642
huge difference between a shitpost and
>HURR DURR I AM TOO RETARDED TO COMPARE 2 NUMBERS IN JS
>>
>>61924832
You are more autistic than I am
>>
File: 1502836695370.jpg (824KB, 1920x1012px)
1502836695370.jpg
824KB, 1920x1012px
>>61898106
Hello guys i need some help. how can i make a background for the text.
>>
>>61924881
What is it with people dropping in with the vaguest shit tonight
>>
File: 3kPNCP4b_400x400.jpg (19KB, 400x400px) Image search: [Google]
3kPNCP4b_400x400.jpg
19KB, 400x400px
>>61924876
maybe

>>61924881
set background css property of the element that text is in?
that image might as well apply to you
>>
>>61924906
kinda feels like recently some trolls have been abound in WDG...maybe WDG attracts retards though
>>
well this is how i have it set up.
i have the text in css as .header
but when i place "boarder" it doesn't show up. or when i placed "background-color" it only makes the text within the brackets the color inputted
>>
>>61924970
god-fucking-damn. it's border. also what element are you using for the text, <div>, <span>...?
>>
>>61924970
are there multiple elements with the .header class or is that the one thats outermost of all the text at the top?

How is it that noone ever posts a link to a jsFiddle or at least add some code tags to their post.
You want help but don't give people anything to go on.
>>
how bout we bring back that ol ARPANET, for ol times sake. get instagram up on there, website, forum page for sharks and lets use mangodb. we'll be crystal like billy crystal
>>
>>61925021
>>61925060
http://pasted.co/bbb610b0
here is my code
>>
>>61925181
you set "overheader" as the divs ID not as a class
change ID to class and
        .overheader {
background: red;
}
>>
>>61925154
http://crystal-lang.org/ is the future of webdev.
>>
File: afdsse.png (4MB, 1920x1010px) Image search: [Google]
afdsse.png
4MB, 1920x1010px
>>61925263
Thankyou! lastly is it possible to span the background to the border?
>>
File: devtool.png (24KB, 1920x355px) Image search: [Google]
devtool.png
24KB, 1920x355px
>>61925407
body {
margin: 0;
}


better learn how to view CSS rules of an element with the built in FF or Chrome dev tools. (F12)
Also consider using something like normalize.css for better css defaults across different browsers.
>>
What knowledge is expected of a front end dev? I know html, css and js are the core but there's probably other shit you have to know too.
>>
>>61924603
Why would I want to spend a dozen hours to make no money?
>>
>>61924613
you just store paths to images
>>
>>61925560
As a hobby or for self-education.
>>
If anyone wants a library that can make modal windows, popups and snackbars: https://madprops.github.io/Msg/
>>
Would employers frown upon things like betting sites in portfolio?
>>
>>61925609
talk about the functionality you wrote and the tech you used, bitcoin API for ex might attract their attention.
>>61898106
Where do you guys find quick small webdev projects / fixing jobs online?
>>
>>61925519
Learn to use functional programming, closures, async, stuff of that nature

>>61925609

No, if your work is solid, they shouldn't
>>
>>61904483
Automate the boring stuff and mess with some simple API stuff.

I'm learning Python, and my first project was a Discord bot. Doesn't sound exciting, but hook that shit up to a DB and have some fancy tools and you're on your way. My bot can handle all sorts of admin stuff, play music, simulate FIFA games (A whole project in itself really) and find and book train tickets
>>
>>61924944
Not just /wdg/ but /3dpg/, /ohm/ and top posts. Pretty sure the kids gotta go back to school and are getting their last hurrah.
>>
>>61925609
Yes, not all. Like a porn site. Some might look past the fact that it's a porn site, and realize the impressive stuff you're doing with video compression or whatever the fuck, but majority won't get past it unless it's bringing you a fuck load of money.
If it's one of those csgo betting sites, lmao gl
>>
>>61925920
Kids probably post with a greater intensity during the school year.
>>
>>61925630
Upwork

It's shit but active enough to get easy dollars if you scour the board.

I once make 2k usd from some hospital network for basic code refactor on a 3000 line js file for displaying charts. Took 3 hours.
>>
>>61925519
What type of role?

Startup vs large corporations vs mom and pop shop are very different
>>
>>61926051
mom & pop vs startup are very similar though
>>
Am i wasting my time going to a four year college if I end up being a full stack developer after? It seems like majority of you guys don't have a degree in CS and are self-taught.
>>
>>61899774
underrated post.
>>
>>61906802
its almost like you would need a Superuser to Do something like that... hmmm....
>>
>>61925484
thankyou again!
>>
>>61926446
Probably. I have a CS degree and I certainly regret it. If you actually do and make things during school maybe not. All it does is makes getting interviews easier at first and slightly higher starting salary (which doesn't mean much unless you aren't paying for school)
>>
>>61925595
But I make sites that make money as a hobby.

I wouldn't even be able to use that in my portfolio.
>>
>>61925630
>bitcoin gambling site

This seems like an amazing idea because it's probably not illegal.
>>
>>61926446
>It seems like majority of you guys
This is horrendous rationale. A bunch of guys on a syberian dick measuring board don't have CS degrees, guess I should follow them.
Assess your situation and see what's right for you, that's all.
>>
>>61926783
Actually is that crypto bot guy here? Want to make a crypto gambling site?

Would have to secure transactions to the hold wallet like fort knox.
>>
I live in St. Louis. The job market here sucks. It's all big companies that you still somehow havn't heard of doing boring shit.

Half of my graduating class left the area for dev jobs. I'm strongly considering doing that same. Anyone else here left their hometown for work? Did it work out well or no? My 3 friends and family are really the only things holding me back.

I'd also have no idea where to look.
>>
>>61926844
Why would your 3 friends & family be something holding you back? Unless you're moving countries or your family has some sort of serious disease and they can't travel or you are terrified of travelling, you'll still be able to visit them often enough.
>>
>>61926446
I went to college for 3 years.

Spent a lot of the last year learning web Dev.

Now I'm a full stack dev. School background kinda helps.
>>
>>61926877
They're good friends. And I've taken active measures to get closer to my family since moving back from Madison (I did go to college there for a year, it didn't work out). I guess I'm mainly scared of giving up a social life that I've built over....10 years maybe.

There's also the problem of other cities being expensive. St. Louis is dirt cheap.
>>
>>61926844
Is the St. Louis area really that low on webdev jobs? I'm surprised. I just checked indeed a couple of hours ago and there's at least 6 pages of companies hiring for webdev in Lexington.

And I thought THIS place was shit.
>>
>>61926926
Do what works best for you, but I don't think you'd be giving up a social life just by moving cities/states. If anything it'd make you value the time you do have together.
Now money and cost of living, that's a damn good reason.
>>
>>61926926
>I'm scared of giving up a social life I've built up for 10 years
They got your number, if they care they'll call/text. I moved away from my hometown 5 years ago and all of my buddies keep in touch still.
>>
>>61926770
It isn't for you.
>>
>>61926948
It's a huge "back office" IT town. There are webdev jobs, but not nearly as many as you'd think.

There is even a thing here called "the cycle" where you literally do cycle around on shitty contract-to-fire jobs at the big companies. I know of more than one guy that has done this. It looks and sounds like a trip through hell.

>>61926965
Yeah, they got me through some rough times in my young 20's. We've all been through some shit together. At the same time, people are starting to marry, I'm not.

Is the COL of a certain city a huge determinant of your quality of life? I'd assumed tech jobs would make up for it and allow you to live well almost everywhere (NYC and Bay Area excluded).

>>61927007
That's what I hope would happen.
>>
>>61926844
Yeah I moved for my job. Its pretty great. Smaller city so not a lot of people.

Are you the launchcode guy?
>>
>>61912769

let str = ["aaaa", "bbbbb"].
array.prototype.fisheryates = function() {
// insert fisher-yates algo here
return array
}

random = str.fisheryates();
>>
>>61927114
>Is the COL of a certain city a huge determinant of your quality of life?
It's pretty important but typically you aren't getting fucked over by tech jobs and dealing with an extreme COL. Even in the Bay area tbqh, although it's a little rough.
>>
>>61927114
>I'd assumed tech jobs would make up for it and allow you to live well almost everywhere (NYC and Bay Area excluded).

Not that dude, but you want to go based on salary and average household income of the city.

Everything is based on average household income (2 people, each with a job), and rent is no exception. If there are a ton of devs then they are going to drive up the price of everything, like in the valley.

Average household income where I was was about 55k. A shitty 1 bedroom apartment in the ghetto cost me 800 a month. There were gunshots a few times a week and robberies all the time. I'm sure you're used to this though in st louis.. My city had about 180k people total.

I work a job now in a place where the average household income is 39k. That same 800 dollars now gets me a huge 2 bedroom 1st floor luxury apartment. I could get a house here for less than this apartment is I just had to move fast.
>>
>>61927129
No. Launchchode are a bunch of virtue-signallers. They came to my university years ago and butthurt was had all around. SJW coder brahs vs bloated university idiots.

>>61927487
Thats what I thought.

>>61927512
Yeah, I was getting the sense that I should ignore the gnashing of teeth about COL and focus on wages as the real driver of stuff.

And yeah, I am totally sick of the day to day ghetto bullshit I put up with around here, even in the "good" areas. I feel like people are just losing their sanity more and more.
>>
File: afdsse.png (4MB, 1920x1010px) Image search: [Google]
afdsse.png
4MB, 1920x1010px
Im having a problem with fonts or language. if you see my post here >>61925407 thats how it should look. although the website just makes zalgo out of the japanesee and even the directories example /し/. i installed japanese fonts but im not sure if i need to do something to the html code
>>
>>61928121
solved
<meta charset="UTF-8">
>>
I made this today.
>>
Does anyone here use emacs for webdev? If so do you mind sharing your emacs files for a noob like me to glean on?
>>
Can someone explain to me what this is called? What is this doing exactly?

The first line where sortItems: function()

JS
sortItems: function() {
this.wikiArray.sort(function(left, right) {
return left.article == right.article ?0: (left.aricle < right.articel ? -1:1);
});
},


HTML
<div id="wikipedia-container" data-bind="visible: wikiHeader">
<button data-bind="click: sortItems">Sort</button>
<!--<p class="close" data-bind="click: closeWiki"> X </p>-->
<h3>Useful Wiki Links</h3>
<span data-bind="text: wikiError"></span>
<ul data-bind="foreach: wikiArray">
<li><a data-bind="attr: {href:url}, text: article"></a></li>
</ul>
</div>


https://github.com/oxflick/map-knockout/blob/master/js/mapapp.js
>>
File: 1462066420735.jpg (25KB, 512x397px)
1462066420735.jpg
25KB, 512x397px
>hipsters won't stop going on about let and const
one meme that really needs to go away
>>
>>61926891
Don't most comp sci grads end up doing something web related anyways?
>>
>>61898106
How do I actually make a website?

I know JS, HTML and CSS, but I've never actually set up a web server or anything like that. I've never connected database services to anything I've used.

I have no clue about this.
>>
>tfw one day I'll feel like I'm making so much progress and learning so much
>next day I'll feel like I'm a brainlet and assume everyone is learning this shit faster than I am

Anyone else feel this way? I guess it's mostly due to low self esteem.
>>
>>61928034
Launchcode is a pile of shit. They couldn't place me after a year of being on their list. I'm on my second web dev job and a mid-level dev and the still can't place me entry-level. I'm seeing how long it takes them. I'll probably be a CTO by the time they place me.
>>
>>61928589
try looking up tutorials using asp.net and visual studio with iis. It's good because you can do almost everything without having to leave the IDE, and iis comes with windows by default (you'll just need to enable it through some windows settings)
>>
>>61928506
It's some framework that uses data-* to call methods. That thing in the js is a method.

None of those functions are defined in vanilla js so you can only guess what they do unless you know the framework.
>>
>>61928573
Yeah like it actually does anything.

It's like using protected or private instead of just public for everything.
>>
>>61928589

start with making your first github.io, it's basically a free webhost to show off a repository
>>
>>61928589
Idk if this is the ideal way but what I did was buy a vps(ramnode), install nginx on it, put folders into nginx, get ip of server and then link the ip to a domain via godaddy

But then again I'm a brainlet so someone tell me if this is the wrong way
>>
>>61929009
good enough
>>
>>61926446
Yes.
>>
File: 1454642847102.png (190KB, 280x410px) Image search: [Google]
1454642847102.png
190KB, 280x410px
>>61928573
>>61928784
>using anything other than const
>writing mutable code
>>
>>61929691

const fullRetard = {};

fullRetard.postId = 61929691;

console.log(fullRetard.postId) // 61929691

Read the documentation my friend, const is mutable.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const
>>
>>61929691

Do you even understand the scoping protection you gain from using let.

Go write a for loop using var and let and try access the variable you declared using let outside the for loop block. Come back and tell us what happened.
>>
File: 1460685784423.gif (3MB, 386x232px)
1460685784423.gif
3MB, 386x232px
>>61929742
I never said it wasn't my man.

>>61929762
>can't into reading comprehension
>>
>>61929762
Why the fuck would you want to access something declared inside a for loop outside of it?
>>
>>61929778
This is something that only full-on retardeds would do, obviously.
>>
>>61929778

You wouldn't, hence why let was introduced. If you use var it is.

Dunno what you're implying.
>>
>>61929772

Fair play, read your post wrong.
>>
javascript will never die will it
>>
>>61929956
why should it?
>>
File: 1497619065473.png (26KB, 175x288px) Image search: [Google]
1497619065473.png
26KB, 175x288px
Is there a way in PHP to open a a windows saying "Do you really want to do this ? *Yes *No" wne clicking a button ?
Or do I have to use JS ?
I have a webpage on which I added a stop button that stops computation on a distant server.
It's useful but dangerous as it is meant to be used on mobile when you can't access the computer.
>>
>>61930390
You have to use JS.
>>
>>61930390
Why not just do that on a different page?
>>
>>61930390
>>61930419
Nvm I found a way
 onclick="return confirm('Are you sure?'); 
does the job
>>61930456
The admin of the server made it really tricky to add new php pages, I had to make everything work on the same page.
>>
File: 1416941411468.jpg (25KB, 500x581px) Image search: [Google]
1416941411468.jpg
25KB, 500x581px
How do you guys deal with clients that want a webshop?
Do you build one from scratch? Do you just use woocommerce/prestashop with a standard theme? With a child theme? Or with an entirely self-written theme?

Do you ensure all the content for shipping a product is filled in (for example the tax rates and shipping areas)? Or is that up to the client?
>>
>>61930483
Yeah that's JS.
>>
>>61930499
Really ?
Thanks then, I always thought you had to import a .js script
>>
>>61930513
There is no reason why you can't write the entire site in a single file.
>>
>>61929772
>60Hz smug anime grills
What sorcery is this?

>>61929956
Probably not, but it may not resemble the innocence of its younger self in any way.

>>61930530
No, but there are very, very good reasons not to.
>>
Anyone have experience with atomic design in react projects? I found it hard to make any maintainable file structure where you never know which components will be reused.
>>
why is SSL such a pain to set up?
I just want HTTPS in my small express app...
>>
>following The Odin Project courses on JQuery and JavaScript
>feel like I'm doing okay and developing my understanding
>start a project dedicated to using those two chiefly
>immediately become completely stuck and can only really look at completed examples in a vain hope of understanding what the fuck they did

Is this normal?
>>
>>61931140
lets encrypt cert bot, easy
>>
>>61931223
You might not have played around with the completed examples enough to really understand them. Perfectly normal.
>>
>>61931235
There is 'greenlock-express', but that's not nearly as simple as certbot.
So it's either that or putting everything behind an nginx server I guess.
>>
>>61931332
Have some coffeescript.
app = express()
server = https.createServer
key: fs.readFileSync ssl_keyfile, 'utf-8'
cert: fs.readFileSync ssl_certfile, 'utf-8'
, app

That's the easy part, anyway.
>>
Hey /wdg/, I wrote a tutorial document in Google Docs and I just realized that GIF isn't supported by PDF. So I'm reverting to HTML.

What are some really good WYSIWYG HTML editors for Windows? I want to just copy and paste whatever did in Google Docs into the editor. I tried BlueGriffon, it worked but the code it generated was a total mess.

Thanks a lot in advance.
>>
>>61930485
OpenCart.

No you don't mamage their inventory.
>>
>>61931308
So should I play about on more tutorials maybe?
>>
>>61932274
Sounds like a markdown editor would make more sense.
There are sites that give you a live preview, while you write
>>
>>61932325
Oh I haven't thought of that. I could use a Javascript Markdown to HTML parser or something as well.
>>
>>61929973
>>61929956

webasm

The day browsers allow you to use the dom API through a compiled binary is the day you don't "need" javascript anymore. Still a long way off it though.
>>
>>61932289
>OpenCart
Open to anyone who wants to steal your info and fuck your asshole raw, you mean
>>
>>61930485
depends how much money
depends on client demands

you can't make these decisions prior without knowing the details
webdev just doesn't work like that
>>
>>61932508
>>61932289
Alright, thanks for the tips.
>>
>click on JavaScript job
>9 times out of 10 it's AngularJS
just fuck my jobsearch up senpai
>>
>>61928351
Nice 1 m8
>>
>>61932574
then just learn angular it ain't rocket science
>>
>>61932954
it's not even Angular2 or 4, but AngularJS i.e. Angular 1
>>
>>61933025
that's not bad
free raise to transition to newer angular
>>
Anyone got any tips for 3d animations in javascript?

I'm currently using Three.js docs but I'm hoping there is a more comprehensive library I can integrate with my existing classes
>>
>>61931223
Yes. It's like learning a real language. It takes using it several times to remember it.

When I learn it's easy to go "Oh this is easy, I got this." Then 5 minutes later I don't remember the shit.
>>
Where can I get started making userscripts and extensions?

I'm not much of a web developer but I'm moderately familiar with Javascript and pretty comfortable with html/css.
>>
File: IMG_1058.jpg (75KB, 960x960px) Image search: [Google]
IMG_1058.jpg
75KB, 960x960px
Do I need a degree to and a jr. webdev position, or is FCC and a nice portfolio enough?

I want to get into webdev, with the end goal of employment, but I was wondering how necessary a degree is?
>>
>>61934214
http://lmgtfy.com/?q=get+started+making+userscripts

http://lmgtfy.com/?q=get+started+making+extensions
>>
>>61933085
Have you looked into babylon.js?

https://www.youtube.com/watch?v=BNN3B_WDo9Q
>>
>>61934294
>shilling for google
>>
>>61934336
http://lmgtfy.com/?s=d&q=get+started+making+userscripts

http://lmgtfy.com/?s=d&q=get+started+making+extensions

& for you explicitly
http://lmgtfy.com/?s=b&q=how+to+become+a+jizz+mopper+on+porn+sets
>>
>>61934268
they literally hire english majors for entry level web development positions

you will get what you put in (unless you're a woman in which case you'll be the CEO in a week).

>>61934294
make a new script in greasemonkey and fuck around till something breaks
>>
Generally speaking, is doing full stack development pretty much "software engineer" in terms of job search? It seems like every posting for software engineer is something web related. Most people I know who graduated with a CS degree end up doing some form of web dev.
>>
File: 1471660526643.gif (2MB, 468x278px) Image search: [Google]
1471660526643.gif
2MB, 468x278px
I need to write off some expenses so I pay less tax for the year.

Can I buy an oculus rift for self-employed web dev and justify it as a business expense? If so what excuse can I use?
>>
File: 1502300541390.gif (1MB, 540x540px) Image search: [Google]
1502300541390.gif
1MB, 540x540px
I want to populate a table from JSON with jQuery (pls no bully).
1) Why isn't code working?
2) Is this the most pajeet way to do it?

https://pastebin.com/s6S3RHqy
>>
>>61934866
very little reason to use non-web apps these days when they can do everything you need that doesn't involve direct OS functionality
>>
>>61934268
Dont need a degree at all. Just need a pretty portfolio and several months to find a place that will take you.
>>
>>61935190
Put all the js in the document ready and take out the json object as the function parameter.
>>
>>61935403
Yes, I've removed json from parameters, but isn't it already in ready? Could you post the code?
>>
Anyone recommend any excellent JQuery/JS video tutorials?
>>
>>61935478
am not the other anon, but here
$(document).ready(function() {
var json_obj = {
"foo": "bar",
"eggs": "spam",
"john": "doe"
}
$.each(json_obj, function(k, v) {
console.log(k, v)
$('#foo').append('<tr><th>' + k + '</th>' + '<th>' + v + '</th></tr>')
});
})

there is no need to parse. Your object isn't stringified.


also new thread
>>61935528
>>61935528
>>61935528
>>
File: IMG_2223.jpg (35KB, 480x640px) Image search: [Google]
IMG_2223.jpg
35KB, 480x640px
>>61934408
>>61935375
Alright thanks guys. I have a few really great ideas for projects, but my skillset is lacking.

My best bet would be working through the entirety of the freecodecamp material?
Thread posts: 316
Thread images: 37


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