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?
Easton Wood
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.
Cooper Rodriguez
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:
Submit
TS: export class HomeComponent implements OnInit, AfterViewInit {
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.
Connor Robinson
if you have to ask that question then you've obviously never used anything but node.
Noah Harris
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
Christian Sanchez
Session storage?
Nathaniel Thomas
Trees and Subtrees in HTML
pic related
Charles Wilson
I would pick .NET Core if I didn't doubt whether it's really production ready.
Luis Long
In my area, there are far more .Net jobs than PHP jobs, so I'd personally go with anything .Net
Brandon Cruz
Can ASPajeets and PHPajeets be considered human?
Tyler Martinez
Laravel. It has a better package ecosystem and great docs/tuts.
Blake Gutierrez
>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.
.NET. PHP job market is filled with shitty WP jobs. Also C# is god tier language.
Camden Fisher
Let me guess - you are beginner programmer who is learning node.
Lincoln Cox
Spring Boot master race for years, my man.
Matthew Torres
Good choice actually. But C#>Java.
Henry Perez
that's great, but fuck off with the fucking frog
Juan Lee
It really is a good choice. Also Kotlin (which has first-class support in Spring 5) > C#.
Bentley Evans
what country/area is that?
Bentley Jenkins
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.
Thomas Nelson
it doesn't help that the core language is utter shit
Camden Gutierrez
what do you mean by this?
Jordan Bell
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?
Logan Collins
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.
>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.
>That it's not really easy to "know your way around PHP" because there's a trap around every corner please elaborate
Liam Harris
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....
Noah Cruz
I want it to show up as white, and it looks like it's supposed to but its obviously not working
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
William Perry
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.
paste a minimal example into codepen, jsfiddle or whatever
check the "computed" tab next to "rules" in the dev tools
Jordan Davis
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?
Nicholas Wood
This tells me that the text is indeed computed to be black, but doesn't tell me why on earth.
Asher Long
This frog has been around for over a decade, plebbitard.
Kevin Powell
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
I have no idea then, sorry.
Isaac Thompson
fuck webdev this shit literally makes no sense
Ryder Barnes
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
Gabriel Powell
>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.
Justin Perez
i know what's cancer, and that's you.
Justin James
how's being a google's beta-tester of a framework with endless version of disaster?
Justin Allen
I get so carried away when I make stuff.
Ayden Lee
you need followers, not bot-spamming pajeets
David Price
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?
Evan Ross
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.
Adam Barnes
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.
Kevin Martinez
that's a hurtful thing to say but also wrong so I guess it's alright
William Martin
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;
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?
Christopher Hughes
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.
Blake Hughes
Also if you want to avoid issues with the variable name being reset elsewhere, I highly recommend using the pattern const funcName = function() {}
Parker Johnson
I'm trying that now. Have to wait for people to vote in chat to test it.
This project is insaaaane.
Brody Price
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.
Carson Nguyen
html worked.
Gabriel Rodriguez
what is the first web lang a C++ developer should learn?
Jaxson Wood
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.
Landon Foster
sorting algorhitms for normal and assoc arrays.
Evan Cook
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?
Andrew Sanders
Watching c# asp.net videos on the Microsoft virtual academy website will pretty much kick start you on c# webdev pretty quick.
Lucas Stewart
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. drawasaurus.org
Jason Barnes
>Microsoft virtual academy Wow, didn't know that it's a thing, thanks senpai
Leo Morales
Thanks Doc
Julian Perry
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?
Owen Morgan
Why do major websites make links like
instead of simple
Adrian Reed
I know django is an overkill. I already know node and Java(Tomcat). I wanted to try something new.
Ryder Taylor
Tested the max username and message after removing the html maxlength, passed with flying colours
Adam Nguyen
redirects are for tracking, analytics, and monetization (if linking to a merchant site)
Cameron Clark
Glad you noticed
Easton Gonzalez
>removing the html maxlength
Grayson Long
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?
Ethan Peterson
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?
look at this shit then. this language is a fucking joke
Elijah Morales
REEEEEEEEEEEEEEEEEEEEEEEE
Nathan Perez
>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?
Anthony Martin
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?
the process of "logging in" is an authentication process so I don't really get what you mean
Jonathan Davis
I dropped out of college. I self studied programming with Free Code Camp, CS50, Project Euler.
Samuel Sanders
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
Jace Roberts
> 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
Christopher Watson
>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
Oliver Taylor
What's the alternative? Angular seems pretty good and easy to work with 2bh.
Cameron Roberts
Oh, and the Angular CLI creates a fantastic development suite right out of the box.
Jonathan Barnes
im getting this error and i dont know why please help
Uncaught SyntaxError: Unexpected token [ in JSON at position 1196 at JSON.parse () at XMLHttpRequest.xmlhttp.onreadystatechange
it worked fine before...
David Gomez
and you expect people to help you based on this contextless error?
Jace Collins
Give me a sec to look at the JSON you just posted, my man.
Asher White
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?