[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/wdg/ Web Development General

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 313
Thread images: 43

File: web_hackerman_general.png (852KB, 824x553px) Image search: [Google]
web_hackerman_general.png
852KB, 824x553px
You can do it anon

>old thread
>>60885076

>Discord / IRC
https://discord.gg/wdg
#/g/wdg @ irc.rizon.net
Web client: https://www.rizon.net/chat

>Getting started
Get a good understanding of HTML, CSS and JavaScript.
Everything you learn will have these as their base.
The Mozilla Developer Network offers a good intro (no matter your browser choice)
https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web

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

>Further reading/viewing
https://www.youtube.com/watch?v=sBzRwzY7G-k
https://github.com/kamranahmedse/developer-roadmap
https://github.com/getify/You-Dont-Know-JS
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md

>Code challenges
https://www.codewars.com/
https://www.hackerrank.com/
https://codefights.com/

>Useful resources
https://developer.mozilla.org/en-US/docs/Web - General documentation for HTML, CSS & JavaScript
https://libraries.io/ - Discover and keep track of open source libraries, modules and frameworks
https://stackoverflow.com/ - Developers asking questions and helping each other
http://www.programmableweb.com/ - List of public APIs
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
https://www.youtube.com/user/shiffman - coding train

>cheap VPS hosting in most western locations
https://www.digitalocean.com/
https://www.vultr.com/
https://www.linode.com/
https://www.scaleway.com/
https://www.heroku.com/

an in-depth comparison of hosts
https://www.webstack.de/blog/e/cloud-hosting-provider-comparison-2017/
>>
What's gonna be next after node.js /wdg/?
>>
File: meagan-good.jpg (809KB, 996x1328px) Image search: [Google]
meagan-good.jpg
809KB, 996x1328px
redpill me on making web dev a career.
>>
>>60918910
Go maybe.
>>
long hair as web dev?
>>
>>60918989
Youll get tired of it very soon. Lack of actual development since youre always gonna use somebody elses code.
>>
>>60919040

>Lack of actual development since youre always gonna use somebody elses code.

well can't use just create your own code (on side projects)
do you have any side projects?
i got told learning to code is like getting superpowers
>>
>>60918989
Webdev is easiest and most visible of development fields. That unfortunately means it's also most vulnerable to incompetent people who are looking for easy money or for bad jobs.
>>
>>60919081
is software dev or game dev is "better" route?
>>
File: Ken_n_dennis.jpg (19KB, 310x201px) Image search: [Google]
Ken_n_dennis.jpg
19KB, 310x201px
>>60919095

is no better

depend about what is you want
>>
>>60919095
Don't ever do game Dev.

T. Game Dev degree who skipped class to learn web dev
>>
>>60919159

can you elaborate on that? i trying to make a game with unity at the moment. ( i know, i know)
>>
is react native dev or webdev? In which general can i complain how shit macs and xcode are?
>>
>>60919401

What?
>>
>>60919401
It sounds like you're talking about the iOS app, building and deployment part of React Native, since I think that's the only part that requires a Mac/Xcode. Since you never actually encounter that with regular web dev, I'd say probably stick to dpg for that rant.

If you want to complain about React, or Apple's webview or something, we'd be happy to hear you out.
>>
>>60919238
Web Dev pays more.
Less hours. Freelance.
120k to do full stack development for Healthcare.
>>
>>60919081
Is there still plenty of room within the field, provided your're halfway decent and have some initiative in learning/making projects? I keep hearing about people who go through entire curriculums for some sites that teach you how to program, but don't know how to take those lessons outside the site or even know how to use a command line.
>>
File: untitled-1-01.jpg (467KB, 800x600px) Image search: [Google]
untitled-1-01.jpg
467KB, 800x600px
>>60919838
Then, with all due respect anon, they didn't learn shit. A "portfolio", even one filled with retarded floppy bird clones and another fucking to do app is a sign you learned something. If you can't actually do anything, you didn't learn, you gained the feeling of knowing.
And y'all niggas don't have a good enough metamemory to discern between the two.
Also, yes, there is plenty of room, depending on where in the world you are. The more western and the more memey, the better.
>>
>>60919884
I completely agree, but I didn't know how high or low standards were in hiring, especially for sub-$50k/year jobs. I'm still very much getting a feel for the field and programming in general, so I've been doing a lot of research, which comes with picking up on a lot of anecdotes and horror stories.
>>
>>60919965
Supposing you have 0 connections in "the industry", a place would be good if you can apply at least at one new job posting a day, online. Two is optimal. That would mean you should receive 1-2 calls per week and 1-2 interviews per month, given you're minimally competent, with a decent enough portfolio but no other experience.
At least that's how it was for me. You can put this anecdote with the others.
>>
Anyone got a good Vue.js project I can browse to understand structure and internal logics?
>>
blog post incoming

My life is fucking hell right now. I'm neet (with decent bennies
so no complaints there), living on my own, with a few friends calling
me all the time to go out and do shit and I just ignore them cause I
don't wanna do anything but stay at home and code. Thing is, I get
frustrated easily so maybe I'll spend 3 hours total (on a good day)
coding and the rest just pissing about and jerking off and I can't
seem to break this cycle of getting excited about coding and then
dropping it when it gets a bit tough. I feel like I'm making progress,
I'm definitely learning, but not at the rate that I'd like to, and I
keep getting more and more depressed. For the last three weeks I've
left my place just twice a week, to go buy some groceries. My only
social interaction is making up excuses on whatsapp not to go out
and shitposting on /wdg/. My only hope is to get a job soon so I'll
bef forced out of this shithole. Fuck my life. Tomorrow I'm going
to a hooker's (yes, I'm a degenerate), my first time ever, but I
need some human contact and I'm hoping that will shake me up a bit
and get me motivated about something. Plus I'll get to come with
another human bean next to me for the first time in more than a year.


Feels like I'm stuck in an eternal for-loop of shitty javascript hell...
>>
File: y4W6E[1].png (57KB, 750x475px) Image search: [Google]
y4W6E[1].png
57KB, 750x475px
Is there a script that automatically displays the schema of a MySQL database down to the level of table structure, and allows me to write comments for tables, databases, and even columns?

Management at work can't seem to keep track of documents and it's getting annoying having to answer the same shit over and over again. It's to the point where I spend more time answering stupid questions than working, and they're wondering why productivity is down the drain.

I mean I can make it myself in laravel, but I'd rather not waste time remaking something if it already exists.
>>
>>60918989
Apply until you get one.

You have to know shit though.

After the first job, if you have enough languages on your resume, people will actively seek you out to hire you.
>>
>>60920208
Currently making an svg icon picker so I could easily narrow-down my icon selections
to be used for each project. Still needs some more tweaking/colors and after I'll start filling it with more svgs.

https://liquidnuker.github.io/r_svgIconPker/
>>
Quick life recap:

>24 year old neet computer games technology university student dropout with 2 failed suicide attempts and hasnt ever worked a day in his life
>Given self one year left before i finally commit, this time not failing

Ive decided the only way to turn this sinking ship that is my life around, is to self learn and try to be somewhat succesful. As someone with 0 experience in web dev, but lots of experience in general coding (C++, C mostly), how long would it take to learn web dev to a point where i could realistically earn a reasonable income purely with self learning? I have absolutely 0 to lose and 0 to do elsewise so would devote all my time to it. My only fear though is that its too late to even bother.
>>
>>60921099
I was in a similar boat.

I said if I wasn't a web dev by the time I was 30 I was selling everything, going to Thailand to impregnate as many as I could, and then dying of the AIDS I undoubtedly caught.

Was 100% serious.

Half a year ago I got my first job. Just got a raise a week ago. Interviewing at another place with a 42% pay bump tomorrow morning.

If you know C++ then go for Python or PHP. You will find a job in either of those. If you start learning the structure of the language, the syntax, and read about all of the special array functions like array_reverse and the different types of sorting then you will pass almost any whiteboard question (they all have to do with arrays for some reason). You will get a job after 3 months of learning. Apply literally everywhere related to web dev.

