/wdg/ - Web Development General

Reactards confirmed gay edition

Previous thread: >Beginner Roadmap and Overview
github.com/kamranahmedse/developer-roadmap
youtube.com/watch?v=UnTQVlqmDQ0

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

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

>Asking questions
jsfiddle.net - Use this and post a link, if you need help with your HTML/CSS/JS
3v4l.org/ - Use this and post a link, if you need help with PHP/HackLang

Attached: wdg_tv_crying.jpg (600x800, 142K)

Other urls found in this thread:

php.net/manual/en/function.session-start.php
k3s.io/
twitter.com/NSFWRedditImage

Reminder that the Apple Macbook Pro with Retina Display is the official machine of /wdg/

Oh look, /dpt/ is trying to make us look retarded again

I'm fine with this

how common is ASP.NET in web development?

Go to for any real businesses.

Nearly every job in my area is for .net

Is it worthwhile learning to do web development in Java?

So what's the best way for me to add "cms" to a full stack site (mern). I have a few partners who want to be able to edit specific parts of the site text / add a post or two. Preferable using tinymce. Should I use a headless cms? Is there a node module I can just throw at it?
Or should I just write a small admin panel from scratch and build some posts / page model?

at what level do I need to be at with css where I can start using frameworks like bootstrap or foundation that it doesn't disadvantage me?

I don't want to feel like I need to rely on frameworks, but at the same time, trying to get css to do exactly what you want takes so much time and there's usually a pre existing framework that can do exactly what I want with it

depends on what you want to do, but not really, no.

I've a project where i need to seperate html and php, do you guys know any good tamplete engines for that?
The old page used templatepower, but i don't that shit doesn't support php7 and i'm too lazy to port shit
Thanks in advance

I've done Angular and some Vue. How worth is it to learn Laravel? My php knowledge is pretty limited but it seems very interesting
Thanks friends

Attached: 20190227_121237.jpg (2496x2131, 2.9M)

God I hate typeless languages so fucking much.

>Monday is the first day of the week according to ISO-8601
>a lot of date/time pickers still insist on using Sunday as the first day of the week unless configured otherwise
It's the Murkans trying to push their shitty conventions again, I know it

why not learning javascript backend too

What are some cool website ideas that is easy to create?

facebook

search dribble for some great site designs

dribbble.com*

Isn't that a Jewish thing? No wonder America is doing it too.

Think of a website you like to visit and improve on that idea.
Maybe even a website that died or just got shut down but you still kind of miss.
I give the same advice in the agdg thread when they don't know what kind of game to make since it comes down to the same thing.

>since it comes down to the same thing
not everyone are talentless hacks with zero creativity
suck cock

I have job as front end developer and only thing i know about css is bootstrap since that shit is so easy. I know nothing else abot css, if god forbid i have to do something that bootsrap doesnt do out of box i google.

how do you live with yourself you pathetic worm

>not everyone are talentless hacks with zero creativity

>missing the point of my reply that much
stay salty

Better than others i asure you, while faggots learn ins and outs of something boring like css i just took few minutes to figure out how columns work in bootstrap few years ago and now i just google when i have to deal with that boring shit of css

php

Does adding value to session autoruns session_start() ?

$_SESSION['user_id'] = 'hello';

No

seems like Bootstrap doesnt stretch the content when on small devices, there is always some padding on left and right
is it ok to leave it like that or somehow make it stertch from edge to edge?
does that mean i need to custom force bootstrap for that?
how do you deal with this?

I'm triggering an audio element to play.

It doesn't play the first time through, but does on the second and so on.

Any idea?

I've tried preloading and it's not helping.

actually seems since I started preloading it I have to play it the first time through.

can confirm, its a great and reliable machine.

Single-page applications suck!!!! Backend-oriented frameworks are the future!!!!

By 2021, this will be common knowledge amongst the trendy bloggers. Calling it now.

Hi all, i’m trying to un-just my life and escape a garbage career i hate. I have a computer science degree but never kept up on my skills after graduating because I picked up a finance job.

