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

/wdg/ Web Development General

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

Thread replies: 311
Thread images: 47

File: robot.png (852KB, 824x553px) Image search: [Google]
robot.png
852KB, 824x553px
suggest a new online courses list for the OP then

>old thread
>>61087877

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

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

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

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

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

>Useful resources
https://developer.mozilla.org/en-US/docs/Web - General documentation for HTML, CSS & JavaScript
https://libraries.io/ - Discover and keep track of open source libraries, modules and frameworks
https://stackoverflow.com/ - Developers asking questions and helping each other
http://www.programmableweb.com/ - List of public APIs
https://caniuse.com/ - Check browser support for front-end web technologies

>Useful Youtube channels
https://www.youtube.com/derekbanas
https://www.youtube.com/learncodeacademy - codecademy
https://www.youtube.com/channel/UCO1cgjhGzsSYb1rsB4bFe4Q - funfunfunction
https://www.youtube.com/user/TechGuyWeb - Traversy Media
https://www.youtube.com/channel/UC8butISFwT-Wl7EV0hUK0BQ - freeCodeCamp
https://www.youtube.com/user/shiffman - coding train

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

an in-depth comparison of hosts
https://www.webstack.de/blog/e/cloud-hosting-provider-comparison-2017/
>>
>>61124354
?
i posted code there because when i try to put it here i get connection error
https://jsbin.com/mimoyaxuvo/edit?html,output
>>
>>61124586
I made it work and posted it on jsbin. I'm asking if this is what you meant the code to do or if I'm misunderstanding.
>>
Stupid question:

Let's say that I have a wordpress site and I want to make a basic React app that will be displayed on my wordpress site on one of the routes of the site or added in one of the "posts" of the site as an interactive bit.

Is this possible? If yes, how?
>>
>>61124617
hm, i see and i did it just like you
know im getting 'null'
>>
>>61124857
nvm i found erro
>>61124617
ty
>>
File: 1494385225680.gif (2MB, 270x188px) Image search: [Google]
1494385225680.gif
2MB, 270x188px
I want to make my personal website a 90s geocities meme site.

Post inspiration/relevant gifs?
>>
File: camera_flash.gif (6KB, 110x110px) Image search: [Google]
camera_flash.gif
6KB, 110x110px
>>61125182
most 90s website I can think of:
https://www.warnerbros.com/archive/spacejam/movie/jam.htm

Specifically a tiled image background, anything that needs transparency is a gif (since PNG wasn't a thing yet or at least widely supported), and table layouts.
>>
File: tile.jpg (2KB, 144x144px) Image search: [Google]
tile.jpg
2KB, 144x144px
>>61125492
This is good stuff. I think I'm going to use the Heavens Gate background (pic related)
>>
>>61124523
Hey, OP, include codility in the challenges.
>>
>>61125492
What about that billion dollar investment company That's had the same website since like 1992?

Anyone know what I am talking about? Pretty sure it even says "Yes this is our website, do not contact us trying to sell us a new one" or something like that.
>>
How bad is Angular?
>>
Whats the difference between

btn.onclick = function()

and

btn.addEventListener("click", function())

???
>>
>>61126085
www.berkshirehathaway.com
>>
>>61126846
You can do addEventListener multiple times to register multiple functions triggered by that click event. I think that's the main difference.
>>
File: amazon_dog.png (106KB, 305x231px) Image search: [Google]
amazon_dog.png
106KB, 305x231px
>>61127043
>Reproduction or distribution of any materials obtained on this website or linking to this website without written permission is prohibited.

top kek
>>
>>61127043

I actually kinda like it
>>
File: quizz.png (4KB, 301x61px) Image search: [Google]
quizz.png
4KB, 301x61px
In javascript what will 'string' contain after pic related code?
will it generate an error since u cant change the value of a string once created?
>>
How much JS should I know to stand a chance at getting an entry level position? At this point I've got a grasp on loops and most of the basics, and can follow along with more advanced stuff but I'm sure I have at least several more weeks of study and practice before I'm good enough.

Also how much time would it take to pick up Node, React, jQuery, and Angular as well? I'm already proficient in HTML, CSS, and SASS. everywhere I look for jobs online wants all the above minimum.
>>
>>61124739

I'm considering doing something similar, and so far it seems possible if done the webpack way.
>>
>>61127231
"d"

You can change strings, charAt() starts at 0 (which is G) so 3 would be "d".
>>
>>61127231
>u cant change the value of a string once created

Yes, strings are immutable once they're created. But you're not actually modifying that string. What charAt does is create a new string, and then by doing 'string =', you're assigning the newly created string to the same variable.

The variable 'string' only holds a pointer to the actual location where the string is held in memory. Assigning a new pointer to that variable is not the same as modifying a string.

Modifying a string would be doing something like string[3] = "k", which would do nothing.
>>
>>61125182
Browse http://www.oocities.org/
>>
>>61127231
The "d".
No.
>>
>>61127245
>Angular
Don't bother.
>>
>>61127536
This is incredible.

http://www.oocities.org/area51/8604/index.html
>>
>>61127245
Take a few more weeks with JavaScript. I think a big thing to focus on would be functions, especially callbacks/high-order functions. In that vein, learn how to do async, at least for Ajax. You should know basically how objects work, both as simple associative arrays and as real objects with inheritance/prototypes.

For Node they probably want the Express framework. Node+Express should probably be a week or two, depending on how much experience you have with JavaScript and with backend stuff in general.

Pick one of either React or Angular and learn the basics; probably go through a fairly simple projects to get used to it. If you know the basics you can probably pick up the rest on the job.

jQuery is debatable. There's really not too many reasons to use it these days, but some people still like it. My main issue with it is people immediately look to jQuery to solve they're issues, even if the pure JavaScript way is more straightforward. Also, they tend not to know how to do things without JavaScript.
>>
File: 1493399100894.jpg (267KB, 768x1024px) Image search: [Google]
1493399100894.jpg
267KB, 768x1024px
>>61127245

become full stack or die trying
>>
>>61127824
Yeah I know generally you'd want to pick one or the other, but it seems most job listings ask for all the above instead of either/or. One job listing asked for the following for an entry level front end position:

>HTML
>CSS
>SASS
>LESS
>Bootstrap
>Angular
>Node
>React
>Backbone
>jQuery
>PHP
>Grunt
>Gulp
>Python
>Ruby
>Rails

I figured this was a bit bullshit though, it seems more like a full stack position, and wanting 2+ years experience for an entry position is double bullshit.
>>
>>61127932
Also I mean they required all the above, not just either/or.
>>
>>61127932
They forgot C# and .NET
>>
>>61127996

no M$ BS here, pls
>>
>>61124523
Anyone got some cool ideas on a website to make?
>>
>>61124739
>>61127293

Write a react app, compile it to a few js files with webpack or any other build tool, include those js files on your site. Then just add a div into the HTML on that page for the react app to "populate".

Done this with a few existing Python sites - basically, just dropped in a single <div id="app"></div>, included my appbuild.js file, and it was up and running happily.
>>
>>61127245
I learned jQuery on the job, don't waste your time right now

Learn a back end language. Learn PHP. Learn SQL. then put all the pieces together and build a project. Doesn't have to be unique. Just has to work.

You need something to show in interviews. So you're going to need a project. Once you have a working project you can get a job.
>>
>>61128134
I was going to remake my entire website for starters, it's a portfolio for my graphic design, web design, illustration, and writing. I figured a decent starting project would be adapting a couple of the short quests I've run for /tg/ and /qst/ in the past as interactive short stories, then building some more interesting projects after that.
>>
>>61127932
There's a bunch of competing technologies in that list.

Gulp and Grunt both basically do similar jobs; maybe there's some cases where you would use both, but it probably wouldn't be worth the trouble.

Sass and LESS are both extensions to CSS, and I highly doubt you would ever have a reason to use them both together.

React and Angular conflict in the way they do a lot of things; you could potentially take parts from each, but that's unlikely and also probably not worth the trouble.

I don't know much about Backbone, but I think parts of it might also conflict with React/Angular.

There's no way their backend stack involves Node.js, Ruby on Rails, and PHP. Python could potentially be used for Selenium or something, but I wouldn't expect a beginner to know that.

That list seems like bullshit to me, written by someone who doesn't really know what they're talking about. And yes, those requirements seem like a full stack position. I'd say try applying if you want, knowing one of each of the things I listed.
>>
Anyone want to watch me dev some shit on twitch?
>>
>>61124523
discord inv broken
>>
Had to take a break from Javascript (learning how to make a simple to-do list so that I can understand the basics). Been learning HTML and CSS the past few months and JS really just burned me out. After 2 weeks I'm ready to get back into it and retained a good portion of what I remembered (even when I wasn't coding I was still thinking in my head how to write objects, that functions inside of objects are called methods, etc).