Since you don't have a degree, don't bother with recruiters. Actually ignore them. The job listings that are obviously by a tech lead or CEO are what you are looking for.
>>
>>60921231
>and read about all of the special array functions like array_reverse and the different types of sorting then you will pass almost any whiteboard question

that sounds easy enough. But what about actual webdev knowledge? Do they ask anythying like that? You know, http protocols, tcp/ip, how a server works, caching, authorization, SQL stuff, any of that?
>>
>>60921267
Depends on the position, the pay, and how desperate they are.

Always reply to CEOs and CTOs or actual web developers. If they are emailing you then they are desperate. Desperation is how I'm building my career right now.
>>
Bros got my first interview on Monday, wish me luck. I think they're using a combo of Angular 1 and 2. How should I prepare for a whiteboard (if there is one, dont know yet)?
>>
guys
what kind of JS framework/ (or dare I say flash? ) can I use to make one of those 'web applications that lets users pick a color or like a tile and see it visualized on a picture/room kind of thing? Just any help or diction for me to read/learn about it would be awesome
>>
>>60921688
Trust me on this. Study the normie interview questions.

What are your hobbies?
Why do you want to leave your previous job?
When was a difficult time at work and how did you handle it?

Stuff like that.

I fucking NAILED EVERYTHING at an interview once besides these questions.

"What do you do as a hobby?"
Well, web dev is my hobby so I make websites all the time.

Wrong answer.
>>
How much are you expected to know for an entry level web development job?

I've done several freelance projects - a few brochure sites, an e-commerce store, and some design stuff - logos, pictures for sites, etc. I have a good handle on HTML and CSS and basic Javascript and PHP, and random stuff like git and Adobe CC. Should I look for a web design gig or focus on learning more PHP?
>>
>>60921749
I should also mention that I was talking to all of the web developers when I said that. They all got silent thinking I was cracking a joke, then realized I wasn't and said "Alright, I think we have enough"

One of the most embarrassing moments of my life.
>>
By the way, connor, are you here?
>>
>>60921754
>entry level web dev job
doesnt exist
>>
>>60921841
Yeah it does. I'm at one.

One dude didn't even know the language when he got hired. Just had a degree and new a differentlanguage.
>>
>>60921749
Is vidya games a bad thing to say as a hobby?

Because that's probably my main free-time activity outside of programming. I could say something like reading, or running or something, which is certainly more normie friendly, but less true.
>>
>>60921749
Thanks, for those tips, I'd be going over algos/data structures all weekend and not think about this. what kind of tech questions did they ask you as far as algo/ds?
>>
Company I'm working at has a bunch of educational webapps, and basically my boss wants a bunch of flexibility with exercise style (prompts with inline equations, arbitrary number of diagrams, tables, lists of block equations, etc), and different input methods (drop-down lists, multiple choice, and equation/numerical input). Currently, we have pretty rigid models that outline a very specific composition and structure of how each problem type is represented, so there isn't very much flexibility. I've pretty much identified that each exercise has a few basic parts (ID, prompt, display block of equations/images/tables/etc, user input, and a "help" section), and the content of each of those parts changes from exercise to exercise, so I'm wondering if I can change up the exercise model to be more "generic" by just explicitly defining each of those basic parts, then populating the specifics of each exercise in the db.

How retarded is this?
>>
>>60921865
so you applied to a random job ad with zero experience and got the role? i dont believe you. what location is this.
>>
I hate node
>>
File: meh.jpg (9KB, 255x256px) Image search: [Google]
meh.jpg
9KB, 255x256px
>>60920458
nah man fuck the hooker and chin up.

just take a break, like, for a week or maybe 3 days. go out with friends, catch up, play some vidya. If you just force yourself to have fun I promise you'll start having fun. as far as coding goes after you get into a groove socially then you can start to make time to code for a few hours.

you can't code if you're unhappy my dude
>>
>>60921920
He knew java.

I got the job with no degree and no work experience, but I know the at a high level.
>>
Somebody suggested SnappySnippet to me but I'm a bit confused on how to use it.

I was wanting to look at the CSS for a profile on a website, as I'm curious as to what some of the code is for what is displayed.

Tips on how to use it?
>>
Building my search engine (wibr.me). It will only index lightweight pages that do not use much css or ads. I want to build a web of pages that are created by hobbyists about topics of interest to them. Kind of like how the early Internet was.

If there are any lightweight pages that you know about, you can help me out by submitting some.
>>
Uber was made illegal in my country and I need a fucking job right now. I know some python and Java, and the web languages, at college dropout level at least, but I need to fake some work experience, I'm going to ask an uncle that works in a large company for some fake references. Have anyone here pulled this off?
>>
>>60919838
There is plenty of room if you can prove yourself. Getting your first job is hardest part. Too many useless people interested in that good money competiting for intern /junior positions but they can't often even do a proper fizzbuzz.
>>
Why in the fucking hell that cunt called Angular 1 cant understand that a fucking ajax resource has a goddamn iso-8859-1 charset, when it clearly fucking written there in the damn response headers?! Even jquery gets it right, what the fuck.
>>
redpill me on ajax
>>
>>60921754
>I've done several freelance projects - a few brochure sites, an e-commerce store,

you're ready, man. Put that shit in a nice portfolio and spam your CV to death. Seriously.
>>
God I feel so weird being 26 and still in college.
>>
>>60922509
>wants us to do his work for him
what do you think we are? plebs?
>>
Any ideas for RESTful APIs that you guys need/want?
>>
>>60924466
that question would only make sense if you are from Google or something.
You need some data or service first, before you put up an API for it
>>
>>60924549
data is everywhere. You can either get it from government databases or just scrape it
>>
Do you all have job experience?

Will that fuck me over?
>>
>>60924598
I make and run scrapers all the time.

I was thinking something along the lines of: you request a domain, and you get a JSON of all emails associated with that domain that I scraped, along with the source and date when I it was collected.

I haven't seen something like that and I'm wondering whether that's because people won't give away that data for free or because they legally shouldn't.
>>
>>60924719
Also, it would look for patterns in emails using basic machine learning, so if you request a domain along with a full name of a person, it can guess a likely email of that person at that company's domain.
>>
anything that you would recommend so i could git gud with html and css?
>>
>>60924917
checked out the OP?
>>
>>60925063
i need booooooks resources idk
>>
>>60924366

I was that age my senior year. What's so weird?
>>
>find the perfect job listing
>requires a degree
fuck me, this happens constantly. how do i get around HR?
>>
>>60925076
Do FreeCodeCamp. They kinda teach you to teach yourself, especially when it comes to doing the projects.

Also, it's been years since I last posted on 4chan. Why in the world do you put up with these fucking pictogram Captchas?
>>
>>60925076
Are you the book-learner guy from the recent threads?
Finding proper books to learn web technologies is difficult, when you compare it to the easy access to all the other online resources.

OP has this list of books
no idea how the quality of these are
https://github.com/EbookFoundation/free-programming-books/blob/master/free-programming-books.md#html--css
>>
File: thehideaway_chickenburger.jpg (2MB, 2880x1800px) Image search: [Google]
thehideaway_chickenburger.jpg
2MB, 2880x1800px
Any frontend devs in here wanna collab with a backend laravel (php) dev to make something awesome?
>>
>>60921934
because you're retarded, it's the best backend env by far
>>
>>60925089
It just feels like I'm 40 years old compared to all my classmates. And if anyone asks for my age and I tell them they definitely go, "Oh..". I don't know. Also I feel like it's creepy to try to date any girl.
>>
File: CDA7o.png (127KB, 600x857px) Image search: [Google]
CDA7o.png
127KB, 600x857px
>>60921749
>>60921762
That answer isn't ok?
Hard to believe, that other devs would be weirded out by that.

Don't want to lie and tell them "yeah I do lots of sport, hiking, meeting new people"
I am a lanky awkward fuck who is interested in IT and (web)dev. Of course I am not into normie hobbies.
>>
I want a react component to render a list fetched from a server. Let's say, movies with dates.

{0:{"movie":"movieone","date:2000"},
1:{"movie":"movietwo","date:2010"}}


