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

>2017 https://www.youtube.com/watch?v=9hD KfBKuXjI [Embed

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

Thread replies: 111
Thread images: 11

File: opimage.jpg (290KB, 2592x1952px) Image search: [Google]
opimage.jpg
290KB, 2592x1952px
>2017
https://www.youtube.com/watch?v=9hDKfBKuXjI [Embed]

>This season's Advent of Code:
https://adventofcode.com/2016/

>Discord
https://discord.gg/wdg
OR
https://discord.gg/0qLTzz5potDFXfdT
(they're the same)

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

>Learning material
https://www.codecademy.com/
https://www.bento.io/
https://programming-motherfucker.com/
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md
https://www.theodinproject.com/
https://www.freecodecamp.com/
http://www.w3schools.com/
https://developer.mozilla.org/
http://www.codewars.com/

>Useful Youtube channels
derekbanas
learncodeacademy
funfunfunction
computerphile
codingrainbow

>Frontend development
https://github.com/dypsilon/frontend-dev-bookmarks

>Backend development
https://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks
[Gist] backendDevelopmentBookmarks.md (embed)

>Useful tools
https://pastebin.com/q5nB1Npt/ (embed)
https://libraries.io/ - Discover new open source libraries, modules and frameworks and keep track of ones you depend upon.
https://developer.mozilla.org/en-US/docs/Web - Guides for HTML, CSS, JS, Web APIs & more.
http://www.programmableweb.com/ - List of public APIs

>NEET guide to web dev employment
https://pastebin.com/4YeJAUbT/ (embed)

>How to get started
http://pastebin.com/pDT82mQS (embed)
http://pastebin.com/AL6j7GEE (embed)

>cheap vps hosting in most western locations
https://lowendbox.com
https://www.digitalocean.com/
https://www.linode.com/
https://www.heroku.com/
https://www.leaseweb.com
>>
Why is node garbage?
>>
>>60513828
I'm building a 'snake' web app game with django as backend for scores.

Managed to finish the REST api for now. I have very basic knowledge of client side technologies.

Any tips?
>>
I know php and c#.

Should I pursue Laravel or C# .net core?

I read a post in one of the old /wdg/ threads that said they were an employer who didn't hire a laravel dev because they could only work within the framework and couldn't do anything with the core language itself.
>>
In Agnular 4, how do I get the Materializecss datepicker to bind its value to a form? It changes the value in HTML but the form value stays empty and doesn't change.

HTML:
<form [formGroup]="myForm" (ngSubmit)="onSubmit()">
<input type="date" class="datepicker" formControlName="date">
<button class="btn" type="submit">Submit</button>
</form>


TS:
export class HomeComponent implements OnInit, AfterViewInit {

myForm: FormGroup;

constructor(private _formBuilder: FormBuilder) {
this.myForm = this._formBuilder.group({
date: ['']
});
}

onSubmit() {
console.log(this.myForm.value.date);
console.log(this.myForm.controls['date'].value);
console.log($('.datepicker').val());
}

ngAfterViewInit(): void {
$(document).ready(function () {
$('.datepicker').pickadate();
});
}

ngOnInit() {
}
}


I don't want to use angular2-material or anything similar because this styling is temporary and I will need to be able to quickly get it out of the project.
>>
>>60513868
if you have to ask that question then you've obviously never used anything but node.
>>
Is there a way to persist some data locally (like with localStorage) if you use a private window?
I thought about making a startpage generator site or plugin if I could get it to work in private windows
>>
>>60515181

Session storage?
>>
Trees and Subtrees in HTML

pic related
>>
>>60514199
I would pick .NET Core if I didn't doubt whether it's really production ready.
>>
>>60514199
In my area, there are far more .Net jobs than PHP jobs, so I'd personally go with anything .Net
>>
Can ASPajeets and PHPajeets be considered human?
>>
>>60514199
Laravel. It has a better package ecosystem and great docs/tuts.
>>
>>60513929
>django as backend for scores.
Holy overkill
>Any tips?
Choose a rendering technology and base the rest on that: svg or canvas. You could even use an HTML table, since it's a gridded game.
>>
>>60513929
http://www.pixijs.com/
>>
>>60513868
Javascript. No multithreading.
>>
>>60514199
.NET. PHP job market is filled with shitty WP jobs. Also C# is god tier language.
>>
>>60515430
Let me guess - you are beginner programmer who is learning node.
>>
File: smug frog.png (468KB, 1024x1024px) Image search: [Google]
smug frog.png
468KB, 1024x1024px
>>60515883

Spring Boot master race for years, my man.
>>
>>60515914
Good choice actually. But C#>Java.
>>
>>60515914
that's great, but fuck off with the fucking frog
>>
>>60516042
It really is a good choice. Also Kotlin (which has first-class support in Spring 5) > C#.
>>
>>60515388
what country/area is that?
>>
>>60515436
there was a guy in a previous /wdg/ thread who said that laravel devs tend to just know their way around THAT framework and not the core language it runs on.

im afraid of becoming a bad developer if i pursue laravel.
>>
>>60516781
it doesn't help that the core language is utter shit
>>
>>60516820
what do you mean by this?
>>
I'm trying to create a todo app on heroku with vue and an express backend. I want to use all the latest es7 shit on both of them and the frontend needs to get bundled with webpack. What's the best way to organize all this shit? just put them in /client and /server folders? Some kind of git submodule magic? Most tutorials/examples have all the frontend stuff with just a basic single file server.js for the backend, but I want the backend to actually do something interesting. Wat do?
>>
>>60516913
That it's not really easy to "know your way around PHP" because there's a trap around every corner and a lot of shit you don't really need to know.

>>60516962
>What's the best way to organize all this shit? just put them in /client and /server folders?
Yes. I would make them separate node modules but store them in one repo.

https://github.com/mchandleraz/realworld-vue
https://github.com/gothinkster/node-express-realworld-example-app
>>
>>60517057
>That it's not really easy to "know your way around PHP" because there's a trap around every corner
please elaborate
>>
Can someone please tell me what the fuck is going on
I'm setting a div's color property in javascript and it's showing up as black. I have literally zero CSS rules to set anythings color to anything, and the dev console looks like it should work but nope....
>>
>>60517212
I want it to show up as white, and it looks like it's supposed to but its obviously not working

>>60517105
A lot of functions in PHP have little ways in which they are vulnerable, little ways in which they have totally insane behavior, don't respond how they should to inputs, have misleading error reporting, silently do the wrong thing instead of throwing an error. Basically look up any PHP rant on the internet and you'll get hundreds of things wrong with PHP
>>
File: 40VnUX1.png (50KB, 591x655px) Image search: [Google]
40VnUX1.png
50KB, 591x655px
>>60517105
https://www.google.pl/search?q=fractal+of+bad+design (can't link directly)
I feel dirty linking to this in 2017.
Using PHP can be tolerable if you're using a subset of the language and a good framework, but then would that guy still consider that "knowing your way around"? Who knows.

>>60517212
paste a minimal example into codepen, jsfiddle or whatever
>>
>>60517212

you set the background color to black in the div
>>
>>60517282
Okay so it works in jsfiddle, but not in a regular webpage.
I feel like I'm going insane
works: https://jsfiddle.net/59dy1krx/
doesn't: https://ghostbin.com/paste/b2b2r
>>
>>60517212
>>60517412
check the "computed" tab next to "rules" in the dev tools
>>
I went from being a NEET to a full time wagecuck, doing Laravel for 40 hours / week.

And I get paid
> 1600 euro per month

Yes, it sucks. But it's also my first job. And I live in the Netherlands, not Silicon Valley.

Tell me, did I get cucked?
>>
>>60517442
This tells me that the text is indeed computed to be black, but doesn't tell me why on earth.
>>
>>60516189

This frog has been around for over a decade, plebbitard.
>>
>>60517531
It's less than a decade because I've been around here for a decade and they weren't there at first. You should read up on the meme lifecycle and how most of memes evolve into literal cancer. There are some cancer-immune exceptions that are immune because of how abstract and impossible to grasp they are for the 9fag cancer (spurdo is a good example).

t. memology phd

>>60517476
I have no idea then, sorry.
>>
fuck webdev this shit literally makes no sense
>>
>>60517454
do you have a degree or not? How much did you study before getting that job? We're all hoping to be like you dude
>>
>ask people for help on twitter
>no one ever responds
>release untested thing
>gets very popular and everyone asks to help me test in the future.
>repeat forever.

I fucking hate people. Everyone is a bandwagon faggot and will ignore you unless you're the flavor of the minute dev.
>>
>>60517627
i know what's cancer, and that's you.
>>
>>60514700
how's being a google's beta-tester of a framework with endless version of disaster?
>>
I get so carried away when I make stuff.
>>
>>60520295
you need followers, not bot-spamming pajeets
>>
christ clojurescript is complicated to get started with

like what do i even use? cljsbuild? figwheel? how do i get a decent template? do i have to write a large project.clj file every time?
>>
>>60521336
Well, I know 3 people on there that could help me that use my current stuff.

Also on reddit there were 4 others that offered to help in the future that are ignoring me.

I am really starting to wonder if I'm shadowbanned on reddit.
>>
So I have a chatclient and when it dies I try to reopen it and it says it's not a constructor?

Anyone know what I'm possibly doing wrong? It works when the page first opens, but not anytime after that.
>>
>>60520310
that's a hurtful thing to say but also wrong so I guess it's alright
>>
Is this not a JS constructor?

It's telling me it's not a constructor the next time I call it.

var chatClient = function chatClient(options){
this.username = options.username;
this.password = options.password;
this.channel = options.channel;

this.server = 'irc-ws.chat.twitch.tv';
this.port = 443;
}
>>
>>60522359
it's probably setting the chatClient variable to something else somewhere
>>
I just searched everywhere and could not find anything like that.

The chatbot is heavily based off of this one
https://github.com/DallasNChains/twitch-js-chatbot-example/blob/master/simple-chatbot.js
>>
I have this interview coming up tomorrow for an assistant application developer with php.

What should I practice before going in tomorrow? Assuming they will ask me to do stuff on the board.

What do you suggest?
>>
Not programming related
>>>/g/wdg/
>>
>>60522552
please leave this thread alone, I'll pay
>>
 var CurrentTotal = $('#chatvotes').val();
CurrentTotal = parseInt(CurrentTotal);
var NewTotal = CurrentTotal + 1;
$('#chatvotes').html(NewTotal);


>It doesn't work

Had 5 votes and it added 1.
>>
>>60522432
I was trying to create a new chat object instead of opening the current one.
>>
>>60522878
>Had 5 votes and it added 1.
sorry, I don't understand

I changed val() to html() because I presume that the #chatvotes element is not an input, a select or a textarea. It works in isolation.

https://codepen.io/anon/pen/YVRBLG
>>
I've started self-studying web dev using Colt Steele's Udemy course. Is this a good place to start, and where/what should I do once I finish it?
>>
>>60522359
Are you using the new keyword when you call chatClient? That is a JS constructor, it's just probably the most obtuse one (pseudoclassical style). Honestly if you write constructors in JS I recommend the functional way because it's much more straightforward, even if it's less memory efficient.
>>
>>60522359
Also if you want to avoid issues with the variable name being reset elsewhere, I highly recommend using the pattern const funcName = function() {}
>>
>>60523096
I'm trying that now. Have to wait for people to vote in chat to test it.

This project is insaaaane.
>>
>>60522878
You are using val to get value and html to set value. One of those can't work. Also maybe keep votes value in variable and update element from that variable.
>>
>>60525944
html worked.
>>
what is the first web lang a C++ developer should learn?
>>
>>60526002
C# is the closest thing to C++, so if you want to take an easy jump go with that. But really, it depends on what you want. If it's for work, then look for the most popular langs in your area and go with one of those. Demand for langs really does vary from region to region.
>>
>>60522537
sorting algorhitms for normal and assoc arrays.
>>
File: image.jpg (244KB, 1600x600px) Image search: [Google]
image.jpg
244KB, 1600x600px
c# or php laravel for web dev?

massive majority of jobs where i live are for c# but i have practical exp developing php systems.

i would have to relearn c# advanced features and then make projects (greater than cli shit) for the first time with the language. but then again i'll also have to do the same with laravel.

what do?
>>
>>60527940
Watching c# asp.net videos on the Microsoft virtual academy website will pretty much kick start you on c# webdev pretty quick.
>>
File: 1493651081823.jpg (865KB, 4320x2560px) Image search: [Google]
1493651081823.jpg
865KB, 4320x2560px
I don't want to shill but I've been making lots of improvements to my Pictionary web game (don't let the old screenshot fool you), it'd be sweet if you guys came and tried to break it and/or gave me some feedback. If you have any problems let me know your browser/OS.
https://www.drawasaurus.org
>>
>>60528226
>Microsoft virtual academy
Wow, didn't know that it's a thing, thanks senpai
>>
>>60528261
Thanks Doc
>>
Can anyone explain Google Amp why is it bad or good like I'm a retard? I've read hn and reddit threads and don't understand anything. Is it supposed to make websites faster by limiting html and js abilities and caching resources on Google servers to load them up from Google, instead of site servers, on user devices?
>>
Why do major websites make links like
<a href="http://site.com/redirect?url=..."></a>
instead of simple <a>
>>
>>60515527
I know django is an overkill. I already know node and Java(Tomcat). I wanted to try something new.
>>
>>60528261
Tested the max username and message after removing the html maxlength, passed with flying colours
>>
>>60529527
redirects are for tracking, analytics, and monetization (if linking to a merchant site)
>>
>>60529638
Glad you noticed <3
>>
>>60529638
>removing the html maxlength
>>
Best way to store context for users across different system processes (ie program is multiprocess and doesn't have access to shared objects)? Python if it matters.

Wanted to avoid writing to a file but I'm having issues getting results from celery across different instances of the program. Would SQL or a simple JSON file work better?
>>
if i have array made of numbers like
$array = array('1111,'22222','323131');

I want to output them ordered from smallest to biggest, how can i do that?
>>
>>60526002
Java

>>60527940
C#

>>60529527
so that they know what you click on

>>60531466
$array = array(1, 10, 2);
sort($array);
foreach ($array as $value) {
echo "$value\n";
}
[//code]
>>
>>60520966
Not to mention that you send a 4x bigger payload down the line which takes like 10x longer to parse and execute on mobile browsers.

I'm not joking, angular websites often take 20 seconds or more to load on mobile devices.
>>
>>60531615
>sort assumes least to greatest
Terrible.
>>
>>60531709
http://php.net/manual/en/array.sorting.php

look at this shit then. this language is a fucking joke
>>
>>60531727
REEEEEEEEEEEEEEEEEEEEEEEE
>>
File: whyabitchgottafeel.gif (936KB, 250x141px) Image search: [Google]
whyabitchgottafeel.gif
936KB, 250x141px
>>60513828
>Build basic chat box using Socket.io's guide with Node and Express
>Style is set in the head tags.
>Doesn't tell you how to send .css files with node.

I really want to get a good grasp on node so I can be hirable by July. Does anyone have any from scratch comprehensive node tutorials or reading material they could recommend?
>>
In django, when should I authenticate a user? I authenticate them when they sign up the first time, should I authenticate them upon each session i.e. when they log in?
>>
>>60533392
https://expressjs.com/en/starter/static-files.html

>>60534166
the process of "logging in" is an authentication process so I don't really get what you mean
>>
>>60518550
I dropped out of college. I self studied programming with Free Code Camp, CS50, Project Euler.
>>
>>60534262
of, I though of the authenticate() functions. Authenticate compares typed password with the hashed version of the password in the user database. But I guess it would be redundant since login in is an authentication process, as you said
>>
>>60528815
> Is it supposed to make websites faster by limiting html and js abilities and caching resources on Google servers to load them up from Google, instead of site servers
That's the gist of it, yes
>>
>>60534415
>Authenticate compares typed password with the hashed version of the password in the user database
and this is how you log in a user. you made it sounded like you were doing something else so I'm still a bit confused
>>
>>60520966
>>60531692

What's the alternative? Angular seems pretty good and easy to work with 2bh.
>>
>>60535510

Oh, and the Angular CLI creates a fantastic development suite right out of the box.
>>
im getting this error and i dont know why please help

Uncaught SyntaxError: Unexpected token [ in JSON at position 1196
at JSON.parse (<anonymous>)
at XMLHttpRequest.xmlhttp.onreadystatechange

it worked fine before...
>>
>>60535586
and you expect people to help you based on this contextless error?
>>
File: kys.jpg (37KB, 600x600px) Image search: [Google]
kys.jpg
37KB, 600x600px
>>60535586

Give me a sec to look at the JSON you just posted, my man.
>>
>>60535124
            user = authenticate(username=username, password=password)
if user is not None:
login(request, user)


This is a piece of code for sign up, When users log in I do not do authenticate(username...) I only use login() function. My question was, when a user regularly log in into a system, should I do it like the code above?
>>
>>60514199
C#, wayyy better language
>>
>>60531463
sounds like a good use case for redis
>>
File: nightman.png (532KB, 1280x800px) Image search: [Google]
nightman.png
532KB, 1280x800px
>>60513828
Why is node so popular if it seems like people here shit on it? I mean, I see a lot of hiring companies requiring you know it over php or C#.
>>
>>60536446
>Why is node so popular
Because javascript, a lot of people know js. Comparatively low barrier to entry, less switching between front and backends.

>I see a lot of hiring companies requiring you know it over php or C#.
Where are you from? It seems that skills vary greatly across continents, there was anon from the UK who bitched about the whole market being dominated by ms stack
>>
>>60535510
Vue should be best Angular alternative.
>>
>>60536446
Are you sure it's node and not just the javascript?
>>
Do you kode everyday, /dpt/?
>>
I think the lead wants to fire me at work.

I've been called twice into the CEOs office asking if I understand everything and how's it going.

The lead doesn't look at my work though. I get most of my stuff from sales directly for some reason and a lot is high-level stuff. Like 15x the hourly quotes most people are doing.

He probably sees my timesheet and thinks "oh the same project for a week straight" without realizing that's a 10 grand project.

I honestly don't care. I have enough steady passive to not work. I just think it is aids.
CEO keeps saying "don't worry you are not in trouble"

I think it's because the lead found out I don't have a degree (didnt lie, they didnt ask)

Anyways, time to freelance at 5 dollars an hour just in case.
>>
what's the best way to pass user credentials from the front end to a node.js server? I found simple-oauth2 on npm, not sure if there's something considered best practice though
>>
>>60535962
Went with that maybe 30 minutes after posting. Works beautifully.
>>
>>60535510
react+mobx, react+redux, elm or vue
Thread posts: 111
Thread images: 11


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

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


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