[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vr / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / asp / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / qst / sci / soc / sp / tg / toy / trv / tv / vp / wsg / wsr / x] [Settings] [Search] [Home]
Board
Settings Home
/g/ - Technology


Thread archived.
You cannot reply anymore.



File: 1501602119972.jpg (1.71 MB, 1604x1213)
1.71 MB
1.71 MB JPG
Previous thread: >>70140394

>Beginner Roadmap and Overview
https://github.com/kamranahmedse/developer-roadmap
https://www.youtube.com/watch?v=UnTQVlqmDQ0 [Embed]

>Free beginner resources to get started
Get a good understanding of HTML, CSS and JavaScript.
https://developer.mozilla.org/en-US/docs/Learn - a good introduction to HTML/CSS/JS and Node.js or Django
https://www.freecodecamp.org - curriculum including HTML/CSS/JS, React, Node.js, Express, and MongoDB
https://javascript.info - curriculum providing a strong basis in JavaScript

>Further learning resources and documentation
https://developer.mozilla.org/en-US/docs/Web - excellent documentation for HTML, CSS & JS
https://hackr.io - crowdsourced collection of tutorials from across the web for learning languages and libraries (ignore sponsored stuff, look at upvotes)
https://learnxinyminutes.com - quick reference sheets for the syntax of many different languages (generally not sufficient on their own for learning something, but very helpful)
https://pastebin.com/gfBPg24A - Everything PHP

>Asking questions
https://jsfiddle.net - Use this and post a link, if you need help with your HTML/CSS/JS
https://3v4l.org/ - Use this and post a link, if you need help with PHP/HackLang
>>
I need to make a website for a local restaurant. What stack should I use and what should I charge? This is my first gig. Would learning wordpress just to do this easy mode be my best bet? I only know MERN stack and python rn. Haven't done any hosting yet.
>>
>>70159778
I would recommend a static site generator together with a headless or maybe git-based CMS, but I don't really know any built around Angular.
I know for React you have Gatsby and for Vue you have Gridsome
>>
>>70159778
Dude just get wordpress and slap a free theme to it.
>>
>>70159819
they said to not say a word to the press, though.
>>
>>70159819
Not >>70159778 but I'm about to start making websites for local businesses using WP.
Will people seriously pay you just for adding a theme to a WP site?
>>
Is it a good idea to do web dev as a hobby?
>>
File: 1547797108619.jpg (45 KB, 472x840)
45 KB
45 KB JPG
>>70159527
Anon here that wrote about startup. A refresher:
>filled out initial application ~5 pages of information ~1 hour
>built a project for them ~1 hour
>spoke with hiring manager ~1 hour
Hiring manager said there would be two more interviews, which I was fine with. Then came 3 emails with different people for meetings. Scheduled 2 meetings on Thursday, another on Friday, then yet another meeting with CTO. I basically said fuck that(pay was horseshit -- minimum wage), no way I was going to waste time, so I didn't show up to the meetings.

I just recieved an email after about a week of since I ignored them:
>We're sorry, but after careful consideration, we're going to pass you up [...]
>pic related
Who the fuck does this company think they are?! They're going to try using this now as "we denied X amount of people", or whatever, when I clearly fucking ghosted them. Should I reply telling them this?
>>
>>70159955
Sure, especially if you like building things and are capable of learning by yourself.
The web is a very interesting platform to build things on.
>>
>>70160062
they probably just sent you the same template email they send everyone else
>>
>>70160091
Maybe. I kind of want to out them as a shit company to not interview for.
>>
>>70159848
People want websites all the time. They want changes to their current website almost as much. Once you get contacts, the website jobs just keep coming.
>>
holy fuck. Starting a fullstack site, and I've forgetting most of everything.
>>
>>70159778
How do you guys find local businesses/whatever to develop websites for as freelancers? Cold contact?
>>
so long story short, I've finished coding a webapp for a client and they want me to install it, problem is, they're delaying my payment until a few weeks from now and I was supposed to give it to them and also get paid in a few days

what excuse can I use to tell them I need more time? I hate them but I don't wanna risk damaging the relationship by telling them the truth, since they pay really fucking well despite being so stuck up and volatile
>>
>>70160461
Talk to people and make business cards. What do you do exactly?
>>
Developing my personal website that will be used to also show off my skills for potential employers.
Right now I only have the frontmost page with intro + featured portfolio items planned. What else should I look into?
>>
>>70160571
Thanks. I'm a freshman in college and am interning at a local company (in the business intelligence department).

Mostly was curious about the freelancing thing because I'm from a pretty small town and frankly a lot of our businesses' websites look like they're from the early 2000s.
>>
>>70160545
So you don't want to give them the app until they pay you for it? Tell them that. What's the problem here?
>>
Is there anything similar to Storybook for vanilla JS/CSS/HTML?
https://storybook.js.org/
>>
im learning about loops this is too much for my tiny brain lol :( but i will keep trying >:)
>>
File: msc33.png (83 KB, 300x500)
83 KB
83 KB PNG
Can someone explain shit like gridsome to me? I've normally built web applications in a monolithic SSR style - typical PHP application that checks a request, reads from a database, processes the information and renders it using a template. I've also built rest apis and used Vue to consume them. What exactly does gridsome introduce that the latter doesn't do - why would you want the interactivity of a VDOM like Vue, when you're not consuming regularly updating data? What does it solve that pure Vue + rest/graphql does not?
>>
>>70162025
It's just server side rendering, but for vue.
If you just look at the site it explains all the main points.
>>
uh weblet here
if I do
python -m http.server
on a directory and want to show it on 4chinz is there some way to post link (IP) without exposing my IP? Is it actually dangerous to post my IP here, what can happen? If so is the only simple option to upload it to gitlab/bitbucket as website? I read they only support static sites, not sure what that means, if something works on the simple python server will it always work on gitlab as well or does the python one support more things?
>>
I've been unfortunately rather busy, but live thread updating on Maniwani has been finally polished off and merged. If you compare pic related to the original video I made on live updating (>>69840330), you'll notice the dynamically-updated thread on the left now properly inserts and lists new replies made to posts in the thread, and post reply previews from dynamically-added posts also work as expected. I'll finally get a break from studies starting this weekend, so since I've already merged the changes, hopefully they'll find their way to Futatsu by the weekend.
>>
How do I learn "actual" javascript. All these shitty classes make you go through all the syntax, even the basics. Is that really all there is to it? Or am I missing something? I'd rather learn how to integrate JS with a website/framework like django.
>>
>>70162694
That's DOM manipulation stuff.
But it's pretty useless to know how to grab parts of the DOM if you can't run any functions to do stuff to it. So, you gotta know both, obviously.
>>
I personally would not share my IP address on 4Chan, as anons are known for mischief. If some has your public IP, they can DDOS you or get your geo-location to varying degrees of accuracy.

A static website simply means you have a server that simply sends files when requested, and said files do not change. This is in contrast to:

- "Server-side rendering" which has a smart server to render the website on each individual request before sending it off.

- "Client side apps" which have the client do most of the afore mentioned rendering on the clients PC. Like serving static files, but instead of giving them say a hamburger, you are giving them the meat, buns, cheese, and saying "make it yourself"

Hope this helps.

Hope
>>
>>70162765
>>70162637
Didn't link you because am goo brain in the early AM hours. Ref my previous reply.
>>
>>70159819
>>70159848
Wait do people really use WordPress in 2019? What the fuck
>>
>>70162829
>not having a job
>>
If I wanted to make a webgame in 3d using canvas in 3d, what are some good engines/builds to look at?
>>
File: 1538423458478.jpg (102 KB, 487x496)
102 KB
102 KB JPG
>>70162908
>jobs that use WP