I want the user to be able to pick between sorting by date or sorting alphabetically. Is it more React like to query the server for the list again, but this time sorted by the selected method or to reconstruct the list by looping through it and ordering in the selected manner. I'm leaning towards the second way.
>>
>>60925523
you don't have to feel bad man. we all have different paths, it's okay. if they don't like it fuck em. gently.
>>
How do i do this, how is this called
When i click on button to show some hidden form, not like modal but just to show it, like it was always there
>>
>>60926013
Toggle display:none visibility:hidden or opacity:0?
>>
>>60926077
this is what i wanted
>>
>>60926077
this is what i wanted
http://jsfiddle.net/didierg/fQVv6/
>>
>>60925379
>javascript
>best anything
I will never understand why people want to use a language that was made in 10 days when they aren't absolutely forced to. This whole "native JS" thing is fucking retarded.
>>
File: React-a-Angular-2.png (101KB, 400x236px) Image search: [Google]
React-a-Angular-2.png
101KB, 400x236px
Hello,

I know there is a small chance, but I'll ask anyway. Is anyone here a front-end developer looking for a side project? I plan to start working on a new opensource imageboard software written in Java using Spring during summer, but I don't know shit about web design, except for some basic html and css. So ideally I'm looking for bored Angular/React/something similiar developer, who would design a front-end and I will provide the REST API. The only reward you will get is that you can add this to your portfolio, obviously I won't get any money from that either, it's just a fun project to learn new things and experiment a little bit.
>>
Can anyone recommend me a good book on PHP?

I'm reading "the Joy of PHP" right now and it's kind of sloppily written.
>>
Hi /g/ays

Want to make a crazy fast forum that doesn't lag like all the other crap.

What kind of VPS do i need to do it? (traffic about 500 peak)
What platform should I use?

Is nodeBB any good?
>>
>>60923660
Why the fuck are you using anything else than unicode?
>>
>>60923673
It's a fucking concept - there is nothing to redpill.
>>
>>60926501
>Want to make a crazy fast forum that doesn't lag like all the other crap.
Believe it when I see it.
For VPS
>pick smallest one
>when you need more, migrate to next larger VPS available
>>
File: keep-calm-and-react-js-3.png (40KB, 600x700px) Image search: [Google]
keep-calm-and-react-js-3.png
40KB, 600x700px
Why is using redux-thunk considered anti-pattern
>>
any idea why if i run a php file that sends emails through command line it doesnt work but when i run it through a web browser it works?
>>
>>60927118
the server has permission and you don't?
>>
>>60918989
it pays ok but ruins your body and temperament. if could go back i'd study horticulture
>>
>>60920458
maybe get a manual labour job for a bit, will do ya good.
>>
>>60926212
it's not retarded as it seems, JS is maybe the fastest interpreted language on server side (2x to 5x of python and ruby), you can use server side rendering seamlessly, you will find any library you can think of
>>
>>60927538
PHP is the best back-end language ever made.
>>
Is it possible to use some kind of client-side service to broadcast one user's changes to the DOM to all other users?
>>
>>60927729
websockets?
>>
I want to build a website that allows you to upload pictures. It's very likely that the picture chosen to upload will be the same as one that already exists on the server. What's the best way to avoid unnecessary uploads/downloads?
>>
>>60927730
How does it work? The server receives a message from a client that has made changes to the DOM, that message contains the updated HTML and the client serves that?
>>
>>60927729
>>60928147
I have something like this, it doesn't scale very well though I assume.

I have a nodejs server running with a list of current connected clients using websockets and listen for client changes
When a change occured I update the server state and send all clients a message with the updated data, this is debounced by 1 second so the clients don't get spammed by others.
It's just looping through the client list and sending the data one by one.

I'm not sending markup though, data only.
>>
>>60918989
Depends on what you do. WordPress is kys tier; all sorts of crap (Not just PHP, but ancient, pre-namespace & composer autoloading PHP) and you will have a hard time deciding whether to kill your customers who don't know what the fuck they want, demand that you re-do things for free when they changed their minds and continuously threaten not to pay you while simultaneously threatening to sue you if you don't provide the code regardless... or kill yourself instead.

Anything to do with PHP is horrible.

Node.js too.

And the fucking frontend... You will learn to loathe the fucking fucktards who insist on using IE. Even IE 11 is pretty much ancient right now and definitely holding the web back.
Expect to test your code in Chrome and Firefox and have it work perfectly, only to have IE and Safari (especially the IOS version) vomit all over it.

And have fun re-learning all your frontend tools and libraries every few months, every time a new, "obviously superior" module bundler, less standards compliant and with an even less comprehensible configuration gets released to bundle your newest meme.js frontend framework which takes longer to build than a 10 million LOC C++ application with tons of template metaprogramming.

I lied. It doesn't depend on what you do. It always sucks.
>>
>>60928078
send a hash of the file and check against a list of hashes of existing images on the server
>>
>>60928366

That's what i had in mind but I wasn't sure if I should worry about collisions and how I would handle that.
>>
>>60927083
? who says that
I'm using redux thunk inside a API middleware in a large scale SPA and it works flawlessly.
>>
>>60928264
Fortunately I'm only using this for a LAN site and I want to keep it very simple. I thought it would be easier to send the full document to the server which could then serve the updated document rather than messing about with formatting the document server side.
>>
>>60928395
that's a theoretical problem that's been solved many times over for all practical purposes. Just google how to avoid collisions.
>>
File: index.jpg (8KB, 276x183px) Image search: [Google]
index.jpg
8KB, 276x183px
A company has contacted me with interest in interviewing me for a job position.

They contacted me yesterday but I've only just seen it.

Should I reply immediately or wait until Monday morning?
>>
All this React and Redux plus all the libraries to do a simple app it killing me lads, how did you got started and go past all this confusion?
>>
>>60928933
do it today faggot
>>
>>60928933
Monday you'll be asking for another excuse.
My advice: don't be a faggot
>>
>>60928933
Seems that you are overthinking this, just reply that's it
>>
>>60928975
>>60928985
>>60928988
It's the evening here though (UK), isnt there such thing as out of hours?
>>
>>60928998
And? then they'll see the reply you sent Monday mourning, no big deal
>>
>>60927118
CLI and server have different configs.
>>
>>60928966
You do know that all this crap is actually optional?
>>
File: classdiagram4.jpg (90KB, 847x736px) Image search: [Google]
classdiagram4.jpg
90KB, 847x736px
Can someone tell me the diference between a class diagram and a database diagram? To me they seem very similar except for the database diagram not having functions.
>>
>>60929298
Class diagram is about classes and database diagram is about database? They are different things although there may be similarities because some classes are usually models that are based on database tables.
>>
File: fkSORepu.jpg (18KB, 400x400px) Image search: [Google]
fkSORepu.jpg
18KB, 400x400px
>>60929231
Is it?
>>
>>60927380

i wanted too but it pays like shit and i'm poor and need money asap
>>
>>60928356

t-thanks
>>
>>60928356
>WordPress is kys tier
Can confirm. I started learning it recently because I wanted something where customers will be able to update text and stuff themselves. Every second reading their documentation depresses me.

I think I just need a much, much lighter weight CMS, and I'm considering just building one myself, even if it means I have to build my own wysiwyg editor for adding basic html tags for formatting, plus actually dealing with the database, plus adding my own security/authentication.

Or I could just teach people how to use markdown and set them up with deployment with Jekyll.
>>
I want my webapp to be private and only users that receive some kind of token and paste it in a login screen can enter. I don't want a username and password, just a token, and that token can be used by many, but it has to expire after X time. Does anyone know an npm package or something with similar functionality? Preferably for nodejs.
>>
>>60921099

24 years old

you are young as fuck bro

some people as old as 40 are just starting to learn web dev and getting hired these days
>>
>>60928966
>>60929377
Tackle them one at a time.
Learn the basics of React first:
Learn how to write reusable components that change what they display in response to their props. Try to understand (and avoid) state. Learn the basics of the lifecycle.