I want to start learning web development again. I’m going through the OPs resources but what do you recommend I do once I’m through them? Is it worth just starting to build web apps and create some sort of portfolio to show off? I feel a little overwhelmed and not sure where to start really.

>un-just my life
>with webdev
user I...

>Is it worth just starting to build web apps and create some sort of portfolio to show off? I
yes this is what you do

Should I do something else? i honesty just want to learn a skill and fix my life with a better job.

php

It seems that starting the session inside a class method doesn't seem to work.
The simplest way would just be start the session at the beginning of the script but doesn't it require overhead server resources to maintain if ran without usage ?
Seems more intuitive to start and run it only when user logs in.

php.net/manual/en/function.session-start.php
php manual produces the answer(1st comment) but once again anxiety my old friend kicks in with 100 lines of code for smth perceived as simple(just start the session).

This. lmao.

It's fun for the first year or two but holy shit does working on the same thing get boring. I'd go back to doing tiling if it paid as well as this.

I come home every day and work on my online businesses to try and be able to leave this field because it's so boring.

You know how at the end of a long shit you get energy as soon as it's time to go home? I haven't had that since starting web dev.

How do u people manage to "pick up finance job" without relevant degree i never understood.

Those jobs are highly specific, highly competitive and requires years of training and expertise, and people just seem to "pick it up" as simple as buying few bears in the shop.

don’t you understand the incompetence of some major US corporations. my department is 3 people doing the job of one. i went to my boss to ask for more work and he basically told me to keep quiet about that (implying if management found this out my department would be faced with layoffs). i received a month of on the job training and then was set loose to do whatever. i make 50k a year and despite doing literally nothing 9 hours a day, it’s driving me absolutely insane.

but yeah, big corporations are jokes.

>3 people doing the job of one
lol who knew americans are actually using socialism pattern

I feel like working on something new today. What should I create?

Attached: 1551204710327.webm (1260x1080, 2.84M)

I was heavily int asians before, but latinas showed me the light, the light of thiccness.

Noob question.

Is it possible for php/mysql code to stop working when moving from Ubuntu 7 to Ubuntu 18?

I've got a local branch with a subdirectory that in master has been made a submodule instead. How do I merge master into my local branch, bringing in the new submodule and then applying all those changes made in that subdirectory?

2015 version is glorious i dont miss windows at all it's so easy to get up and running with all my dev shit and seamlessly slide across windows/desktops

i have a surface which has similar touch gestures but it's nowhere near as fluid

so ive gone with Golang as my language to learn outside of my frontend dev job

im completely disillusioned with my frontend job it's complete boring shit where i feel like im losing skills and getting worse as a developer than i was as a neet before

what kind of things could i build outside my job with or without golang? what have you guys been doing

Does anyone knows if chrome lets you interact with serial ports?

Everything i find on google, is vage AF.

Attached: Capture.png (984x667, 820K)

How did you get a job?

This + Magic Keyboard is super comfy.

Attached: 1446937654460.png (1500x1500, 88K)

Imagine actually getting tricked into buying apple products.
How horrible.

>programming on a portable

Attached: 1549126270212.gif (344x203, 3.88M)

There is no need, you are retarded, that's why web 3.0 is what it is.

I am normally using Vue but looked at the Gatsby docs today and it looks really nice.
Has anyone here used Gatsby already and if so what are your thoughts and how does it compare to static generation with Next or Nuxt?

Thoughts on Preact? React isn't that big min+gzip, but every byte counts.
Mainly I'm concerned about the features it leaves out, are they commonly used?

I need to create an array to send parameters to a SOAP web service in PHP w/SoapClient, but there's lots of nested parameters in the XML body

how do I write this?

Bumping. If anyone has recommendations

I've worked with both Gatsby and Nuxt. Nuxt is alright but it's really barebones when it comes to static site generation. One issue with static site generation on Nuxt is that when the app "hooks in" for dynamic routing, the new routes you navigate to have to connect to the data source / API in order to retrieve the response and then render the page. So in other words you're not getting pre-computed responses, which goes against the idea of static sites, and you'd also have to host a public API.