Lmao, That would be like having a job making video games in fucking RPG Maker, Fuck outta here you brainlet
>>
>>70162908
Im employed dealing with PHP LMSs and even I cant imagine having to work with fuckin wordpress
>>
File: 1547507565488.jpg (20 KB, 480x480)
20 KB
20 KB JPG
>>70162967
>>70162974
>being a NEET
>>
File: 235252523525.jpg (103 KB, 590x393)
103 KB
103 KB JPG
>>70162984
>WP tard roleplaying cause he knows nobody would ever hire him
>>
where's the line between web 2.0 and web 3.0?
>>
>>70162706
Well yeah, but the syntax is 90% of what I've seen before, and as I said, all the courses start from the basics. I don't want to waste 4 hours on stuff I already know.
>>
File: 1541816120850.jpg (53 KB, 780x846)
53 KB
53 KB JPG
What are static websites that shit like GatsbyJS is useful for? Just websites that don't retrieve any data or do it only once and then don't update? Whats good this shit for lmao
>>
>>70163025
you mean like any type of forum, imageboard, blog, shop, or landing page?

yeah i dunno why you would ever want those
>>
>>70163027
And exactly what won't you allow to create them in a "normal" React app? Also forum and Imageboards update data everytime someone posts
>>
>>70163025
if you dont understand a technology maybe you shouldnt shit on it and say "lol who would ever use that" because it makes you look like an idiot who doesnt know what a static site is
>>
>>70163059
Please explain then for all of us retards
>>
File: hire_them.png (75 KB, 592x432)
75 KB
75 KB PNG
$14/hr. /wdg/. Top fucking kek.
>why did my website get hacked?
>>
>>70163025
>Whats good this shit for lmao
You may not have realized, but Indians aren't really accepted here.
>>
>>70162967
>jobs that use WP
Would be a marketing company, not a software company.
>>
How Azure/AWS actually works? I have no knowledge about pricing and configuration. Which is the cheapest way, the rent a VM and configure my computer to host my site all by hand? Or there is a service that makes everywhere almost automatically?

Where can I go to learn more about it?
>>
>>70163415
There are udemy courses for serverless
>>
Has anyone using React Hooks on your projects now?
>>
>>70163799
Are they even out
>>
>>70163799
>React Hooks
yeah, makes code look cleaner and you can do some crazy stuff with custom hooks.
>>
>>70163799
>Hooks
>>70164163
>hooks

why are they called hooks? aren't they just callbacks
>>
>>70162025
>>70162199
It's specifically pre-rendering, not SSRing each request like would be a typical case with a Next/Nuxt site.
It basically aims to be the Vue equivalent if Gatsby.

Just keep in mind, that between
>pure Vue
>Nuxt
>Vuepress
>Gridsome
one isn't the best. While they have lots of overlap in what they can do, they still excel in certain areas.
With Gridsome or Gatsby it's pre-rendering a bunch of resources (often some kind of CMS content) into finished pages and components, that can be displayed right away in the browser.
For example a blog, where you pre-render each blog entry, a restaurant site with a bunch of info pages and their menu pre-rendered, etc.
Lets say the client or website owner wants to make a price change on a menu item. He can change the item on a headless CMS (like Contentful, Prismic, etc.) or even a hit-based CMS like Netlify-CMS, that lives directly in the same repo of the website and it will trigger a re-render updating the necessary pages.
All without needing an active server in the background, that would cause continuous costs and had to be maintained by someone, like you would with Wordpress.
>why would you want the interactivity of a VDOM like Vue, when you're not consuming regularly updating data?
It's just for (pre)rendering the initial view.
You probably still continue to use Vue just as normal. Lets say the restaurant page allows you to order some food, then the interactivity is still handled by it.
>>
>>70164357
yeah I don't know either
>useState()
>useEffect()
the naming is pretty weird
>>
Hi this is your mom now
>>
File: IMG_1134.jpg (26 KB, 480x360)
26 KB
26 KB JPG
>copy pastes your code
>redesigns entire website and charges 10 dollars for it

What do you do /g/
>>
File: 200w.gif (44 KB, 200x200)
44 KB
44 KB GIF
>>70164669
Speaking of this, any idea where I can download websites templates. I had a huge pack found on a french pirate website years ago but I don't have it anymore and the website doesn't even exist anymore.

I want to live the Pajeet life.
>>
>>70164669
s&s
>>
>php peeps i follow
>always tweeting about projects they are currently working
>tweets about actual interesting stuff

>js devs
>gets into heaty argument with mundane shit
>muhh soft skills
>has pronoun in their bio

it really makes me think
>>
>>70164868
Backend in general requires way more skill than frontend so you get less cucks
>>
at work my giant projects overwhelm me.

feels like I need to work on 3 areas at once. I make changes in one area and that requires changes in other areas or everything breaks.

Not sure how to track this. Like I need to work on this one page, but I need to know what I changed so that I can change it on other pages, but if I go to work on those pages it makes everythting confusing.
>>
holy fuck im never going to make it
>>
>>70165578
in which way?
>>
File: 1547585670529.jpg (55 KB, 1113x640)
55 KB
55 KB JPG
So React Hooks allows you to use state in functional components...Nice but...why not just use class based components if you need state?
>>
>>70165346
Welcome to software development. Touching one thing could break another.
This is why separation of concern exists.
>>
>>70162829
You're a fucking moron.
>>
>>70165655
he is right tho, making a basic simple site with React is piss easy
>>
>>70165588
Anon still thinks he can make a website and people will flock to it and he'll make passive income. As if that's realistic these days
>>
File: 1539462823216.jpg (424 KB, 1243x1143)
424 KB
424 KB JPG
>>70164669
>I have implemented a backdoor into my code, if you copy my code straight as it is (I embeded the backdoor right into some vital parts of the project) I'll have remote access to your server and I'l be able to remotely delete your site.
>alternatively same as above but with an actual cooldown that activates on copy of the site and that wipes the whole site if you don't desactivate it.

Off course I have no idea how to do that lol, or do I, bash would be my weapon of choice, since it is also my only weapon in my case.
>>
File: 1531001932221.png (588 KB, 578x588)
588 KB
588 KB PNG
>>70165735
update: no I have no clue how to auto execute the thing, but I know how to make it so if you execute it it will fuck your shit up
>>
>>70159778
html + css
>>
File: 367373467.jpg (41 KB, 477x477)
41 KB
41 KB JPG
Lets say i am making a website for a local restaurant/pizzeria/whatever, should the menu be loaded from a database or should it be hard-coded into the site? I mean a database is additional $$$ but easier to update the data with it instead of pulling the site, changing it, and making it online again
>>
>>70165648
Yeah, well I have the technology director asking me what's taking so long yet I'm re-developing an entire product without even knowing the codebase. Also it was developed super shit, like there is a for loop that adds to a variable to count how many elements are in an array when count() exists lol.

So I remove a few page elements, great, well now I have unused CSS to remove that is the rest of the page layout so that has to be fixed, then there are 13 included js files with event listeners on those removed elements that I know have to remove, then there are php pages that require certain form fields that I removed that I have to go through and clean, all while upgrading all the logic because the new sdk doesn't support it. 3 different sdks. whaTS TAKiNG SO LOnG?
>>
>>70165881
statically generate the new menu pages, whenever the data in the CMS changes
>>
To the anon that helped me yesterday, I changed the regex to @".*userId=(\d+).* and worked perfect.
>>
>>70165881
>>70165906
This, make a mini CMS for menu adding and removing items, and having items be displayed in one or other category, and alter the order of items manually. Offcourse, charge them extra just for that, let them know what's up.
>>
>>70165938
Would making a login page for the site that when accessed to be the employees gave them the possibility of changing menu items be a good idea?
>>
>>70165949
Would be a must, since it's a security feature it should have, didn't think about it, but yeah, you should definitely do that.
Tell them there are two options, hardcoded menu, no change or change by request to you, and CMS that they can update the menu with.
>>
>>70165969
off course one option is more expenssive than the other... and if they choose change the menu by asking you to, then you would charge for each change.
>>
File: 2838523985.jpg (69 KB, 602x800)
69 KB
69 KB JPG
HOOKS + CONTEXT.API make using React fucking comfy which is something i'd never thought i'd say
>>
File: IMG_1089.png (11 KB, 268x188)
11 KB
11 KB PNG
>>70165578
Yeah. Started to get serious about this and get on fiverr to see pakis and poos doing entire website work for the price of a pizza. Learning to code is a meme. I need to just learn how to copy paste instead.
>>
>>70166172
Either start going locally around your town/region just asking people if they don't want a site or just find a job, you don't have to be a freelancer in webdev, the possibilities are endless
>>
File: 25253253.jpg (273 KB, 1920x383)
273 KB
273 KB JPG
Can someone please tell me why the FUCK won't this simple todo list with Hooks + context work?
>>
File: 1536782087576.jpg (50 KB, 780x780)
50 KB
50 KB JPG
>excited to start using firebase in a webapp
>turns out only importing the core functions and the firestore package already adds 360KB to the bundle
can't there ever be nice things?
>>
>>70167368
just fuck off with that firefase and firefuck shit