only then should you look into Redux. It's just a fancy central storage for your app state that you only modify through defined objects and pure functions. You don't have to use it if you don't like the approach, but I found it to be very powerful and simple at the same time.

The official documentations for both React and Redux are good, just work through these and program alongside and you will grok it easypeasy
>>
>>60929377
They are all based on idea that your webapp must be SPA. Except that traditional stuff works more than enough well. Probably comes from fact that there is big difference between what's talked about and what is actually used.
>>
>>60929451
There are html editors available like tinymce.
>>
>>60921099
Killing yourself is easy as shit, retard. "Failed suicide attempt" basically means "look at me I need attention".

Jump off a cliff I assure you, you won't fail.
>>
>>60929513
JWT
>>
>>60929592
>t. PHP+jQuery pagelet
>>
File: 1486898896855.png (1MB, 1000x1000px) Image search: [Google]
1486898896855.png
1MB, 1000x1000px
>>60929617

ice cold.
don't kill yourself bro. this world is a shithole at times but it can be beautiful.
>>60921099
>>
>>60929690
It works. Considering what kind of clusterfuck SPA building attempts usually turn to it actually works better usually.
>>
Opinions on w3schools?

Their website looks pretty nice.

>>60929582
I hope it isn't too late because I'm 28 and I just started with 0 knowledge on coding.

The thing that really bothers me is that my shitty job not only drains my soul and will to live but also my time.
>>
is doing the following so bad if you dont know regexp?


if( preg_match() && preg_match() ) {

// do this

}

>>
>>60929773
jQuery turns into the mother of all clusterfucks when your site has grown beyond fetching a few things via AJAX here and there.
>>
>>60929794
>Opinions on w3schools?
S H I T
I specifically installed a search result filtering addon just so I never had to stumble upon that turd of a '''resource''' again
>>
>>60929794

check this channel
https://www.youtube.com/channel/UCu1xbgCV5o48h_BYCQD7KJg

try to buy some cheap courses on Udemy
or try TeamTreeHouse

also DO NOT LEARN WITHOUT CREATING AT THE SAME TIME
>>
>>60929614
I guess. There are some things I want more control over though. I guess markdown wouldn't quite cut it in this example, but currently my method of positioning a text block is by piggybacking off of inline styles applied automatically by the WordPress page editor.
>>
>>60929881
>>60929882
Thanks.

I started using code academy, I can already feel the hand holding and slow pacing.

I'll get the basics and then start creating some stuff.

I swear I'm gonna make it fucking hell.
>>
>>60929591
Thanks anon
>>
>>60929794
w3schools is bad

If you're looking for guided courses, I've heard good things about treehouse, but no experience with it personally.

If you're googling looking for an explanation of some random CSS property, don't click the w3schools links, use MDN (Mozilla Developer Network) or something instead.
>>
File: pepe wine.jpg (6KB, 200x185px) Image search: [Google]
pepe wine.jpg
6KB, 200x185px
>>60929941

That's the spirit
put those balls on the table, no homo
>>
Holy Shit, I was just doing some testing on the create-react-app for easy Heroku deployment and noticed that Atom was running very slow and laggy, then I see that it appears to be managing 250.245 files for the folder and the info of create-react-app shows more than 20.000 files, is this normal?
>>
Had my interview. It was a little odd. Their lead dev asked me if I used a certain framework. I said no, but I could learn it quickly and then she walked out.

Apparently being a vanilla PHP dev I was expecting some more PHP related questions and not framework since everyone uses a different framework.
>>
>Trying to learn CakePHP
>Find video
>guy starts talking

https://www.youtube.com/watch?v=KFASmgTwSu0
>>
>>60929998
Wouldn't surprise me. I went through Google's basic Angular introduction project a while ago, and that has about 12000 file, mainly in node_modules. I think it also had some stuff about a unit testing tool and an end-to-end testing tool, so I guess those and their dependencies are also in there, but it's still a lot.
>>
Mates. I need to go to school for this shit. There is just so much to learn and take in. You guys are fine with your websites and books, I need school.
>>
>>60930402
what school?
>>
>>60930402

you mean bootcamps

i'm actually trying to get in one. paid by the government tho or i would have to pay like 4000 euros.
i'm getting ready to be interviewed by some companies beforehand.
>>
File: will-smith-the-fuck.gif (487KB, 381x268px) Image search: [Google]
will-smith-the-fuck.gif
487KB, 381x268px
>>60930107
>wants to learn something
>cares about who he learns it from

learn the shit you need then fuck off?

what are you crying here for
>>
New to web development, what term should is search to find a tutorial about giving my customers an interface so they can upload their own content to the webpage, like blog post and stuff like that
>>
>>60929941
check out pluralsight, google "Plural sight free account" and you can find a way to get 3 months for free. They have some good stuff, at least check it out before you actually pay for any courses.
>>
>>60930132
Welp thanks for responding, I guess it's just normal now
>>
>>60930485
fellow europoor here. What bootcamps can you get in with gov bennies?
>>
>>60930534
watching a video with a shitty, disgusting accent is the same as reading a book with a shitty, disgusting font. Sure, you can make it through, but it fucking hurts. That poo-in-loo accent is horrible, can't stand it for more than 5 minutes.
>>
>>60930534
dyou whant ta figr oot wat eyem tryan ta say n ahl dat bat u reelis thut it es rally annoyoon ta huf ta figr oot wat eyem tryan ta say.

eyem woonten ta larn aboots dat cokepee AYE-ch-pee bat eyem havn ta speend braynpooower ohn woot dat curryturd is trying to say.
>>
>>60929998
Stop using Atom
>>
File: IMG_8686.jpg (125KB, 692x1046px) Image search: [Google]
IMG_8686.jpg
125KB, 692x1046px
> unironically hating WordPress

WP = profit

PHP in general is good to know just for getting your foot in he the door at a marketing agency or company. WordPress is a good start because so many websites are using it and many clients will choose that because of the availability of resources. Pic unrelated
>>
>>60930643
>>60930654
>accent bothers you
>cries about it on /g/ instead of locating a teacher that fits his preference
>>
>>60929451

> teaching clients to use markdown
> implying they wouldn't fuxk it up on the first deployment
> implying they wouldn't fire you after realizing how much it will cost to get maintenance or tweaks implemented
> implying they won't eventually move on to squarespace, weebly or wix because you had the nerve to suggest they download an editor and fuck with code

Have fun being broke. At least you'll get (You)s for hating WP.
>>
File: ....png (394KB, 402x583px) Image search: [Google]
....png
394KB, 402x583px
>>60930681
I got this a while back.
>>
Can digitalocean or heroku handle production ready applicatiors or are those platforms just for testing?
>>
>>60930599
Neat, thanks for the tip!
>>
>>60930873
https://absolute-sharepoint.com/2015/12/free-pluralsight-6-month-subscription.html

https://devopscube.com/pluralsight-free-subscription/

It used to be 6 months free, now it's down to 3, but you can still burn your old account once it expires and get a new one. They don't cover many languages, but see if there's anything that interests you.
>>
>>60929998

I created another create-react-app document and it had the same number of items, however now Atom shows 2 files instead of fucking 250.236 which was obviously causing issues, so problem fixed and seems it was Atoms fault
>>
>>60929851
True. But at least it's usable clusterfuck. SPA clusterfuck means long loading times and shitty UX because bad devs can't duplicate normal browser UX.
>>
VScode is

ELITE
L
I
T
E
>>
>>60931172
>considering anything other than your personal riced vim/emacs elite
kek
>>
>>60931172
i'm liking it too, never thought i would
>>
What am I supposed to use if I were to make a simple website for some random ass local company?
>>
>>60931291
Don't overcomplicate it. Get yourself a LAMP and bash away at things.
>>
>>60926501
ssdnodes
>>
>>60931291
your hands, unless you're good at typing with your tongue or nose.
>>
>>60931172
There are people still using the sublime meme instead of the superior VS Code. Microshit is really stepping up
>>
>>60930746
Yeah, it's kind of unrealistic. I'm sure I'd get something along the lines of "I typed in a hashtag and it doesn't show up on the website? wtf?"