Web dev really is a pilgrimage. I don't know how these fucks say they learned it in 3 months and got a job. Shit is crazy unless you treat it like a full time job.
>>
>>61128595
only if you're wearing your programming socks and occasionally showing off your feminine penis. We love feminine penises around here
>>
>>61128134
this
>>
File: 2017-06-28 18_36_04-localhost.png (7KB, 1624x202px) Image search: [Google]
2017-06-28 18_36_04-localhost.png
7KB, 1624x202px
I'm trying to make the pink div wrap around the time text.

The black bar has a width of 100%. I'm trying to make that 100% of just the pink div.

Is this even possible in CSS?
>>
>>61130129
https://codepen.io/anon/pen/wepXbZ
I don't think I got it
>>
>>61130202
>inline-block

That solved it.

How the hell did you know that would solve the problem? I'm trying to mess with relative positioning and floating and you figured that out.

CSS has always been Chinese to me.
>>
>>61130242
>How the hell did you know that would solve the problem?
13 years of experience :^)
>>
File: nightman.png (532KB, 1280x800px) Image search: [Google]
nightman.png
532KB, 1280x800px
>>61124523
>tfw have been avoiding React for the longest time because I didn't think I'd need it
>tfw decide to look up some tutorials and examples
>tfw it's beautiful
>>
>>61130325
>tfw 18 years experience and hate CSS too much to learn it properly.
>>
>>61130451
Then you're a god-damned retard.
>>
>>61130458
I'm an employed full-stack. The kids with the art degrees do the CSS.
>>
>>61130485
CSS isn't as fun or glamorous but it's the most immediately noticeable and good feeling to get done on a new site.
>>
File: timers.webm (343KB, 480x270px) Image search: [Google]
timers.webm
343KB, 480x270px
What should I add to make it pretty?

I know I need something to happen when the time changes...maybe add a text shadow for half a second?
>>
File: Untitled.png (84KB, 527x373px) Image search: [Google]
Untitled.png
84KB, 527x373px
I'm working on Colt Steele's web dev course at udemy, pic is overview of course content. What do I need to do besides completing the course to land an entry level job?
Considering going to meetups and working out a few extra projects of my own. It feels like a pipe dream, anyone gone self taught route and had success?
>>
>>61130901
>NoSQL only
Learn about relational databases afterwards.
>>
>>61130901
a lot of people here have done it, it's really not that hard. Put your hours in every day and you'll see progress happening. Start crossing shit off and when you're about 50% down that list, start applying, fuck the job requirements from the ad.
>>
What you guys think about pluralsight?
>>
>>61127932
>Front-end
>node, PHP, Ruby

Nah, they're bullshitting you, dude. Not worth your time.
>>
>>61130094
Don't you mean
$(this)

?
>>
>>61130431
It's beautiful like c++ is beautiful.. which is like, maybe if it's written by a genius with a C with classes mentality.

I like react, but it's the end if web development. From this point onwards minified es5 is the new assembly language and babelscript is the C++ of the web.

>>61130028
I've "learned" web development, but I have a degree in CE and a real interest in non-material engineering (anything from EE to programming, I'm shit at cars).

I say "learned" because to me that's identifying the problems that exist 90% of the time and then to have a system I can immediately go to which is immune from these problems. For me, that's server side rendered react or some templating engine. This solves the backend data binding problem, the IDE doesn't parse JavaScript problem, the SEO problem, the backend/front end separation problem, the permeability of data problem, most things. I felt done after writing a framework with all of these things.

I'm close to moving on, my next project will probably be a game with crazy amounts if algorithms to create emergent properties or procedurally generated games, I like games you can play millions of times and get a different experience.

>>61128460
Of course the list is bulllshit, HR staff are notorious for believing not knowing the technologies is okay and acceptable for hiring people who use that technology. In STEM, HR are very zero sum, much better would be actually to hire IT/engineers with IT/engineering degrees who don't want to be IT/engineers to do HR. Instead it's sociology degree holders, who have Marxist teachers who have a weird relationship with STEM graduates and hard science, so it's not the best idea to make them HR for STEM workers.

BTW I could imagine PHP and node. Node is the backend because express is liek so easy, but our senior devs who we can't shift away because they play golf with the director refuses to stop using PHP as a preprocessing template language so both are used. Because old people.
>>
File: idiot clients1.jpg (73KB, 644x728px) Image search: [Google]
idiot clients1.jpg
73KB, 644x728px
>>
File: idiot clients2.jpg (97KB, 662x741px) Image search: [Google]
idiot clients2.jpg
97KB, 662x741px
>>
>>61127932
>2+ years experience for an entry position
That's in every skilled labor position now. It's to widen their applicant pool through applicant confidence and to have an excuse to pay them less once they're hired.

In the last decade or so, co-ops and internships have gone from being a boon to being a necessity. If you don't have experience coming out of the gate, get ready to be a quality representative or a process technician to prove that you know your shit about the industry before you can actually move up to the job you majored in.
>>
>>61130129
That's magenta, you troglodyte.
>>
how do i write web assembly with c
>>
File: bg_dark_anim_0_08.gif (801KB, 1024x1024px) Image search: [Google]
bg_dark_anim_0_08.gif
801KB, 1024x1024px
>>61130753
Shake it a little. Maybe have a black copy of itself sitting under it with low opacity shaking along with it but out of phase with it for that extra distortion effect.
>>
how do i write c with java
>>
>>61133919

Just hold your breath util you die.
>>
>>61134026
>util
import java.util.*;

public class C{

}


okay, now what
>>
>>61134037

lol

Seriously try /dpt/ or google docs on interfacing code on your language they usually have.
>>
>>61133919
System.out.println("c");
>>
>>61133919
try a real language
using System;
using static System.Console;
class Program
{
static void Main(string[] args)
{
WriteLine("enter a number to inverse sqrt");
WriteLine(Q_rsqrt(float.Parse(ReadLine())));
}
static unsafe float Q_rsqrt( float number )
{
long i;
float x2, y;
const float threehalfs = 1.5F;
x2 = number * 0.5F;
y = number;
i = * ( long * ) &y; // evil floating point bit level hacking
i = 0x5f3759df - ( i >> 1 ); // what the fuck?
y = * ( float * ) &i;
y = y * ( threehalfs - ( x2 * y * y ) ); // 1st iteration
return y;
}
}
>>
>>61127932

