>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
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/
Post what you're working on
>>61644091
Form validation with Javascript
C O M F Y
N E T C O R E
>>61644276
For real? Would you recommend to play around with it? I kinda like csharp
>>61643965
Not exactly a menu, but it does have to do with the food industry.
If you have any questions about that kind of stuff then fire away and I will help where I can.
>>61644367
If you already like csharp, yeah of course.
>regular expressions
How the fuck do I get into understanding all this
>>61644904
pic and
https://regex101.com/
and practice erryday for some time
When facing problem that can be solved using regex, don't be lazy and actually apply knowledge
Can someone enlighten me, why does this code not work?
Pls no h8, I'm a noob.function capitalize(str) {
const string = str.split(" ");
for (let i = 0; i < string.length; i++) {
string[i][0] = string[i][0].toUpperCase();
}
return string.join(" ");
}
capitalize("what the fuck is wrong with you");
>>61645196
use string.charAt() to access string character, not array operator
>>61644091
A internal bank app for a some chinese loan shark
I'm shit at webdesign how do you guys pick your color schemes ?
I used to browse most popular color sets on adobe color wheel but i can't really make it work, i think 5 colors might be too much
Do you just copy existing sites for this ?
>>61644904
Not all in one day
but let me tell you regex is such a good thing to have in one's toolkit dev or otherwise
>>61645002
>>61644904
The problem with always applying regex knowledge is that Regex is ime a last resort to not being able to use more desirable solutions
>>61645291
>squiggles
tfw there is no bank
tfw there is no client
>>61645335
pylint is retarded sometimes
>>61644904
I usually just go to something like regexr.com and try out regex strings until I get something that works. Plus most regex sandboxes have a cheatsheat on the side. It's worth it to read a quick lesson to get an idea of some of the possibilities, but you wont use most of them in most of the places you apply regex
>>61645365
I haven't done too much work in python, but most of my python was done on fucking vim because I didn't want to set up source control and just opted to remote into the server. I tried pycharm briefly when i was working locally, but it was trying to hard to set up the project on it's own terms and I just needed some syntax highlighting on a couple files i needed to modify
>>61645299
>how do you guys pick your color schemes ?
http://colorhunt.co/random
Unless it's something more exclusive than my own website or program in which case the client will typically have their own ideas.
>>61645412
In that case vim is all you need. And maybe a pep8 autoformatter on save or something.
You can go far with vim's default control-p autocomplete although it's less intelligent
>>61645426
thanks anon
>>61645548
anything for a sexier web desu
>>61645482
At the time I didn't even know how to start typing in vim. I had been using nano to avoid messing with it lol
>>61645196function capitalize(s) {
return s.split(" ").map(s =>
s.charAt(0).toUpperCase() + s.slice(1)
).join(" ");
}
>>61636780
How would that be different from the catalog search though
>>>/g/wdg
>>61644091
Trying to pick ~5 more boards to prune from the list, but don't want to go purely by posts per minute.
Then looking to get into some chart library to create some kind of timeline graph thing.
>>61645299
http://colormind.io/
https://coolors.co/app
are nice for inspiration
>>61646013
>Then looking to get into some chart library to create some kind of timeline graph thing.
You should try d3.js
>>61645875function capitalize(s) {
return s.split(" ").map(s => s.replace(s[0], s[0].toUpperCase())).join(" ");
}
>>61646116
even better, if you aren't working on a huge project, you could modify the string prototype
String.prototype.capitalize = function(s) {
return s.split(" ").map(s => s.replace(s[0], s[0].toUpperCase())).join(" ");
}
and then call it like
"this string to upper case".capitalize()
or
var s = "this string to upper case";
s.capitalize();
I could be wrong on the syntax though, I haven't done much with prototype modification
>>61646306
Is prototype modification considered good practise now ?
>>61646306
I don't like modifying the prototypes of classes I don't control. Far too error prone for very little gain.
>>61646361
Definitely not. It's just monkey-patching and it's shunned in basically every programming community except the retarded Ruby community.
>>61646388
>retarded Ruby community
I've never understood those guys desu
>>61646371
I really hate front end. I can into css/html, I just dont want to.
I really like those simple pages you see on CS lecturer sites that havn't changed since 1996. I like white text on black background or black on white at night.
Now when I build anything, people say it looks childish. fuck.
>>61646097
Yeah D3 seems to be the ultimate library for that.
I am just a bit hesitant, since I probably don't need 95% of its features.
>>61646388
Is it really widespread? Not counting the Rails community, because Rails is idiotic, but I've never seen an answer to a question about monkey patching without warning it's very last resort.
>>61646494
I did some simble bar histograms with associated pie charts with it a while ago, just copy paste basic examples from their huge gallery and lookup api calls to figure out what's doing work
I think you only need to import the library modules you need, not the whole bloated thing
>>61644904
>^(?:(?:(?:0?[13578]|1[02])(\/|-|\.)31)\1|(?:(?:0?[13-9]|1[0-2])(\/|-|\.)(?:29|30)\2))(?:(?:1[6-9]|[2-9]\d)?\d{2})$|^(?:0?2(\/|-|\.)29\3(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00))))$|^(?:(?:0?[1-9])|(?:1[0-2]))(\/|-|\.)(?:0?[1-9]|1\d|2[0-8])\4(?:(?:1[6-9]|[2-9]\d)?\d{2})$
Are you retarded or something?
>>61646445
I like very simple designs as well so I try to learn a bit from minimalist designers and typographers. For example, I really like how https://www.frankchimero.com/blog/ or https://perrera.com looks (not vouching for the content I've never read either of them).
>>61645196
A more elegant solution than
>>61645875
>>61646116function capitalize(str) {
return "What The Fuck Is Wrong With You";
}
capitalize("what the fuck is wrong with you");
>>61646629
This. Minimal is king.
http://builtbycivilization.com/category/identity
>>61646531
It's still used pretty frequently in general and it's absolutely everywhere in Rails and that's what most Ruby developers are working with.
There's definitely a growing part of the Ruby community now that openly eschews it.
>>61646674
great wurk
>tfw proud of your achievements in web development so far
It's been a month and a half of Javascript and this past weekend has marked the first time I created things without referring to any tutorials. Feels great, man.
>>61644904
> ^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$
what don't you understand??
i need help right here, anyone knows how to fix the issue i got on this image?
->html
-->body
--->div who contain the wole page
===========
body,html {
margin: 0;
padding: 0;
height: 100%;
}
.container {
min-height: 100%
}
>>61647912
kek i hide the data on the first, but did not on the second
>>61646674
code monkeys wish they could produce code that clean and f u n c t i o n a l
>>61647912
Post a jsfiddle or similar for problems like this.
Right now you are asking people to simply take a guess.
>>61647912
what problem are you trying to fix hombre
>>61647912
I do nazi what the issue is here.
>>61647406
have a job yet?
>>61648495
gb2 reddit
How do I create a wp theme?
What would you use to do web scraping with javascript ?
>>61649378
Try to find youtube tutorials. It isn't that easy as it looks and it's annoying as fuck.
Do any of you guys use icon packs? If so, which would you recommend me to use?
>>61651048
FontAwesome is pretty awesome.
>>61647912
Dunno, put it on codepen. Looks like the container div has got some margin set on all sides.
>>61649571
I've tried to make w WP theme from scratch once to learn PHP and WP in general. Jesus Christ, the template hierarchy is some hindu voodoo. Pic related.
>>61651048
http://fontello.com/ allows you to generate your own icon pack based on icons you choose
>>61651461
to be fair you only need a few of these to get a functioning theme
is angular cool or just a meme?
>>61651628
It's pretty neat.
>>61651461
had no idea word press let you adjust the back end.
>>61652075
you basically can edit certain specific files to create themes using php css and js + have access to an api you can use in theme and plugins
>>61652116
is it worth learning to know for full on Web Dev? I only see word press used for tech blogs anymore
>>61652168
wordpress is good to set quick cheap sites to customers, because of support, availability of one click hosting setups and the fact that clients basically just have to write content through the web ui
i know small businesses who still pay shitty web shops way too much for ugly static sites and have to give them a call every time they want to edit content or whatever, while paying "maintenance" fees
dev wise there are lots and lots of plugins and free or freemium easily customizable themes available so the real value to me in wordpress dev seems to be the design work
but i guess if you're planning to sell cheap sites to mom and pops shops it's probably worthwile to learn this shit anyways
>>61651461
You don't really need that many; the theme that I'm currently creating only uses page.php, header.php, footer.php, and functions.php. So basically every page request is handled by page.php. I should mention though that my theme isn't designed for blogs.
>>61652075
That's all wordpress is.
>>61652306
that's mainly what I'm planning to freelance for. I'll give it a look. thank anon
My manager (working at a newly opened bar) asked if I could make a website for the place but I've only started learning the basics quite recently and have no real experience. Is the best course of action using a drag n drop builder like squarespace or wordpress like >>61652306 mentioned?
>>61653006
try wordpress (or any other free cms really)
install it locally, try themes, google maps plugins and fuck around with it and then if you're comfortable get a domain and rent an install from a webhost
it's hard to fuck up and it would only cost domain name + < 5 bucks /months
if you want something more fancy and have more money to spend you could buy a theme or even hire some design agency to make you a custom one and design logos
Is Codepen kill?
>>61653128
Thanks a bunch, The manager said something basic in the coming week would be fine so I'll give it a go
Look alright?
Ignore the image, some dumbass posted a picture of their dog and it made it the leading image for that Domino's on Yelp.
>>61653382
you should change links color and text decoration
also you probably want to change your font
wtf are you making btw ?
>>61653418
Aww, I love the font, Josefin Sans. What would you recommend for the color?
I'm not really good at design.
It's just a thing I'm patenting the tech on and trying to sell to Yelp. They will steal this if they see it, even says so in their api tos.
This picture looks a little better.
>>61653467
>I'm not really good at design.
idk me neither
at least change the links, try some orange without underlining
alternatively ask the fags on /gd/
also try having consistant margins between pic, the end of this weird fumed glass box and text
Trying to make a survey database in which each answer has a value and there's also an option to choose from generic answers like yes or no. Is this OK or did I do something wrong?
>>61646674
text = "this is text"
print(text.upper())
Pls help. Registered a domain today under namecheap. I set up hosting on a VPS and updated the nameservers and stuff so my domain would point to that.
Problem: On my phone browsers it loads the correct page from the VPS, but on my computer it still shows the default "domain registered" page.
I have an interview tomorrow for a job involving VueJs.
What words should I say to make them believe I know enough about it for them to hire me?
if I want to support full width pages in bootstrap 3/4 for ungodly wide tables should I just change the container class to container-fluid and call it a day? Any pitfalls? Should I fuck with the navbar for good measure?
>>61654983
maybe it cached something? have you tried restarting your pc and router?
maybe just wait a little bit longer
>>61653336
create a facebook page
So, I'm wondering if starting a full-fledged web dev company is a good idea.
Does anyone have experience with this? What types of services would be offered? What do you need to get started?
inb4 freelancing.
I don't feel like working on shit websites, sending out hundreds of proposals and getting one hit for $20.
I want to get "big" contracts for thousands, that's going to take months of work. That shit seems fun.
>>61654983
wait some hours or clear your DNS cache
>>61655168
well, what do you know already?
>make them believe
Maybe just learn, so you know your shit?
Simple but important question.
I'm writing React apps -- where should I put my data?
I have a large amount of JSON files that I need to query from.
Right now I'm hosting this in a DATA folder in public.
What's the way to write a app with such a data folder?
Do I need to host the data elsewhere? What exactly do I need to do? What's the way this is handled normally?
which is a better practice, using a class/id to call in CSS or using the semantic itself?
ex:
<header></header>
header{
border 2px solid red;
}
or
<header id="header"></header>
#header{
border 2px solid red;
}
>>61655168
Fuck this guy: >>61656516
Go to youtube, and your preferred search engine, and enter the following:
"vue js interview questions"
Now, study the shit out of the questions and answers. Most companies will take their questions right from those pages. But, in order to succeed, you need social intell.
For example, when asked a question, don't blurt it out like a robot. But sit on it for a couple of seconds, and then give your answer. Appear like you genuinely know your shit, though that really wouldn't hurt either.
Good luck.
>>61656548
Also it's roughly 200 JSON files, so I think the folder deal would work out. Interested in hearing primers on this matter of dealing with DATA
>>61656551
It really doesn't matter. But there's only one header, so the first would be preferred. Why add more text when you don't need to?
How fucked am i if i keep ignoring gulp/bower/react/node and all of that stuff? I can't wrap my head around why it's needed at all.
I seem to be able to cobble together everything i need with flask, bootstrap and sometimes jquery. Even relatively complicated data input and presentation.
>>61656666
>Fuck this guy: >>61656516 (You)
ey
There is a difference between "how do I have a successful interview" and "how can I best trick them"
>>61656696
got it
>>61656697
Bower you don't need in any case.
gulp/webpack if you want to automate your build process, like transpiling ES6 and SASS->CSS or bundling your code for example.
If you are fine with your python backend, then there is no big pressure to check out Node either.
React, Vue or Angular: I would give at least one of these a look though
>>61656697
you are doing the sane thing
it does not help your employability that is for sure
decide what's important for you, don't expect the job market to be rational
>>61655168
interviews focusing on tooling rather than engineering principles are a red flag, especially when it is about a js framework you can learn in an afternoon or pick up on the job. That said, your best bet is to be honest and be upfront if you don't know something.
Post your awful programming habits.
I used to do this:
var id = 1;
var foo = 'foo';
var image = new Image();
var foobar = 'foobar';
Thankfully I snapped out of it and now receive regular therapy.
>>61656738
>What words should I say to make them believe I know enough about it for them to hire me?
Agreed; that Anon basically asked for the latter. So I answered accordingly.
>>61656697
>gulp/bower/react/node
These become important if you are working in teams or on large projects.
Gulp: I use gulp by default, even on personal projects. Firstly to auto-compile my sass which is usually split up into 20+ files, and secondly to compile/minify my js into one app.min.js which I find super-useful.
Bower: never used it, no idea.
React: Again, fairly useless on small projects. The component model is really useful, esp. if you have multiple people working, each on their own set of components etc.
Node: npm is a life-saver.
>>61656830
noob here, what's wrong with it?
>>61657114
That's something normal people do only when filling an array during declaration.
Best way to get into Node.js? Background info: I'm mostly a beginner, playing around in Python & JS (and React) for a while, work as a junior developer all over the place but want to start focusing on backend stuff.
Our backend stuff at work is PHP (which is mostly legacy), Java and Node.js. I could also pick Java I guess, but Node is more tempting and we currently don't have any good developers for that, after our main Node guy left.
>>61656697
>How fucked am i if i keep ignoring gulp/bower/react/node and all of that stuff?
very
it's literally there to make your life easier, you don't have to use it all but like why would you want to reinvent the wheel when you're going to be doing the same basic shit
granted, I'm talking about actual production work and not solo projects, with solo projects you can do it all with notepad and some coffee
>>61656798
>>61656800
>>61657100
Thanks a lot. I think i'll take a look at some bigger projects. It would definitely be a nightmare to scale what i'm working on now to a team.
>>61656460
Starting a company without already having sales is destined for doom.
You should be freelancing projects and then eventually rolling that into a 'full-fledged' web dev company. Otherwise you waste a lot of money making shit official and then waste even more time trying to convince the first client in desperation.
>>61657537
I honestly find it easier to reinvent the wheel than try to find the particular wheel i'm looking for. Especially in something like web development. But you're right that that won't be practical for long.
>>61657599
>I honestly find it easier to reinvent the wheel than try to find the particular wheel i'm looking for.
Finding the particular wheel is a search engine query away. Reinventing the wheel is investing hundreds of hours into your own implementation of react. I can't see how you would find the latter easier, perhaps more personally enjoyable, but easier... nah.
>>61657599
I wrote my own webgl library from scratch, but I would never use it in production while libraries like three.js exist and are actively maintained.
I'm not discounting the value of reinventing the wheel, but the more boilerplate you write the greater the risk of errors and optimisation issues down-stream.
stupid question: Is there any good alternative to the bootstrap grid system? I've been using this stuff forever - right now I'm constructing a React app. Do I really have to import this goddamn gridsystem? What's the alternative?
>>61654089
Please respond
>>61657960
use skeleton css
>>61656666
Thank you nice anon. If I get the job, I'll give you a big hug.
Also nice quads.
>>61657960
Just use flex. Grids are shit.
>>61657960
all css frameworks utilize their own grid system which largely tends to just be what bootstrap does
I don't know why people are so against it, makes maintaining that shit a fucking breeze. But then again we're on /g/ where a bunch of people are vocal anti-js users so who knows
>>61658054
bootstrap packs in loats of stuff, so it's bloated if all you want from it is the grid and you're better off using something like skellington
>>61658054
Because bootstrap messes up with my styles. I don't need those 1000 random overrides that appear everywhere that i need to overwrite again. Also fucks up with BEM.
>>61657960
There are lots of alternatives.
I personally like Bulma
You can also look at all these micro-frameworks like pureCSS, milligram, spectre
>>61657960
Just use flex? This is basically my full setup. I add sizes as needed.
.grid {
display: flex;
flex-wrap: wrap;
.grid-half {
width: 50%;
}
.grid-third {
width: 33.33%;
}
.grid-quarter {
width: 25%;
}
@media screen and (max-width: $mobile) {
.grid-half, grid-third {
width: 100%;
}
.grid-quarter {
width: 50%;
}
}
}
>>61658066
If all you actually want is a grid system then of course using bootstrap is going to waste more resources (ofc using less resources than a lot of the 'vanilla' mess I see around here).
>>61658101
Perhaps you need to re-learn bootstrap. But as stated above, something like pure, skeleton, miligram, or bulma.
What's wrong with this signature base string?
Just keeps telling me my signature isn't matching.
GET&http://onerostervalidator.imsglobal.org:8080/oneroster-client-cts-endpoint/ims/oneroster/v1p1/students&oauth_consumer_key=ddddd&oauth_nonce=597f33497fee0&oauth_signature_method=HMAC-SHA2&oauth_timestamp=1501508425000&oauth_version=1.0
>>61658262
remove GET&
>>61658262
weeew dud i thought you'd be done with this oauth1 shit by now
are you following every step from rfc spec ,
CSS = absolute ballache. Fuck CSS
I've posted this years ago, no one helped, can anyone find XSS or any type of injection or security flaw in my image board? pudim org
>>61658310
Yes. Every single one.
I wrote an entire app over the weekend using oauth with bearer tokens and had no issues.
The signing is melting my brain.
Alright, so my Authorization: OAuth has key="value", key="value"
Then I generate the signature based off that but without the Authorization: OAuth part, then I append the signature to the Authorization Oauth header.
Mismatch. I've even tried striping double quotes but then the header doesn't get read.
Im so lost.
>>61658349
i think you need to omit protocol, no need for http:// (?)
>>61658367
ups nevermind you do need to specify it
>>61658349
maybe you forgot to urlencode your base string
>>61658433
Heres everything I've generated. I should be able to see the issue somewhere in here, but I don't.
https://pastebin.com/tTTHWfpR
>>61658490
>https://pastebin.com/tTTHWfpRkey is set to the concatenated values of:
1. The client shared-secret, after being encoded
(Section 3.6).
2. An "&" character (ASCII code 38), which MUST be included
even when either secret is empty.
3. The token shared-secret, after being encoded
(Section 3.6).
you do have a token shared secret right
>>61658574
Right, this is one legged oauth so there is no bearer tokens.
Any ideas?
>>61658631
don't forget '&' char in your signature even if second token is null
maybe try passing the parameters using a different method
1. The HTTP "Authorization" header field as described in
Section 3.5.1.
2. The HTTP request entity-body as described in Section 3.5.2.
3. The HTTP request URI query as described in Section 3.5.3.
>>61658702
Is oauth_signature expected to be alphabetical in the Auth header even though it's added afterwards?
How often do you practice webdev?
>>61658857
errday
>>61658850
i think so, looking at examples
but it seems you already ordered your params alphabetically
>>61658857
All day, every day.. either at the job or at home.
I got addicted the the crack know as website visitors and I just want more and more.
>>61658903
I did before I generated the signature, then after the signature is generated I tossed it at the end after oauth_timestamp and oauth_version.
I'll give it a try.
>>61658923
Nope.
This is definitely the hardest time I've had in PHP.
>>61658348
Old habits die hard.
We won't help you.
Will this code work?var scrub = 'A guy that can\'t get no love from me';
if (scrub) {
return false;
} else {
return true;
};
>>61659081
Why not?
>>61658348
I'll help you if you're willing to pay me $100
>>61659048
i don't really see anything wrong with your base string so can't really help you short of implementing the damn stuff myself and comparing signatures
any reason why you're not using an existing implementation ?
>>61659111
I don't get it, not asking to code or anything, if you don't want, don't do it...
>>61659102
1) Could be a way to attack someone else's board (see: NYPA).
2) Could be a way to lure people on your russian haxx0r site to collect our IPs or infect computesrs with bad malware.
3) Not doing your homework.
4) This is /g/, there are no real programmers here.
>>61659130
>Could be a way to lure people on your russian haxx0r site to collect our IPs or infect computesrs with bad malware.
Use a proxy...
>Not doing your homework.
Hobby.
>This is /g/, there are no real programmers here.
Clearly false.
>>61659118
You're asking for him to spend his time verifying that your shit is secure.
time === money, friendo
>>61659158
Why does anyone post here? Aren't they spending time?
>>61659116
There isn't an existing implementation.
This is all I have http://www.imsglobal.org/oneroster-v11-final-specification#_Toc480451988
They have a certificate process on a test server you have to pass by getting authed and I can't for some reason.
I'm following it perfectly as far as I can see.
>>61659188
>Why does anyone post here?
All my friends are normies and this is the only place I can actually talk about webdev in semi-realtime.
>>61659229
Sharing knowledge is money.
>>61658348
try using burp, I'm trying to learn to do it myself but it is kind of complicated
>>61659216
>http://www.imsglobal.org/oneroster-v11-final-specification#_Toc480451988
it seems this supports oauth 2.0, you should use it it's simpler
>There isn't an existing implementation.
what's wrong with stuff like this
https://github.com/thephpleague/oauth1-client
>>61659229
This desu.
The rest of the board is trash and other platforms everyone is so concerned with appealing to the popular opinion.
>>61659317
ty for the tip, never heard of it.
>>61659241
No.
1) Sharing knowledge helps you learn.
2) Teaching is not a 1:1 transfer of knowledge, it guides the student to improve their own understanding.
If you want to pentest your site, ask for howto advice rather than for someone to do it for you.
>>61659341
I for one would welcome the opportunity to attack someone's website legally... that way I also learn.
>>61659362
aren't there tutorial sites out there for this exact purpose like hackme or whatever it's called
>>61659376
https://www.hackthissite.org/
>>61659376
Yeah, though real world examples are better.
>>61659318
>it seems this supports oauth 2.0
When I tried to hit the /token it returned resource not available.
>>61659422
>When I tried to hit the /token it returned resource not available.
rip
at least try one of these https://oauth.net/1/
>>61658348
Unless you upload a txt file to the site to prove that you are the owner and then maybe you'll get a few bites. Maybe run an exact copy that isn't your production server on a subdomain?
>>61659480
How would I prove that? :thinking:
All ways I think are way too much work.
>>61659444
So not even postman will work.
That has to be a major problem, right?
I cant think of a time where Postman wouldn't work.
>>61659506
If it is indeed your image board just ftp a text file with a link to this thread. That will go to some length to assauge the idea that you might be above average poster looking for a personal army under the guise of a "pentest".
As for pentesting. You never want to call for an intrusion test on your production server. That is, normally, I would clone the site, rent out a VPS with a clone of everything and then direct bug bounty hunters to that subdomain.
Going to be starting a small web hosting company very soon. I am debating on the OS to use for my server, out of these what is my best choice?
CentOS/RHEL + Cpanel/WHM
Windows Server 2016 + Vpanel or PLESK
Ubuntu Server + Cpanel/WHM
Cloud Linux + Cpanel/WHM
Debian + Cpanel/WHM
Specs:
Xeon E3-1246 v3
16GB DDR3 ECC
2 x 500GB Samsung SSD
Went to an interview today:
>the interviewer is a young chubby shorthaired sjw from hr
>tells me the position will have three superiors, all women
>get asked if I have something against working with women
>say no
>also throw a dumb joke
>the hammiest flips her shit, accuses me of being "bro-culture"
>tell her I don't even know what "bro culture" is
>tension goes away, we still hit on the interview
>they give me a homework assignment
Do you think I should that I still have chance with this company? The environment is obviously shit but the pay is good.
I'm not sure if I should waste time on the project considering how this interview went and the type of impression HR has of me.
>>61659956
hr people aren't notorious for being bright
maybe wait until technical interview so you hopefully will get a feel about who you're really going to work with
>>61659956
That's a company waiting to die.
You don't want to be there.
>3 superiors
Wtf? This some 1990s web dev company?
>>61659576
I don't have an ftp server setup, I could add a comment to the html with my request though.
Is there anything I can use server side to generate a document based on a template (meaning I pass on variables to it) and churn out a pdf document?
I tried some office templates but converting it to pdf requires either an office instance which isn't ideal for a web service or results in a broken format structuring in pdf (even the paid solutions).
>>61659576
>>61660044
Just added in the end of the index.html file.
>>61659956
Also that HR isn't there to do HR.
Guarantee that HR is there to make the work environment unfair and toxic for men while giving free passes to women and colored people.
She probably thinks HR is to defend women workers from sexual harrassment and that's all
Idk if you were trolling but you got me good, if so
Im talking to the devs of that API through email right now.
I have NEVER seen a signature mismatch through Postman. I'm hoping they fucked up but I'm just waiting for a stupid response like "bruh, you got to send us your signature as binary.
>>61660060
You can use BIRT. Good luck with that.
>>61659956
if there's one thing worse than bro-culture startups, it's anti-bro culture startups
none of them are sane and love that cult kool aid shit
by all means though take the job for some money if nowhere else is offering but keep your eyes on that exit
>>61659956
>will have three superiors
>>61660177
>BIRT
>Java based
wew, I'll try my best to clober it with dotnet front end.
>>61660209
>none of them are sane and love that cult kool aid shit
i red the "disrupted" book from the dood whose talk about retarded startups was linked in thread yesterday
it's a good read
>>61660060
dont let this biz deal slip away~~
>>61660308
desu what usually happens for me is I tend to read a book, want to read more from the author, realize they had a 20 min presentation summing up the entire book
oh well good book still
>>61660244
>>61660177
>>61660313
Built this myself for a web app I'm building. It was probably one of the easier parts to throw together
>>61660333
there still are plenty of funny anectotes the presentation didn't speak of + a more detailed analysis on the author's thesis about how startup employees are 21st century's niggers
worth it imo, even tho it's true the presentation outlined the main stuff
>>61660060
I'm not sure if this does what you want, but I saw this on HN a week or so ago
https://www.pdfotter.com/
>>61654089
why are the generic answers a separate entity? If you want generic answers, input should be limited by the front end. These can be processed as a question_answer, and gets rid of three tables that don't really have any function. The type entity doesn't need to exist because there is only one field in it that can be in question. Referential integrity can be enforced by the front-end.
there are a few clarity changes you can make as well like naming your fields consistently (looking at those primary keys) and drawing the lines from the primary keys to the foreign keys rather than just in the center of the tables. Datatypes are better off being in a data dictionary as the ERD is just trying to show the relationships between entities, and will also let you describe what each field means without clogging up the diagram.
Well Postman works. Guess that means my encoding is wrong somewhere.
I can't get the split('') method to work for this arrayvar arr = ['beans', 'potatoes', 'jam', 'peanut butter'];
var newarr = arr.split('').map(function(x) {
return x.charCodeAt(0) + 1;
});
I want to split up the array items into characters then convert them to numbers then add 1 to the numbers then convert them back into characters so that each letter is a position down in the alphabet. Any help would be much appreciated thx.
>>61659898
1TB for the entire server? Or 1TB for the base service plan per user?
By small you must mean TINY, but i'd go Debian or CentOS.
Haven't done any proper, modern coding in a while and I need a refresh. Let's say I want to toy around with a little browser game or, dare I say, a small Blog.
I used to use Bower and Angular JS with a NodeJS backend 2-3 years back on uni projects and privately.
What's the recommended (or popular) pipeline today? Webpack, Yarn, I have no idea about these tools. Want to use Vue JS because we start to use it at work.
>>61661217
just javascript. no need for all the meme frameworks. They are made for tards who can't code properly.
>>61658213
fugg you're right
why even bother using pajeet css boilerplate anymore
>>61661161
1TB for the entire server. I don't own the server, im paying for it through a third party so If I decide I need more space I have 6 drive slots total that I can fill with large 6TB HDDs or 2TB SSDs.
After searching around and getting advice from /g/ I think a minimal CentOS installation is my best option.
>>61661144
split() is a method on String, not on Array. You need a separate map() call on arr, and then call split() on the argument in each callback.
You might also find the methods join() and String.fromCharCode() helpful.
>>61661144
shit way to do it from top of my headvar newarr = arr.map(function (x){
var newstring ="";
for ( int i = 0 ; i < x.length ; i++){
newstring += x.charAt(i)+1;
}
return newstring
});
you probably want to not use iteration and do this in idiomatic functional way idk
>>61661331
Thank you 4 tipz
>>61661335
Didn't really work :(
https://jsfiddle.net/wgnbuyjb/
>>61661456
You almost had it. Just needed to convert back and forth from char to char codes (int).
var arr = ['beans', 'potatoes', 'jam', 'peanut butter'];
var newarr = arr.map(x => {
let acc = '';
for (y of x.split('')){
acc += String.fromCharCode(y.charCodeAt() + 1);
}
return acc;
});
document.getElementById('output').innerHTML = newarr;
>>61661456
Here's my full solution (using map) that seems to work if you want it.var arr = ['beans', 'potatoes', 'jam', 'peanut butter'];
var newarr = arr.map(function(str) {
return str.split('').map(function(char) {
return String.fromCharCode(char.charCodeAt(0) + 1);
}).join('');
});
>>61661217
Handling a browser game and a blog are very different goals.
The pipeline is the same as it has always been - use what works best for you (or your organization). If your org is using vue, then learn it. Eventually you'll be guided into other aspects of the pipeline due to people naturally seeing what just werks better with vue.
So essentially what I'm saying is stop putting the carriage before the horse and just get to learning. The pipeline will assemble itself.
>>61661882
>>61661948
I am dissecting these as we speak. Thank you for providing solutions
Has anyone here tried the Web Developer Bootcamp course on Udemy?
>>61653467
>blue on black
While it's a decent song, it's not a decent choice for colors. Find some other way to visually distinguish the links from the, uh... non-links.
>>61657114
I assume he means you should do:var id = 1,
foo = 'foo',
image = new Image(),
foobar = 'foobar';
Tho I'm not honestly sure.
>>61657528
Just... get into it. I know that's not very helpful, but honestly NodeJS is basically just regular JavaScript with a few bits stuck in and a few bits chopped off. Learn how to do asynchronous JavaScript, which should be a part of JS anyway, and then learn the Node 'require()' system, and the Node 'filesystem' module.
>>61659095
Well, it's always going to return false, if that's what you mean by "work". A non-empty string is always truthy.
>>61663459
I assume he meant the relatively shit naming scheme of variables.
>>61656548
use a database
>'truthy'
>'falsy'
what awful phrases
Is there any way to make objects dynamic and introduce if statements into the mix in Javascript? I want to make it so that something happens depending on what an object has in its properties which itself depends on an action carried out by the user.
guys has anyone tried jekyll + githubpages???, i was building a blog with django and databases and all that stuff mostly for learning, but now i want to deploy it and im wondering if i should just use something like jekyll instead of the "experiment" with django
>>61664951
it's 2 completely different scenarios though, isn't it?
One is a dynamic site with a django backend + database and github pages is for hosting static content.
>>61665361
yeah i think i should rephrase the question:
should i make a blog dinamic or static?
>>61663483
Thanks! Yeah I guess that's not an actionable "do this online course", but I'm trying to deepen my JS knowledge at the moment so that kind of helps anyway. I just feel like most Node.js specific I've found is for people who are already backend developers just trying to get into Node.js, whereas I'm trying to get into backend stuff via Node.js.
>>61665697
a blog is a pretty good candidate for static hosting.
There is a reason why there are so many static site generators out there, with many of them focusing on blogs.
https://www.staticgen.com/
Netlify might be a good option if you go for the static route. I use them for my portfolio site and can't complain.
Have never used github pages though, so can't compare them.
OAuth question
So, Postman generates the same signature I do, but only postman gets back good json.
I get back signature mismatch.
How is that possible?
>>61664618
The names are weird. But they give a decent idea of what they convey, so the terms themselves aren't that bad.
See also: lossy (opposite of lossless)
Alright mates, I've got a question.
I'm working on a webpage that dynamically serves other webpages to the user through the use of HTML5 imports. They click a button, a new page is loaded into a div on my page, ala iframes. The issue is, the webpages being served have jumplinks (<a href="#link">) that I just can't get to work. I have access to both the HTML wrapper and the webpages being served, if it matters. Any ideas?
One hour long technical interview with bank of America for full stack contract role (1yr 60/hr maplebucks)
On the panel today we had:
>pajeet: p = senior engineer of restful state poo services;
>pajeeta: fe = hr;
>???:? = team lead...?
>hello anon, can you hear us
>yes yes good I am p this is fe and team lead ???
>let us begin. What is prewtotype?
>yes Javascript
>how do you manipulate the dom
>what is closure
>what is biggest change when upgrading from 1.4 to 1.5
>how would you empty an array?
>what does dollar sign dot digest do
>what does dollar sign dot apply do
>how do you share data between components
>have you worked with Java 8
>no 7 have you worked with 8
The next portion was about sass. I think. It was indescribable. I don't think I heard a single English word.
At one point I asked him to repeat himself 4 times than we had a minute of silence before I said I clearly can't understand.
He thought I didn't understand css?
The woman pajeet didn't know what Directives were.
They switched from angular 1 to 2 randomly.
They asked if I knew NodeJs but didn't have any questions for it.
Senior executive team leader agile scrum master pajeet+ asked how to solve this code sample. He then couldn't write a for loop for the sample. Looked like java.
Not a great interview.
>>61665927
you fucked up
maybe you failed to define the right headers, your framework is adding additional headers for you, maybe postman sends oauth related stuff in request body with method=xxx-form/urlencoded or whatever
it could be anything
as last resort compare packets from your client and postman with wireshark
>>61666589
Well I opened postman console and copied their exact headers into what I was using.
The only difference is that postman attaches a postman-token because of some Chrome bug.
what if we made a wdgdiscord but instead of a solo general discord we have a separate channel where all people do is blogpost about their failed interviews and how it's everyone else's fault
fuck webpack is confusing!!!!!!!!!!.
>>61666685
did you start from some kind of template, that came with a premade webpack config?
Starting from 0 and individually adding things could make it clearer
>>61666685
// webpack is a module bundler
// This means webpack takes modules with dependencies
// and emits static assets representing those modules.
IM LITERALLY SHAKING RIGHT NOW
>Finally finish making app
>Google Adsense is making me wait for my pin before I can add ads.
Not sure if I should just launch then add ads later or wait.
>>61667206
waiting because those 2 users are going to get pissed when you add them later
>>61667224
It's a pretty good app, my dude. Solves a huge problem and doesn't exist yet.
Problem is that it will get stolen and made better because I'm not getting a patent on it.
>>61667289
Chill zucc lmao
And you don't need a patent on it, patents do absolutely jack shit to chink copycats. All you need to do is actually establish a brand because the copycats are going to invest in fake reviews and social media accounts to outplay you.
Good luck!
>>61666685
Welcome aboard
>>61667289
>Problem is that it will get stolen and made better because I'm not getting a patent on it.
make it confusing to use and then set up a user group up on whatever platform people use for this these days
this way a user community will form due to the need to share tips and tutorials on how to use your app
hopefully by the time competitors enter the market, users will stick to your app even tho the ui sucks just because of the bigger more engaged community
also you can gradually fix ui to make it look like you engage with community and listen to feedback
You fags wanna see something cool?
>>61667479
no no pls don't show us anything cool
>>61667367
...Well that sucks.
I wanted a patent to try to sell it to a company that's screwing up hard by not offering the service already.
>>61667412
Oh boy, I'm going to get annihilated.
It's designed to be easy and I made the app in 10 hours total.
It's going to get stolen and advertised through 1000 facebook bots before I even hit 100 downloads.
Looks like I get to do the whole reddit thing "I made an app that..." and upvote it with a dozen bots then pray people bandwagon.
>>61667479
well?
>>61667512
what market is it ?
>>61667525
People who eat.
>>61667512
You don't need a patent to do that, simply by having the product/service active in the market it demonstrates ownership before others.
>>61667546
If only it worked that way.
https://www.exposingtruth.com/small-developer-makes-game-dead-mom-stolen-sued-king-com/
>>61667557
ummmmmmmmmm
https://www.gamespot.com/articles/candy-crush-saga-settles-dispute-with-candyswipe-amicably/1100-6419093/
>“I am happy to announce that I have amicably resolved my dispute with King over my CandySwipe trademark and that I am withdrawing my opposition to their mark and they are withdrawing their counterclaim against mine. I have learned that they picked the CANDY CRUSH name before I released my game and that they were never trying to take my game away. Both our games can continue to coexist without confusing players.”
>Back in March, The Banner Saga developer Stoic also said it reached an agreement with King, which enables both parties to protect their respective trademarks. King has since abandoned its efforts to trademark the word “candy.”
>>61667529
idk dood maybe try cheap facebook ads i heard they bring traffic, except i'm not sure how much google adsense would pay you anyways so might not be worth it
maybe suck some app reviewer off for a review if these guys still exist
i'm guessing it's either food picture recognition using some pretrained nn model to autotag instagram pics
or something recipe related
>>61667584
>i'm guessing it's either food picture recognition using some pretrained nn model to autotag instagram pics
https://www.youtube.com/watch?v=ACmydtFDTGs
>>61666517
got a fiddle?
using p5js at uni because I have to, but
can someone tell me why the bottom works but the top doesn't? I'll provide all the code if need be.var images = new Array(4);
function preload() {
/* THIS DOESNT */
for (var i = 0; i < images.length; i++) {
var source = 'car' + i + '.jpg';
console.log(source);
images[i] = loadImage(source);
}
/* THIS WORKS
images[0] = loadImage('car0.jpg');
images[1] = loadImage('car1.jpg');
images[2] = loadImage('car2.jpg');
images[3] = loadImage('car3.jpg');
*/
}
>>61667729
https://jsfiddle.net/jsnhrLpf/9/
This is what I'm dealing with, although it doesn't show up very well in fiddle. The first link works, clicking it jumps you down the page. The second link does nothing but append "#point" to the URL.
>>61644091
Been working on a rewrite of a university web app all summer. Front end was a breeze but I have to rewrite the back end as well and our database is all Oracle that's decades old and the DBAs don't know jack shit and I'm an intern so my privileges and schema get deleted every time they pull down the db from prod and I've been debugging one fucking thing for weeks and I'm going crazy
>>61668153
Ah shit, I'm sorry, that's not right. This is closer: https://jsfiddle.net/jsnhrLpf/11/
>>61668159
this is why uni apps are usually ancient and disgusting
they have PLENTY of students capable of actually fixing shit who want to as well, but not with the hierarchal mess schools cope with
OP is a faggot and should have posted the link to our Discord server
https://discord.gg/wdg
Join for learning, asking questions and shitposting.
>>61668149
i isn't string
>>61668233
The decisions they make are so goofy. They've just started this rewrite process of all of their apps. They're moving from grails... to Angular. Angular 1.5.
>>61668295var source = 'car' + str(i) + '.jpg';
that still doesn't work
>>61668361
that isnt how you make i a string
>>61668395var source = 'car' + str(i) + '.jpg';
this?
doesn't work either
>>61668361
>>61668395
>>61668361
>>61668295
>>61668149
The problem is not that i is not a string, don't listen to that guy.
What do you mean by it "isn't working"? Is there an error? What happens if you log images[3] after that for loop?
>>61668426
>>61668395
*String(i)
>>61668445
So the task is to have images loaded and moving randomly. It all works correctly with the "correct" loading, e.g.images[0] = loadImage('car0.jpg');etc.
Here's all of the code, you can run it at: https://alpha.editor.p5js.org/
Shift TAB should indent everything properly.var images = new Array(4);
var imageSize = new Array(4);
var imageX = new Array(4);
var imageY = new Array(4);
var imageSpeed = new Array(4);
var imageSpeeds;
function preload() {
for (var i = 0; i < images.length; i++) {
var imageSource = 'car' + String(i) + '.jpg';
console.log(imageSource);
images[i] = loadImage(imageSource);
}
/*
images[0] = loadImage('car0.jpg');
console.log(images[0]);
images[1] = loadImage('car1.jpg');
images[2] = loadImage('car2.jpg');
images[3] = loadImage('car3.jpg');
*/
}
function setup() {
createCanvas(400, 400);
for (var i = 0; i < images.length; i++) {
imageX[i] = random(width);
imageY[i] = random(height);
imageSize[i] = random(100, 200);
imageSpeeds = [-3, -2, -1, 1, 2, 3];
imageSpeed[i] = random(imageSpeeds);
}
}
function draw() {
background(220);
for (var i = 0; i < images.length; i++) {
imageX[i] = imageX[i] + imageSpeed[i];
imageY[i] = imageY[i] + imageSpeed[i];
if (imageX[i] > width || imageY[i] > height) {
imageSpeed[i] = imageSpeed[i] * -1;
} else if (imageX[i] < 0 || imageY[i] < 0) {
imageSpeed[i] = imageSpeed[i] * -1;
}
image(images[i], imageX[i], imageY[i], imageSize[i], imageSize[i]);
}
}
>>61668445
>>61668515
Here's what a console.log does with images[0]
Same things with images[i] in the forloop
>>61668515
Is p5js supposed to have these car images built in?
>>61668515
It works just fine with the code there. Console prints the car0-3.jpg.
>>61668576
No, you have to upload them. Tricky UI
>>61644042
Hey Waifu-Deficient-Geriatrics, noobish question here: Besides minification/obfuscation (which can be reverse engineered, and annoying/shady shit like disabling certain keystrokes/mouse actions, are there any other common ways to prevent someone from stealing front-end code? Or is the best solution just "do shit on the back-end"?
>>61668515
Isn't it in JS .toString()
>>61668515
>>61668624
Have you triedvar source = 'car' + i;
loadImage(source, 'jpg');
>>61668633
You will never prevent people from stealing your code if it's front end.
>>61668633
do shit on back-end
everything front-end can be spoofed so son't rely on it for important stuff
>>61668650
the load image function is explained here ~
https://p5js.org/reference/#/p5/loadimage
The second parameter is a call back
>>61668602
It doesn't load the images like the commented out code does.
>>61668633
Backendo.
>>61668624
it says only json, cs, js, and txt files tho
>>61668721
>>>61668515 (You)
try harder
>>61668741
guess you need to sign up to do so
g00d luk
>>61668782
ah shiet
I'll write a codepen
>a few hours ago
>get the urge to fap
>start torrenting some jav shit
>get to some image website with porn ads
>one of the ads is some kind of browser stripper
>get the source of videos from that ad
>think how nice it would be to play all those videos one after the other in full size
>end up with this shit<?php
$x=[];
$x[]="e0092_1.mp4"; //e0092_1.mp4</a></li>
$x[]="e0095_1.mp4"; //e0095_1.mp4</a></li>
$x[]="e0095_3.mp4"; //e0095_3.mp4</a></li>
//there were more vids here, can't post because 2000 chars is max in a post on 4chang
$x[]="e0619_4.mp4"; //e0619_4.mp4</a></li>
$x[]="e0619_5.mp4"; //e0619_5.mp4</a></li>
$x[]="f0164_1.mp4"; //f0164_1.mp4</a></li>
$x[]="f0164_2.mp4"; //f0164_2.mp4</a></li>
$b=count($x);
session_start();
if(!isset($_SESSION['f']))
$_SESSION['f']=0;
$s=$_SESSION['f'];
while($s<$b){
$i=0;
?>
<center>
<video id='myVideo' onended="fuk()" controls autoplay>
<source src="http://imageteam.org/t20315e241bf/<?php echo $x[$s]; ?>" type="video/mp4">
<source src="http://imageteam.org/t20315e241bf/<?php echo $x[$s]; ?>" type="video/ogg">
</video>
</center>
<?php
$_SESSION['f']++;
if($_SESSION['f']==$b)
$_SESSION['f']=0;
if($i==0)
break;
}
?>
<script type='text/javascript'>
function fuk() {
location.reload();
}
</script>
>didn't even fap in the end after I finish writing this
what the fuck is wrong with me?
and I autistic?
>>61668955
all web devs are autistic
>>61668955
so did you scrap the videos??
>>61669013
I pulled them from the source of course
>>61668955
Thats like the kind of shit I would do on adderall as a teen.
>>61653467
>Blue on black
Nigger you what.
Do light green for the links so that people can at least fucking see it.
is it at all possible to use a video as a text background? like as an alternative to text color? would that need to be done with javascript?
>>61671087
Are you talking about a styled <input> element or just generally if you can put one element on top of another?
>>61671087
https://css-tricks.com/how-to-do-knockout-text/
This should do the trick, although it's not very cross-browser compatible.
If you want to look at other solutions, I googled "css text image mask" and got some good results.
Hey, Django and Flask webdev who has to switch stacks to Typescript + Express + React. Sucks but have to get that React money.
To cover the Typescript angle I'm reading through this: https://basarat.gitbooks.io/typescript/content/docs/getting-started.html
How about the Node and React pieces of the puzzle? I'm familiar with the Node of 3 years ago but it's probably changed a lot. Got any right down to business texts on Node + React (using JSX)? Preferably with Typescript in mind.
>>61671250
Maybe I don't understand, but you justyarn add reactthen start typing
>>61671250
that gitbooks has been helping me a ton with TS.
Node is very simple and works virtually the same. Just use npm.
React is a little more complex. Just google "react typescript" and there's a million tutorials showing you how to compose components and such. You'll figure it out quickly.
>>61671293
I wish.
>>61671442
Word, thanks. Coworkers are all on the yarn hype train though.
>>61671509
that's fine too. just use what your coworkers use for the most part.
>>61671509
I mean that's basically all you need to do to start using JSX. If you need to know how to use react, just read the facebook docs
I have a server PC setup in my house and I'd like to run a simple static web server on it. Before I did so and just SSHd in and edited the templates remotely. Would it be a good idea to instead have a prod and dev folder running the test and actual servers, and have corresponding branches in a bare repo put the files in through git hooks, or is that really stupid?
>>61671675
there's definitely a middle ground here. What is your simple static web server doing? How many people are using it? Will they care if it's down for an hour?
My best guess? Make a git repo. Test locally on your development machine. Then push and pull from server, do config stuff, run.
>>61671710
yeah it's a totally unimportant blog
testing locally is awkward because node js, before Id just swap the port over to a non-forwarded port and test through a browser but of course that has the major drawback of not being testable outside of home
so youre saying git repo should be run on the server, and that would just be for the actual thing?
>>61671762
just put it in a private git thing on github?
Why is testing locally awkward? I guess you can just run a test instance on your server too.
>>61671797
oh nvm i misread what you were saying
personal computer, different OS different platforms, etc, overall it's just a pain to clutter it up with node and such. i might look into that thanks anon
>>61671675
it's not stupid, it's pointless. you have no reason to. build something that merits it.
>>61668663
>>61668673
>>61668721
Cool, thought as much. Thanks dudes.
>>61651461
I didn't need to know that, I'll tell you that much. I'd pick twenty-sixteen or twenty-seventeen themes and follow the file structure. Only the neccessary files.
>play with angular 4 a few weeks
>discover react
>absolutely love it
>>61651461
Really nigga?
You literally only need index.php, style.css, and functions.php
Source: main bulk of my income comes from writing custom wp themes.
>>61671210
thanks anon, that works
Anyone else hate angular after learning react?
>>61668268
can you unban me please? my name is lamebrainz
hey guys im working with node js and the express framework. i just completed the mdn guide on the topic. it used an express application generator. What are your guys' input on using these sort of generators?
>>61672972
express slashes node performance into half, dont use it
>>61673000
thanks for suggestion but im still gonna use it.
>>61672432
I just spent the entire day trying to get a component to render inside a router-outlet.
JUST FUCK MY FUCKING LIFE UP
>>61673009
how did you do it? for future reference
>>61672432
>discover vue
>absolutely love it
>try react
>it's ok
>still liking vue more
>>61668268
>should have posted the link to our Discord server
What's even the point to the discord server.
Why split the discussion instead of keeping it in the general, that's one of the slowest on /g/ already?
No wonder that the thread dies occasionally before reaching 310.
>>61673293
how does vue handle http requests and promises? does it have something like rxjs or redux built in?
I love coding more than I love girls, is this a problem?
>>61673391
sorry, I am not sure exactly what you mean.
How is handling http requests in a view library different from normal JS?
I can try to write an explanation though.
In Vue components you have the "created()" and "mounted()" hook.
Any code in there can access the components state data via "this"created() {
let socket = require("../js/socket.js")
socket.on('serverStatus', (statusMsg, clientCount) => {
this.serverStatus = statusMsg
this.clientCount = clientCount
})
}
for example, or were you thinking about something different?
>redux
there is vuex for state management, though I didn't have a need for it so far.
>>61673676
there's rxjs for angular, theres redux for react, and I wanted to know the vuejs equivalent. thanks for telling me about vuex.
>>61673676
to add, same goes with functions.
User clicks on a button -> calls a function that sends an AJAX request -> the function can change the state of "this.whatever" once the response comes back.
>>61673638
sort of
>>61673638
Code your own girls. Problem solved.
why is Zend considered as hardest framework?
someone told be it is because in zend you need to write more php then in other frameworks
>>61673638
no. you're a man destined for true greatness.
new thread
>>61674081
>>61674081
new thread
>>61670472
I made it like a red-orange color and changed the font.