I don't know if I want to deal with continued hosting and making updates in perpetuity. I guess the monthly fee would make it worth my while.

What's a standard amount to charge per month to include hosting, domain name, probably security cert, and occasional updates to content?
>>
>>60931126
>SPA clusterfuck means long loading times
Not necessarily.
If you know your way around webpack and don't import bloated shit in your app, bundle sizes are easily below 1MB.
And even if the app would get bigger in total than a non-SPA: due to the way HTTP1 works, it's faster to serve a single large bundle (+ css) instead of requiring a shitload of resources (Bootstrap, jQuery, ...) all over the place.
And that's not even talking about Server-Side-Rendering....

>shitty UX because bad devs
bad devs are gonna be bad devs, doesn't matter which tech
>>
>>60931342

i wouldnt consider coming out with a decent text editor is "really stepping up"

they still completely missed out on the browser and mobile app market. The only thing M$ has going good right now is Azure and VSCode, and Windows 10 is just meh.
>>
Node project

>set up cron jobs to pull from an api every couple hours.
>after everything is processed it's a very long object.
>couple thousand small strings as key with a numerical value attached.
>if I get that a duplicate string from the api I increment the value.
>Everything is working fine but I have no idea how to implement it into a database. For testing purposes I'm literally just writing and reading from a local json file.

I know fuck all about databases or SQL. I hear that you can use mysql and literally just insert a json obj.

Is it wrong to pull a huge object from a DB to iterate over, then pass the changes into?

I'll have a couple of these going and they'll all be following a similar formats of a few thousand strings with numerical value.

Help pls senpaitachi idk how to store my shit
>>
>>60931505
>use mysql and literally just insert a json obj
if you mean just inserting into a single column, sql is not the right tool for the job.
either have a column per key or use a nosql db
>>
>>60931505
you should learn sql if you're doing web dev. it's fundamental. in the meantime, use redis keys, it sounds perfect for your needs
>>
What do you guys use to get data from an API with React?
>>
>>60918692
My boss is exactly like that guy.
>>
>>60931415
I was talking about clusterfuck. Good code is good in both jquery and SPA.
>>
>>60931505
You can use SQL with just about anything, just google it...
>>
>>60931505
One table, make one column for key and other for value. Add index to key.
>>
>>60919684

Nice. Do you know of anyone doing remote work? I'm disabled and that's the only line of work available
>>
File: 680.gif (86KB, 476x306px) Image search: [Google]
680.gif
86KB, 476x306px
>>60932882
>I'm disabled
>>
>>60933015
Nice reddit image.
>>
File: index.jpg (8KB, 183x275px) Image search: [Google]
index.jpg
8KB, 183x275px
>>60933078
>is anonymous on 4chan where nobody knows hes disabled
>tells us hes disabled anyway
>>
>>60930558
content management system
>>
File: notepad++_2017-06-16_19-39-27.png (40KB, 1469x735px) Image search: [Google]
notepad++_2017-06-16_19-39-27.png
40KB, 1469x735px
/g/, I need to resize a bunch of images to exactly a set of resolutions. I'm using this code but can't manage to get it quite right.

The thing is, I need to do whatever it takes resize and crop to match to resolution but keep the image aspect ratio.

With this code, for exemple, a image needs to be 886x670 but the result is 886x503.

The source image is 640x364.
>>
>>60921099
youre not gonna end >>60927405

fucking this. get some sun and some sweat
>>
File: 1496815596403.png (217KB, 427x640px) Image search: [Google]
1496815596403.png
217KB, 427x640px
is there a way to order a select a query based on how many conditions are met? i have an array[][] of integers and i would like to test an input with the content, if its between X and Y so i would like to somehow rank the output according to how many block of integer from the array it satisfies. i was reading the psql documentation on documentation and it said this

>Tip: If your needs go beyond the capabilities of these conditional expressions, you might want to consider writing a stored procedure in a more expressive programming language.

is it saying i should use a programming language to progressively query into the database rather than write a single query for all
>>
Been learning relational databases, still very early on the course I'm watching but I'm wondering how do I store arrays or lists in them, if each cell should only have one attribute?
>>
>>60933704
Make a new table.
>>
>>60932882
don't companies have some quotas to fill regarding this?
>>
Vanilla php girl, you here?

Have them hire me. Swear to whatever that no CS grad knows PHP and JS at the level I do. My vanilla PHP page has over 4k uniques per day and that isn't as impressive, but it was my hello world into php. I can provide 4 years of statistics towards my sites. I'm a good fit.
>>
>>60933631

Try explaining in a different way
>>
File: images.jpg (161KB, 822x1080px) Image search: [Google]
images.jpg
161KB, 822x1080px
hey guys, I just started working on this book right here. Just some clarification needed: what the fuck is Twisted exactly?
>Twisted is an event-driven networking engine
So you have your Apache, Nginx etc, and these are all web servers. But then Twisted is like one level of abstraction above it, right? Meaning with twisted you can implement any kind of server, be it web, mail, ftp, etc, right? Is that it?

Just trying to learn about networks and protocols and shit, hope I'm headed in the right direction.
>>
>>60934119
twisted is a networking library
like libcurl except with fancy python clothing and more than just the bare minimum necessary for networking
>>
>>60933940

ill just provide an example because im autistic (plib help me ;..;)