>unironically believing the texts

see:
https://www.youtube.com/watch?v=6G3kQyqMFpQ


>>61134078

Nice one.


>>61134716

God, why didn't you write: "here is a mask that does [this] and [that]" instead of "lol, here is my cool floating point magikk, I am so 1337.. xD".

Karlie, is this you?
>>
app.get('/', callback()
{
// root specific content
});

app.get('/something', callback()
{
// something specific content
});

// etc etc etc


vs


pages=['/', 'something', 'etc'];

http.server(callback()
{
templating.content(pages.indexOf(request) !== -1
?
(request):'404');
});



why even use Express? Is there something I'm overlooking?
>>
File: 1456553226702.jpg (31KB, 500x333px) Image search: [Google]
1456553226702.jpg
31KB, 500x333px
>>61134840
>not recognising carmacks quick inverse sqrt algo
>>
>>61134840
>God, why didn't you write: "here is a mask that does [this] and [that]" instead of "lol, here is my cool floating point magikk, I am so 1337.. xD".

I sure hope this is bait.

https://en.wikipedia.org/wiki/Fast_inverse_square_root#Overview_of_the_code
>>
>>61134879
>>61134881

>hurr, my code is self-documenting :^)

Get fucked so much

People like you are walking technological debts with inflated egos.
Please consider studying something like art or gender studies to not delay the technological progress.


>>61125182

Mandatory:

>http://www.wonder-tonic.com/geocitiesizer/
>>
File: 1425191963113.jpg (144KB, 900x675px) Image search: [Google]
1425191963113.jpg
144KB, 900x675px
>>61135020
>getting this mad because you're shit at programming
>>
>>61135020
>>hurr, my code is self-documenting :^)
>Get fucked so much

I think you are literally retarded.
>>
>>61135020
its ok phams he just didnt get the reference
kind of like when youre chatting with your homeys and you say a funny quote and that one kid doesnt laugh, and you all instantly know his family is too poor to afford a tv
>>
>>61135049
>>61135078

OK, I will break it down for you brainlets.
Not because you deserve it, but as a service for the poor bastards that will have to work with you in the future.

Let us assume your code runs in production in a small inhouse API. Let's also assume it's in use for about 10 years and every year there is one person touching your code - wither to modify it or to understand it.

So we have 10 people reproducing the following steps in the future:
>"oh what is this code here?"
>trying to make sense of it (5 seconds)
>reading the inane comment (5 seconds)
>"Oh, it looks like this carmack function.. But can I afford to be wrong and break production code? Better be sure." (10 seconds)
>entering code in google (5 seconds)
>reads it up on the seconds link (10 seconds)
>"yup, it's the inverse square root function."
>goes back to work
>"where was I? Oh right.." (5 seconds)

What would be the alternative?
>"what does this piece of code do?"
>reads: //calculate inverse square root (see: Carmack)


This is a difference for AT LEAST 30 seconds for EVERY programmer that has to look at your function in the future. In our example we assumed 10 programmers, so you effectively wasted 5 minutes of working time for a single function. But since you are such nice people, you probably never document nothing that's ""obvious"", right? So it's save to assume people generally will use minutes if not hours in the future to understand your code.

