>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/
Why does my JS look like lisp since ES6?
Anyone familiar with React here?const handleError = (event)=>{
event.target.setAttribute(
"src",errorImg.string,
);
};
I want to style this image tag when onError fires as opposed to just changing the image, preferably a border around the image but I'm not sure how to do it.
>>62078231
use the same code and set attribute "style" instead of "src" lol
>>62078231
what the fuck
>trailing comma in parameter list
>indentation fucked
>parameter list on own line
>code block for one function call
Is this really how code is written in prod?
>>62078248
Doesn't work.
>>62078261
I am not familiar with react, don't expect well formatted or even working code.
>Is this really how code is written in prod?
It is when it's written by a designer learning React.
>>62078291
well, you must post the full component.. what is this? An image upload component?
Is this mobile react or web application? If its an web app, you could change the state and add and "error" class to the parent where you apply the style from your css
>>62078291
event.target.setAttribute("style", "color:red");
Are there any resources that provide you with some assets and a brief so that you can practice the code?
I'm fucking terrible with design and my websites always look exactly the same no matter what i intend when starting out, i need a pretend boss to tell me what to do.
>>62078324
>>62078323
I fixed it.
I was trying to put more than one thing in setAttribute.const handleError = (event)=>{
event.target.setAttribute("src",errorImg.string);
event.target.setAttribute("style","border: 1px solid red");
};
This works. I was doing:const handleError = (event)=>{
event.target.setAttribute(
"src",errorImg.string,
"style", "border: 1px solid red"
);
};
>>62078520
Since you're using React, you typically don't want to manipulate the DOM outside of changing states (and likewise passed props to other components). Nasty and unintended things can happen if you do.
Rather consider the following:import React from 'react';
class LoginPage extends React.Component {
handleError = (res) => {
// Update component state. Once state updates, the component re-renders.
this.setState({
error: true,
errorImg: res.image,
});
};
handleSubmit = () => {
// form verification
// ajax requests to server
};
render() {
const { error, errorImg } = this.state;
function conditionallyLoadElement() {
if (error) {
return (<img src={errorImg} alt="error"/>);
}
// Else
return (<h2>No errors found!</h2>);
}
return (
<div>
<form>
<input type="submit" onClick={this.handleSubmit} />
</form>
{/* Conditionally load element */}
{this.state.error && (<img src={this.state.errorImg} alt="error" />)}
{/* Another way to conditionally load */}
{conditionallyLoadElement()}
</div>
);
}
}
>>62078590
>Since you're using React, you typically don't want to manipulate the DOM outside of changing states (and likewise passed props to other components). Nasty and unintended things can happen if you do.
We're using styled components so it's too late for that. Also hasError is a default property of the img tag in React so we don't need to make a custom error state, I can just set onError={handleError} in the rendering of the component and it'll use the const I posted earlier.
>>62078659
Styled components are React components that append inline styles on top of components based on given props.
It hasn't really got much to do with direct DOM manipulation using something like setAttribute if you get what I'm meaning.
fuckin react shit
Aren't everyone switching from React now though, because of all the BSD+patents mess
>>62078682
Oh okay, I get that setting style via setAttribute is not the best way to do things. Is there a better way to change the src of an image tag in React?
>>62078701
Yes, it would be a big problem if our business to be acquired by a larger firm. I'll leave management and infrastructure to deal with that though.
>>62078590
you can use inlining in the return function toorender() {
return (
<div>
<form>
<input type="submit" onClick={this.handleSubmit} />
</form>
{
this.state.error
? <img src={this.state.errorImg} alt='error'/>
: <h2>Success!</h2>
}
</div>
);
}
>>62078728
> react developers consider THIS abomination the pinnacle of web development
>>62078743
kek
Some of my latest jQuery work$.getJSON('api/models', data =>
data.forEach(model =>
models.append(
opt(model, model))));
$.getJSON('api/errors', data =>
data.forEach(error =>
defaultComment.append(
opt(error, error))));
>>62078701
>Aren't everyone switching from React now though, because of all the BSD+patents mess
jesus fuck, I knew I shuldn't have gone with goybooks framework..
what are some alternatives I can consider, except angular?
Having an issue w/ React Native. Need to add onPress feature
Can anyone see what's wrong?
This DOESN'T work (I get no images):render(){
if(!this.state.persons){
return <Text> Loading...</Text>;
}
return <View style={styles.portrait}>
{this.state.persons.map((p,idx)=><View key={idx}>
<TouchableHighlight onPress={()=>console.log('TEST')}>
<Image
style={styles.thumbnail}
source={{uri:`https://s3.eu-central-1.amazonaws.com/aa/${p}.jpg`}}
/>
</TouchableHighlight>
</View>
)}
</View>
}
}
This works:render(){
if(!this.state.persons){
return <Text> Loading...</Text>;
}
return <View style={styles.portrait}>
{this.state.persons.map((p,idx)=><View key={idx}>
<Image
style={styles.thumbnail}
source={{uri:`https://s3.eu-central-1.amazonaws.com/aa/${p}.jpg`}}
/>
</View>
)}
</View>
}
}
>>62078768
Vue
>>62078773
>React Native
>Webdev
Pick one
>>62078743
What the fuck did you just fucking say about me, you little bitch? I’ll have you know I graduated top of my class in Udemy, and I’ve been involved in numerous scalable projects, and I have over 300 apps in the app store. I am trained in JSX and I’m the most senior developer in Google. You are nothing to me but just another node in my botnet. I will ddos you fuck out with precision the likes of which has never been seen before on this Earth, mark my fucking words. You think you can get away with saying that shit to me over the Internet? Think again, fucker. As we speak I am contacting my github dev team and your linkedin is being traced right now so you better prepare for the storm, maggot. The storm that wipes out the pathetic little thing you call your vps. You’re fucking dead, kid. I can be anywhere, anytime, and I can implement over seven hundred parallel multiprocessing threads, and that’s just with my bare IDE. Not only am I extensively trained in React Native, but I have access to the entire arsenal of private bitbucket repos and I will use it to its full extent to wipe your miserable ass off the face of the internet, you little shit. If only you could have known what unholy retribution your little “clever” comment was about to bring down upon you, maybe you would have held your fucking tongue. But you couldn’t, you didn’t, and now you’re paying the price, you goddamn idiot. I will divide by zero all over you and you will drown in it. You’re fucking doxxed, kiddo.
>>62078773import React from 'react';
import { View, Image, TouchableHighlight, StyleSheet } from 'react-native';
const images = [
'https://www.advocate.com/sites/advocate.com/files/2016/02/05/media1_0.jpg',
'https://i.ytimg.com/vi/_SEycChyyQA/maxresdefault.jpg',
'http://www.diversityinc.com/wp-content/uploads/2017/03/Brian-Banks.jpg',
'http://www.dreams.metroeve.com/wp-content/uploads/2017/03/dreams.metroeve_black-people-dreams-meaning.jpg',
'https://img.huffingtonpost.com/asset/58058ec21700002816acc92f.jpg',
'https://vignette2.wikia.nocookie.net/phobia/images/8/88/Black_People.jpg',
];
const styles = StyleSheet.create({
portrait: {
flex: 1,
},
thumbnail: {
height: 200,
width: 200,
}
});
export default class TestScreen extends React.Component {
render() {
return (
<View style={styles.portrait}>
{images.map((image, i) => (
<View key={i}>
<TouchableHighlight onPress={() => console.log('TEST')}>
<Image
style={styles.thumbnail}
source={{ uri: image }}
/>
</TouchableHighlight>
</View>
))}
</View>
)
}
}
werking for me
I think you forgot the extra ')'
>>62078861
I'd like to make a meme generator where you specify some keywords and have a template system where you insert it into the text. Something like:
["Udemy", "scalable projects", (...)]
"What the fuck did you just fucking say about me, you little bitch? I’ll have you know I graduated top of my class in { }, and I’ve been involved in numerous { }, and.."
What should I use?
>>62078925
Looks like a great app. Would buy
>>62078701
>Aren't everyone switching from React now though, because of all the BSD+patents mess
there goes at least 20-40% of my job employment chances now..
every big company and new startup will drop this pile of shit sooner or later, except goybook of course
>>62078952
I guess node + express + Vue now..
>>62078952
>I'd like to insert strings into other strings
>What should I use?
really now
Should I ever use anything but the map function to go through an array?
>>62078956
>there goes at least 20-40% of my job employment chances
Are you serious? Just port your React knowledge to Angular or Vue, which are both arguably simpler. Besides, React Native isn't going anywhere soon as there is no viable alternative yet.
>>62079033
well, I've become very good at React. and angular + vue seem to be different enough, that it will take me a long time to become very good at them too.
>>62079025
Yes, reduce
>>62078952
ImageMagick
>>62079025
You can use a for loop, however I'm not sure if there are performance gains.render() {
let items = [];
for (var i=0; i<state.items.length; i++) {
items.push(<Item key={i} ... etc />);
}
render() {
<View>
{ items }
</View>
}
}
If possible you should use objects instead of arrays when rendering, because it's faster.
ExamplemyArray = [{id:1, content:''}, {id:1, content:''}, {id:1, content:''}, ...]
myArray.map((item, i) => ... )
myObject = { '1': {content: ''}, '2': {content:''}, ...}
myObject.keys(subjects).map((item, i) => ...)
>>62079025
map isnt actually for looping, map always returns an arryay with the return values of the function.
I usually use .forEach for looping
>>62079208
>implying you want anything but a new array when looping through an array
>>62079226
the problem with that approach, it always returns something, so you might end up with an array which contains many 'undefined' items..
I ususally use .forEach, test if i want to use the item, then .push to another previousl defined array.
>>62079262
.filter is what you want then
>>62079281
yeah, i guess filter could do it...
>>62079281
Unless you want to push to multiple arrays in a single pass, or exit early
Do you use any IDEs or we are all on light text editors?
I was thinking to start using PhpStorm.
What do you think about it?
>>62079301
>push to multiple arrays
why tho
>exit early
valid point, use loops for this, and only this
>>62079305
VSCode bruh
>>62079281
>>62079294
>>62079301
actually, no, i was wrong.. filter doesnt modify the items, it just reduces the array size. I'll just use .forEach + .push...
>>62079305
brainstorm has quality software, no doubt about it
>>62079357
>filter doesnt modify the items
Because you shouldn't mutate data
>>62079368
>Because you shouldn't mutate dat
what? thats litterally what .map is for
>>62079393
fight me
map doesn't mutate
>>62079393a = [ 1, 2, 3 ];
b = a.map(x => x * 2);
b // [ 2, 4, 6 ];
what got mutated?
Do you use declare(strict_types=1); boys?
Why is nobody using prototypal inheritance, the paradigm on which javascript is built? Instead they force OOP and introducing fake classes and other shit?
>>62079499
REEEE
Are you using PHP out of your own free will?
>>62079513
I don't use either
functional, baby
>>62079517
I use Laravel, am i that wrong?
>>62079410
>>62079420
fiter doesnt mutate either, it gives you a new array. but you cant modify and filter the items at same time, so I'd stil have to use my old approach... or use .filter + .map simultanuously, which surely uses more resources than .foreach + .push
>>62079517
yes
currently in learning Zend because i need it for work :'(
I dont know why but php is closest to c++/java type of writing code to me. That is only reason why i use it.
Never tried python/ruby and i dont rly like js
>>62078506
Why not copy a website
>>62079547
>surely uses more resources
It doesn't, other than the overhead for calling functions
>>62078506
bootstrap?
so do people use let 90% of the time or what? I don't see why I should even bother with var except for really special occasions.
>>62079715
90% of the time they dont even know why they use it
>>62079715
more like 100% with the occasional const thrown in to make my code appear more professional than it is
>>62079604
>It doesn't, other than the overhead for calling functions
t. pajeet
>>62079715
Only const, reassignment is evil
>>62080146
>Example using one function takes almost exactly half the time of example using two functions
This just proves my statement
wut
>>62080177
and what would be the advantage of using 2 functions according to you? more is better?
>>62080188
No mutation is the obvious advantage
Is it bad to put javascript inside a template block that's going to be included in a bunch of pages?
I mean, it makes sense. The javascript is only going to be called if the rest of the stuff in the block is. But I hear the current trend it to stuff all that shit in the <head>.
>>62080146
Also, O(2n) ~ O(n)
>>62080209
how does oldArray get mutated in either of those approaches?
>>62080223
newArray gets mutated
>>62080209
also, it gets even worse if you increase the time, thats almost 5 times slower now
Is web dev really as boring as they make it out to be? I am really interested in front end development but literally every developer of some sort just say its absolutely boring and just trash. Are they right?
>>62080276
>developer of some sort just say its absolutely boring and just trash.
sure, it gets repetative after some time
>>62080269
Yes, JS is not ideal
>>62080276
front end is just a hobby
>>62080318
well, without .fiter, .map is faster, but it will give you undefined variables (in my usecase)
>>62080381
Why do you store variables you're not gonna use?
>>62080276
Doing something over and over again is boring, so it depends on the variety of your work. I'm blessed to be working on a bunch of different things; front-end, back-end, mobile apps. I also have a bunch of personal projects and repos that I like to do upkeep on even if no-one uses them :'(. If I had to write wordpress themes all day every day I would probably kill myself.
Tl;dr: try to keep it varied and it won't get dull.
>>62080381
forEach is fairly slow compared to 'for of' and normal for loops as far as I know
>>62080417
for of is godly
>>62080417
>>62080443
its almost the same speed, the upper function is slower because of the push function
>>62080398
oldArray we assume was provided, and new array I'm gonna use
>>62080561
You can use reduce to implement filter + map in a single pass without mutation
>>62080631
reduce is chinese to me
>>62080561
why are my times so different though
>>62080668
?[1, 2, 3, 4, 5].reduce((sum, i) => sum + i)
>>62080710
the order of the tests seems important too.. js is asynchronous.
>http://hire.jonasgalvez.com.br/2017/Aug/25/Leaving-Python-for-JavaScript
Holy shit! This retard can't write Python correctly and he switched to JavaScript! It will hurt in his ass soon!
>>62080890
Did he fugged your gf?
>>62080757
ok, i get now how this works, but how would i get an array from this
>>62080890
>senior consultant at STORED
He looks like a 17 year-old student, seniors are 50+, dummy.
>like minimalism, challenging projects and the rework philosophy
So he likes remaking shit again and again like a retard?
>>62080801
only if you explicitly specify, that you want your code scheduled in a certain way.
There is nothing async with these examples, so when the event loop gets to it, it will run it sequentially.
Even if the individual test would run async in an indeterminate order, one would finish first, before another one starts, so they can't affect each other really.
>>62080949
He is a javascript fag now so he can't fuck girls anymore. ;)
>>62080949
Look at how he writes unpythonic Python...
>>62080952const filteredAndMapped = arr.reduce((result, item) => {
if (passesCondition(item)) {
return [ ...result, transform(item) ];
}
return result;
}, []);
:^)
>>62080961
yeah, you're right, but its obvious the order has some effect..
>>62080890
>specialising in UI/UX
>blog posts uncomfortably stuck on the right half of the screen
>>62080890
>>62080957
>>62080982
>>62081002
Not your personal army..
>>62080710
>>62080801
Do them separately you mongs ;)
>>62081024
This is an ugly hack and you should feel bad.
Typically you want to use map and reduce together. Map transforms, Reduce accumulates (different values in, one value out).
>>62081024
lol, youre right.. I'll be using reduce from now.
>>62081027
I don't really see it, not even in your own example, where you switched for and forof
>>62081057
there would be no difference in time
>>62081043
But he is destroying our beloved Python in his stupid article and claimed JavaScript ES8 is now much better, but he can't wrote a single pythonic line of code. Pfff, 4chan is full of fags now. ;)
for fuck sake.
the whole fucking Web Audio api is a fucking mess. There's like seventeen different source node types
>>62081079
Yes, but the whole complaint was multiple functions, and the performance penalty
>>62081092
>somebody on the internet doesn't like what I like
oh boy..
>>62081132
like != destroy/kill/atomize/lie
Redpill me on Jake Weary.
>>62081208
he likes to take it in the ass, but he is ok
>>62081088
maybe garbage collector + optimisation of teh specific browser (i was running it on latest canary)
>>62080710
>>62080801
you can't measure v8 like that you doofus. it has a jit compiler which applies different optimizations depending on when you run the code, how you run it and what's the temperature outside
>>62081627
>implying we didnt already come to that conclusion >>62081406
God I love in web dev after working on a boring project when they go "Now stop what youre doing and instead integrate this awesome service" or "finish your current ticket and then spend the next month on udemy courses because we're switching languages"
Such a breath of fresh air and basically a vacation.
What's the best way I can go about designing a mobile website based off an already existing website?
>>62081208
looks like a gayer adam lambert
>>62082268
solo working on a fullstack-ish project feels great for that exact reason, like constantly being on vacations
I wish I could have jobs like you guys but instead I gotta learn the basics of web development first like a no-job person
>>62080890
> From Brazil
Problem found.
>>62082915
>we want AJAX skills
>we want jQuery skills
wat
isn't that something you can get a grasp of in like 10 minutes, given that you already know JS?
>>62083327
>>62082915
heh, accidentally quoted you
anyway, do you already know how the different sections on the site should be arranged on a mobile/vertical layout?
It will also depend on how the site is structured right now. Whether you can keep most of it and just throw in some breakpoints or if it needs some restructuring.
If it has been created without any consideration for responsive layouts then it sounds like you have some work to do.
Are you using a CSS framework?
>>62083377
>If it has been created without any consideration for responsive layouts then it sounds like you have some work to do.
It hasn't. It's a simple looking site that I have to make a mobile version that's nice to browse and nicer to look at.
>Are you using a CSS framework?
Yes.
Also I'm currently designing what I want it to look like for the different pages of the site.
Ajax with RESTful API or websockets? Asking for a friend
>>62083446
do you need live updates without polling? then websockets
>>62083460
I have a table on the webpage where users' interactions with my bot get posted and updated every time they do something
>>62083487
websockets is for maintaining a constant connection between client and server. If your posts are driven by events, ajax will work fine. Not to say you can't do the same thing with websockets, but it's made for a more "live" type of functionality.
>>62082951
This. My current employer asked me to rewrite their entire application four months into my tenure.
>>62083515
Thanks, Anon. You're doing God's work
>>62083515
anyone know why nginx server drops websocket connections after 1minute? defeats kind of the purpose of ws
>>62083524
I'm hoping that happens where I am now. Just started, and apparently one of our tasks is to convert legacy apps to nodejs/React. Would be dope to do so.
>>62083671
sorry, I haven't really needed to use it. I just know what it does. look through the config file for some kind of websocket timeout setting
>>62083781
well, I managed to fix it by adding reconnect callback on connection loss to the socket.
but still weird that default nginx chose to do this, just wondering why.
Is there a visual editor that I can use (besides stuff like Dreamweaver) to edit css?
You know like in dev tools you can change the css and it gets updated live, I want something that can do that but it actually saves to the file as you edit or hit save.
>>62084210
lol, you can do that with browser too.. they even support less/sass if you create sourcemaps
I took about a year off from web dev and trying to get at it again. What is currently the best stack for api + frontend?
A year ago nodejs/express+postgresql and react+redux were the shit. Has anything changed?
>>62084238
Oh cool. Didn't know that was possible. Firefox right? I'll use that. I don't see anything like that in Chrome dev tools.
I have a lot of rage and frustration in my mind and I wish I could channel it out into Javascript like artists can channel their frustrations into painting or music
>>62084493
>best stack
3 different people, 3 different answers.
You won't go wrong with the one you mentioned.
>>62084502
>>62084210
Alternatively something like hot reloading if you are using webpack or some other bundler, that can do that.
Should i use an ORM in the backend? Pros and cons?
>>62084502
honestly, I'm using chrome canary.. it has a similar thing, but unlike firefox, you need to set it up first (finding folder, linking to source files)
>>62084516
You can though.
Is there a way to declare a variable in PHP as having an integer value but being no set number? I want $num to be 'number', not any actual number itself boiz.
>>62085248
Why?
>>62085400
I'm in the middle of understanding prepared statements. It's difficult to explain why I need to declare an integer variable without any integer but I do.
>>62085248 here, I am silly. There is no way. But I have found a different way to navigate past my difficult and complex issue with prepared statements.
The world rolls on.
My website has an ad revenue of 1 cent per week.
Am I winning?
>>62085913
i have blogs which get clicked every fucking day 1 cent. I have a suspicion google manipulates that to scam the idiots paying for adwords lol
>>62085963
I feel like google is taunting me.
I am a cent away from throwing them off my website.
How do I make it so that a TEXT column in MySQL converts all newlines into actual line breaks rather than '\r' or '\n'? Using nl2br on the output HTML text isn't working.
Anyone ever worked with Typo3 cms and if so, how was it?
>>62086334
store html in database ?
>>62086055
its a waste of time for me too.. even when I had better websites and content, the cost of hosting ate all my adsense earnings, so I deleted everyting and am trying to figure better income revenues out
>>62086437
I'm trying to do this with Javascript.document.querySelector('textarea').textContent.replace('\n', '</br>');
It isn't working. As I said, nl2br isn't working either.
>>62086562 here. It is a conflict between mysql_real_escape_string() and the prepared statements
>>62086681
>mysql_real_escape_string()
By which I mean mysqli - pff, this isn't weenie PHP I'm talking about here
>>62086334
Sweet! Problem fixed! I had one unnecessary thing with the other thing as described here: >>62086681
Content inputted into textarea now are displayed in database and on page as it is typed. Learning everyday bros.
Is it actually possible for a self-thaught dev to get a decent job without higher education?
>>62087184
This describes me and most of the devs I've hired. Self-taught is always valued higher in web dev than a CS degree.
>>62087184
Anything is possible.
Will a dumbass like yourself get a job? Now that's exceptionally unlikely.
>>62084573
>hot reloading
Yeah, I tried browsersync for a while. Every time you save a CSS file it would reload the page, was just looking for something more instant.
>>62084721
Ah cool, will give Canary a shot. I prefer Chrome's dev tools to Firefox's.
>>62087184
Yes, but..
1. Learning CS concepts is useful and you should try to, in addition to whatever language/ framework you focus on.
2. Having a degree (any) proves that you have a measure of commitment, can work with others, and at least a base level of intelligence.
Disclaimer: I work as a web dev but I don't have a STEM degree, just a semi tech-related BA undergrad.
>>62087529
>Every time you save a CSS file it would reload the page, was just looking for something more instant.
I'm pretty sure adobe's Brackets live preview is exactly that but faster. Haven't used it much recently though because I have no need to switch from my current editor. Feel free to try it though.
I was thinking about learning C# because it's trendy at the moment, but I'm not sure what I would use it for. Is it just a general purpose language or does it have some unique application in webdev?
I already use:
Javascript
Python
C++
Javascript
Php
So, is it worth it or a waste of time?
>>62087798
gen purpose but if you're going to be using .net core you're at an advantage with c# due to documentation
learn it if you want, but with those languages you already know you should instead be working on hefty projects
>>62087786
I've tried that too, but it was extremely buggy. That was last year though so maybe it has improved by now. Still prefer the live update option that Canary apparently offers.
>>62087889
>Canary
Are you talking about just the normal chrome developer tools? You don't need to run the beta/alpha/whatever they call it to use it. Most browsers offer pretty much the same functionality.
What do you use Javascript for on your pages when you're also using another language (besides HTML / CSS) as well? I had this thought just now. I've been learning Javascript for a while now and am currently working through PHP. These pages I'm making which are full of PHP code have no reason to involve Javascript code as well. So what is base Javascript actually used for in dynamic web pages /wdg/, if at all?
>>62087529
>Yeah, I tried browsersync for a while. Every time you save a CSS file it would reload the page, was just looking for something more instant.
that's just auto-refresh. hot reloading doesn't refresh the page by definition. and it's pretty trivial to set up with webpack for example
>>62087798
>I was thinking about learning C# because it's trendy at the moment
that's a very dumb reason. .net is a total mess right now. I would recommend staying away from it and coming back in 2020 to reevaluate.
>Is it just a general purpose language or does it have some unique application in webdev?
it's a general purpose language. in webdev it's used for all kinds of backends, especially in enterprise
>>62088207
for interactive ui and for content that I want to load asynchronously
>>62087865
>>62088358
cheers for the advice senpai
>>62087529
>Yeah, I tried browsersync for a while. Every time you save a CSS file it would reload the page, was just looking for something more instant.
There's an option in browsersync somewhere to hot reload the stylesheets without reloading the page. It always unnerves me a bit though, I usually end up reloading the page anyway
>>62088207
Javascript is for any interaction that doesn't require a page reload to take place. It performs actions in real time, as opposed to PHP which does all the processing in advance then presents it to the user in a static manner.
>>62087184
Self taught, university taught, doesn't matter.
What matters is experience and proof of your abilities.
>>62088900
Which is why a degree is usually a waste of time and money, if your objective is to learn web dev then going to college is a horribly ineffective and inefficient way to do it.
College programs can teach you strong programming fundamentals, algos, patterns, etc., but no programs exist which offer knowledge on contemporary web development. The technology is moving far, far too fast for traditional schools to keep up. You're always much better off either self-taught or even going to a good bootcamp.
>>62089272
>College programs can teach you strong programming fundamentals, algos, patterns, etc., but no programs exist which offer knowledge on contemporary web development.
No programs exist which offer a hundred ways to solve fizz buzz. This doesn't mean higher education is "a waste of time and money".
>The technology is moving far, far too fast for traditional schools to keep up. You're always much better off either self-taught or even going to a good bootcamp.
The speed at which the development landscape changes is exactly why university style programs make sense. Bootcamps which focus on getting you out the door with whatever pile of technology is trending at the time you enroll have an expiration date that's a couple of years down the road. The contents of a typical CS program will remain relevant well after you're dead.
Well guys I just got an interview lined up for my first web dev job. I passed the initial on the phone interview (which I know isn't hard).
Turns out during the phone interview I found that it's for essentially an entry level PHP developer position. I was honest with him and let him know that I took PHP in school almost two years ago. He said to just get refreshed on it.
I don't even really remember much about it to be honest. Where's a good place/resource to get refreshed on it? MySQL is used, so it's essentially WAMP.
I got a week and a half. Image is just so I can find my post on my computer when I get home.
>>62088900
This guy's right, at least in the US. I've been at it 8 years with a humanities degree. Sure, you might always feel less than among guys with CS degrees. But when they see you do good work, little else matters. Self teaching is a big skill in and of itself
>>62089417
http://php.net
Not being checky, it's got good documentation. Read the user's comments on the bottom of each page to get a feel for thinking in PHP. Download wamp and try it out. Or mess with phpfiddle.com
>>62089341
>No programs exist which offer a hundred ways to solve fizz buzz. This doesn't mean higher education is "a waste of time and money".
It does if your goal is to get hired and be effective as a web developer.
>The contents of a typical CS program will remain relevant well after you're dead.
True. Unfortunately the overlap between this content and things that will actually help you over the course of a web development career is almost nonexistent.
>Bootcamps which focus on getting you out the door with whatever pile of technology is trending at the time you enroll have an expiration date that's a couple of years down the road.
This would be true if an education stopped upon graduation of a bootcamp. The industry is a constantly rolling series of technologies. The goal of a bootcamp is to get you to a point where you're capable of riding that wave into the future, something that is extremely practicable and applicable to your future career. A bootcamp is a foot in the door to the real value proposition: experience. If you can leverage a targeted bootcamp education into a shitty first job, you can begin accruing enough experience to be really valuable in the market. There are good bootcamps and shit ones.
There are not a lot of complex computational problems in web development on a day-to-day basis. You rarely encounter a problem that necessitates a complex algorithm, and when you do, you generally have lots of pre-packaged solutions for those problems in the form of libraries. The difficult problems in web development are choosing the right approaches and code organization, things that you can only really learn from looking at other web projects.
>>62088207
Running fancy clientside shit, mainly. PHP is a serverside language, the client doesn't really interact with it other than requesting a page that is generated as HTML/CSS/JS by the server.
Basically PHP delivers the content, and JS interacts with it. JS can also be used on both sides with shit like node.js, though.
>>62089503
I imagine it would be beneficial to build a few projects before the interview right? Any ideas of things to build?
>>62089693
>True. Unfortunately the overlap between this content and things that will actually help you over the course of a web development career is almost nonexistent.
Out of curiosity (not trying to be a dick) where are you in your career? I got this impression as a junior dev at a big company a lot but as I moved on I found there were a lot of applications for theory in my day job.
I definitely see what informs that kind of sentiment but I think it's toxic on the whole, it contributes seriously to the view that web development "isn't real programming" which I mean if you look at modern toolchains the technology there is tremendously more complicated that the hairiest makefile you've ever run across or whatever you want to use as the dick-measuring metric. I think it becomes a sort of a self-fulfilling prophecy, everyone thinks web developers are dumbshits afraid of data structures that don't encode in JSON and that's the kind of people you get reinventing square wheels because they don't think there's anything more in web dev than ajax and CSS fiddling.
>>62090042
Build a better imageboard than vichan.
>>62090134
>it contributes seriously to the view that web development "isn't real programming"
Which literally doesn't matter.
Are you seriously investing any time at all caring about what people on /g/ think of your field of work?
Yet absolutely zero discussion about all these self-taught "real c programmers" who can legitimately fuck up so much even if they're attentive. Now that's some fucking bullshit.
>>62090134
Technical lead at a medium-sized startup leading a team of ten developers.
Web development is not real programming, by and large. On my team I have three-ish guys (including myself) who I would say can do "real programming," but there is seldom actual cause for any of us to do "real programming." The vast majority of the work in web development is ajax and css fiddling. Most "frontend developers" for example know html/css and can semi-successfully copy/paste jQuery examples from tutorials. Why? Because that's what there is demand for. There are tons of shops out there who need half-competent warm bodies to bang out html/css marketing sites.
Let me give you an example. I recently rewrote a ruby dynamic catalog printing module. It was basically just giant ruby files, one for each client, programatically moving a cursor around and drawing different primitives directly to a PDF. It was a bear to even comprehend much less maintain and re-implement for every client. I wrote an html/css -> PDF service and task-based config-driven system for organizing the pages. All the architectural stuff is systems programming, not web development. Real programmers do the systems programming, and web developers write the HTML/CSS for the actual catalogs. I could even outsource this work to China now if I wanted.
"Web developer" is a pretty useless term. It's very ambiguous. The terms I consider useful are "frontend developer" (basically just html/css + bad js), "backend developer" (essentially the same thing except with basic CRUD services), "fullstack developer" (a real programmer, familiar with devops, multiple languages, can pick things up on the fly), "application programmer" (closer to frontend, but actually knows what they're doing), and "systems programmer" (closer to backend but actually knows what they're doing).
Like for example I have a guy building a docker/packer based deployment infrastructure currently. There's no reason to consider this web development.
>>62090320
>Are you seriously investing any time at all caring about what people on /g/ think of your field of work?
The world is a lot bigger than /g/ and that attitude isn't limited to this shitty tech board.
>Yet absolutely zero discussion about all these self-taught "real c programmers" who can legitimately fuck up so much even if they're attentive. Now that's some fucking bullshit.
That is a definite double standard on /g/ but I'm not really clear on what it has to do with what we're talking about
>>62083446
graphql
>>62090529
>that attitude isn't limited to this shitty tech board.
I've never encountered it outside of /g/. No one irl expresses these stupid notions of what 'real' programming is. Perhaps they hold these views internally, but absolutely no one expresses it, and why would they when they have to interact with different fields quite often?
Now form vs function, that's a debate that actually happens.
Sounds to me you just need to spend less time on forums.
>>62090767
>I've never encountered it outside of /g/. No one irl expresses these stupid notions of what 'real' programming is.
That's simply not true, I see that kind of position being openly espoused on a regular basis, so it's a public acceptable opinion at least in my corner of the world.
>Sounds to me you just need to spend less time on forums.
I don't think so
>>62090844
>I've never experienced anyone express these views so no one in the world expresses these views
>>62079715
You shouldn't bother with `var`
Use `const` unless you know in advance you'll be changing the value of the variable e.g. for loops.
>>62090454
>"fullstack developer" (a real programmer, familiar with devops, multiple languages, can pick things up on the fly)
Not the guy you're arguing with, but could you elaborate on this description? Full-stack developer is what I would *like* to classify myself as (at least within 6 months). I know front-end inside out, use react/ native, canvas/ webgl+ glsl, and actively maintain several js libraries I've written. On the side I write software, mostly adobe plugins. My back-end knowledge is far from complete, however I would say I'm competent, and at least know "what I don't know" enough to research and learn something quickly.
Tl;dr as a tech lead, what would you look for in a competent fullstack dev? Advice or direction appreciated
pic unrelated
>>62091510
Being a "full stack" guy to me means that I can throw any engineering problem that I don't want to tack myself at you and you can figure it out, even if it involves languages and systems that aren't within your comfort zone.
There's a point in the development of a programmer where they realize that defining yourself in terms of different languages is nonsensical. The truth is that a decent programmer can pick up most regular languages (not like haskell) and write them functionally within a week and don't feel intimidated by that prospect. Like if I told you that I need you to implement a new feature in a PHP project, or modify a Java android application, or integrate against a Lucene server, your response should always be "okay, I can do that," even if you've never used those technologies before. PHP, C++, Java, C#, JS, Ruby etc., they're all just variants of tools that are used in basically the same way to accomplish basically the same goal. As a programmer you should theoretically be able to use any of them that you need to after basically just reading the documentation.
So that's what I look for first. That basic milestone as a programmer is the most important thing. The second thing that makes up a "fullstack developer" is strong experience with the web and web technologies in particular. I want you to know HTTP, have experience with database systems, systems programming, devops, frontend development, backend development, systems integration, possibly caching schemes, it's really nice if I can examine how you actually organize a project... That's a pretty good baseline. I don't really care about the particulars of any of those things, which database systems, which languages, etc. You're going to come in and pick up our stack in the first couple weeks. If you can't manage that then you're not the guy I want in a "fullstack" position.
>>62091688
Great info and perspective. Thanks
>>62091688
>if I can examine how you actually organize a project
In every project I do I try to create full documentation with feasability analysis, requirements analysis, ERDs, DFDs, mockups, use cases, ect...
is this what you are referring to? If not, does this stuff make a difference in how you view someone?
Writing a firefox addon - how do I filter the console tab in firefox's debugging/dev tool to only show warnings from that addon, or at least turn off website warnings?
What should I do after learning HTML and CSS?
>>62092260
I'd call that stuff overkill for most projects, honestly. While it's certainly good to know that an engineer can do those things, I'd say that they're only relevant for specific projects. I rarely do an ERD or DFD, I only do them once I actually feel that they would be helpful. We'll do a mockup when working on something UX heavy. I don't really expect engineers to work out use cases most of the time, though. We have UX and business guys for that, but it couldn't hurt I suppose. Here, these are the steps for our process:
1. Requirements (would include use case analysis, and usually put together by project manager in congress with client, users, and account people, as well as high level direction)
2. Mockup (if necessary, usually driven by whoever feels they have a good idea of a direction, engineer, designer, project manager)
3. Technical Specification (individual line items and rough effort in hours, this stage would include things like ERD and DFD if they make sense for the project, put together by the tech lead, delivered to project manager)
4. Client Contract Signoff
What I was referring to was being able to come up with an organization scheme for a project that makes sense. If you're using a boxed framework solution then this is a no-brainer usually, but even in MVC I want to see that you can work well within the MVC skeleton. Ideally a totally novel project with your own code organization and naming conventions. I honestly think that deciding where to put code, directory structures, and naming things well are usually the hardest problems in most web development projects. Basically I want to see that you can architect the larger building blocks of how your codebase fits together.
Can anyone explain how you'd get into freelancing?
I went to upwork and did 3 jobs, 2 of them were the milestone scam and the other was $65 for ~20hours of work.
I heard that freelancers can end up making 150k, I'm just not seeing it. Is it just really tough in the beginning or what?
>>62094358
Do it from a proper agency. They'll find you the work and give you (some) protection from shitty clients taking advantage of you. You get paid a daily rate it should shit on the amount you get for the same work salaried.
You will never make even half decent money selling your services on micro-task / commissioning sites like that. You will be lowballed to the extreme then that small amount will be undercut by Indians. Then there's the fun of them refusing to pay you because you didn't implement the 'obvious' things that they didn't mention in their shitty spec.
after 5 years decided to give up on getting into webdev and got a job in sales
gonna report in after a month to tell you how much money i made
>>62094465
any proper agencies you'd recommend? I'm in Australia if that helps, I'm still looking for full time work but would like to get into freelancing as a side job.
>>62094358
freelanding via upwork is for pajeets, the kind of freelancing that will make you 150k a year comes from customer support and maintaining solutions that you've sold to customers in a professional business setting not from a middleman website
make a wordpress website for like 30 local businesses and maybe you'll make 150k a year
>>62094548
So, just start with a street and start cold calling local businesses? That seems kind of weird, why wouldn't everyone just do that? it's not like wordpress is difficult
>>62094589
>start with a street and start cold calling local businesses?
however you wanna do it. most successful freelancers have worked in the field and already have connections and existing customers and because of that they can quit their normal job and start freelancing
>why wouldn't everyone just do that? it's not like wordpress is difficult
freelancing is not just development, it's your own business and at that point dev is like 1/5th of it, the rest is networking, marketing, talking to your clients and other business stuff, that's why most people just work for a company where they have to do what they're told. Managing your own time and being efficient is not as easy as it seems and to be a businessman you need good communications skills, be able to convince people to work with you etc etc. you're not just gonna go out and meet 50 people tell them you can make a wordpress website for them and then they'll say ok and make 150k a year. Getting to a point where you're breaking even can take years.
>>62092274
you can filter the output by string, so I think you can just output your addon name with every console.X call and then filter by that
>>62094358
Whats the milestone scam?
Nothing on google.
>>62090454
A web designer does html/css and graphic design.
A web developer does everything with a focus on the backend.
These terms have been around for a long time. Let's not change them for no good reason.
Developers are known to be bad designers. Designers are knowm to be bad developers.
That's why there is the division.
>>62096869
>These terms have been around for a long time
and then SPAs came along
>>62096798
upwork and freelancer have a milestone option, submit a part of the work and get a part of the pay to make sure everything is moving smoothly.
If I want to scam you and I want a landing page done, I list the job as a full website with a landing page, ask for the landing page as a milestone then when you submit it I take it, delete my account and disappear.
Basically the clients took the first part of the work I'd done and left, probably to go to another freelancer to finish the job for less because it's partly done.
The scam done to me was just them asking for "website and logo" and asking for the logo as a milestone, Other was "landing page and website". It's easy to spot in hindsight but they put a lot of effort into describing the website so you go along.
>>62094358
You have to work locally. Charge a yearly license of it's software of some sort. Like of you made an online ordering CMS for a niche. You would charge a license depending on amount of users. Most places I have worked charge around 19k USD yearly for this license. Then you charge hosting of they don't want to host. A few thousand views a month? 50/month is fine.
Best part is maintenance. It covers bug fixes. 50 to 100 is fine. Depends on how proprietary your software is. Whatever you set maintenance at, that's now your hourly rate for custom programming. Reasom being "So of you run into a bug that's your fault then it would be free if you paid the 50 a month maintenance, but if you don't then it would be the same cost per hour until the issue is solved
"
Makes it sound worth it. The places I had worked have between 300 and 5000ish clients. Bonuses and all expense paid vacations around the world. Bi-annual raises. This is how you do freelance. Make something that solves a solution for a niche. Leave the wordpress shit for the graphic artist students with no technical skills.
Building a class for handling mysql results.
Basically - I want to be able to pull all the information I need, work on it, then filter it just to the content the user should see and spit it out as json.
Any thoughts?class MYSQL_Result(list):
def __init__(self, data):
self.query_start = time()
self.query_finish = False
super().__init__(data)
def filter(self, keys):
if isinstance(keys, (str, bytes)) or not isinstance(keys, Iterable):
raise (TypeError("keys must be an iterable"))
return [dict((k, d.get(k)) for k in keys)
for d in self]
What is the point of "fullstack developer" over just "developer" and "frontend developer" and such
>>62097036
I've heard this story told multiple times across /g/. Some guy is making 100k+ a year from local businesses who need minimal upkeep, he spends his free time wakeboarding and VIP tables at nightclubs.
I have yet to see anyone post any proof of these people who make 100k a year and go rock climbing in their spare time.
For now I'm going to have to assume this is just another story that seems believable until you realize that clients are constantly trying to jump ship to a cheaper alternative and you're basically trading time for money in a very linear fashion.
I'm just going to try employment with a boss and see how that works out and try to ease into freelancing from there rather than wake up tomorrow and cold call every business without a website in town.
>>62097527
'Fullstack' is an important signal of one's focus. 'Front-end' and 'back-end' mean "fantastic in one area" while 'full-stack' means "all-rounder who is good but not brilliant in each area"
>>62097630
I run across people in the field all the time making passive income.
Clients may jump ship but if you have their entire userbase or transactions in your db you think the competitors are going to offer to port that information?
>>62092794
Ya dingus, learn Javascript obviously.
>>62097630
Also that's what you do. Get a job and do this stuff in your free time. It takes a while to build something. It's taken me 3 years to build 13k passive. It could take 20 more years to be stable or a week after my next launch. No one knows. You have to keep working at it.
Hey. Love you guys. Never stop learning web dev. If it is your passion, strive to achieve. You can make something wonderful.
The Patreon API is unbelievably fucking terrible.
Half the documentation ends abruptly. Doesn't list endpoints. Doesn't display proper return json.
It doesn't even say what version of oauth they use.
Holy shit.
>>62099258
Imagine if we had a json api spec that forced introspection capability by design
>>62099324
Imagine if you talked like a normal human being and had friends.
>>62099324
graphql
Is it possible to make a login system without browser sessions? Having the user log in every time he accesses the site would require to store the password in a cookie, which would be transmitted to the server every time. So what's the advantage of sessions? What am I missing?
>>62100108
sessions are generated on the server for the client so no password is necessary for the duration of the session.
Session hijacking isn't easy and is the clients fault anyways.
C O M F Y
P Y T H O N
W O R K
>>62100108
Not sure your posts makes 100% sense, but have you looked at JWT?
>>62100172
But once the session runs out the user will have to log in again. A cookie can remain for years, in theory.
>>62100108
>>62100172
>>62100495
Its the same exact thing with a little extra state in the middle. It really doesn't make a difference. Just do what you're used to unless you have a reason to change that. Also, you can just use JWTs for session state if you want the best of both worlds
>>62100592
What I do and have always done is set a cookie with ID and PASS to a folder /cookie on the server, while simultaneously set a cookie with the SESSION on /. That way the SESSION cookie can be used to authenticate the user on a page per page basis, while the password is only transmitted when accessing the /cookie folder. Once the session runs out, the user is automatically redirected to /cookie in order to renew the session. This obviously does not protect against cookie theft but I don't see how that's possible from server side at all.
how do you get css transitions work with the initial value of height?
I have this:.collapseButton{
transition:2s;
}
.collapsed {
height: 0px;
}
when the button is pressed, the collapsed class is added to it, and the height should transition to 0. Instead there's no transition at all. I can get it to work by giving the button a fixed height, but I want it to go off the initial height;
>>62100907
https://jsfiddle.net/w8jwLcmm/
>>62101165
but this is using a hardcoded height value. What if I needed it to transition from the initial height?
>>62100828
Just make cookies useless on their own for important things. Make sure forms use CSRF, and make sure JS has no access to cookie data by serving them with an httponly flag
>>62101249
hm, came up with this.
https://jsfiddle.net/w8jwLcmm/1/
there is probably some other way as well.
I'm still using Perl for all of my backend stuff and I enjoy it more than any other language thanks to my willingness to ditch CGI.pm and not having to work on any legacy code. I really wish it wasn't such a cult language these days. Its just as good as Python and Ruby and often as fast or faster
>>62101353
thanks for the help, but I actually managed to get something working using.content {
transform-origin: top;
transition: transform 2s;
}
.collapsed {
transform: scaleY(0);
}
It has a neat little child scaling effect as well, which I turned out liking. Will keep your solution in mind though if I need it without the actual scaling.
>>62101369
If it works for you, why does it matter that it's a cult language?
Is anybody in the UK? How much should an entry-level job pay?
>>62101569
I'd have to write a hell of a lot less REST API wrappers for one. Also there'd be more work. The startup I work for is still a couple of months from launching their product, and I'm stuck doing shitty PHP freelance stuff for spending money. PHP makes me drink and PHP helps me pay for it. Its killing me
>>62101621
Well you could always put in the effort to push towards making it more than just a cult language but doubt you want to put that much effort into something if you're complaining about php lmao
>>62101687
Well I'm lead dev at a startup that uses Perl, and sooner or later I'm gonna start pushing a lot of the modules I wrote for our product onto cpan, but for now I just want to complain and drink. Its Saturday and I spent the week writing WordPress plugins to replace shitty unmaintained ones on a client's site
>>62101621
why do you dislike writing php so much?
>>62101621
>REST API
That's deprecated technology tho
>>62101942
Its not even a technology first of all
Wait is React completely useless now after the patent shit? I just spend this entire week trying to learn it. Fuck me and fuck this shitty field. What should I learn now?
>>62102235
Yea the spec-less nature of "REST" is shitting
>>62078062
how does it feel being contained in a general because /g/ doesn't think you are real programmers?
>>62102298
If direct competitors such as Google and Twitter with real legal departments are fine with using React, do you think you'll be in trouble?
What's the most agreed-upon/efficient way to do collapsible divs? I use bootstrap's data-toggle='collapse' for static elements and jQuery's slideToggle() for dynamically generated elements
The second one feels laggy as hell tho
>>62102298
>>62102344
whats this storm ive been occassionally hearing about over the past few weeks re react?
>>62102415
Facebook disregards the BSD license and added an additional patent. Basically if you sue Facebook you can't use React. This triggers the FOSS neckbeard.
>>62102491
i dont see why i should be concerned about this as a developer.
>>62102415
Mostly Hacker News nerds going doning-kruger, thinking they know law and making a sweeping conclusions, case in point:
>>62102491
>>62102314
Why would I care about what /dpt/ thinks. The fact you feel the need to shitpost about "muh real programming" says enough.
>>62102415
>>62102491
>>62102511
The possible issue is, that if Facebook violates someone patent or license, then that person can't take action against them without also losing the right to use React in turn.
>>62102604
Not him but do you think this will drastically change the usage of react by companies? I can see it being a problem for large companies that are competitors to facebook but for small to medium companies? I'm just trying to decide if it's worth to learn react as a career choice.
>>62102690
Can you name bigger/more direct competitors than Google and Twitter?
Because they use React.
>>62102735
But this change in licensing just happened right? Maybe they have plans to change it now?
>>62102821
No. The PATENTS thing existed for many years and was recently slacked a bit after collaboration between Google and Facebook
>>62102690
No idea, but probably not a big impact in the end, because most will probably not really care about it.
So I guess it would be foolish to say, that it's no longer worth to learn React because of that.
>>62102821
No that's how it always was.
Recently they just affirmed, that they don't intend to change their patent license at the moment.
>>62102298
it's not. also there are drop-in replacements like preact and inferno
>>62102314
/g/ is full of neet fizbuzzers and gaymer consumerists faggots. why should I care about their uneducated opinions?
>>62102553
this
>>62078062
How can I get a link to open in explorer?
I'm trying to create one web page to quickly access all sorts of things in my network, and I want this link to open smb links in explorer
I'm currently trying pale moon on this old computer, but I swear this browser is far slower than normal firefox.
>>62103584
I heard that at least preact might have some copy right issues and therefore not a safe future, is this correct?
>>62103902
https://blog.cloudboost.io/3-points-to-consider-before-migrating-away-from-react-because-of-facebooks-bsd-patent-license-b4a32562d268
yeah, it looks like that might be the case
although I can't see facebook using this in practice. imagine the negative publicity, or better yet, the insane amount of positive publicity for whomever gets sued.
What are peoples thoughts on Go for web dev?
Do any of the free or paid courses have sections on webpack does anyone know?
>>62102298
okay, so I just went through all of this https://github.com/facebook/react/issues/10191
the license can be dangerous if and only if you have a patent and facebook decides to go full evil and just steal your shit. then if you sue them for patent violation, they can revoke your react patent grant and countersue (you can still use react under the terms of the bsd license, but you're no longer granted permission to use facebook's react-related patents, if there are any).
what's also relevant is that all of this shit causes some companies to pick the alternatives over react. but even then, react's popularity is still growing immensely. google, microsoft and apple don't have a problem with the current license. they all use react
>>62104087
>>62103902
>>62105085
As far as I can tell FB holds zero known patents that actually cover anything in react, meaning facebook will not ever actually have grounds to countersue based on react. While I completely understand the ideal situation would be a totally free license, it seems to me that there is effectively nothing to worry about in the current situation.
Additionally, replacing react in an application is pretty trivial. The only reason I might ever actually be concerned about this patent stuff is if somebody is looking to acquire my company and has heard about all this license nonsense (unlikely). If that could theoretically be an issue I'll take the following steps:
1. Don't tell potential acquirers that I'm using react. Pretty straightforward.
2. Swap react out for preact in advance of any requisite audit. If a potential acquirer is actually concerned about this nonsense then they necessarily don't understand the situation, and therefore they will be placated by a non-solution like using preact.
3. If that's not enough for them and they still complain, I'll just write my own version of react and swap it in (probably using preact for reference). React is tiny and simple, it would probably just take a few days.
any vue nerds here? if i build an spa that has 'forms' that are submitted to a json api, different forms on different routes etc. how would the form handling work with ssr? Would they only be able to view the form with js disabled?