i have a table which contain int[] array with data: {{10, 20, 25, 17}, {86, 41, 65, 51}

my test input is {13, 31, 75, 13}

lets say for each value i only need to satisfy x - 5 < x < x + 5

so if i query the table against my test input

{13, 31, 75, 13} against {10, 20, 25, 17} --> {correct, false, false, correct}

{13, 31, 75, 13} against {86, 41, 65, 51} --> {false, false, false, false}

so obviously 2 > 0 so the select query would rank {10, 20, 25, 17} higher (on the top) and {86, 41, 65, 51} lower (on the bottom)

someone from /g/ suggest C# with LINQ and lists but im using java
>>
>>60934173
>a networking library
so my next question would be, what is a networking library?
>>
What's better for a newbie that just wants to do some basic html, css jquery stuff? Gulp or Webpack? I just want to easily manage basic stuff like processing sass, dev server, livereload, etc. I've heard that webpack is good for react but right now I think that's a bit too much for me.
>>
>>60933704
If array has concrete structure (same keys every time) you make table where there is column for each key. If It's dynamic array you make table where there is column for key, column for value and column for identifying array. If you don't actually need to do anything with array (querying by key for example) you can simply serialize it and store it as text.
>>
>>60934224
Create table where each value would be separate route and one column for grouping them together. Then look at this https://www.w3schools.com/sql/sql_having.asp
>>
>>60934468
>separate route and one column for grouping them together
?

you mean have them like int1, int2, int3, int4 instead of using an array ???

the easiest way about doing this (or the hardest) is to first check if the input satisfy all, then all - 1, then all - 2 but it looks like nutjob
>>
>>60934540
I mean create table with two columns - value and array identificator. For array of size 4 you would insert 4 rows where value is one array value and array id is number that is same for those 4 rows but different from all other rows .
>>
>>60934615
Fuck I actually misunderstood on first reading. Thought you are testing each value against one test value.
>>
File: 1497656243400.jpg (25KB, 398x500px) Image search: [Google]
1497656243400.jpg
25KB, 398x500px
>>60934739

either way das a pretty cool way of thinking of arrays mon
>>
File: s6.png (511KB, 650x650px) Image search: [Google]
s6.png
511KB, 650x650px
This is what I came up with today after messing around with a simple javascript raytracer I did in 4 hours.

I was trying to accurately represent a fresnel reflectance BRDF but was too lazy to read actual research papers on the topic and found my way on an improvised specular reflectance function which is still visually plausible in my book

I love everything webdev, but man.. we're still lagging behind when it comes to real time rendering in the browser. Hopefully as soon as coverage for webgl2 will be available for most browsers we'll start to see interesting things in the web
PS: Vue.js > Angular
>>
>>60934929
>fresnel reflectance BRDF

no idea what that is, but it looks cool as fuck. Nice work anon
>>
>>60934929
https://github.com/sessamekesh/wasm-3d-animation-demo
>>
What cms do you recommend?
>>
>>60918692
I'm new to web programming and want to learn both front end and back end programming.
What should I learn (besides JS+Angular) and how long will it take me?
>>
poo in loo por favor
>>
>>60921048
Nice. How did you lazy-load all the separate js chunks?
I couldn't get require.ensure to work in my project
>>
>>60919095
game dev sounds awful unless you made minecraft. all my friends who tried it are super jaded and left the industry for pretty much anything else, including unemployment
>>
>>60935505
django cms
>>
>>60934929
I recently went through a basic webgl tutorial, and I want to learn more about 3D stuff (web or otherwise). What resources would you recommend for learning that stuff?

There are so many things I want to learn about, and projects I want to do, and just not enough hours in the day. I'm currently reverse engineering shitty obfuscated javascript for one project, and then I want to finish making my personal site, and then I'm hoping to incorporate something cool with webgl into it, and the list goes on.
>>
Is there a way to make a local dynamic web page without open a server and a database? I mean, save all my DOM changes and all that stuff.
>>
>>60937453
Save your DOM changes where? You could put stuff in cookies, if you just need to save them locally.
>>
>>60937492
i want the changes to be made for all browser and all PC-s that access that page (assuming the page is on some cloud or a USB-stick). I was looking to save data in a json file, but browser don't have rights to read-write files.
>>
>>60937561
So the same data is accessed by all clients that access that page? The data needs to get between the different clients somehow, and there's not really any option other than having a server in the middle.
>>
>>60937721
I want just to make a dynamic page to set as a new page, make it nice looking with css, background, animation, nice editable interface and all that stuff. It must be working on all computers, work, home, laptop. For now I think to keep just my bookmarks, but don't want to depend on some account or external site. Just my things in my stick.
>>
>>60937818
I guess you could install a server on the USB drive, and then put a script on there that starts it on double click. It's probably fine to have the backend code just writing to a file as opposed to using a database, since it's just the one user.

If you're using it on multiple OS's, you'll want multiple different versions, sharing the same config files and code.

I think running a server on a USB would be fine, but if anyone has a reason why it wouldn't work, let me know.
>>
>>60938043
googled it, i think It can be make it node js. Seems like it will work... tx
>>
>mostly do backend development
>never seen frontend development
>boss gives me a frontend dev project, no clue how to go about it
>start researching

what the FUCK why is frontend dev such a mess? why can't i just write a .js file and include it from html?

redpill me on webpack, what the fuck is it (the docs don't help me, what the fuck is a ``module loader'' and why can't I load my own modules) and why does everyone use it?

I have to make a single-page application so I'm going to bite the bullet and learn how to use a framework. Is angular or react any good?
>>
>>60938509
hey welcome to the front end shitfest where all the womyn and transhippokin get assigned
if you dont know the flavour of the day build `app` you're done, study gulp, webpack, node+npm, docker, bower, yeoman, sass, less, stylus and the 20 actual useful frameworks and libs
>>
>>60938575
From that list, docker is the only thing I have experience with. I have about a week to learn enough to build a fairly complex SPA, how fucked am i?
>>
>>60938509
Well, there are a lot of reasons. The original and oldest reason is because requests were expensive in HTTP 1 so people would group files together to save both server and client resources and make pages more responsive.

From there people started to realize that having a real build system controlling your frontend can be really useful, and you lose a lot of options when you get rid of that degree of separation between your served files and your frontend source repository.

So what are the main things people use it for today? Number one, you can describe dependencies between JS files (or some other language like TypeScript, since now you have that freedom) so that you don't need script tags loaded in a "perfect" order where everything breaks otherwise. Humans shouldn't be doing topological sort and shouldn't be listing dependencies anywhere except for the actual script where the dependency happens.

Number two, you can load scripts asynchronously when you need them rather all than when the page load, which for big applications will add up to a huge amount of script compiling time even if the scripts are already cached.

Number three, there's a lot of other options you don't expect, like loading CSS as if it's a module (since webpack and its alternatives are pretty general). Also, you can tile your icons into sprite sheets so that your icons don't shoot off dozens of requests, and not worry about the specifics since the build system will generate references to the sprites for you.

There's more I can't think of off the top of my head. But the point is, there's real design considerations involved and we've developed these build systems (and languages like TypeScript) to help solve the problem of scaling frontend software projects.
>>
>>60938711
Thanks, this makes a lot of sense. That CSS bit sounds really interesting, I'll look more into webpack
>>
>>60938509
>why can't i just write a .js file and include it from html?

You can, but your code might end up being a mess. Frameworks help you by letting you interact with the DOM in a more sane and manageable way, plus they generally help you organize your code. I've only used Angular a bit, and haven't used React at all, but either is a good choice.

For a single-page application, a framework is probably a good choice, because they're geared toward that model.

Webpack helps you include your dependencies more easily or something. I don't use it personally because I try to avoid using lots of 3rd party crap in my code. But if you end up using multiple libraries or tools that all need to get loaded by the client, then it's worth considering.

>>60938612
You might be fucked if you've never used JavaScript or HTML before.

You can probably pick up some basic Angular pretty quickly though:
In your JS file, you have a function with a $scope object that you add a bunch of properties to. Those properties can be variables or functions.

In your HTML file, you can use {{ myVar }} to access $scope.myVar. You can also add the property ng-click="myFunc()" to an element to call $scope.myFunc when that element is clicked.

There's some basics for you. If you have time, you should read the actual docs.
>>
>>60938612
pretty fucked, the best you can do as a backend programmer is pickup angular or react, angular would probably have a steeper learning curve but once you know whats what getting a decently sized spa up and running is super quick
>>
File: Problem.png (8KB, 409x77px) Image search: [Google]
Problem.png
8KB, 409x77px
Noobie here,

My boss wants a custom css to a specific link of the cms site I'm helping him to run.

This link is generated by a module, it's strictly PHP (Something where I'm not really an expert) and I don't wanna modify that.

It outputs a div container with a span so I was thinking, can I add a custom CSS rule that targets just that specific span (In this case, the name inside the span) and be done with it?
How can I do it?
>>
>>60934739
You can still use my first solution but you have to add column for index and write 4 conditions into having.
>>
>>60937561
Just get server or hosting. You are thinking about making simple shortcut but unless that site only lives in your local network that shortcut will end up being more complicated and difficult than doing thing properly.
>>
>>60939379
You could give the span an ID or use the pt_menu_link ID in your css rule
>>
File: jewbrrdes.png (840KB, 720x674px) Image search: [Google]
jewbrrdes.png
840KB, 720x674px
>>60939379
a[href="yoursite.com] span {
color: red
}
>>
>>60938788
$scope is angular specific thing and even there deprecated.
>>
>>60938612
ALL of that is optional. In my work I am currently using only bootstrap and angular and doing fine. Just pick vue and you are good to go.
>>
File: Thanks.png (2KB, 326x125px) Image search: [Google]
Thanks.png
2KB, 326x125px
>>60939475
>a[href="yoursite.com] span {
>color: red
>}
I love you, thanks.
>>
File: 2039487236.jpg (191KB, 1084x1696px) Image search: [Google]
2039487236.jpg
191KB, 1084x1696px
What's /wdg/s opinion on jQuery?

I picked it up real quick years ago, almost skipped learning javaScript completely.

Now I'm coming back into web dev and learning javaScript. Should I bother with jQuery again?

is there anything that jQuery can do that javascript can't?
>>
>>60939522
I'm surprised that people can "learn" jquery without javascript.
It's just a collection of helper methods.

I only use it when I need to support older browsers, otherwise most of its helpers are already natively available.
>>
I have a booking system with a maximum of x seats like so:

seats = [0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0]
# Stylized


Now obviously customers don't want to be sitting right next to strangers. Is there a prefab algorithm to fill such an array so new customers are filled in with gaps between each other? (Like so)
seats =  [1, 0, 0, 0,
0, 1, 1, 0, # Couple
0, 0, 0, 1,
1, 0, 0, 0]