Only because you are too snobby to swallow your pride and take 5 seconds and write a simple "my code does [this], but beware of [that]" at the given time.
>>
>>61135284
you just dont get it do you? pathetic
>>
>>61135284
pathetic but since you put so much effort into that reply let me state the blindingly obvious: im not writing production code, i wanted to make a point (you can write c in c#) with as little code as possible and you keep barking on about how there's no way that should be used in production.. well it was used in production and it worked just fine. why? because not all programmers are whiney bitches like you
>>
File: 1490952018355.jpg (19KB, 214x311px) Image search: [Google]
1490952018355.jpg
19KB, 214x311px
>>61135284
Truly hilarious post friend.
>>
>>61132746
>web
>assembly
>c

do you even know what you're talking about? This post doesn't even qualify as a troll, this is just retarded retardedness
>>
>>61135431
http://webassembly.org/

Just how out of the loop are you, m8?
>>
>>61135284
that long-ass post still doesn't change the fact that you were too dumb to recognize Carmack's algo in 3 seconds. I mean, the Q_rsqrt is a dead giveaway, and then the floating point magic you mentioned is basically just a huge flashing neon sign
>>
>>61135459
I'm still working using my same dev stack from early 1996, so I guess quite a bit, huh?
>>
File: jolly roger.gif (20KB, 120x120px) Image search: [Google]
jolly roger.gif
20KB, 120x120px
>>61131034
I've tried a lot of resources and Pluralsight is the one I still have and pay for.
Lots of material from great instructors.

You can get a trial by using Microsoft Visual Studio Dev Essentials just to see if you like it.

Also, if anyone is interested, my current active subscriptions:

TutsPlus (front-end predominantly, but you get some nice back-end courses once in a while)
Laracasts (must have for any PHP/Laravel dev out there) - will cancel it since I'm sick of PHP
KNP University (if you wanna get deep in Symfony (PHP)) - will cancel it since I'm sick of PHP
Udemy (there are some nice courses out there you can get for relatively cheap (10usd))
>>
>>61135431

Nah, it's just another meme tech.

It will be hilarious when they try to rewrite a javascript 3-liner with 20 lines of assembly, probably with buffer overflows..

When I think of all the attacking vectors of C.. How can someone unironically think that it's a good idea to infect the web with C or even assembly?


>>61135371

>im not writing production code

I see, it was an example. Shit example though.


> i wanted to make a point (you can write c in c#) with as little code as possible

All memeing aside, you can do this in almost any modern language:

public class Example {
native void Q_rsqrt();
static {
System.loadLibrary("Q_rsqrt");
}

static public void main(String argv[]) {
Example example = new Example();
Example.Q_rsqrt(3.14);
}
}



require 'inline'

class InlineTest
inline do |builder|
builder.include '<math.h>'
builder.c '
int inline_pow(int a, int n) {
return pow(a, n);
}'
end
end

puts InlineTest.new.inline_pow(2, 10)



package cgoexample

/*
#include <stdio.h>
#include <stdlib.h>

void myprint(char* s) {
printf("%s\n", s);
}
*/
import "C"

import "unsafe"

func Example() {
cs := C.CString("Hello from stdio\n")
C.myprint(cs)
C.free(unsafe.Pointer(cs))
}
>>
>>61135625
http://webassembly.org/docs/security/
>>
>>61130431
good,
now try Vue
>>
File: wtl.jpg (47KB, 480x422px) Image search: [Google]
wtl.jpg
47KB, 480x422px
>>61130451
>tfw love CSS but dont even know shit about other webdev stuff like node, react, scss
>>
File: stupid pepe.jpg (11KB, 236x350px) Image search: [Google]
stupid pepe.jpg
11KB, 236x350px
>>61124523
opinion on django? should i learn it as a beginner?
>>
>>61136404
It's okay. Do you already know Python?
>>
i have an webapp that connects through websockets to a server on localhost:xxxx, and i want to upload the app in heroku.

how should i expose the server to the outside?
>>
>>61128595
i would if you do something about vue
>>
>>61136840
not sure what you mean exactly, just open up that port to allow in/out traffic

if you're really paranoid you can do an ip range ban, to ban all chinese and other undesireables
>>
>>61124523
What do you think of 4kev.org?
>>
>>61136891
sorry forgot to add that i can't change any configuration in my router. i've been reading about NAT traversal and STUN and TURN but i don't understand half of it, no idea how i would implement it
>>
>>61136979
I'm looking for the owner of that site, seriously thinking about buying it. I think the owner is named Kevin something
>>
>>61137213
it's not router level config, it's firewal/ports. What Os you got? just google 'open close ports + your OS'
>>
>>61137253
it's ubuntu. how does the app find my computer, where my server is running, from the heroku app? i can't just hardcode 192.168.1.34 right?

maybe i should have asked in /sqg/
>>
>>61130431
Learning it at the moment and kind of on the fence about it. Don't have the same enthusiasm learning JSX as I did vanilla JS or any other language. Think it will click with time but eh the 167mb of dependencies that came with create-react-app didn't inspire much hope.
>>
>>61136979
That it's being spammed.
>>
>>61136840
Use heroku to serve the websocket
>>
>>61137344
I went through this two weeks ago, just start googling shit and you'll find the answer. Some things to consider:

if you're using the two machines on one wifi connection, then all machines have the same public IP but have each an individual private IP, you can see it on ubuntu doing ifconfig on the shell

don't do localhost, try to set the server to run on 0.0.0.0:xxxx, and then you set the webapp to connect to the other machine's private IP
>>
Redpill me on ASP.NET Core and how it can compete with modern equivalent on stacks.
>>
>>61137729
It's very promising, but hardly ready.
>>
Can somebody enlighten me here

var sending = browser.runtime.sendNativeMessage(
"thingy"
, {required: ''}
);
sending.then(response => console.log(response)).catch(err => console.error(err));


'thingy' is a bat file with the following contents
@echo off
ECHO Hello world


and the result is

>Native application tried to send a message of 1819043144 bytes, which exceeds the limit of 1048576 bytes
for real? what the fuck?
>>
>>61137729
performance-wise I wouldn't be able to say precisely, but it's not the fastest for sure. Their IDE is pretty comfy, but the language itself is rather verbose. Java is super verbose, Go is rather sparse for a compiled language, C# is in the middle.

Jobs-wise, it's right up there, just a notch below Java in terms of job offers. Money should be good too since it's mostly big corporate jobs. If you wanna do freelancing, I'd say go with something else.
>>
>>61137998
I already work with C#, but with WebForms/MVC instead. How good is it for front end?
>>
>>61137729
It has a 20ms delay every request...

It's 20 times slower than node.js doing a hello world. It's not even c#, its the framework. Sockets respond in 300 us.
>>
>>61138102
yeah, I'd say it's pretty good. If you're already commited to C#, then give it a shot. They have tons of material on their site, academy something, forgot the exact name.
>>
File: javacsharptopbrands.jpg (513KB, 1291x3600px) Image search: [Google]
javacsharptopbrands.jpg
513KB, 1291x3600px
>>61137729
.net core is 2-3 of years away from being really production ready
the only advantage .net had over java was a more friendly language, but now that kotlin is officially supported by spring, this is no longer the case

>>61138121
>It's 20 times slower than node.js doing a hello world.
now that's a blatant lie and I'll prove it in a minute
>>
File: ss-2017-06-29-16-01-13.png (137KB, 977x686px) Image search: [Google]
ss-2017-06-29-16-01-13.png
137KB, 977x686px
>>61138121
>>61138189
>>
>>61138189
Fuck, I'm glad I know Java as well.
>>
>>61138230
Yeah, there's a setting to turn it off. That, or they're actually benchmarking the http thing which is fairly fast but actually not what you get if you start a new asp.net project in vs studio.

>>61138189
>now that's a blatant lie and I'll prove it in a minute
Every fucking time.

Start a new project, press f12, and look at the fucking time you see in the network tab. It's NOT 0ms which indicates a server that can actually do over 10k rps.

I don't fucking know how they're benchmarking it, but sure as fuck it's not out of the box.
>>
>>61138230

poo in loo pls go
>>
>>61128108

I've done this too for a site built on Sitecore (ASP web forms)
>>
>>61138189
>the only advantage .net had over java was a more friendly language
V A L U E _ T Y P E S
A
L
U
E

T
Y
P
E
S

If you use them, you'll save a lot of RAM and reduce the GC pressure considerably.
>>
>>61139468
okay, sure. that's temporary though

http://cr.openjdk.java.net/~jrose/values/shady-values.html
>>
>>61139670
Coming in ten years.
>>
Why do people give a fuck about tabs or spaces, is it not fine to use either
>>
>>61139717

tabs leave unnecessary blank space

spaces are "tighter" and "neater"

but yeah who gives a shit
>>
>>61139468
Isn't that the kind of thing C# learned from C/C++?
>>
>>61139683
more like 3, given current trends

>>61139772
>tabs leave unnecessary blank space
how so? you can configure any decent editor to render spaces however you please
>>
>>61139929
>more like 3, given current trends
That would be nice, but I wouldn't bet money on it.
>>
>>61124523
Does anyone know how 4chanX magically loads images quickly?

I made a chrome plugin for the archive website for 4chan, and for some reason it takes about two to three seconds to load an image, as opposed to nothing with 4chanX.

All I'm doing is traversing the DOM and getting the URLs and then inserting it to the page for viewing dynamically.

I'm going to try preloading all images to the HTML, hiding them, and then showing them when needed. Maybe that'll be better, IDK.
>>
How do you actually start writing Javascript? In the past, when I've done java I had a compiler. Python is just one text file you run through your terminal, but how does Javascript work?

Do I need a compiler? What software should I use to write it?
>>
How should one deal with deployment when freelancing? I don't feel comfortable taking client's access to servers
>>
>>61141585
>Do I need a compiler?
You need an interpreter just like with Python. It can either be one built in every major browser or standalone node.js, "node 1.js" instead of "python 1.py" in that case
>>
>>61141585
javascript code can be run either inside a webbrowser or inside a runtime like node.js (where it works basically like with python, "python program.py" -> "node program.js")

>Do I need a compiler?
no, but many people use transpilers to generate javascript code adhering to an older, widely supported javascript standard from either:
1) javascript code adhering to a newer standard which isn't yet fully supported in webbrowsers or node.js
2) code in another language (typescript, clojurescript, kotlin)

>What software should I use to write it?
vscode or webstorm or vim or emacs...
>>
Somewhat silly question:

Should I install linux to code? I say this as I've pretty much only used windows and only have one more semester before I get my ba. It seems everyone uses mac and I would probably just want to use the same OS that everyone else is using at my future employment. I know linux isn't the same as mac, but I imagine I would at least get use to the command line.
>>
is there any reason to not use strict mode in javascript? i looked through what it doesnt allow and im disgusted
>>
>>61142319
just do it. its the tinkerers OS
>>
>>61142319
If you have the time, sure. Gitting gud at bash is essential for a programmer, makes life easier
>>
>>61141585

start by manipulating the DOM, then move onto AJAX stuff, then move onto Node.js (backend with Javascript)

after that you'll be a pro

>>61142319

>should i install linux to code?

uhh, if you want to? doesnt matter. Also, stop saying "code". It's a vague term that only young inexperienced front end babby's use.

>>61141829