wansn't the last thread enough?
>>
>>70167402
rude
>>
File: 1542803757601.jpg (127 KB, 640x459)
127 KB
127 KB JPG
>>70167402
Firebase is shit but firestore is B A S E D
>>
>rxjs
>reactive programming
what's the point?
>>
>>70167839
being a reactionary
>>
>>70167904
This is a site that uses a neural net to generate questions based on StackOverflow questions:
https://stackroboflow.com

Some of them are excellent:
https://stackroboflow.com/#!/question/11261
https://stackroboflow.com/#!/question/22890
https://stackroboflow.com/#!/question/4781
>>
>>70168441
Shit, didn't mean this to be a reply
>>
>>70168452
Well it's too late now, isn't it?
>>
File: 1550169903444.jpg (219 KB, 1920x1080)
219 KB
219 KB JPG
>>70168441
lmfao, good shit, keep us posted
>>
>>70168533
Not my site, just reposting from hackernews
>>
I have a question guys, i just got asked to do a mini project for a job offer but, i'm not sure about what this exactly means: ' for the Backend we prefer a functional approach as we don't maintain any state outside the Databases.'

it just mean that i store pretty much all the data on the db?, but what about the sessions?
>>
>>70160062
You could be snarky and say
>I was absolutely banking on that minimum wage paying job for skills and talent that clearly deserves more
>Give me another chance and I'll pass up this other job offer I got that's gonna pay me right and I'll come crawling back to you guys
>I swears it
>>
>>70168751
Ask them. My code test is similar. Very vague. I think they want you to ask questions because the worst thing about hiring developers is a lot are afraid to ask questions. Both places I have worked at have bitched about it and fired people who didn't ask questions.
>>
>>70159527
>$40,000/yr
>remote
>erp dev
>40 hours per week
>actually only do between 20-30
>top-tier quality of life
>work is easy af
>all web-based, yet no web-dev
>tiny bit of server-side JS, but not nodefaggotry
>pretty much static
>skills for this sekret klub are extraordinarily transferable and salary rates skyrocket exponentially
>only dev in team
>tfw junior dev
>>
>>70169151
>no web-dev
So you use WP then or what?
>>
webdev retard here
How do I make sure someone can only download a file after they click a button on my website?
It's a gay ass website with a simple "download" button, but I don't want people to be able to download the file by finding it's address or something
Is it solvable by simply using permissions? If so, how should I set the file?
>>
>>70169151
how do you land a job like this?
>>
File: shaq.gif (761 KB, 342x401)
761 KB
761 KB GIF
>>70168441
>>
>>70160062
Probably "automated" stuff (aka HR sends the same email to everyone not approved).
>>
>>70169151
good job finding a remote job. I own a remote job finding website and I can't even find a remote job.
>>
File: e14.jpg (12 KB, 200x200)
12 KB
12 KB JPG
>>70159527
>$80/hour contract developer, made $140k after taxes in 2018
>senior .NET developer
>mostly .NET core web applications integrated with a POS system, deployed to load balanced AWS elasticbeanstalk instances, uses Cognito for auth
>redis for fast caching
>elasticsearch for analytics
>xamarin mobile app releasing soon for iOS and Android
>work from home twice a week
>leave the office at 3:00 PM when i go in
>bill for minimum 40 hours every week
>wife at home with baby girl on the way
>gym 6 days a week
>sometimes work evenings but its cool because i get paid for it and i can do it at home
>tfw comfy as fuck
>>
>>70169270
enterprise resource planning
that shit is moving into the cloud
literally no devs because it ain't free to use or even learn
demand is huge
if you need an in, look into erp cloud partners
when you got the skills, hunt down a small company who needs the tallent and make your demands known
check out the salary estimates for sage developers on Indeed
it's fucking nuts
>>
>>70169334
HireFar?
>>
>>70169343
>wife at home while he works
careful with that
>>
>>70166801
Second screen, React should be defaalt import
>>
>>70169343
living the dream, I'm happy for you anon, if I don't really want to go .NET way, what is there for me in the industry that is worth it?
>>
Which tool you use for minimizing javascript?
>>
>>70169389
hey if she cheats at least she won't get to take half when i divorce her
>>70169405
you can do exactly what i do and get paid as much as i do with java. ruby has a surprisingly good foothold now too but ruby is for girls in my opinion
>>70169411
i have a grunt file that takes my SCSS to CSS and then minifies the CSS. works well and was easy to setup in visual studio
>>
>>70169244
context?
from what I got, you have a file somewhere in your url path, so you don't want people typing it in the url search input to download it like that?
>>
>>70169449
>she won't get to take half when i divorce her
why not? do you live in the US?
>>
>>70169449
java it is then, since I'm already learning that shit... but hmh... I wonder if .NET... I don't like being a language that compiles to an interpreter...
>>
>>70169502
do you shit? if so, do you shit in a toilet? if so, you should be learning C# and not Java
>>
Suppose I want to go for a full-stack position, and I know HTML, CSS, JS, TSQL, MySQL, Python, C#, and Django; what will more will I need to know, and how long would it take to learn the skills, if I spend 8 hours per day learning?
>>
>>70169526
>let me tell you what you should be learning
>>
>>70169526
yeah, great argument... I guess
>>
>>70169374
Did I say that one day? lol
>>
>>70169537
can't be bothered to answer this questions anymore
>>
>>70169537
your stack sounds pretty solid desu
get a website up and running, connect it to a db, then show it off to employers as proof you can fullstack
>>
>>70169537
Learn React and you're a full stack already, that's if you aren't already, you only lack a js framework.
>>
>>70169502
i personally like the .net ecosystem more which is why i stuck with it but frankly java is a good language too. i used to hate on it but there is a reason some of the largest financial institutions are java/oracle based
>>70169537
>Python, C#
why would you learn two high-level languages? pick one and stick with it, get so fucking good at it and then make $$$. its really not difficult.
>>
>>70169561
d:^)
>$49 a month
really
>>
can someone explain to me how to actually use C# in a web project? I understand using Node or Django/Flask for creating a server, sending files a client has requested, and using a template renderer if I'm not dealing with a frontend framework. How can you do all of this is Java or C#? I've tried to google for Java Spring, and it takes ~30 lines to just create a server, let alone make a full REST API
>>
>>70169598
1. download visual studio
2. go to file > new project
3. select asp .net web application
4. ???
5. you're now a c# developer
>>
Someone please give me attention
>>70169388
I thought I wanted to learn back-end, but java and spring is a pain in the ass. Would it be too bad to stay with Node.js?
>>
>>70169596
Last time I posted about that was in July of 2018.

Hold on though. What else have I done?
>>
>>70169571
Sorry, kinda new to this. I should clarify that I have 0 real experience, apart from my current job as a database engineer/it support.
>>70169572
I know nothing of design, and it is my weakest point. From the languages above, I only know the basics of HTML and CSS, I would be more suited for backend, but fullstack pays more.
Realistically, should I host the website on machine? I know the basics of docker, as well as linux.
>>70169575
I haven't searched for that at all, but does it matter which I pick, react or angular?
>>
>>70169592
Well, C# was taught at uni, and python is used at a business I intend to apply for. They have sorta high requirements though, and I don't want to apply to the same job 5 times; it gets annoying.
>>
>>70169648
...or vue, off course it matters, look at the job offers in your area and the pay, vue is the last one, react is the second and really hot meme, angular is the oldest one to exist.
>>
File: xx.png (53 KB, 1041x627)
53 KB
53 KB PNG
>>70169636
>july 2018
you should have had a job by now, anon.