Thanks
>>
>>60939522
I included it in my learner-projects, when I started out, because I thought "well everyone does it, so they can't be wrong"
Turns out, that people just got so used from the olden-times and depend on jQuery to do everything, even though there are much better vanilla or other 3rd party options available.

My recommendation would be to drop it.
Like the other anon said, it's just a bunch of JS helper/shortcut functions. If you ever "have" to use, you can pick it up in an instant.

>>60939663
show them available seats and let them pick one themselves?
>>
>>60939733
Of course, but I mean as the default when you click "choose a seat". I would prefer if my seat was already somewhere away from everybody else right off the bat rather than having to manually choose.

I'm thinking I should just create a default pattern and have each purchase 'pop' a seat off. Seems like the easiest method technologically.
>>
File: 239487763692.png (24KB, 330x688px) Image search: [Google]
239487763692.png
24KB, 330x688px
>>60939733
>>60939545
What's a good, pure javaScript tutorial?

Most of them jump to jQuery as soon as they can.
>>
>>60939785
https://developer.mozilla.org/en-US/docs/Web/JavaScript
>>
File: 1492438180010.gif (1MB, 300x250px) Image search: [Google]
1492438180010.gif
1MB, 300x250px
Hey, I am dealing with a weird DNS issue for a friend.

Background info:
>website hosting on Heroku
>domain from "local" domain registrar
>email hosting from Hostgator

The "local" domain place allows setting up of only a bunch of DNS record types. Heroku wants ANAME and CNAME, and Hostgator needs MX. The problem comes with NS records.

When I set the NS records to the "local" shop's NS addresses I can resolve to Heroku but mail isn't relayed properly (I think sending from gmail to Hostgator didn't work (other providers worked alright)).

When I set the NS records to the Hostgator's NS addresses email works in all cases but for some fucking reason it ignores the ANAME and CNAME settings and redirects to some stupid Wordpress login page.

When I set the NS records to both NS addresses it just removes the "local" ones.

What is happening?
>>
>>60939835
set the NS server to the server you want to administrate your records.
either your local registrars server, hostgators or heroku (if they have)
then add the A/CNAME and MX records in the domains zone file of whichever you chose.
>>
>>60939884
That's the thing though:

If I set it to the "local" one I cannot relay mail from gmail to Hostgator.

If I set it to Hostgator they don't allow me to override the ANAME/CNAME records, so no webhosting.
>>
>>60939379
you can target precisely the link value:

a[href="http://fags.com"] { ... }
>>
>>60939969
when you query your MX record with the NS being your local registrar, does it return the correct IP?
>>
>>60933124

I'm not retarded if that's what you're laughing at.
>>
>>60939785
There's really no reason not to use jQuery. It doesn't add very much to your project size, about 40kb, and it's just an extension to JS as people have already pointed out.
I just like typing $('.wrapper') instead of document.getElementByID('wrapper'). Much quicker.
You might also want to read this, it implements the Virtual DOM from React in a few lines of jQuery.
http://hackflow.com/blog/2015/03/08/boiling-react-down-to-few-lines-in-jquery/

Unless you're some kind of shitter that wants to use CommonJS or Node, then I'd suggest just keep using jQuery.
>>
>>60941178
or just do
$ = document.querySelector.bind(document);
>>
How do I post code? I can't find where it was described...
>>
>>60941397
>>51971506
>>
>>60941365
That's pretty cool, thanks man. I'll probably still use jQuery for most of my projects but it's good to know I can implement my favourite feature from it in literally one line.
>>
>>60941410
Ok thanks, I somehow skipped that line
>>
File: listener.png (29KB, 810x637px) Image search: [Google]
listener.png
29KB, 810x637px
Can someone see this and tell me what I have to change so the listener on the form works?
>>
>>60941497
when you do ratingForm.submit() you are not calling the event, you're calling the event method.
what you actually want to do is dispatch a submit event to the element.
ratingForm.dispatchEvent(new Event('submit'));

which will then trigger your event listener.
>>
>>60941678
Thank you, really helped me :)
>>
>>60939835
why post this gay shit in here of all places?!

now i gotta look at this groping piece of shit every time i scroll this thread fuck you man
>>
What is supposed to go in dependencies and what in devDependencies in a package.json.

Right now mine looks like this which is probably a fucking mess because I didn't understand that concept entirely.
  "devDependencies": {
"babel-core": "^6.24.1",
"babel-loader": "^6.4.1",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"css-loader": "^0.28.0",
"express": "^4.15.2",
"file-loader": "^0.11.2",
"path": "^0.12.7",
"react-hot-loader": "^1.3.1",
"react-redux": "^5.0.4",
"redux": "^3.6.0",
"redux-thunk": "^2.2.0",
"socket.io": "^1.7.3",
"style-loader": "^0.16.1",
"url-loader": "^0.5.8",
"webpack": "^2.4.1",
"webpack-bundle-analyzer": "^2.8.2",
"webpack-dev-server": "^2.4.2"
},
"dependencies": {
"bootstrap": "^3.3.7",
"react": "^15.5.4",
"react-bootstrap": "^0.30.8",
"react-cookie": "^1.0.5",
"react-dom": "^15.5.4",
"react-router": "^4.1.1",
"socket.io-client": "^1.7.3"
}
>>
>>60942463
https://stackoverflow.com/a/22004559
>>
File: KdXYBe.gif (378KB, 360x270px) Image search: [Google]
KdXYBe.gif
378KB, 360x270px
>>60942400
Sorry dude just wanted to pick a random picture.

How about this one?
>>
>>60942584
come on dude, you know that shit is not allowed in here. Only feminine penises on /g/ please.
>>
>>60942400
the irony
>>
God damn I hate hero images. You shitters better not be implementing anything like that if you're doing professional work.
>>
>>60943441
b-but it makes my portfolio look so artistic
>>
>>60918910
Go is already a thing. Elixir is next.
>>
>>60943441
What's a hero image? I've heard the term before but I'm still not entirely sure what it is. Any examples on major sites?
>>
does browser javascript have a native way to hash a string yet?

i want to detect if a textarea has unsaved changes, should i use some kind of a hash function or just compare against the last saved value?

using a hash sounds like it'd use less memory (wouldn't have to keep around the saved value, just its hash) but maybe slower?
>>
>>60944450
i should've finished scrolling down the stackoverflow question before posting

https://stackoverflow.com/questions/7616461/generate-a-hash-from-string-in-javascript-jquery/43383990#43383990
>>
I'm using flask-socketio to make a small webgame. So far I've been able to send and receive stuff just fine. But I realized inside of a certain function I need to emit something to the client and I need to get a response and work with whatever is sent back. Have I completely messed up? Like in a function I want to ask how much does the player want to bet, receive that number and subtracted it from his total in the DB. Should I have this logic broken down into different functions in a class and have one call another one?
>>
>>60934119
I'm learning all about callbacks on Twisted. What are some cool things I could do with callbacks? They're not meant to be used just on websites, right? They're for server stuff, I guess?
>>
>>60944606
look at this or google for the concept
https://socket.io/docs/#sending-and-getting-data-(acknowledgements)
no idea if this requires an instant answer though or gives the user some time

sadly socket.io docs are not that good to explain most of its features
>>
>>60944761
Callback are widely used very general concept.
>>
>>60944816
So I get the concept, but for instance, what could I do with callbacks to speed up a basic CRUD website?
>>
>>60944761
Callbacks are just a programming thing in general.

The reason you see them in JavaScript a lot is because that's how most JS stuff does async. You pass in a callback that gets called once an operation has finished, after an indeterminate amount of time, so that you're not blocking the render while you wait for a result.

You also see a lot of callbacks in functional languages.

Look into high order functions in general. One good example is a map function, which applies the callback you pass in to each element of an array, and puts the result of each call into a new array, which it returns.
>>
File: 1496893372073.png (1MB, 948x948px) Image search: [Google]
1496893372073.png
1MB, 948x948px
Going head first into Java, what should I expect?
>>
>>60945159