be more specific pls?
>>
>>61142319
I used to be a winfag for life like you, then I decided to try out Linux just to be able to put it on my CV since some jobs ask for it and it looks good, and I really love it. It just makes programming a lot easier. A lot of the more advanced tools don't really have windows support or you have to go crazy installing and setting shit up. With ubuntu, just do sudo apt-get install x and boom, it's up and running.

Also, to start you off, Ubuntu or Xubuntu are the easiest ones. You could also just dual boot so you don't feel like you're making a huge change.
>>
>>61143255

seconding this, i switched from win10 to xubuntu but maintain a second boot partition for windows (just in case)

i can count on one hand the number of times i have booted into windows in the last 6 months. you'll be really surprised how fucking easy everything is in linux if you aren't scared of the command line
>>
File: linux.jpg (94KB, 817x1080px) Image search: [Google]
linux.jpg
94KB, 817x1080px
>>61142319
this book is awesome to start you off with the command line. Use the code gen.lib.rus.ec on your browser to get a 100% discount.
>>
>>61142711
>>61142542
>>61143255
>>61143389
>>61143389

Thanks for your input anons.
>>
>>61142840
Using "code" as a verb or "coder" is absolute pleb-tier. Only entry-level faggots who have no concept of their own value and "cool" managers who are trying to manipulate you use that terminology in a professional setting.
>>
>>61144315
"Code" as a verb is diversity hire-tier
>>
>>61144315
Yeah, I agree with that to a certain degree.

In my experience, the contexts where people use code as a verb are places where you could just either use "write" or "program" instead, and in context it's obvious you mean "write code". Like if I say "I wrote this app", it's unambiguous.

But the media needs a term to latch onto, and "code" has become that. They have "computer science" when they want to refer to the large industry and field of study, and "coding" when they want to talk about startups and appeal to kids with something that sounds cool.

But the problem is that they don't know any other words, so they shoehorn "code" into anything they can think of. I saw an article earlier that used the term "coding language". And everyone talks about "coding classes". That's just too far to be taken at all seriously.

My biggest pet peeve is when people say "codes" when they basically mean "snippets of code".
>>
>>61145056
To me the problem is that it's so reductive. Only a tiny part of being a software engineer (or whatever type of programmer) is "writing code." It's like calling an architect a "builder" or something.
>>
I have a simple html table with 2 columns: an id, and a columns storing an image. How can I put the filename of the image in the id column?

So I'm given a .html file with a table that has a bunch of images with an empty id column. Can I use JS to transfer the image filename to the id column?
>>
>>61146183

If you have the name somewhere you can.
>>
>>61146311
I sort-of have the name in that it's the filename of the image.

The problem is I'm given an html table with a predetermined order of images. So the only information is the filename in the row of the table I'm looking at
>>
File: 1497311523204.jpg (26KB, 629x474px) Image search: [Google]
1497311523204.jpg
26KB, 629x474px
How easy would it be to redo my existing PHP website backend in Python/Django? All it does right now is register users, log them in, and store strings in a DB.
>>
>>61146632
Super easy.
Don't do it though, Django a shit
>>
Guys, slowly read this interesting article and tell me if you notice anything strange.

http://www.huffingtonpost.com/2014/10/13/food-water-footprint_n_5952862.html
>>
>>61146632
If your project is under 1000 lines it's easy, I would recommend Node or Go though
>>
>>61146794
my sides
>>
>>61146794
>when you hire unpaid interns
>>
>>61146632
What kind of project?
No ORM => use Go (it's so much better than Node).
ORM => use Django, Rails or Phoenix. Or, you know, Laravel for PHP.
>>
This is incredible.
http://hackertyper.net/
>>
What's the purpose of Object.create()? It seems that it just copies an object with the same values and everything.
>>
File: always_sunny_charlie_skeptical.jpg (17KB, 264x240px) Image search: [Google]
always_sunny_charlie_skeptical.jpg
17KB, 264x240px
>>61146794
It looks slightly better on mobile, like maybe they actually intended for it to look like it does on a phone. But it's still shitty; with images squishing text to the side.

I managed to partially unfuck the desktop version by adding
div { clear: both; }


>>61147310
Had you really never seen that before?
>>
>>61146802
>>61146949

People keep talking about Go for back-end, what the hell are you doing? Give me some decent framework to look for.
>>
>>61147955
echo or gin
>>
>>61147955
There is no decent framework for Go, its only used for REST API's.
>>
I want to build a website using the Blizzard API. Someone give me an idea.
>>
I feel like I burned myself out trying to get an entry level front end position by attempting to learn the long list of technologies. such as
Grunt,webpack,html,css,scss, javascript,jquery,Mysql, basic php, wordpress,bootstrap,command line navigation and server setups

On the plus side, my skills have gotten me an I.T. position

Lets say I wanted to attempt again, should I try to learn more about frameworks like Angular or backbone? How deep should my knowledge of JS go? Or should I just give up completely on Frontend? seems like theres endless plugins, frameworks and libraries to know.
>>
Simple question. I want to implement an image uploading functionality to my app.

I will host the images at firebase.

But before uploading the imgs, I need to host them temporarily for a preview mode.


How would I implement something like this?
>>
>>61153670
save them on your server under a random filename and then delete them
>>
>>61153670
>>61153824
OR encode them in base64 and show them as
<img src="data:image/png;base64,JHASFJHSDJHASJLDHAJSHDAS..." />

on the preview page
>>
File: slogan.png (22KB, 1145x209px) Image search: [Google]
slogan.png
22KB, 1145x209px
r8 my slogan & site
>indian and pakistan ip's range banned, so are vpn's and socks5
>bitcoin payments
>anonymous bidding / project posting
>>
>>61154157
People will be mad at your for "discrimination". Just a warning.
>>
>>61154183
I wonder if I could create a 4chan like situation and bring popularity by outraging butthurt liberals
>>
My namecheap account is expiring next month and I'm thinking I'm not going to renew it.

Which hosting company should I switch to. Digital ocean seems a bit pricey for what they offer. Linode seems more reasonable, but I've seen that a lot of people here swear by digital ocean? why is that?

I'm using this server to host small websites mainly.
>>
>>61154277
arubacloud
1 euro 1GB ram VPS
>>
>>61154277
http://lowendspirit.com/
>>
>>61151654

I'm in the same situation. For front-end I've just decided to just get good at vanilla JS, this means basically identifying what's its bread and butter and learn it (http://jstherightway.org/) and read books, watch good youtube videos sometimes, etc, while at the same time slowly knowing it more theorically (You Don't Know JavaScript is a good series of books, free to read on github) just for the sake of understanding it. This deeper knowledge will take time, I consider it a mid/long term commitement, but it's worth it and I'm doing it along with all the other meme stuff. Also started learning what is useful about ES6 (which is like JavaScript's CSS3 and basically adds some sintax sugar for anonymous functions, objects, etc. plus some little utilities, and you can use it with babel to translate it to javascript that browsers can understand, but again you need to know what these things even mean and how to use them, so its back and forth to JS bread and butter rather than a linear progression as I see it).
>>
File: dhjdyj5.jpg (44KB, 451x392px) Image search: [Google]
dhjdyj5.jpg
44KB, 451x392px
>>61151654
>>61155738

>front end babby's
>>
>>61151654
>>61155738

At the same time, I'm getting comfortable with JQuery for DOM traversal, manipulation, ajax calls, etc., because it's not cool anymore yet it's still the most popular js library out there, and sometimes trying to do similar little projects with just vanilla JS (specially touching the DOM without jquery its good for appreciating why's jquery not so needed anymore).