Gatsby on the other hand has a whole ecosystem based on the idea of static site generation.

Static site generation is certainly not for every use case though. For example right now any changes to template code would require another build/generation process which could be costly if you have thousands of pages. Additionally, adding more data requires a full rebuild/regenerate of every page. I think if Gatsby somehow integrated incremental generation these problems though would be less to worry about.

Preact is a bit behind React on feature parity (namely Context (16.3) and Hooks (16.8)). You shouldn't also need to worry about TTI if you're considering to server render/prerender/statically generate your site.

> Not programming on Windows 10
> Not using a full on TV as a monitor
> Not using a standing desk
> Not using the loudest possible mechy keyboard on the market
> Not using Notepad++
> Not writing websites from the top down with HTML -> CSS -> ES5
yfw

Attached: apple.jpg (821x753, 112K)

I could be wrong, but it MAY be that you need to manually "rewind" the audio file each time. In other words, when you first play a 5 second clip, it goes from 0 seconds thru 5 seconds. It's then at t=5 seconds, and if you click play again, it attempts to restart from where it stopped.
I'm not 100% sure of the syntax off the top of my head, but I believe you'd wanna to something like "audioElement.currentTime = 0" before each play.

I'll try this when I get home.

The weird thing is that it doesn't work on the first play, but does on the second and subsequent plays. It throws a DOM Exception the first time through.

I was wondering if it was a Chrome issue since chrome doesn't allow autoplays anymore?

If your way works then great, but if not I'm probably going to use Howler js. Thanks.

>> Not using Notepad++
any plugins you use and recommend? I use Notepad++

that's kind of what I don't want, but at the same time, I don't understand why put up with the rebuilding same margins and padding etc every time you start a new project when we have a set standard that works in an all readily available and easily usable format


I think I'd rather use foundation though. the showcase looks more like the websites I build anyway. vanilla bootstrap always looks like bootstrap, and a customized bootstrap layout just seems to look edgy or hipsterish imo.
materialize also looks nice, but I can't see it being too useful for what I need to make

Anyone loves websites that go straight to the point?

example:

>lightweight k8s

k3s.io/

Attached: 1551292354456s.jpg (125x125, 2K)

BABBY HTML

What's a good tag to produce the following:

Username: Jeff
Birthday: 4/20/1990
Favorite color: blue

Where the label/value are left-aligned in two columns. ?

Just wanna do things the right way

i was applying for months honestly just got lucky

biggest step was just getting a reply back from recruiters to confirm the interview, interview seemed pretty easy for me it was just actually getting to that stage which was difficult as i had no prior experience and still a student at the time

pls respond

>SOAP
>XML
I am very sorry user

Yeah, it's fucking Chrome.

Firefox can trigger audio elements with .play() with no issues. What the fuck

first reason I'm asking is because I never had to deal with shit like this

For future reference to anyone,

Google Chrome blocks audio elements from being triggered to play UNLESS the viewer interacts with the page first.

Google is stupid, so just make an invisible button and click it with Javascript.

lel

I'm not sure if there is a right way. It's easier to just put it in a div (or six of them) then to make a table.

I figured it out. Made a command line interface, which I'm truly proud of. It asks you for the location, you enter it, and get the weather/date, time in the terminal.

I have proceeded to the next step in the interview process, and have a phone call on it's way.

>Google Chrome blocks audio elements from being triggered to play UNLESS the viewer interacts with the page first.
that's a good thing though

Not for webapps with sound effects it isn't. My use is completely legit, but now I have to circumvent this bullshit.

Twitch extension where the broadcaster does nothing. It receives a pubsub message about an event and triggers a sound effect for the broadcaster.

>im too stupid to know that browsers know the difference between a javascript-triggered event and an actual click

ok, well it worked, so now what?