Objects.
>>
>>60943867
What's elixir like? Been dabbling with Go which is pretty nice.
>>
>>60919401
React Native is for native apps, React.js is for web apps I believe
>>
What redux folder structure do you use? Function based, feature based, duck, re-duck ?
>>
How much do you charge for website maintenance and what kind of stuff you do?
>>
So I was looking at the hosts comparison, and I think the 5 options they provide are okay, but I mainly need large amounts of storage.
Should I just go with Vultr and add more storage blocks,or is there a cheaper solution?
I was thinking Scaleway looked fine with storage blocks, but the comparison says it has low cpu speeds. Is it fine anyway?
>>
File: soldout.png (43KB, 1242x457px) Image search: [Google]
soldout.png
43KB, 1242x457px
>>60946637
looks like Vultr is sold out right now.

I also have instances at scaleway at the moment and can't complain, though they only have EU locations, if that's ok for you.
Something to be aware of is, that Scaleway has no automated backups. You need to shut down and create a manual snapshot. (or do it some other way)

>low cpu speeds. Is it fine anyway?
really depends on your needs.
Since scaleway is cheaper than the rest, you could just get the next higher instance though to compensate.
>>
OK, since I see a lot of people asking: "I'm X years old, is it too late to start?", I want to tell and explain how I turned my hobby into work.

I'd always been involved in computers from an early age and created my first website, for my neighbor's business, when I was 11 years old. Albeit a simple Geocities website (I'm 29 now), but it got me started on HTML.

I went to college and university (both studying things completely unrelated to computers/programmng), but was always still messing about with programming. After wasting a lot of time on games (from 16-20 I was basically always trying to become one of these professional gamers...didn't do too bad at LANs, but yeah, in the end: wasted time), at 21, I decided it's time to pick up programming agan. I started learning vanilla PHP and 2 years later was messing around with Python, doing automation/scraping and Raspberry Pi projects (coding aquaponics systems etc). In the meantime I also learned/improved the other web development languages for front-end stuff (JS (and libraries: jQuery etc), HTML)... till this day that will always be my Achilles heel and unless I have to, I still see if I can have someone else do it.

Forwarding to 24 years old. After receiving my propaedeutic diploma from university, I decided it was time for a change in life. Some family shit happened and I couldn't see myself becoming someone walking around in a suit all day. So I made the daring decision to switch to web dev. Quite the ride.

I worked on a portfolio and eventually used a recruiting agency to land my first job. I had to work with an outdated CakePHP version and my bosses were a bunch of 'idea guys' that treated me like shit. So I left after 6 months. Since I knew I still had much to learn, I decided to start for myself for a bit and also build up a portfolio in the meantime.
>>
>>60946637
Digitalocean also has option to add storage.
>>
File: PhilFish-610.jpg (140KB, 610x345px) Image search: [Google]
PhilFish-610.jpg
140KB, 610x345px
>>60918692
I have my FCC (apis, jquery stuff) work on codepen, some shitty gamejam games on itch.io, and a personal page. My github is pretty barren (just a socket.io chat thing). Should I still apply for jobs with a lacking github?
>>
How safe are $_SESSIONs?
Can use change it?
If i want to run query and save result in array will putting that in session be safe, i want to use those values on other pages too
>>
>>60947338

only you can decide what goes in $_SESSION. Just make sure you sanitize whatever comes in through $_GET or $_POST if you put it in $_SESSION
it's pretty much mandatory if you want to have any kind of statefulness between page loads
>>
>>60947247
so, are you freelancing right now?
If so, who are your clients in general and how do you get them?
Also what kind of stuff do they usually want/request?
>>
File: 1402861528133.gif (131KB, 640x480px) Image search: [Google]
1402861528133.gif
131KB, 640x480px
>>60947247
Please do continue
>>
>>60947247
After having spent time learning Wordpress, Laravel and various other systems and frameworks (plus improving my other programming languages), I decided it was time for another shot and again used a recruitment agency to land me a job (these guys are true kikes, but at least you'll get a few offers and get you placed somewhere). And I got myself another job not long after that.

My next job was completely different. At my first job I was all alone, this time I was surrounded by a team of people that had already worked together for a while and could help me out and make me grow as a developer. In return I usually helped them out with server sided stuff. So it all worked out. This company even flew me out to Japan to work for our client there. So it was all good. Left this place not too long ago because something else, more exciting and challenging came by, and I'm currently working at my third job as a web dev.

At my first job I wasn't making a lot, but nowadays, being the lead developer at my new place, I do really well for Western European terms.

So if I could TL:DR and give some tips:

- Have a portfolio... if you're aiming for a WordPress panjeet job, write some plugins and/or a theme. If you want to go or a vanilla PHP or Laravel, just show off your skills.
- If you're scared to just contact a company, use a recruiter. They can get you at least some interviews. At one of my first interviews they asked me what the ['dadsd'] were in arrays.. I completely messed up and eventually didn't get the job. So knowing some basic PHP/programming principles helps too.
- Don't be scared to make mistakes and take a leap of faith.
- Don't expect to make a lot of money at first.
- Always try to learn extra in your spare time
>>
>>60947402
why don't you make your own business?
>>
>>60947535
I'm currently in the process of doing just that. I work 4 days a week and going to create a joint venture with my boss, working on it every fifth day of the week basically. I'm also moving to another country in the foreseeable future, to live together with my gf. So there's not much room for flexibility atm.
>>
>>60947587
That´s nice, wish you all of luck, thanks for the advice.
>>
>>60947402
> At one of my first interviews they asked me what the ['dadsd'] were in arrays

values?
>>
>>60947698
Nah, it was presented as:
>>$array[0]

I was asked about the [0] and answered "id" at the time, haha. I'll never forget my 'keys'.
>>
>>60947726
[0] is index
if it was like array("something" => "value");
"something" is key
>>
>>60947755
Eh.......... I'm tired, never mind my previous blunder, haha.
>>
>>60947755

In PHP arrays only have keys. Arrays are not arrays, they're hashmaps.
>>
>>60925094
Look for contacts of hire ups, i.e. ceos, other devs, and email them.
>>
>>60947799
this

but personally, I'd accept either one as correct, since I believe numerical arrays are special cases of hashmap that let you skip a few steps.
>>
>>60947799
associative arrays have keys and values
>>
>>60929794
>w3schools

Absolute garbage. Most of their fucking examples don't even work

Stick to MDN
>>
>>60934256
a library in python used for networking
>>
>>60947799
Then what do you do, when you need an array?
push, pop, index, etc.

t. non PHP person
>>
>>60947587
>I'm currently in the process of doing just that.

As someone whose in being in the field since y2k. Please find yourself a good contract or even hire a lawyer. You will thank yourself for spending the $ in the long run.
>>
>>60939522
I use it for simple shit.

[Code]
$("#id").hide ();

$("#button").click (function () {
$("#id").show ();
)};
[/code]

Very little code compared to writing the same in vanillaJS
>>
>>60947921

The hashmap remembers the order items were inserted in, but there's no way to index based on the order. You can only iterate.
<?php

$my_array = array();
$my_array[3] = "Three";
$my_array[2] = "Two";
$my_array[1] = "One";

foreach ($my_array as $key => $value) {
echo $key;
echo $value;
}

// 3Three2Two1One

?>

yes, it's fucking retarded.
>>
File: IMG_0726.jpg (219KB, 768x1024px) Image search: [Google]
IMG_0726.jpg
219KB, 768x1024px
>>60947328
b-bump
>>
>>60948097
there's push and pop methods too. Oh also every array secretly has a pointer to a particular element. Which one does it point to? Who the fuck knows, but you can reset it with reset(), increment it with next(), decrement it with prev(), and follow it with current(). All of those are free functions by the way.
>>
>>60948134
>Oh also every array secretly has a pointer to a particular element.

Is that in order to maintain the ordering for foreach? I guess a linked list makes sense for that. (I barely know anything about PHP btw, so this is just making guesses.)
>>
>>60948238

yes, the internal pointer is advanced when using a foreach
>>
>new thread
>>60948480
Thread posts: 313
Thread images: 43


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.