what are you doing? linked in, hackernews jobs, etc
>>
>>70169686
I've had a job the whole time. I just haven't had a remote job yet.
>>
>>70169636
how in the fuck could you remember what you posted 9 months ago?
>>70169635
node is also back-end friendo
>>70169648
>From the languages above, I only know the basics of HTML and CSS, I would be more suited for backend, but fullstack pays more.
html and css are front-end technologies. i suggest taking a course (online or traditional)
>I haven't searched for that at all, but does it matter which I pick, react or angular?
you're a very early beginner, and beginners are very susceptible to the biases of seemingly more experienced developers. just start with the basics
>>70169664
from my perspective if you're going for a .net job all the experience on your resume should be .net. if you're going for a python job all the experience should be python. pick one, get good at it, and that becomes the main thing you look for in job listings. they have high requirements because they're difficult to master, they're incredibly verbose, high-level languages. if you're serious about being a GOOD full-stack developer that makes GOOD money, its critical you have these two thiings:
1. front-end tech of choice is childs play, html/css is obvious and second nature, very strong in javascript
2. AT LEAST a competent understanding of the back-end tech of choice
if you don't have these 2 things i can tell you i sure as hell won't hire you. you might find some shit job that pays low but don't aim low, use it as a stepping stone
>>
>>70169718
lel
>>
Angular is superiour then React

Dont @ me thx
>>
>>70169741
It's why I keep launching things. I just want to stay home and be lazy and order things from Amazon.
>>
how do i handle working with the resident diversity hire?

she's pretty dumb and spends most of her day doing code academy tier tutorials because no one wants her on their projects

but, i guess she's at least trying to learn
would spending time trying to teach her in depth frontend be worth it?
>>
>>70169758
>It's why I keep launching things
doesn't that come with a cost? (hosting things, buying domains, etc).

Are you required to work 9-5? what kind of work do you do? CRUD app dev?
>>
>>70169783
No. Pretend she doesn't exist unless she talks to you. Otherwise, HR will fire you for sexual harassment.
>>
>>70169736
Okay, define very strong in JS; what things should I know.
inb4 if you have to ask you don't know them
And what does competent understanding of backend mean? Just how well you can code?
>>
>>70169783
just give her some tasks to see if she can do it. Over time actions will speak for themselves, i.e. if she can churn out code like the rest of the team.
Is she a JS developer?
>>
File: 1547930030165.jpg (425 KB, 1728x2304)
425 KB
425 KB JPG
>>70169744
@
>>
>>70169783
>would spending time trying to teach her in depth frontend be worth it?
do you want to fuck her? if so, then yes
if not, don't waste your time on revolving door developers. get them acclimated to anything they need in order to do their job, if their job involves watching tutorial videos all day then don't interfere.
>>70169804
i'll throw in some jquery in my response but really any extensible library on top of javascript would do. i like jquery because i'm very familiar with AJAX requests, animation, etc. so i make really nice snappy user interfaces with it.
1. make an AJAX request to your server with jquery that handles success (response 200) and error (response 500) via callbacks
2. based on the callback update some markup (e.g.: document.querySelectorAll or $("p").html(data.responseText) etc.)
3. on button click call your AJAX method, disable the button and add a class to it that styles it as if it were disabled. change the text of the button to 'Loading...' and on completion callback re-enable the button and change the text back to the way it was
4. return JSON from your server, in that JSON should be the response text

these are just some examples off the top of my head. basically this shit should be easy for you.
>>
>>70169869
>basically this shit should be easy for you.
correction you should know how to do it, it doesn't necessarily have to be easy for you. it will become easy with time.
>>
>>70169789
I use apache virtual hosts and can usually host 3 sites per droplet on digital ocean. I run 3 droplets currently for a grand total of 15 dollars a month. I have something like 25 domain names, so all said and done only about 400 a year.

Yeah, I work 9-5 developing features for an existing product.
>>
>>70169907
how's NJ this time of the year?
>>
>>70165346
Learn Angular, the heavy encapsulation and static typing won't completely solve this, but it'll lead to less shit breaking.
End to end testing will help too.
>>
>>70169869
I've done something like this for my site. If you go on any forum powered by Invision Community (forum pages), register, sign-in, and then hover over any call-to-action button (e.g. rate post), it'll have a long fucking URL which includes a hidden csrf key.
csrf keys are pretty awesome. It's basically an unique password assigned to an user for the duration they are logged in, and it changes each time they login.
>poke MySQL for info
>poke PHP to format and sanitise into JSON
>poke AJAX to request page with CSRF key in the URL
>poke JS to update something on the page with that JSON stuff
Quite intriguing how it all works together and makes it possible to keep a lot of PHP-DB querying code separated away from the rest of the site.
>>
>>70169885
>>70169869
That actually doesn't sound too hard, as I've developed programs in C# with the same functionality (or close to it). The syntax changes, the logic stays the same, I guess making my "portfolio" website should most likely get me a job.
>>
>>70163005
Just start reading some random dev.mozilla pages. I would recommend checking out at least the topics on the advanced section first thought:

https://developer.mozilla.org/en-US/docs/Web/JavaScript
>>
>>70169799
ehh she's not a lgbtbbq+ tumblrina type
she's actually pretty chill, just very obviously unknowledgeable about programming

>>70169815
well I think she thinks she's a JS developer, but really she's only done HTML/CSS