Then I'm also getting good at setting projects with Webpack so I don't need to use gulp, grunt, etc., so I can make my basic sass, autoprefix setups, because after I feel comfortable doing a basic app with html/sass/jquery I'll jump into React (and probably Vue later just to cover more), so Webpack is the only tool I really need, since it can do everything I need gulp for, plus I'll need it for React (http://www.react.express/).

I personally don't care about Bootstrap because I'm more from a creative background, but its certainly helpful for people that just want to get the html/css side of the front-end just done and focus in behavour.
>>
>>61155748
pajeet pls go
>>
got this on mail. its funny that c++ coders are more employable than the rest. https://medium.freecodecamp.org/we-analyzed-thousands-of-coding-interviews-heres-what-we-learned-99384b1fda50
>>
>>61155738
i know js. but the market here asks for react or angular. i need to learn those shit gay ass frameworks to become employable.
>>
>>61155864
if you know js you can learn those frameworks in a few hours
>>
>>61155877
really ? thats nice to hear. i need to learn one of those and also sass or something like that.
>>
>>61155877
what is the market choice ? react or angular?
>>
>>61155877
You can "learn" Angular in a few hours to the degree needed to pass a test, but you won't actually understand it. Angular is pretty complicated. You CAN learn React, though.
>>
>>61155903
Well few hours is enough to do some crash course on youtube or some video playlist, find one with lots of viewers and likes. That's enough to "know" React, then it's just practice with actual projects while revisiting the documentation. I don't really know about Angular.

>>61155934
Angular and React are pretty much dominant afaik. React is the cool thing now though. Vue.js has less job positions but less applicants so its at least a good second choice to have.
>>
>>61136840
Listen on 0.0.0.0:port

It allows external connections as well as your local host.
>>
Reactjs is cleaner and better

Angular is bloated and spaghetti
>>
File: swagtasticpepe.jpg (34KB, 607x341px) Image search: [Google]
swagtasticpepe.jpg
34KB, 607x341px
>>61124523
Give me an idea of what to build with React!?
>>
>>61156231
An image-bored.
>>
how much daily learning for how long would it take to land my first job if I'm starting from 0? is 6 hours daily for a year enough?
>>
>>61155777

being full stack somehow makes me a pajeet? uhh, ok retard
>>
>>61156817
Yes. If you
- have an IQ > 100
- put enough elbow grease into it
- read a CS 101-CS 102 textbook and do the problems on top of the hand-on stuff
you'll end up better than the vast majority of "coding bootcamp" grads.
>>
>>61156895
>- read a CS 101-CS 102 textbook and do the problems on top of the hand-on stuff
Or do the equivalent MOOC for extra motivation.
>>
>>61156863
if you're "full-stack", why you laught about front-end, why're you so insecure about, anon?
>>
>>61156943

how does that make me insecure about front end? what the fuck does that even mean? youre fucking retarded. Youre giving me even more of a reason to laugh at the bloated front end dev industry. Go back to watching your "kode" tutorials, faggot
>>
>>61156998
Anon, I don't even know what "kode" is. Are you ok?
Yes, front-end is bloated garbage, but something must be bothering you to "laught" at those front-end babies that are doing what you must be doing as a """"full-stack"""" developer, right?
>>
File: 1493160528698.gif (2MB, 302x230px) Image search: [Google]
1493160528698.gif
2MB, 302x230px
>>61156998
calm down insecure boy. your insecurities are showing.
>>
>>61157030

its part of it yes, it isnt the only thing devs should be doing though. Front end devs are wasted space and barely employable if at all. The industry suffers because of you sub-humans.
>>
Asked this earlier this week but didn't get any responses, does anyone have phpmyadmin + jquery + ajax tutorials? I'm really confused on the workflow.
>>
>>61157076
Uhmmm ok sweetie~
>>
File: 1496687399490.jpg (129KB, 620x850px) Image search: [Google]
1496687399490.jpg
129KB, 620x850px
>>61157098

use php to pull data, convert it to JSON, use ajax/jquery to bind it
>>
trying to deploy my website for my university's club and i followed this https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/modwsgi/ except i installed mod_wsgi through zypper since it has a package. if i broke everything it'd make sense, but the thing is the old website still works. what gives? any ideas?
>>
>>61157119
I know that. I don't know how to do it.
>>
File: 1493222031725.jpg (32KB, 447x456px) Image search: [Google]
1493222031725.jpg
32KB, 447x456px
>>61157172

theres this thing called the internet, use it to search stuff and learn about things

wow
>>
File: 1494614154406.jpg (19KB, 300x299px) Image search: [Google]
1494614154406.jpg
19KB, 300x299px
>>61157119
>>
File: heh.png (50KB, 200x216px) Image search: [Google]
heh.png
50KB, 200x216px
>>61157243

don't post degeneracy.
>>
>>61156231
I wanna make a moder imageboard, that uses Imgur for hosting (since im a cheapsk8)

You deal with React and frontend
I deal with backend, APi, and networking.
>>
I wish there was a simple PHP CMS easy to use for developers (not users).
Wordpress is becoming a bloated behemot, also slow. Today I was tricked by a colleague into setting up a site, and the wordpress+theme+plugins ended up having 4k files. Jesus fuck, what's wrong with the people developing this shit.

I'm discouraged, even so called "lightweight" frameworks usually end up becoming overengineered shitfests by the time you download them for a try.
>>
>>61157243
impressive what money can do with people.
>>
File: mouse.jpg (32KB, 460x389px) Image search: [Google]
mouse.jpg
32KB, 460x389px
>>61157172

good lord the amount of resources out there is staggering, if you still cant figure it out then buy a book or something, if that fails then just give up anon
>>
File: 1448381943274.jpg (95KB, 661x321px) Image search: [Google]
1448381943274.jpg
95KB, 661x321px
>>61157403
>Jesus fuck, what's wrong with the people developing this shit.
Ensuring job security
>>
>>61157403

get out of the enterprise industry? unless theyre paying you a shit load....
>>
Any good Javascript starting tutorials ideas on how to use JSON data that's constantly updating and use it on your site so the data constantly updates as well?
>>
>>61157748

call a data pull query with ajax every 10 seconds or something
>>
>>61157823
In your opinion, is that really a good way to do it anon?

Would something like socket.io help?
>>
Is bundling a bunch of services in a single module a violation of Angular's separation of concern?
>>
>>61157403
https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition

¯\_(ツ)_/¯
>>
>>61158164

i dont know any other way how it would be done. If data changes, you would need to re-pull the data again, yeah?
>>
How do you guys think up projects and concepts to apply your knowledge of web dev codes to? I've been learning JS and jQuery the past week or so and it is all well and good learning about variables and functions, but I'm having issue with figuring out how to apply them in a proper setting.

Do you guys think for a moment, come up with an idea to make a to-do list application or whatever and then think "now how do I develop this and what languages do I use"?
>>
>>61156895
Dude I don't think iq is all that important.

I had a high iq when I learned the stuff but then caught lyme's disease and barely have enough iq left to breath, yet I have been learning and making things like crazy.

I also have no energy for motivation. Also ADD. I have to work on two projects simultaneously while browsing my phone to stay productive.

Basically if I can do it then everyone else can.
>>
>>61157403
Look at Grav.
>>
>>61158436
I live my life and from time to time I get a thought "hey, it would be cool/useful if such and such thing existed" and then sometimes I make it or at least try
>>
What's the difference between using object literals and function constructors?
>>
File: folders.png (5KB, 240x221px) Image search: [Google]
folders.png
5KB, 240x221px
I made a wordpress site and exported it to a static site.

It's hosted on a cheap cpanel account.
When I visit the domain it redirects to the domain/index.php folder, and just shows the directory, when i manually type domain/index.html it works fine, how do I fix this senpai?
>>
>>61159146
In Javascript functions are immediately available scope-wide
>>
>>61159231
But I mean used as prototypes. The properties and methods behave equally on instanced objects whether or not their prototype is a constructor function or an object literal?
>>
>>61159268
Functions on the prototype are shared between all instances of X, if you create them within the function X you are instead creating separate functions.

For performance it'd be best to create them on the prototype.
But there might be cases where you want to do some arcane magic and assign different function variants.
Javascript is pretty flexible in this regard.
>>
>>61158891

Fucking love Grav. One day I'll have time to work on my own shit and I'm going to switch my site to grav
>>
Is Coderbyte worth paying $24 per month for?
>>
>>61159352
And the only way to create them on the prototype is Obj.prototype.myMethod = function() {...} outside the function?
>>
Just set up my first LAMP server and installed wordpress but i have some questions:

Where i can find good wordpress templates?

Using a bootstrap template for wordpress would be the same? like if the user wants to post something will it already have the configuration to do so?
>>
>>61160124
Use the official wordpress repository. You can even navigate it from within your site's wp admin panel, just like with plugins.
>>
>>61159230
it's about setting up server settings, I believe.
guessing it's going to be apache server, so read up on .htaccess files.
Not sure why index.php is even allowed to be a folder though?

Hope this answer was worth me solving captchas for 5 minutes
>>
File: corgi_webgl_render_fixed.png (57KB, 640x480px) Image search: [Google]
corgi_webgl_render_fixed.png
57KB, 640x480px
I'm learning WebGL

Parsing .OBJ files is easier than I expected as far as reading 3D files goes.
>>
>>61160124
http://ctf.verylegit.link/trojan-290bank.pem.malware.zip
>>
>>61158891
>Grav
>Just the core is 1393 files
>Core+Admin is 2616 files
Just fuck my shit up
>>
>>61160429
Nice.
>>
>>61160810
THANKS!
>>
>>61157403
Why use dynamic PHP CMS, when the option for static site generation exists?

Hook into your git repo and let it build a new static version, whenever you push new stuff to it.
>>
Bulma CSS looks really, really nice
>>
>>61160429
Can you do this in phaser?
>>
>>61162107
Yeah, it is basically designed to make social media websites.
>>
Do you guys use any CSS frameworks or do you just design the look from scratch?
>>
File: ss-2017-07-01-00-57-39.png (124KB, 1659x823px) Image search: [Google]
ss-2017-07-01-00-57-39.png
124KB, 1659x823px
>>61162107
they can't even pick colors properly. this is embarrassing

>>61162196
if it's an admin panel that's only going to be seen by me or by a couple of people at most then I'll use a random CSS framework. otherwise I do it from scratch
>>
>>61162196
I use skeleton.
>>
>>61162139
Which part? I don't know phaser so I don't know how it works. I built this using webgl APIs directly (plus Sylvester for matrix math). I followed the MDN guide to learn the basics of rendering.

If you just mean parsing .OBJ files, they're plaintext, and basically CSV minus the commas. There are probably libraries for doing it, but i just have 15 or 20 lines of code that extracts what I need. I just read through the Wikipedia page and based it on an OBJ file I extracted from nintendogs and converted.
>>
>>61162725
Neato.

I was asking because I'm making a 2D phaser game and thought you might be making some kind of game.
>>
>>61162196
materialize
>>
File: varg-vikernes.jpg (114KB, 762x464px) Image search: [Google]
varg-vikernes.jpg
114KB, 762x464px
>>61124523
>Doing Wes Bos react tutorial
>Nigga has you use his files which come with a shitload of scripts and dependencies without explaining any of them

Why do some many tutorials do this? Why would you assume that someone new to React or whatever front end framework would already be familiar with node and npm?
>>
>>61162908
Sounds cool. This is just for learning WebGL basics/3D in general, and making something neat to put in my portfolio.

I've had some neat ideas for games that I might make at some point. I looked into libGDX at one point, which you write in Java and deploy to browser, Android, iOS, and desktop. I've heard of Phaser, and it seems simpler, like it does some of the boilerplate overhead stuff for you. I'll have to check it out at some point when I have time for a new side project.
>>
>>61163303
Also, he says it's more organized to separate components. But is that all that necessary if you're building something small and don't plan on reusing anything?
>>
>>61163303
Its expected that you use npm already if you javascript. npm is the largest package repository in the world

You wouldn't sperg on a linux tutorial for telling you to sudo apt-get something.
>>
>>61163361
You need a tutorial specifically on how to make shitty code nobody will ever read?
>>
is brackets a decent editor?
>>
File: PhilFish-610.jpg (140KB, 610x345px) Image search: [Google]
PhilFish-610.jpg
140KB, 610x345px
>>61124523
>Get emailed back from job I applied for on indeed
>Go to their website
>Fake accounts and accounts made by other devs that want the job
>Suspect as fuck

Are these guys using applicants to fish for users?

I'm pretty depressed, it's the only company to give me a response.
>>
What's the best resource to into react my loves
>>
>>61162230
Looks like Robinhood's trading hour colors, their doing well anon your okay
>>
>>61166227
Both Wes Bos and Lynda courses are available on tpb. Or just look up some videos on youtube.
>>
How would you indent this?:

export function updateTask(state, task) {
const newState = Object.assign({}, state)
const tasks = state.map(t =>
t.id === task.id ?
Object.assign(t, task) :
t
)
newState.tasks = tasks
return newState
}
>>
>>61157119
>people learn all this shit just to get a middle class wage
Why
>>
>>61165113
It is to me :)
>>
Bruhs. I am not ready for Coderbyte's Javascript challenges. They are hardcore.
>>
>>61160429
have a look at glTF, the new standard by the Khronos Group.
>>
>>61162196
scratch, only plebs who make websites in bulk use a css framework. Also fuck `!important` overrides.
>>
>>61168711
Using a prebuilt grid system CSS can save time tho.
The other stuff is usually unrelevant when adapting image templates to html,
>>
can anyone explain BEM