the fact that your use may be legit doesn't change that people would still use it with ill intent

people use window.open with ill intent, doesn't mean that option should be taken away.

Does anyone here a role based email address, such as [email protected]?
And has it ever caused your email to be rejected from signup forms?

I don't really feel like creating multiple addresses, so I was wondering what your experiences are.

>webapps with sound effects

Attached: 1536008086399.png (937x638, 298K)

rate my upload design. top is upload fail state, bottom is file added state..

Attached: Screenshot 2019-02-28 at 05.03.14.png (494x674, 163K)

What's the proper way to consume an api with token authentication (in C#)?

>Move around password using SecureString
>Send login request and get token
>Send token in subsequent requests
Where do I store the token? Just as plain text somewhere in a temporary file if I don't want to have to log in every time I launch the application? If I don't care about staying logged in when the application restarts do I the token in just a string, or should it also be in a SecureString? I'm not sure how secure you need to be with a token

How the fuck does one block those invisible layers that covers some sites that will give you a pop up whenever you click anywhere on the site? I'm running noscript with everything blocked yet it still happens.

Is this thing a meme? Heard nothing about it but now suddently its everywhere, what the fuck is this even.

Attached: 14241.jpg (1000x500, 33K)

Has anyone ever used PHP's rename_function to fix the horribly mismatched poor decisions of the PHP language?
I think it would be fun and it would also fuck up seething crackers whose exploit would stop functioning because the function names are beyond their expectations (imagine autoloading the overrides with auto_prepend_file)

>Using PHP in the year of our lord 2019

Not him, but PHP 7 with Laravel or something else modern, is far better than the PHP 4 no-framework spaghetti you see everywhere.
In my opinion it is a decent and stable choice if you don't want to use Ruby or Python.

>if you don't want to use Ruby or Python
Or Node...or C#...

My University has 4 specializations

>Games
>Webshit
>networks
>Databases

Which one should i take guys? I am leaning towards Webshit cause its probably the one with most job opportunities, but...is it fun? Like i'd prefer to make Games ofc but the industry is a mess, but do you have fun chugging React sites 8 hours a day?

Attached: 1537352365762.jpg (414x415, 114K)

Anyone here get python Flask to work on GoDaddy?

Fuck sake chose the wrong webhost didn't I lads

So, how exactly are networks and databases not webshit?

>>Games
Scam
>>Webshit
Learn it on your own
>>networks
>>Databases
Good options but tedious as fuck if you're not into it. Databases especially.

How often do you configure BGP routers as a webshit? Do you have enough experience to design and maintain a DB for terabytes of extremely critical data?

I would use Laravel, if only they didn't turn it into a bloaty mess of dependencies. Also it's slow and it's not ideal for shared hosting, which is 90% of the use case.
Anything above a thousand files tells me there's something off.
Anything above two thousands files means there's definitely something fucking wrong.

Wanna hear something fun? Yesterday I was researchin for REST frameworks and found a review of a fucking moron who was saying that no dependencies were a bad thing. What a fucking piece of shit, I hope he enjoys all those points of failure waiting to happen.
Also he was complaining that a framework wasn't receiving updates. Well, maybe those frameworks are done and don't need update yet?
Goddamn nudevs retards.

I have a job in finance lad (tax advisory), but also code for personal projects on the side.

Depending on when you got your compsci degree, things have changed considerably with high level languages. I used to code back in 2002-05 and picked it back up more recently.

Now most things web related tend to be dominated by meme libraries and frameworks. This means if you have experience with lower level languages or coding when less libraries were available, you will appreciate how dumbed down and normie / roastie friendly webdev has become - literally to the point where you can just copy and paste shit from stack overflow and hey presto you have a fully functioning web app. This means the field is now infested with 95IQ capeshit fans, pajeets and roasties though.

My advice - find a niche in finance. Pay is way better.

>maintaining databases
My databases run on magic and fairydust.

t.b.h i'd prefer to kys than to go to networks, shits is fucking cancer (for me)