>>70169869
ehh desu i kinda do, but mostly i just think it might be useful to have someone who can do gruntwork
she actually seems pretty eager to contribute, it's just that she knows practically nothing right now
>>
>>70170021
>knows practically nothing right now
>gets hired
>>
>>70170004
if you're making a portfolio website make some 'admin' CRUD pages (scaffolding with entity framework perhaps), include AJAX requests for the form posts/UI interactions to avoid page refreshes, get something like transit.js for smooth opacity transitions (e.g.: when you show a table, don't just $("table").show(), do like $("table").show().transition({ opacity: 1 }), etc.)
these are the things people like
>>70170021
>she actually seems pretty eager to contribute, it's just that she knows practically nothing right now
tell her she can contribute by sucking this fucking cock my dude
>>
>>70170041
oh also learn how to use an MVC grid nuget package, like Grid.MVC, so you can render a paginated table with large datasets that automatically does the skip/takes, and handles the AJAX side automatically (so you don't have to refresh the page to changes pages)
ive made these nice grids for years on admin pages and it literally always impresses the non-IT business people
>>
>>70162689
How does your thread limit work? Assuming you have one. Is it just an if statement that checks if there is max number of threads?
>>
>>70170060
>Grid.MVC
sorry i meant MVCGrid not Grid.MVC. Grid.MVC is old as fuck now, i've been using MVCGrid more recently
>>
>>70165589
Because you need to understand """difficult""" ideas
>>
>>70169937
I'm not near there. Was I talking like it?
>>
The fact that humans have access to courses like this https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-858-computer-systems-security-fall-2014/index.htm, -- a graduate course from MIT -- and spend majority of their free time on Facebook/Instagram is mind-boggling.
>>
How much do you guys charge for managing and maintaining someone's website/domain? I don't know what to charge and all I've done is build shit for people.
>>
>>70170483
$50-80/hr.
>>
>>70170434
>le wrong generation
>i'm 14 and this is deep
dude, not everyone likes computers
>>
>>70170515
There are other courses unrelated to computers.
>>
>>70170500
I'm not working for a company though, its my own service. And this is a retainer client I'd like to have an account for; when I say client, I mean an actual individual (i.e. Celeb). Not a company, if it was I would've known to charge that rate and maximum shekel them.
>>
Stylus
+
Dissenter users.
What do i input in the address field in Stylus so the theme changes affect the Dissenter popup after it loads the page? I'm on Fireshit.
>>
Does anyone here uses codepen?
>>
>>70170599
Is your client a poorfag?
$50/hr isn't unreasonable, unless maybe you're really new and take a long ass time to do shit
In which case still charge $50/hr but say you did things in half the time
Don't ever sell yourself short and stoop to pajeet pricing
>>
>>70168533
heaf
>>
>>70170764
I still feel some shame doing it even though they can afford it. You're 100% right and I'll take your advice
>>
>>70159778
just use static pages. those kinds of clients never use any cms you set up for them and still ask you to make the changes anyway (which you can charge for)
>>
I'm making a wordpress website to advertise my own web page design business and this is what I have so far:

nm.thatgoodshit.com

I know it's a long way from being finished but I would greatly appreciate any input from you guys as to what direction I should take it. This is my first time doing something like this so bear that in mind.
Any suggestions are appreciated.
>>
>>70167839
the point is letting the system take care of the consequences of updating data/state (rather than imperatively telling it what to do at each little step)
>>
>>70168751
they probably mean they want a stateless backend app. using something like jwt instead of sessions. maybe they also mean they prefer functional programming like (over OOP or imperative)
>>
>>70169343
good shit anon
>>
Just got off work, been working on a large MVC app can't go into specifics about it but it's been quite the undertaking for me. It deals in the education sector and I have high hopes and connections that could take me to the DoE.

Also Google SSO not having a forced auth verification system is fucking gay,
>>
>>70169411
webpack
>>
>>70169635
try java with a lighter framework like vertx or spark. you can get by with nodejs but know that the whole process crashes on errors, so you need to handle that (ts-node, lots of unit testing, clustering, supervisor etc)
>>
>>70169783
yes give her a bit of help and be polite but don't worry too much - it's your boss's responsibility to train her if she needs it
>>
>>70170752
no but that's a good idea
>>
>>70170993
>but know that the whole process crashes on errors
What do you mean here?
I am pretty sure unless it's PHP any backend will just die if you let a serious error go unhandled.
>>
>>70170599
This. >>70170764
Lawyers will charge you $50 for a talk on the phone with them. $50/hr. is perfectly reasonable. If your client is a celeb, I'd definitely go for somewhere around $120/hr. Also, the more you charge, the more professional you look. I'd never hire someone that said they would build me a website for $15/hr., I'd assume they suck ass.
>>
>>70170950
thanks dog
>>70171058
>any backend will just die if you let a serious error go unhandled.
not with proper exception handling and logging. for example im working on adding a delivery option to an ecommerce site right now and if it fails at the payment stage it is caught, logged, status of the order is updated, transaction is put on hold, etc. if it fails when sending the request to the third party that handles the delivery (think uber eats) its also caught, logged, the status is updated, customer support is notified, etc.
point is the entire backend does not 'just die' - it only does with poor error handling
>>
>>70170883
looks good to me

I'd probably build a search function with types of websites so ppl can find the type of template they're looking for
>>
>>70171115
i should note i'm talking c#, not php or java. but the same can be said for any competent web architecture
>>
>>70171058
no, many others return an unhandled exception but keep chugging along
>>
>>70171121
Really? Once I fill out the last two sections you think I could put that url on a business card and start advertising?
>>
>>70171115
that's what I meant - was telling the anon to expect to do a bit of work to handle errors gracefully
>>
>>70170883
>nm.thatgoodshit.com
your mobile hamburger menu is ugly/plain and isn't padded correctly. there are tons of css3 transition-filled SVG hamburger menus that do really slick animations when you click them, that fade in from the bottom etc. i used this one recently IIRC:
https://codepen.io/designcouch/pen/hyFAD/
>>
>>70171115
But that was kind of what I was getting at.
You catch the error in C#/Java/Go/etc. and you equally catch the error in Node, so I was wondering why the distinction was made.
>>
>>70171133
I mean, most ppl don't even know what wordpress is or does, so you're been "good to go" from the moment you slap a theme on and get it online
>>
>>70170883
that image on the main site should have something else going on than just getting smaller.
It's pretty pointless on mobile widths that way.
>>
why does this work
$('#menu-toggle').click(function(){
$(this).toggleClass('open');
})


but not this
$('#menu-toggle').click(() => {
$(this).toggleClass('open');
})


i thought arrow functions were the same
>>
>>70171133
frankly you're advertising 'web pages' in big bold text but then on the site you say you can build ecommerce web sites. you should really clean up your terminology if you want to be taken seriously. if you're trying to get hired build a real demo ecommerce site with payment disabled, styled the way you want.
>>70171152
>>70171141
i wasn't really paying attention desu i just came back to the thread after a while
>>
File: 1541209999235.gif (40 KB, 243x236)
40 KB
40 KB GIF
>>70171182
>jQuery
>i thought arrow functions were the same
>$(this)
>jQuery
jQuery
Q
u
e
r
y
>>
>>70171182
because the `click` method accepts a parameter function, not parameter delegate
>>
>>70171205
?
>>
>>70171182
arrow functions keep `this` as it was, function functions don't.
>>
>>70171170
Yeah, I would like to have it set up as a carousel of images that you could swipe through on mobile but I'm not sure how to implement that yet.
>>70171201
>you're advertising 'web pages'
Would websites be a better term?
>>
>>70171207
ok. so how would you write it using arrows?
>>
>>70171208
Arrow functions aren't the same.
Just read the first paragraph.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Arrow_functions
>An arrow function expression is a syntactically compact alternative to a regular function expression, although without its own bindings to the this, arguments, super, or new.target keywords.
>>
>>70171227
interesting. I thought it was the same overall.

thanks
>>
>>70171218
>Would websites be a better term?
in my opinion when it comes to business cards don't tell people what you build, tell them what you are: a developer. maybe i don't want an ecommerce site, maybe i want you to make me a web page, maybe i want a blog, maybe i just want you to suck my dick. point is don't limit yourself by saying "this is what i provide". people always dream up weird shit for web developers to make, trust me. as far as your portfolio page, link out to actual demos of different things. showing me an image of something you COULD make instead of showing me something you actually made is far less encouraging.
>>
>>70171207
correction arrow functions are apparently not delegates like i assumed they were.
>>
>>70171248
Good advice, thanks anon.
>>
>>70171248
I made a mistake by calling myself "Web Developer" on my first batch of business cards.
>What the fuck is a web developer, Anon?
Software Developer is much better.
>>
>>70171340
or just 'developer'. i like the way 'senior developer' looks on mine.
>>
>>70171340
>>70171358
also i've worked with 'software developers' and they've all been pajeets that only know vb6 and rudimentary c# because everything is web-based now and they're archaic. but thats just my personal bias against the word, take it with a grain of salt
>>
File: 549006703904030781.png (25 KB, 128x117)
25 KB
25 KB PNG
>tfw writing elixir
>>
People of /wdg/ who work professionally and have jobs, what tools do you use? What is your company's workflow?
>>
File: hmm.png (30 KB, 362x658)
30 KB
30 KB PNG
>>70171407
into the trash it goes
>>
>>70171420
thats a really broad question and would take like 30 minutes to describe
>>
>>70171420
> People of /wdg/
>work professionally and have job
Pick one
>>
File: btfo.png (121 KB, 1368x876)
121 KB
121 KB PNG
>>70171434
AHEM
>>
>>70171458
Some members of the Reactjs core team come here. Not going to name drop.
>>
>>70171464
how many features are you giving up for that throughput though? ORM? libraries/extensions? preprocessed serverside inline code on the views (ala razor for C# or java equivalent)?
>>
>>70171452
Ok, here's another way to phrase it. How do you deploy the thing that you are working on to the server
>>
>>70171510
name drop? are developers celebrities now.
>>70171515
depends, if its to aws elasticbeanstalk i use the visual studio extension that adds a "publish to elasticbeanstalk" function, makes it easy. if its to one of the 10 or so asp .net web applications that i maintain i right click -> publish, copy the bins and any other files over via RDP. if its the xamarin app i have to archive for android (usually on my home desktop computer because it compiles in like 2.5 minutes, thank you 9900K) or bust out the macbook to publish to the apple app store.
>>
>>70165589
1. Less overhead (as there's no lifecycle hooks)
2. Allows you to memoize your function component (React.memo) which is essentially the equivalent of Pure component for classes.
3. Less verbose (no manual prop/state comparisons for running effects).
4. Function components reduce bundle size as compilers can optimise them much better than classes
5. Allows you to properly introduce mixins using "hooks" which is much more useful than previous implementations. see https://usehooks.com for some examples.
>>
File: 2w2s82.jpg (94 KB, 640x480)
94 KB
94 KB JPG
>>
>>70171420
It's a shitshow cowboy operation held together with tape and glue because half the team is boomers who think COBOL is cutting edge
If I wasn't so close to banging my coworker I would've left months ago
>>
>>70171511
Phoenix is a rails clone, Plug is what you'll get if you don't use Phoenix, which is faster.

If you use phoenix you can create anything you could with rails, generators, ORM etc included. The only thing it doesn't include by default is sending emails.

I'd only bother using it for chat apps or something where concurrency is required, it's just a pain because it lacks maturity.
>>
>>70171182
As other have mentioned, arrow functions do not have their own `this`. So in the case of the first example, the `this` (that is, the execution context) is bound to the element being clicked. However, in the second example, since `this` is NOT bound, it'd probably be equal to the window (I can't verify this, since I'm on phone).
>>
>>70159527
<?php
class MyDB extends SQLite3 {
function __construct() {
$this->open('test.db');
}
}
$db = new MyDB();
if(!$db) {
echo $db->lastErrorMsg();
} else {
echo "Opened database successfully\n";
}
?>

why create a class just to create the database file when one can do "$db = new SQLite3('test.db');"?
some tutorials seems to love to teach things the more complicated way.
>>
>>70171751
not only that, the same tutorial proposes this way of creating the database:
   $sql =<<<EOF
CREATE TABLE COMPANY
(ID INT PRIMARY KEY NOT NULL,
NAME TEXT NOT NULL,
AGE INT NOT NULL,
ADDRESS CHAR(50),
SALARY REAL);
EOF;

instead of this
        $sql = "CREATE TABLE COMPANY(
ID INT PRIMARY KEY NOT NULL,
NAME TEXT NOT NULL,
AGE INT NOT NULL,
ADDRESS CHAR(50),
SALARY REAL)";

there may be a simpler way to do this too, that i am not aware of
i am starting to think that people shitting on php do so because of incompetent niggers unable to write clean code.
>>
>>70171882
It's probably been about 5 years since I've voluntarily used heredocs but why are they using EOF and not SQL/DQL lmao.
>>
>>70171928
im using tutorialspoint https://www.tutorialspoint.com/sqlite/sqlite_php.htm
>>
>>70171882
is there a cleaner way to do this? perhaps a sqlite3 method?
$data = "INSERT INTO COMPANY(ID,NAME,AGE,ADDRESS,SALARY)
VALUES(" . $_POST['name'] . "," . $_POST['age'] . "," . $_POST['address'] . "," . $_POST['salary'] . ")";
>>
Is middleware pattern a meme?

You have a route that needs to fetch X data from a database, then perform some actions, then do something related to X data again. If you're doing it through simple middleware

 route -> fetchX, performStuff, doXStuff 


you literally can't avoid passing X down the middleware stack on some magic carpet object like request or ctx.state. The logic for putting X on the request object vs setting it as state for the view is entirely the same but has to go on two separate pieces of middleware. It's disgusting.
>>
>>70173961
And to tack onto that, the alternative I can think of is having a function sit on there that does it all at once, which quickly becomes a spaghetti mess of

do something
check something
do something else
if this
set x z
else set x y
add this to database
etc

and you get 120 line routes for complex operations. How the actual fuck to keep this maintainable? MVC seems like boogieman in this situation - all the medium.com hipster articles I can find constantly go on about how great you can register some middleware that goes "Argh!! An error!! OwO!!" or hehe /post -> articlesController.create so simple! But never talks about authentication, validation, roles, cooldowns, CSRF tokens, and how you make those reusable and maintainable routes.

If anyone has a good, in production application example written in Node.JS express/koa/etc on github they know of I'd absolutely love a look because Im stuck in code hell right now even with async/await across my project.
>>
File: uqNKbnG.gif (872 KB, 346x360)
872 KB
872 KB GIF
>>70171751
This way you can add your custom helpers methods to your class.
However, that example is horrible. It should follow RAII doing that error check within the constructor and throwing as necessary.

>>70172839
Prepared statements. Use them. It's not just about cleaniness, but security.

>>70173961
Middlewares allow global and/or scoped modifications and checks for X, which is pretty handy. Granted things should be passed around as references instead of copies for performance. Something PHP frameworks and developers often forget or overlook.
>>
>>70170064
Boards have a thread limit which is simply a number the new-thread code checks when making a new thread; if the thread limit for that board has been reached, then the thread least recently bumped gets deleted.
You can see how Maniwani does it here: https://github.com/DangerOnTheRanger/maniwani/blob/master/model/NewThread.py#L41
It's super straightforward, no real surprises there.
>>
>>70172839
Incoming SQL injection attacks.
>>
>>70174256
Actually, after reading a bit. It seems it's slower to pass parameters as references than by value, even when editing the parameter.

https://schlueters.de/blog/archives/180-References-Still-bad-in-PHP-7.html
http://blog.golemon.com/2007/01/youre-being-lied-to.html
>>
>>70173961
Middleware is like a pipeline, it's the simplest way to just add it to everything and then set up pipelines for different routes.

The problem is if you're using express for example, the way middleware is handled is dumb. You shove stuff on the controller, and you have to do it for all of them..Then you have to handle if statements..Then you can handle errors.....Then finally you can check if the user exists, then you can FINALLY use the user.
I suppose you could create function(s) to handle this and return the user or throw the error, but still you have to do it every time in the actual controller.


In any sane world you just have something like before_action :require_login, and code the happy path otherwise.
>>
what should I focus on learning after html/css/js and node.js, express, angular/react/vue, mongodb?
I know eslint and a style guide like airbnb's are kinda of a must
what else? relational databases with postgresql? tests with jest? webpack?
which useful libraries or frameworks used in industry? require.js? sentry for error tracking? winston for logging? maybe oauth2? jwt? passport?
my main focus is back-end. it seems that there's so many things to learn I kinda get lost
>>
>>70174853
>what should I focus on learning after html/css/js and node.js, express, angular/react/vue, mongodb?
Build things. Lots of things. All while focusing on algos/data structures. Also, don't ignore security. Learn it. Stop focusing on libraries/frameworks. Go back to vanilla js, and learn more about it. That's all react is. How? Go figure it out.

Ultimately, it's up to you, though. You could check out some VR frameworks, and build something with it.
>>
File: porkins.jpg (45 KB, 650x320)
45 KB
45 KB JPG
>>70169411
Gulp or Grunt.
Stay with the boomers framework.
Don't fall for the bloated buzzworded clusterfuck that webpack is. It's way too over-engineered to configure desu
>>
>>70174879
>build things all while focusing on algos/data structures
yea I plan to make some clones of sites like Netflix, maybe Facebook and Yelp, anything involving log in/log out, comments/review, rating, search
is learning basic algos and ds enough? which are the most used?

>go back to vanilla js and learn more about it
es6+, right?

>you could check out some VR frameworks and build something with it
that's a great idea, thank but I'll need a lot more experience I guess
my plan is, as I said earlier, build stuff involving sessions, authorization, security, REST APIs that can be consumed by different front-ends so I can build a small portfolio to get the foot in the door

thanks for you post, anon
>>
>>70159527
OK seriously, I feel like I've been through every meme UI framework in existence

>Start with bootstrap. Works fine, but there were enough memes about bootstrap being shit I moved on
>Semantic-UI-React. Didn't mind it, but even after spending hours fucking with tree shaking, basic hello world bundles were 700KB+
>Blueprintjs. Liked it, but they make a point of describing themselves as not mobile friendly. This will be a bigger issue moving forward.
>Friend recommends Ant design. Has same problem as above.
>Material UI. Holy shit. Even the basic single component examples on their website has tonnes of inline CSS to make them work. Also it looks shit

Honestly the UI world needs a purging. We've heard lots about JS fatigue and the cycle of React and Vue and whatever but they all mostly work.
>>
File: MS Smartscreen.png (45 KB, 977x525)
45 KB
45 KB PNG
>>70172839

Seriously, please post confirming where you learnt this code. There's a tutorial somewhere that needs to be nuked from orbit.
>>
/wdg/ what's the roadmap from a web developer to a web penetration tester
>>
>>70175226
I'm currently in this position. You've might have seen me shit posting in some threads the past few days about vulnerabilities I've been finding through hackerone. I think it's easier to find vulns than to actually build software, at least certain vulns, like JavaScript injection.

I can't give you a roadmap, because I've been learning this stuff for at least 8 years(not consistently). But I highly, highly recommend this: https://github.com/bkimminich/juice-shop

It's a *modern* web application, with various exploits. Your goal is to find them all(there are 80+). It might be a good idea to start here: ctf.hacker101.com. Solve all of these. They're pretty simple.

There's also this (currently on lecture 12): https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-858-computer-systems-security-fall-2014/index.htm

Of course, there's this, but it's quite old: hackthissite.org.

Book: The Web Application Hacker's Handbook. If you can afford to buy this in physical form, do it, read it as your bible. If you can't, save up. Having a physical copy makes you much more likely to read it.
>>
>>70175204
Learn Angular and you can use Angular Material.
>https://material.angular.io/

Looks pretty polished than most CSS framework.
>>
Is it normal to write most of class function as public in php?

I'm writing simple apps and pretty much add 'public' to all of my methods without ever thinking about using the other two. Private and protected only comes in play when writing larger algorithms with class reuse, inheritance etc ?
>>
How the hell do you even get hired? Let's say you know Ruby/Rails and React.. guess what? Everyone knows it too.
>>
File: 25325325.jpg (114 KB, 659x815)
114 KB
114 KB JPG
Am i retarded? Why won't this work? It says also that PreventDefault is undefined? Like what the fuck is going on
>>
>>70175986
I would suck a dick for a react developer right now
Just get the fuck out of Commiefornia, there's tons of unmet demand for developers in the rest of the country
>>
>>70176178
event should be the first parameter, not dispatcher
console.log your variables when you're unsure
>>
>>70169244
You can make a button that opens a link in a new tab, this can be a file that you can download and I don't think webcrawlers can find it that way.
>>
>>70169244
i think there's some sort of fuckery you can do with blob files or download it in chunks and merge it on the frontend
>>
>>70169244
Make a script that generates a unique temporary download link if someone uses a valid unique query string as some $_GET variable. Then, when the button is clicked, generate the query string and use it in the script, which redirecst to the newly created download link.
This results in one click = one download, and no way to download without clicking
>>
Is postman basically for brainlets that can't into curl?
>>
>>70176583
it's a front end/GUI for curl basically
>>
>>70175311
hackthissite was so much fun back when I did. I got to the last one where you have to actually hack hackthissite. I couldn't do it.
>>
Are there any good tutorials out there for a DNS migration? I've already got database and file structure backed up, but I'm hitting my head against the wall trying to solve my DNS caching issues, I've forwarded the nameservers to the new host primary and backup DNS but I'm still getting err_name_not_resolved even after 4 days.
>>
>>70176583
My postman has hundreds of saved requests. I can't tell you how many times I have to go back 6 months to retry a url to see if we broke an api or their server is down.

It's also helpful to look at an old request in postman to see what fields I need to send so I don't have to spend hours rereading documentation I read a year ago.

api integrations specialist is one of my titles here. I know how to curl and I use postman daily.
>>
File: 1537312225229.png (385 KB, 689x571)
385 KB
385 KB PNG
>>70175963
You also write protected/private methods when you don't want them called from outside. They act as helper methods for the class itself. Like when two public functions have similar, but slightly different functionality.

Of course you can *Java* those methods out into some obscure ServiceFactory you could theoretically use from any class, but you don't need to overcomplicate it.
>>
I'm an idiot, is there an easier way to make a bootstrap form send on enterkey press besides listening for the key press?
>>
at work sitting on a lovesac watching netflix and shitposting.
>>
>>70177886
> he doesn't work 4/10 week
what a pleb
>>
>>70177894
why would I want to work 10 hours any day?

us devs should work 3 days a week anyways because it stops the giant majority of us that get burnt the fuck out and become unproductive later in the week.
>>
>>70160545
Half now if you don't feel comfortable with a Net30.
>>
>>70160545
Say you will install it once the payment clears.
>>
File: Hugh-Jackman-Swordfish.png (577 KB, 796x532)
577 KB
577 KB PNG
looking to build a site that can provide me $10k-20k a year. I've got a CS degree and 5 years of web dev experience using most of the popular frameworks and APIs. What should I build?
>>
>>70178230
lol
>>
>>70178230
4chan
>>
>>70178230
Make a porn site bro
>>
>>70178249
i said a website not a game. plus you can't compete with LoL
>>
>>70178614
I said lol because I've launched 7 things over the last 3 years and I'm barely at your goal income. If you can't think of even one idea then you're not gonna make it.
>>
>>70178660
>I've launched 7 things
7 todo apps? of course they aren't going to be worthy
>>
>>70178660

i've got plenty of ideas (reddit, facebook, twitter alternatives with privacy/anonymity focus) travel apps, etc, but wanted to check with people like yourself that have experience and have thoughts on things they tried that worked or didn't work
>>
>>70178230
>>70178605
this, mkae sure to pick up all the bizarre and good shit porn you can find on the net, with the highes quality available and you're golden, good porn is scarce. And people have weird fetishes that have very few content and they don't usually want to go to torrent world for it, so do it for them.
>>
>>70179058

cont...

i'm an oldfag now (mid 30s) and am out of touch with popular mobile apps like snapchat and was curious what kinds of things have the potential to be popular.
>>
>>70175214
that one wasn't from the tutorial, i was just googling shit to make a basic form.
>>70174350
i read that today, i will look up prepared statements like this based anon told me about >>70174256
i also read about this too http://php.net/manual/en/function.sqlite-escape-string.php
>>
>>70169457
yeah basically

>>70176224
I don't get what you said, sorry

>>70176257
>>70176258
H-how do I do that? I'm a big webdev brainlet, I was hoping for an easier solution
>>
>>70179089
the last big thing is apps where the people record short clips of themselves and upload them, singing or doing some flashy shit, etc. There's even one that is specialized on people singing popular songs to the song and performing. WHat a weird world we live in...
>>
>>70179093
aslo PDO, security (don't ask me why), and portavility (theorically you can switch between platforms with PDO). Also google XXs injections and how to prevent them, something about interpreting html characters as html entities so they don't execute when you pull them back to your page, there's more I don't know about, I'm a fucking noobie.
>>
>>70171420

Only started a few weeks ago but it's currently PHP and Laravel with a Vue front end. I got hired mostly to help rewrite the front end in React. We're moving more toward React, Node and AWS, which seems to be the trend at the moment
>>
>>7017915
it's not an easy task bud
if you're a better sysadmin than a dev, i think there's a way you can configure your server to return 403 unauthorized if people try to access a url directly instead of being referred by your domain
>>
File: 1552519693494.webm (2.75 MB, 400x300)
2.75 MB
2.75 MB WEBM
>>
trying to set up dockered xdebug + phpunit to work with Vim but shit ain't without problems. It works on browser but not on the command line, which is sad. Anyone possibly run into this sort of thing? Gonna just give up as even google is worthless.
>>
>>70179089
Ok, let me give some advice. Create something for businesses. Do not do things for just people. If you can think of a service to offer a business then do that. Businesses do not really care about popularity. Businesses will eat your marketing material and care about what you're doing. People only care about what their friends/influencers are using. Look at weme or mewe or whatever it was called. Social media that doesn't sell your data. Has a few million users but they are making nothing. No one cares about them. Having a million businesses use your service though and you're loaded.

Plus people don't like spending their money. People like spending their businesses money. Some chief technology guy will subscribe to your service because it's not out of his pocket.

So make something for businesses and just forget about social media, photo apps, music apps or whatever because unless you have millions of dollars behind you for marketing then you're in a very exclusive club if you make a million.

I'll recommend the 7 day startup audiobook. His idea was really good and he sold it to godaddy. Was making 30k a month in less than half a year.
>>
>>70172839
Look into Heredocs
$data = <<<SQL_STUFF
INSERT INTO COMPANY (ID, NAME, AGE, ADDRESS, SALARY)
VALUES ({$_POST['name']}, {$_POST['age']}, {$_POST['address']}, {$_POST['salary']})
SQL_STUFF;

However, you should also look into using PDO to prepare your queries, otherwise you're going to enter a world of SQL injection hell. Then, you should look into SQL procedures and functions. Having SQL queries in PHP code is always going to look messy, so it's better to reduce it down as much as possible by making a 'stored procedure' in the DB and calling that from the PHP. It can get a little complicated if you're writing a dynamic & optimised query, so that can be done in the PHP code too.
>>
>>70179333
does he place you work start with an S and end with an S?

I don't know many places that use laravel back-end and vue front-end.
>>
>>70172839
When you're using double quotes you can just put the variable in there.

$sentence = "My name is $name";
>>
>>70179810
fucking brutal
>>
File: 1550484336697.png (88 KB, 300x300)
88 KB
88 KB PNG
>>70159527
Hello faggots. Looking for employment advice for canada

>software developer (really just web dev) at comfy benefits included fortune 500 for 85k
>been working for 6 months only
>will lose 5k signing bonus if i job hop
>react UI, setting up DBs and rest APIs
or
>sign 60$ hour contract
>6 months long
>will "keep me around" if I do well
>not really a risk, I pump out features real fast and Im just going to ask for more money after
>contract is react user interface for car company
>some automation and set up
>>
>made the mistake of applying to job opening >with no specified stack
>just that it's a web developer for video streaming
>... ok, sounds cool

>go to meet them
>they seem cool, say they need a front end / inbetween js dev
>go/nodejs in the back, angular front-end

"ok I get angular it's ng-click type stuff like jquery right?"

>they send me a test task
>go to read angular docs
>mfw

oh my god what have I gotten myself into?
it seems awesome don't get me wrong but this is a whole new level

definitely didn't expect a frontend framework to be this complex
>>
>>70180444
Ask for a 6 month sabbatical to take care of your imaginary wife's son
>>
>>70179810
>a physical manifestation of autism
>>
>>70180708
at least the newer angular2+ or some legacy angularjs application?
>>
>>70180739
6
why?
what's the difference?
>>
how to I access an object value which has a key of #text

the object is like {#text: 'blah', etc: etc}
>>
>>70180764
object['#key']
>>
>>70180764
const text = obj['#text'];
const etc = obj['etc'];
>>
File: style.png (36 KB, 1085x327)
36 KB
36 KB PNG
How can I responsively style text/icons like this? Some people are really good at CSS, can probably answer this in 3 minutes. Care to help?
>>
>>70180777
>>70180772
thanks boys
>>
Does anyone have any experience with AWS costs for a simple web/mobile app? Like if I've got a typical CRUD app with let's say about 20k active users, what would the AWS monthly costs be?
>>
>>70180753
just wondering, because angularjs seems to be still fairly popular in the corporate world due to apps being built with it initially when angular came out and many devs seem to dread having to use that old version.
>>70180799
responsively style what exactly?
like stacking it on narrower screens?
>>
>>70180444
>leaving a steady job for a sketchy contract that will most likely end in six months
i wouldn't
>>
>>70180860
>responsively style what exactly?
Just want that effect, but don't want it to break on mobile
>>
>>70180799
Responsitivity doesn't have to be - and inherently isn't - a complex or difficult design paradigm.

The easiest, smartest and most effective way to create responsive websites is just to start making your website window narrower, while having your website open. Then, when your window is narrow enough that you think "this design is starting to look cramped", or "the design broke", take note of the window width.
Then, create a @media rule at that window width, and change the styles which either have broken, or don't look good at that size. Make it look like the website was designed for that window width.
Then rinse and repeat, always making the window narrower, and improving the styles whenever necessary.

Protips:
Usually you don't need more than ~4-5 breakpoints.
Usually devs don't bother doing styles for viewports narrower than 320px, as you don't usually see screens smaller than that.


As for what the fuck you mean when you say "responsively style text/icons like this", I have no idea.
>>
>>70180886
Define "break".
You don't want 3 columns of text on a mobile screen, unless you're an idiot. So you want to either hide or reposition/-order the content.
You can do so with CSS, much like you would on a larger screen. Just use @media-queries..?
>>
File: side.png (18 KB, 865x319)
18 KB
18 KB PNG
>>70180889
See >>70180886
I just want the styling as the pic, but don't want it breaking on mobile phones.

Pic related is what I have so far, trying to make them side-by-side.

<section class="main-section">
<img ...>
<h4>4chins</h4>
<p>sdfklj</p>

<img ...>
<h4>4chins</h4>
<p>sdfklj</p>
</section>


I'm trying to use flex.

.section { display: flex; }
>>
>>70180905
media queries my man...
>>
>>70180950
Place each img,h4,p in a wrapper. Then
.main-section
{
display: flex;
flex-flow: row wrap;
}
.main-section > .wrapper
{
flex: 1 1 33%;
}


Then place a media query where the wrappers start being too narrow, witht the following rule:
.main-section > .wrapper
{
flex: 1 1 50%
}


and then one more media rule with the flex's last argument 100%
>>
>>70180950
you're really new, no offense

what I'd do:
put every icon title and text into a div (that's 3 divs each one with one icon and the rest), then all of thse 3 divs inside another div. Set the width of the 1/3's divs to x or 33%. set the propperty and value to each div of box-sizing:border-box; to avoid the padings and margins applied to them cause any fuckery. Set the main div (the one containing the three divs) to display:flex; if this doesn't work and you don't really wanna do it with flex (I'd recommend you doing it with flex, since it's pretty much the way to do things now) then you remove the display flex property and value and set float left on all the three divs, this should give you the three divs now displaying one near the other horizontally.

From there you write the media queries for the different widths.

Good luck.
>>
>>70181004
>flex: 1 1 33%;
pls explain what this does, not the poster you're replying to btw
>>
>>70181038
https://developer.mozilla.org/en-US/docs/Web/CSS/flex#Syntax
>>
>>70181038
>https://developer.mozilla.org/en-US/docs/Web/CSS/flex
pls use MDN to learn this, poster you're replying to btw
>>
>>70181031
the funny thing is i'm not new at all. i just don't fuck with the front-end, and realllly despise CSS. anyway, i figured it out, just read up on flexbox again
>>
>>70181051
>>70181053
thank you

>>70181096
yeah, I really recommend flex since it's the new way with wide cross browser acceptance, otherwise if you want to support really old browsers do it with floats
>>
Would a raspberry pi 3B+ be good enough as a practice server for web dev ?
Just for local testing and stuff like that.
I'm worried because it only has 1 GB of ram and that isn't a lot these days.
It does have a 1.4 GHz quad-core so it should be enough in terms of cpu.
Also it's really cheap and energy efficient for the full package.
>>
>>70181267
Yeah that should be fine
As long as you don't do a ton of database/filesystem writes, apparently SD cards wear quickly
>>
>>70181313
Oh that's ok, SD cards are cheap after all.
I was considering using a VM but I'd use the snapshot function a lot and I might not learn as much from my mistakes.
Do more modern things like node.js run well on those things ?
I'm still busy with learning JavaScript itself but I need to plan ahead on what to study afterwards.
>>
>>70180950
.main-section {
display: grid;
grid-template-areas: '. stuff .';
grid-template-columns: 1fr auto 1fr;
}

.main-section * {
grid-area: stuff;
}

Want equal width?
.main-section {
grid-template-columns: repeat(3, 1fr);

}

or perhaps you gotta specify a width?
.main-section {
grid-template-columns: 1fr 100px 1fr;
}


shit's simple af
>>
new thread
>>70181704
>>70181704


>>70181521
>but I'd use the snapshot function a lot and I might not learn as much from my mistakes.
Better to use snapshots and restore, than wasting with fucked systems.
Alternatively consider a 5$ VPS, if the Raspberry doesn't work out.
>>
>>70181746
*wasting time
>>
>>70181746
>Alternatively consider a 5$ VPS, if the Raspberry doesn't work out.
I didn't even consider this, might be good when I'm a little bit more experienced.
>>
The project I'm working on is going to be amazing. Guarantee you hear about it in a few months, and probably would not doubt if a few of you use it. Very exciting. Hopefully I don't abandon it.
>>
>>70180010
>tfw I fixed it
thank you based me
turns out
xdebug.remote_connect_back=0
cannot be set to 1 on CLI, and can't have 2 docker containers debugging on the same port.

I hope some fucker finds this after googling. If only gitclub didn't need me to login to post a fucking comment/issue every time



Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.