my internship boss told me to learn it but i'm retarded
>>
>>61168849
In my opinion you only need a CSS reset, flexbox and perhaps some media queries. Any clutter on top of that is just junk that you are shipping now.
>>
>>61169190
BEM just mean CSS with classes but with one underscore or hypen too much:

.component__subthing--disabled

IMHO it looks ugly, but I guess the doubles help marking the difference from random stuff from other places.
>>
>>61169190
http://getbem.com/introduction/
http://getbem.com/naming/

Just read over that.
>>
>>61169254
>flexbox
flexboxes are cool, but I don't think they're safe enough yet, maybe in another 1-2 years.
>>
>>61169190

.container
.container__item
.container__item--variant

it makes your markup and stylesheets look a bit retarded but there are a lot benefits to be had from adding additional classes rather than modifying defined ones
>>
>>61169287
Depends on the company and client I guess.

For most of our work we only have to support the two latest versions as our target audience does not use ancient browsers.

https://caniuse.com/#search=flexbox
>>
>>61169317
I have a better proposal

.container_item-variant
.dragonDildos_mintFlavored-pink

No more retarded doubled underscores or hyphens. Also it becomes even more clear we mean business, I mean holy shit look at that classy camelCase, it ain't get better than that.

Otherwise if one is not dumb enough to fall into the pitfalls of multiple word classes, he could just concat the components:
.form-field-label_modifier
>>
>>61169287
the new youtube uses flexbox
>>
Do I have a future by learning Laravel? I will not give up on php because its not going anywhere for a long time, but I am asking about this particular framework?
>>
Does anyone else feel a special fondness for /wdg/ threads? These are my favorite threads in all of 4chan, I love you guys. No homo (unless you've got a feminine penis, in which case, please give me a call)
>>
I'm trying to improve an old Node.js project of mine.
It's using EJS as it's templating but it's kinda ugly.

What are some good templating methods for Node?
>>
>>61169857
I love the feel here of everybody learning together and struggling together.
>>
File: Hackett.jpg (232KB, 720x480px) Image search: [Google]
Hackett.jpg
232KB, 720x480px
Fucking hate regular expressions
>>
react is quite comfy desu
thought it would be worse than jQuery
>>
>>61170170
We all do, but we need them.
>>
>>61125182
>see this post
>think it will be fun
>spending more time finding ancient gifs to steal than anything else

http://tom-geosite.herokuapp.com/
>>
File: frag.png (14KB, 266x214px) Image search: [Google]
frag.png
14KB, 266x214px
>>61124523
I have a Ruby hash table with unicode keys and values:
$H = {'う' => 'って', 'く' => 'いて', 'す' => 'して', 'つ' => 'って', 'む' => 'んで', 'る' => 'って', 'い' => 'くて', 'ぐ' => 'いで', 'ぬ' => 'んで', 'ぶ' => 'んで'}


Looking up a value literally, like
$H['む']
isn't a problem.

But when I try to reference keys through an HTML form, like
$H[cgi['formName']]
, (where 'む' is the form value) then the key isn't found.

I have
# encoding=utf-8
at the top of my file.

What gives? I thought Japanese wouldn't be a hassle in Ruby considering who made it. Is there something else I'm missing?
>>
>>61170907
additional info: the GET URL associated with the HTML form mangles む to %26%2312416%3B

when I enter the URL with a literal む in place of %26%2312416%3B, then the hash table reference works fine

so is the mangling of HTML form values taking place in Ruby or Apache? how do I force them to be passed as UTF-8?
>>
>>61170907
It should look like "%E3%82%80" to directly represent the character you want.

What you get from "%26%2312416%3B" is instead "&#12416;" which is the html encoded entity for that character.
>>
>>61171113
How do I ensure the parameters submitted by the GET method encode properly?
>>
>>61171001
>>61171145

the mangling is just the character being escaped because it's a nippon stuff .you can decode the mangled string you get back to a html entity and then parse that to unicode

require 'uri'
require 'cgi'

this = URI.unescape('%26%2312416%3B')
puts this
this = CGI.unescapeHTML(this)
puts this
>>
>>61171185
Tbh it's definitely not normal for html entitites to enter the URL.
Perhaps that dude is incorrectly setting the value by escaping it twice.
Or maybe Ruby is simply shit.
>>
>>61171185
jesus thank you

All of that was not obvious from all the stackoverflow searching I did
>>
Is Toptal any good familia?
>>
>>61166958
I wouldn't line-wrap an expression lambda. Use {}.
>>
redpill me on jekyll
>>
What's the difference between new and Object.create()?
>>
>>61170609
That's fire and you're literally me

You get that 240SX and shine on you crazy diamond
>>
>>61171656
apparently it's slow.
Looking into Hugo and Hexo myself at the moment.
>>
>>61171893
Slow as in assembling a project? What can be slow in serving static html? or I am misreading shit
>>
>>61127643
y
>>
>>61171958
slow to build. Not a problem if you only have a few entries though.
Can go into minutes though if there are hundreds or thousands posts, from what I read.
>>
File: 1466100642635.jpg (502KB, 1000x1200px) Image search: [Google]
1466100642635.jpg
502KB, 1000x1200px
Hey /wdg/,

I signed up for the udemy webdev boot camp. Is it good for someone who knows absolutely NOTHING about code?

I am pretty technically minded, but I am a complete beginner in webdev.
>>
Can I make browser game like Ogame or Travian in django and python?

Im totall newbie, only asking
>>
Been learning Web Dev for a while now.

Any protips on getting EMPLOYED.
>>
>>61173323
Apply for jobs.
>>
>>61173301
you can make pretty much anything with anything
People don't shitpost about how their backend is the best for nothing. It's Node.js btw.
>>
>>61173442
I know, but its hard to cook diner with gas bottle and hammer. It's easier with pan and cooker. So django is made for apps like this or something else?
>>
>>61173323

apply
have a reasonable cv/resume
have a seemingly competent portfolio
don't be weird at the interview
try to wear smart clothes and not look weird

i work for small start up web dev company ( 6 people ) and we were looking to hire a front end developer for the past month. the candidates we had were shit. about 8 came through. some were grads who had absolute shit cv's and their portfolios were run of the mill uni projects. one guy came in late wearing jeans and reeking of cigs. the boss said that one of the other guys came across as the weirdest dude in his interview and he didn't think it'd be fun to work with him. one guy said he could do all these things from rails expertise to react yet he couldn't produce a link to any work that wasn't a static html page

eventually some fresh grad kid got the job because he was the least weird person who seemed like they had some skill/interest in web development. we had to keep lowering the bar. bad time of the year to hire i guess

the thing i found when i was applying for jobs is that if you put some effort into looking presentable, have the ability to showcase your work and at least think about why you want the job, what you will get out of it and where it will take you -- you will be better prepared for the job than practically everyone else. it may seem obvious to you and me but a lot of people are apparently retarded.

if you can express your desire to grow in the position and you want to learn on the job then you will come across as extremely valuable. you don't need to be a master, you just have to be on the right path
>>
>>61173271
Yeah, most Udemy courses are pretty good, go for it. How much did you pay? Keep in mind that prices for Udemy drop constantly, never pay full price for anything, just wait a few weeks and they'll throw a huge discount, around $10 per course.

Also, don't get stuck on a course. If you feel like you're not making progress, you start dreading the course or it just doesn't make any sense or whatever, drop it and pick up another one.
>>
If I'm competent at python/django, how hard would it be to pick up PHP? I'm asking because there's a company in my city constantly hiring, and they do mostly PHP. Which framework should I use for PHP? Laravel?
>>
>>61173767
>Which framework should I use for PHP?
whatever the company uses
>>
File: XHDlvDR.jpg (113KB, 960x576px) Image search: [Google]
XHDlvDR.jpg
113KB, 960x576px
>>61173735
>the thing i found when i was applying for jobs is that if you put some effort into looking presentable, have the ability to showcase your work and at least think about why you want the job, what you will get out of it and where it will take you -- you will be better prepared for the job than practically everyone else. it may seem obvious to you and me but a lot of people are apparently retarded.

i think i a lot of people fall for the "le scruffy genius programmer" meme (pic related)

i too look and smell like shit when coding at home but for christ's sake at least wear a shirt with a collar when you go to work
>>
>>61173901
they don't say which framework they use, they just mention PHP
>>
>>61173937
>i too look and smell like shit when coding at home but for christ's sake at least wear a shirt with a collar when you go to work
no
>>
>>61174368

ok fair enough, just wear a clean shirt at least
>>
new thread
>>61174892
>>61174892
>>61174892
Thread posts: 311
Thread images: 47


[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.