[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 dev 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: 329
Thread images: 27

old one 3hunna. first time making this thread, but I just pasta'd everything from before. hope it's okay.

> Discord
https://discord.gg/0qLTzz5potDFXfdT

>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/
http://www.freecodecamp.com/
http://www.codewars.com/
>Crockford on Javascript
https://www.youtube.com/playlist?list=PL7664379246A246CB

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

>Backend development
https://en.m.wikipedia.org/wiki/Comparison_of_web_application_frameworks

>Useful tools
https://pastebin.com/q5nB1Npt/
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/

> How to get started
http://www.youtube.com/watch?v=pB0WvcxTbCA [Embed]
Good videos on the channel too
https://www.youtube.com/channel/UCVTlvUkGslCV_h-nSAId8Sw

>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
>>
alright guys I have a javascript question.

let's say I have a super simple site. there's a little square div and a button. when you push the button the div changes color.

to achieve this there is a function called changeColor() that randomly chooses hex values and updates the div's style.backgroundColor.

so when the button id="my-button" is clicked, it calls the changeColor() function.

my question is this... is there a way to just have

document.getElementById("my-button").onclick = changeColor()

instead of

document.getElementById("my-button").onclick = function() { changeColor()}

(difference between the two is the inclusion of function() in second way of doing it)

because the first way, pointing directly to the function I wrote, seems to intuitively make sense. but that doesn't seem to work. in fact it appears to run my function on page load.

the only way that seems to work is to have my changeColor() function inside of function(), which seems redundant. why cant I just have blahblahblah.onclick= point directly to my function instead of being inside of function()?

hope my question makes sense. thanks!

I come from Java so this idea of using = to point to and trigger a function is weird in and of itself. thanks again famm.
>>
is rails dead bros? what web framework should i learn?
>>
File: CjJVcx5WgAA96e5.jpg (77KB, 596x449px) Image search: [Google]
CjJVcx5WgAA96e5.jpg
77KB, 596x449px
Hey guys, I have a question about my "portfolio."

For the past 2 years I've been doing web development and portfolio design for... XXX related things. Cam girls, porn sites, etc. I've also been learning programming on my own and want to get a job with my C# or Java skills.

I'm running into a problem where I don't know what to say on my resume. If I list "freelancing web design," they will want to see the work I've done. If I don't say anything, I'll look like I've been unemployed for 2 years.

Anything I'll be able to whip up in the next few months won't exactly be enough to have a full portfolio. What do I do? I don't even want a job in web design so idk how important this is.
>>
>>56959920
node or go
>>
>>56959920
Rails is losing hype. It still has inertia in the industry, but growth lies elsewhere.

Node has hype. It's 100% meme technology.

Go is growing steadily and people are building great software with it. One of its strengths is top-notch concurrency.
>>
>>56959370
If your function have no arguments then you can just do:

.onclick = functionName;
>>
>>56960482

shit are you sure about that? I'll try again tomorrow, but it seemed like it wasn't working correctly, and the only change I made was adding the extra function()... that seemed to make it work.

but yeah I'll try again tomorrow and post code if I'm running into problems. thanks btw.

also why would it matter if the function has arguments? whats the difference between .onclick = functionName() and .onclick = functionname(x, y);

also just encountered this new captcha for the first time. looks like I made a fucking Oneohtrix Point Never album cover lol.
>>
>>56960393
>>56960462

thanks boys.
>>
>>56960321

i dn understand. if you dn wan a job, why are you applying for a job?
>>
>>56960801

oic you have been doing web dev/design and want a C#/Java job. nvm.
>>
>>56960660
If the function has arguments, you'll have to wrap your onclick assignment in a closure in order to inject the arguments.

Onclick must be of type "function".
If functionName is a function reference,
then functionName() calls that function and returns whatever it returns, like a number or string.
Onclick wants a function, not a number or string.

...onclick = functionWithNoArgs


...onclick = function() { functionWithArgs(x, y) }
>>
>>56960820
Yes, but unfortunately the bulk of my experience/professional work has been in adult web design. Maybe this isn't the right thread to ask, but I'm not sure what to do for my resume.
>>
>>56960875
scrub your past works
make them safe for work
>>
Does anyone want to pair program coding challenges / possibly make some apps?

I basically have a firm grasp of Eloquent Javascript chapters 1 - 5. We can do this on coderpad.io and skype to talk to eachother (or something like tiny chat so we can listen to music)
>>
>>56960875

well it sucks for you because C#/Java seems to be in kinda the corporate realm, and they won't like your adult web dev background.

I guess I would just encourage you to apply to smaller companies, keep your resume vague, then when actually interacting with potential employers be upfront and not weird about it.

like get in the door without specifics, then just be chill about it after.
>>
>>56960914
I won't actually be quitting this gig for another 5 months, at which point I'll have 6 months of savings to use while I find a job. Is that enough time to just pound out some worksafe projects and hope employers don't want more?
>>
>>56960462
Probably because DHH is lazy. Hopefully he gets some motivation or something soon
>>
File: fuckthat.gif (2MB, 540x297px) Image search: [Google]
fuckthat.gif
2MB, 540x297px
>>56960393
>>56960462

>hear about Go
>check out their website
>oh nice, a half our intro vid, this should be cool
>dude has drymouth the entire vid

well i guess node it is.
>>
>>56960934

5 months - 11 months? dude that's absolutely enough time imo. just keep disciplined. that will be the main thing, especially if yo don't have a job. make yourself put in x hours a day. treat it like a chore on days you don't want to.
>>
>>56960904
-- wiling to teach Javacript
>>
>>56960988
Thanks man I guess I'm just nervous that nothing I can come up with will be good enough. I don't have that formal CS education yet (I had to drop out of school to take care of a relative before she died) and I'm worried about looking like a fool to employers.
>>
>>56960944
That's nothing compared to the Kubernetes guy who smacks his lips every fucking sentence. It's like he has a dick in his mouth at all times.
> DRINK SOME WATER

>well i guess node it is
I hope you're joking.
>>
>>56961058
>Kubernetes guy
oops, I meant the InfluxDB guy.
>>
>>56959228
the op is too bloated no one is gonna read it

can you remove some links for next time thanks
>>
>>56961182
It's a resource, there for anyone that wants to use any part of it. I'd say it's missing links.

You're probably young, but you should learn not to come into a group and immediately talk about changes
>>
>>56961285
>young poster
>sees giant ass OP
>doesn't know where to start
>posts that it's too bloated
>y-your just young you dont even belong here!!!!!
>in fact it should be bigger
nice logic moron
>>
>>56961307
>doesn't know where to start
>literally a section titled "How to get started"
>>
>>56961362
>implying a new poster is going to get that far down the OP without posting first
>>
do I need to know mysql outside of regular web store/pull things from the database and manage it all in phpmyadmin?
like theres so many books and courses on databases, they make it feel like its another beast but it feels like common sense to me, just take your time to organize
>>
File: 1420596433511.jpg (44KB, 640x480px) Image search: [Google]
1420596433511.jpg
44KB, 640x480px
Lads, sorry to post one of these posts but how the fuck do I keep the motivation going? It's one of those times where I just feel so overwhelmed with all the shit I need to know to stay up to date in web dev.

The worst thing is when I compare where I'm at with others. I know it's dumb to do that, but ya can't help it sometimes.
>>
>>56961426
yes you do

if you want to write even a basic search function you'll need to know it
>>
>>56961307
The only thing being young has to do with anything is stupidity. I don't think the op should be refactored to account for idiots. One glance at the op and it's obvious what it is. Browse the greentext and choose a link that applied. Don't like it? Choose a different link. Want individual advice or recommendations? Post in the thread,

This shouldn't have to be explained.
>>
>>56961468
a better op would be

> Discord
https://discord.gg/0qLTzz5potDFXfdT

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

> How to get started
http://www.youtube.com/watch?v=pB0WvcxTbCA [Embed] [Embed]
Good videos on the channel too
https://www.youtube.com/channel/UCVTlvUkGslCV_h-nSAId8Sw

>pastebin (links/learning material/etc)
pastebin link here
>>
just got a job offer yall im makin 55k right out of college wooooo im drunk hell yeah
>>
>>56961498
55k is kinda low
>>
>>56961503
yea desu i feel like i got a little lowballed on it (coulda/shoulda pushed for 60k) but its got full benefits and stuff and im not opposed to up and outtying after a year if i dont see any raises coming my way
>>
>>56961503
We have no idea if this is low without knowing where he lives.
>>
>>56961532
i just assumed he lived in canada
>>
>>56961498
but can you code
>>
>>56961555
nope lol i didnt study shit for coding in college theyre gonna teach me
>>
>>56961565
at least a cs major?

then again all the junior cs majors I see cannot code for shit and don't have experience with modern frameworks

you will be fine
>>
File: no fun allowed.jpg (24KB, 469x219px) Image search: [Google]
no fun allowed.jpg
24KB, 469x219px
I just want to make a crud app but there is too much shit to set up for modern webdev.
>>
>>56961565
how do i get that i even have a degree in code
>>
>>56961581
all you need is php and apache and mysql
>>
>>56961580
physics

>>56961590
i talk real smooth and i polished my resume like a diamond
>>
>>56961486
Probably. And there should be learning material for individual languages.

>JavasScript
http://eloquentjavascript.net/
- Js textbook
https://www.udacity.com/course/javascript-basics--ud804
-interactive video lessons

And with a 2cents on how to get started (ie read Eloquent Js chapters 1 - 5, get to codewars level 5 or 6 kyu to learn syntax and then...) That's as far as I've gotten

I don't think it should be slimmed down so much as sectioned a little better


>>56961503
>>
>>56960660
.onclick = functionName()

There are two things happening here:
1. You are calling the function functionName. 'functionName()' is a function call statement, not a representation of the function object.
2. You are assigning the value returned by that function call to .onclick

.onclick expects to be assigned a function, not its return value. So this guy
>>56960821
>>56960482
is correct.
>>
>NEET guide to web dev employment
>https://pastebin.com/4YeJAUbT/

This is teaching neets how to get non technical jobs and healthcare. What does this have to do with getting a job as a web develoepr?
>>
>>56961032
Can you take the adult sites you designed and just quickly copy/paste + replace adult vids for something more work-safe?

ALso, you don't need megaprojects on your portfolio. There was an interview somewhere where a manager said "basically show me something you can code in 2 days, that should be enough to let me see whether you know your shit or not."
>>
>>56959228
Hey OP, don't let the whiny faggots get to you. I'm balls-deep into learning thanks to this thread, started over a month ago. I tried getting help over at /dpt/ but all I got was "lel Haskell or die, normie scum!".

The "How to get started" vid you posted is the one from 2015 though. Same shit as the latest one, but yeah, just to keep it updated.

>For thousands of free books:
Genesis Library at gen.lib.rus.ec or a bunch of other urls, it keeps changing, just google it. How to use the site:
>google the subject/language you're interested in.
>sort by year to get latest books
>download whichever one you like
>if too hard/too easy/not your style, download another one.

Also, listen to this guy, this is how you do it >>56961629

pic related is what I'm doing right now. Intermediate level, putting everything together to make websites on c#/.net, with great step-
by-step examples

>>56961426
Getting Started with SQL: A Hands-On Approach for Beginners from O'reilly, they seem to have the best books for beginners.
>>
codewars site looks cool and the different answer at the end help me get better but all the kyu dojo kata shit is annoying and I am a weeb.
>>
>>56962812
>all the
I don't think I or anyone else actually notices it.
https://devchat.tv/js-jabber/231-jsj-codewars-with-nathan-doctor-jake-hoffner-and-dan-nolan
The guys are pretty cool if you want to hear them talk.

Post the problem you're working on.
>>
>>56962568
What've you built so far?
>>
>>56962850
Haven't really built anything important so far. Just played around a lot with implementations of the basic MIT algorithms, and now with that book I'm building my first e-commerce site, doing the full stack.

And I've done a bunch of scrapers with Python, but that stuff is so easy it shouldn't even count.
>>
Here's a Code challenge, I'll keep it very simple. Create a function that takes as input a string of words and outputs the [first] shortest word in that string.

>>56963315
>e-commerce site
We ambitious.

I assume you've been actually programming for a lot longer than a month?
>>
>>56963466
>>e-commerce site
it's actually more of a skeleton of an e-commerce site, just basic functions, not operational at all. And really, if you know a bit of C#, that book takes you by the hand and guides you all the way through, very easy. Plus, the MVC model in .net is super easy to use.

I studied some python/MatLab back when I was in Uni, but that was like 6 or 7 years ago. I'm just sticking by my routine, come home from work at 4 and then code (and shitpost) until it's time to go to bed. Every day, no excuses.
>>
function smallestWord(str){
return str.spit(" ").reduce(function(a,b){ return a.length >= b.length ? a : b});
}


>>56963558
I got caught up in creating algorithms. I didn't really like programming until I found codewars, at which point I essentially used that and google to teach myself Js.

I was giving it 8+ hours a day until I peaked 3 weeks in and got bored. I've been playing videogames for the past 3 weeks and I'm deciding what to do next.
It's looking like more Udacity
>>
>>56963642
huh, that's a fucking elegant piece of code. I used to do codewars, and I would always need a bunch of lines to do what others could just one-line like you did. I guess JS is a lot more succinct than fucking C#.
>>
>>56963466

Here's your """Code challenge""":

"OP is a faggot".split.sort_by(&:size).first


Ruby > everything


>hurr, that's not a function..

m = ->(x){x.split.sort_by(&:size).first} 
m.call "OP is a faggot"
>>
>>56963712
ruby's syntax is too cryptic
the fuck is a """ &: """?
>>
A function that takes as input an array of numbers and outputs the number where everything to that number's left sum up to the same as everything to its right. If there is no index like this, then return "Not symmetrical"

>>56963688
Anonymous functions are godly in Javascript. There's two typos in that though

>>56963712
That does look nice
>>
>>56963737

It's a shortcut syntax...

The "long version" is like this:
"OP is a faggot".split.sort_by{ |a| a.size}.first


This part here is called a "bloc":
{ |a| a.size}

Some functions expect code blocs, the & symbol is a short cut for "the next thing is a block" (or rather a proc or lambda, but it's more or less the same).

So I'm saying "here comes a block" and the block consists of a symbol. Symbols are immutable things that life in your current namespace, i.e. method names.

So I'm saying "dear sort_by method, please use :size as your argument to fullfill your job".
>>
function isSymmetrical(arr){
var answer;
arr.forEach(function(num,index){
var r = arr.filter(function(n, i){return i > index});
if (r[0] !== undefined){
r = r.reduce(function(a,b){return a + b});
}

var l = arr.filter(function(n,i){return i < index});
if (l[0] !== undefined){
l = l.reduce(function(a,b){return a + b});
}

if (l === r){answer = num}

});
return !answer ? "Not Symmetrical" : answer;
}


There's a better way to do this that involves starting with filter. This feels pretty long.

>>56963815
Yeah, I understand that better. Sort sorts from least to greatest and you return the first.
>>
>>56963815
>>56963815
scripting/algorithms is nice, but can you code anything else? Can you work inside a framework to actually create something? I think there's a big jump between "I can code a function that does X" and "I can create a whole app with a database, gui, api calls etc"
>>
function isSymmetrical(arr){
var answer, l, r;
arr.forEach(function(num,index){
if (index < arr.length -1){
r = arr.filter(function(n, i){return i > index}).
reduce(function(a,b){return a + b});
}
if (index > 0){
l = arr.filter(function(n,i){return i < index}).
reduce(function(a,b){return a + b});
}

if (l === r){answer = num}

});
return !answer ? "Not Symmetrical" : answer;
}

A little better.

Here's another one that could probably be done in a line if anyone's interested: takes in a word and outputs whether or not it's a palindrome.

>>56963889
I very admittedly can not. I've just started learning and I really like taking on complex (hour+) coding challenges.

I'm hoping to find an area in programming, in or outside web development that feels similar. I just learn more until I can view something like that more holistically.
>>
>>56963996
Or just learn more..**
>>
>>56960462
Nils
No generics

Why the fuck did go have to become popular despite being shit? Two solved problems and they dive in anus first ready to be fucked by a bunch of completely solved problems.
>>
>>56963756

>That does look nice

It does, right?

To be fair, list and string processing is one of Ruby's core strengths. Due to it's "Perl heritage" you can do pretty funky stuff..


For example:

>A function that takes as input an array of numbers and outputs the number where everything to that number's left sum up to the same as everything to its right. If there is no index like this, then return "Not symmetrical"


This took me a while:

def get_middle(a)
a.each.with_index do |piv,i|
l,r = (a - [piv]).partition.with_index{|e,j| j>=i}
return piv if l.inject(:+) == r.inject(:+)
end
"Not symmetrical"
end

get_middle [1, 2, 3, 7, 3, 2, 1]
>>
>>56964111

Also check my trips, yeah..


>>56963889

>Can you work inside a framework to actually create something? I think there's a big jump between "I can code a function that does X" and "I can create a whole app with a database, gui, api calls etc"

There is quite a big differnce!

My game plan is to git gut at Ruby first, I did this the last month by doing a lot of small coding and some scripting (i.e. parsing pdf into text).

The next step (I'm currently woring on that) is getting decent at Sinatra and Rails. I mean I can spit out some generated Rails code, but damn, if you dig deeper there's a lot to learn.

I must say Sinatra is so damn cool, but you can't call yourself a Ruby dev if you are not proficient in Rails, unfortunately. There's jsut so much to learn..

>How_many_layers_of_abstraction_are_you_on.gif
>>
Should I learn Angular2 or Android if I am already JS developer? Thanks for opinions.
>>
Is AJAX the best or only way to submit forms and have info on the view update without a refresh or redirect?
>>
>>56964184

Depends..

Do you want to build websites or mobile apps?
Two different tools for differnt purposes..
>>
>>56964220
Yes
>>
>>56964229
I want to focus on mobile apps. Isn't angular meant for mobile? Also Java is a nightmare for me.
>>
>>56964352

Well, if you hate Java this much you won't get very happy as Android Dev..

Maybe you should give Java another look? It got some syntactic sugar over the last decade..

Another option would be to learn Swift and get into iOS development. Swift is arguably much more beautiful than Java.


Angular is more general purpose, but you'll find a lot of jobs with that.
>>
function isPalindrome(str){
return str === str.split("").reverse().join("");
}


Much too easy. To make it work for full sentences with punctuation and capitalization:

function isPalindrome(str){
str = str.toLowerCase().split("").
filter(function(letter){return letter !== letter.toUpperCase()});

return str === str.reverse();
}

>>56964111
r.inject(:+)


Again, that looks nice.

In python it would just be
sum(list)


But there's something more fun when you have to create it yourself. I assume there's a potential to get creative with inject.
>>
What is the boundary between just a web developer and a cool front end developer?
>>
>>56961445

I'm feeling the same way, I guess it's normal. Maybe we're trying to bit more than we can chew. I know I am, I need to make money ASAP.

For example, I need to build a portfolio and I don't know what projects I should put on it, fictional stores and shit. I'm lost as fuck.

And the fact that I'm trying to get my head around javascript doesn't help.
>>
>>56964415

Yes, Python is also pretty cool. For example list comprehensions are really nice. Also Ruby and Python are pretty similar anyway..

But what I like about Ruby is that it's more consequent in it's OOP:

"r.inject(:+)" means:
-create an accumulator element
-iterate over each element
-use the method "+" at each element (in combination with the iterator)

It's a very functional way of doing it: an iterator calling methods at the objects it's iterating over (vs. a "sum" function).

BTW you could also write "r.reduce(:+)", it's the same.
>>
>>56964474
sunglasses
>>
File: Oh,_the_Places_You'll_Go.jpg (60KB, 400x554px) Image search: [Google]
Oh,_the_Places_You'll_Go.jpg
60KB, 400x554px
>>56961445
>>56964528

We're all gonna make it brahs..

The important part is that you don't give up. You can't give 100% everyday, but try to practice as much as possible. Work yourself through some JS tutorials, get some small fun projects (/g/ programming tasks) and so on..

It can be intimidating if you look at the amount of stuff you have to learn. But don't be troubled, rather draw inspiration from that. Stay a child, look at all the amazing toys, have fun while coding.


If you really like what you are doing you WILL get good. And if you are good you WILL find a good job. It doens't really matter what the "hottest" stack with the "most demand" is..

You like an oldschool language like Perl? Or even LISP? You are decent in it? You have done acouple of projects in it? Then I bet my arse that some company will hire you, especially beacuse you have a niche skill.

Just go for it, the road is long but we can do it.
>>
That feeling when you procrastinate from writing code for a day, then when you finally get around to coding you get sucked in and the thing that you've been avoiding suddenly becomes enjoyable.
>>
I'm working on a site that needs a fairly robust grid system for its home page. I know there are a lot of these out there, but I've been having trouble finding one that really suits my needs. Basically I just want something that's lightweight and supports a fixed gutter width (but flexible columns). Bourbon Neat and Susy have both failed me in that regard. Everything seems to be calculated based on percentage, including gutters.

My question: Is Flexbox consistent enough and has enough browser support that I can simply discard any grid plugins? Because if I can design my own grid using Flexbox and sass, I would gladly take that over fiddling with someone else's syntax. I use Flexbox for smaller stuff all the time but never for full page layouts. Is this a good or bad idea, /wdg/?
>>
Opinions on Codeigniter?
>>
>>56965006

PHP is dying and fast. I have no opinion on Codeigniter, but I know it's PHP. Just don't.
>>
>>56965002

If you never try you will never know..

.row {
margin:0 -15px;
}
.col-xx-xx {
padding:0 15px;
}
>>
>>56965056

I mean, I understand the basic syntax. But Flexbox has a feature where you, for example, declare flex: 1 to make each item with that declaration equal in width. It looks fairly intuitive but I didn't want to hammer out a whole grid system on my own only to discover shortcomings with this approach several hours in. I also don't want hundreds of obnoxious col-xx declarations in my HTML markup.

So yeah, I guess I'll experiment with it if nobody has any experience with it, but I'd still appreciate any relevant advice.
>>
>>56965102

Maybe one of those then?

>http://flexboxgrid.com/
>http://frowcss.com/
>http://gridlex.devlint.fr/
>>
File: Untitled.png (263KB, 3520x1080px) Image search: [Google]
Untitled.png
263KB, 3520x1080px
>>56965020
>php is dying

You keep telling yourself that, friend
>>
>>56961581
There is literally a single package that gives you everything you need. If you can't hack that, perhaps you should consider a career in the foodservice, or janitorial industries rather than anything technological.
>>
Anons, I'm looking for a career advice. I'm currently working as a full-stack web developer. Working with PHP(Symfony, Twig), JavaScript(Angular, jQuery and a little node), SQL and of course CSS and HTML.
I like my job, but I feel like I'm not improving in any way. What would you advise to learn for someone like me? How would be the best for me to steer my career right now? Maybe some more front-end stuff? Or mobile development? Maybe java? Maybe with good web dev background I could work in security?

I have really no idea, but I'd really like to change and improve my career. I don't have CS degree, so typically engineering jobs are not really within my reach (Such as C or C++ jobs), but maybe still there are some opportunities...

Thanks.
>>
>>56965366
Shit, I meant to say, more back-end stuff.
>>
>>56965380
good question man, i've been wondering that myself for a while now
>>
>>56965366
where do you live?
>>
>>56965434
Right? It's a tough one. What do you do?
>>
I want to build an image upload website like imgur.
What is the best option for back-end language?

I'm thinking about PHP (Laravel) or node.js, because I have some experience in PHP.
>>
>>56965263

That code is atrocious.
>>
>>56965482
Hong Kong.
>>
File: Untitled.png (278KB, 3520x1080px) Image search: [Google]
Untitled.png
278KB, 3520x1080px
>>56965504
Same boat as you my friend
>>
>>56965521
what did you mean by this?
>>
>>56965527
Nice. Where do you live?
>>
>>56965366
>>56965434
>>56965504
>>56965527

Webshits, know your place.
>>
File: file.png (31KB, 704x182px) Image search: [Google]
file.png
31KB, 704x182px
>>56965535

Use proper abstraction and make sure your functions have a single responsibility.
>>
>>56965514

For the love of god, don't use Laravel. It's terrible.
>>
>>56965514
Node is alright despite the memes
Really depends on what kind of scale you're expecting though
>>
>>56965514

You want a framework that gives you everything you need in an MVC, but lets you work your own way and makes you a better PHP dev while you use it, get Phalcon. It's an extension, so you have to be able to install things on your server, but it's the fastest framework on the market. It's probably the most flexible as it doesn't impose on you anything but the bare minimum of requirements, and it doesn't let you be a lazy dev like something like laravel and cake encourage you to do.
>>
>>56965002
From what I understand, you can make bootstrap as lightweight as you'd like.

If you want a decent intro to flexbox, check out
https://www.udacity.com/course/responsive-web-design-fundamentals--ud893
The "building up" section is where it is, then again at the final section. I was under the impression everyone used it.

From what I understand of what you're saying - fixed gutters and flexible columns - it sounds like it's a matter of defining gutter width as px and columns as a percentage.
>>
>>56965263

PHP is only still around for two reasons.

1 - Wordpress
2 - legacy applications

There is literally nothing php can do that another language can't handle at least moderately better. Wordpress is moving off of PHP and into JS, as already being seen by their official plugin that converts all of WP's data to JSON. New developers will stop learning it in favor of Google and Facebook backed JS technologies, especially now that Google's crawler picks up on JS now.

You do the math.
>>
>>56967226
>New developers will stop learning it in favor of Google and Facebook backed JS technologies
Good reason to destroy the Internet now, thanks.
>>
>>56965366

Full stack developers shouldn't *really* exist in 2016. It's excellent that you have such a wide breath of knowledge, but the skill ceiling on JavaScript alone is enough to keep someone busy their entire career, not to mention to constantly updating and evolving frameworks associated with that language. Your back-end knowledge will always be useful in a front-end development setting and vice versa, but I can guarantee there is still more to learn in those areas.

Pick something you like and specialize. If you want to go front-end, I suggest continuing Angular and picking up React as well. If you like back-end, look into MongoDB and all of the server technologies that play nice with JS. I'm no expert on these but JS is the future of the web as far as Silicon Valley is concerned, and development will always follow the money.

Generally, you need at least an MA to be trusted to do security for a reputable organization. Find a better firm that challenges you and learn new skills. There is always more to learn.
>>
>>56966306

I already understand the basic syntax, I was more just hoping that someone here had some experience building complex layouts from the ground up using Flexbox, which I always thought was a little out of its reach (but am now starting to think I was wrong).

Thanks for the link. When I read "fundamentals," I thought it was going to be stuff I already knew, but they do seem to have two entire sections on just Flexbox, which looks pretty damn in-depth. I'll probably skip to that segment, if possible, and check out their approach. The other stuff looks fairly rudimentary.

>>56967250

I feel like anyone who hates JS spent 10 years of their life learning PHP and can't come to terms with its inevitable demise. It's not even a bad thing. All learning is good learning - PHP principles apply to other languages.

If done properly, MVC based web applications load faster and provide a better user experience than classic web pages could ever allow for. Learn something new and go with the flow. Widespread JS adoption is not the end of the world.
>>
I'm going to start applying to junior web dev jobs soon. I just finished FreeCodeCamp's frontend course.

I'd say my portfolio is well designed and simple, and my projects are things like a JS calculator, Tic-Tac-Toe game, some API stuff. I'm not too good at the JS but I can hide my inexperience with very good design.

My question is, for a junior dev role, how should I prepare for the interview? Should I just go in as I am, or spend some time memorizing algorithms (which ones?) and interview questions?

Just tips for babby's first dev job. Thanks anons :)
>>
>>56967452
I haven't written PHP in over ten years and I actually like Javascript. I do not like Google and I do not like Facebook.
>>
>>56967566

Oh. Hahaha. My bad, famela.

Facebook is pure cancer and Google gathers more data than should be legal but Angular 2 is pretty cool and gmail runs my life so I have to tolerate the latter. I feel you, though. Zuckerberg's soulless gaze scares the hell out of me.
>>
>>56967452
Yeah, with as little as I know I can make a static facebook page for example. Which I'm sure is more cluttered than what you have in mind.

From what I understand you can do everything with columns 1 - 12 and rows.

One of the final quizes has to do with ordering the columns. The finale section itself should only take like 30 mins. If you do that then you'll probably know all you need.
>>
>>56967546
Just doing FCC's frontend course doesn't put you anywhere close to ready for a real job.
>>
>>56967690
It wasn't just FCC, I used a lot of resources but mainly FCC for the structure. I'm still learning, I'm not gonna stop here, but since many others have found jobs after finishing the course I thought I'd try myself.
>>
>>56960944
https://tour.golang.org
>>
>>56967869
What's with this stupid Chinese characters shit? It's already pissing me off.
>>
I'm a front-end webdev intern, currently required to work with Angular2 with ngrx/Store.

I'm finding the whole Redux paradigm quite difficult to get my head around. Any suggestions / resources to help the penny drop?
>>
>>56967546
>I'd say my portfolio is well designed and simple, and my projects are things like a JS calculator, Tic-Tac-Toe game
>should I spend some time memorizing algorithms

Let me give you some perspective. I can have your same portfolio within the next couple days. I'm also writing algorithms for a guy in the programming thread (is that you?) and I don't even consider myself anywhere near ready to apply for a paid bootcamp, let alone get a job.
>>
can someone please help me with my java cod heree? this is in my main classand i dont know what the actual fuck,. is wrong with it? can alyone share a little knoweldge because im getting relly mad, i just want to show false or true to the console after dong a few things.. ddcan someone post a fix please i need a while file not just tell me how to learn to do it i jkuts wannt copy paste.. pls ;-;
[CODE]
for (;;) {
while (true) {
if (true) {
final double d = 123456789.987654321;
System.out.println(java.math.BigDecimal.valueOf(d));
final int i = (4 * 8 / 2);
System.out.println(java.math.BigDecimal.valueOf(d * i)
;
;
;
;
} else if (true) {
return;
}

final String tsring = "0x00".substring(0, 3);
String rtue = "true";


boolean ffalse = false;
boolean ttrue = true;

switch (tsring)
{
case "true":
ffalse = true;
rtue = "true";
break;
default:
ttrue = false;
rtue = "false";
break;
}
;
if (!ffalse) {
break;
} else if (ffalse) {
System.out.println(ffalse);
break;
}

if (!ttrue) {
break;
} else if (ttrue) {
System.out.println(ttrue);
break;
}


return;
}
break;
}
[/CODE]

what is wrong with my code?? ;-;
>>
>>56968284
I don't know Java and you messed that post up, but I can tell you're doing a lot of needless stuff. You can pretty much bet that the error lies somewhere in all that needlessness.

Do your version of console log all around there, look for the culprit and try rewriting that section from scratch.
>>
>>56968224
I think you're overrating the difficulty involved in web dev. You aren't training to write an AI here.
>>
>>56963815
>"OP is a faggot".split.sort_by{ |a| a.size}.first
print(sorted("OP is a faggot".split(),key=len)[0])


>>56961182
adding to this, although unrelated:
I'd suggest to replace codecademy with udacity, or at least add udacity... IMO, it's much better as a good mix of theoretical and practical teaching.
>>
>>56967546
Don't listen to this guy anon >>56968224

>>56968487
This anon knows what's up. Web dev ain't that hard. Especially in a junior position.
>>
I want to learn Java Spring but I'm a bit overwhelmed. Can someone point me to a decent beginner tutorial or a good place to start?

I'm good with JS, Node and Python and know fairly basic Java, but I've never used it on a server. It seems a lot more complicated than other MVC frameworks.
>>
>>56968224
I know that I'm still a major beginner. I can make websites look pretty and interactive at this point, as well as code some simple games with (very) extensive Googling.

Ideally I would keep going for at least another few months before starting to apply to jobs, but I am in a situation where I simply need to start applying.

>>56968487
>>56968525
I've seen posts from people online that got web dev jobs really quickly...but then I read about algorithms interview questions and have panic attacks lol. I'm a complete anxious mess, even if I had a lot of experience and skill I'd still fail the interview due to nerves.
>>
>>56967879
>What's with this stupid Chinese characters shit? It's already pissing me off.
don't be stupid, it's clearly showing that it supports unicode without having to mess with it
with that attitude you won't go far. my suggestion: don't learn Go, you hate it without even having started learning it, and that's a bad approach for learning anything
although you may end loving it anyway, like lots of other people do...
>>
>>56968487
I live in the bay area. I just highly doubt I'm going to be able to find a job with all the competition.

Though I'm a neet that knows no developers so idk.

>>56968627
Algorithms are pretty much the single thing I can do with confidence.

If you want to pair program, I've been wanting to teach someone or basically find someone at my same level to make other things with.

I didn't sleep last night so I don't feel like doing anything right now but I'd be up for it tomorrow.
>>
File: sure.gif (2MB, 320x240px) Image search: [Google]
sure.gif
2MB, 320x240px
https://github.com/DealsBeam/Simple-Affiliate-Stores
>>
What's the verdict on Angular 2, now that it's been out for a while? Does it seem like something that's actually pretty decent or do you think companies are going to stick with 1?
>>
>>56963996
have you looked into machine learning? I was reading articles on supervised and unsupervised learning back in my college years, shit was tons of fun. It was both very theoretical and very practical at the same time, full of challenges, full of hacks people were doing to get around current limitations. Try to give it a shot, it feels nothing like web dev, where you're just following a pre-established pattern, copy-pasting, and then making it look pretty.

I'm doing Web Dev to start off with, to get a foot in the door, have at least some experience in something, but I'm aiming for more interesting stuff long term.
>>
>>56960482

k so look at this JSFiddle I made: https://jsfiddle.net/7vcgfcr5/3/

why does the sixth line of JS trigger the turnItBlue() function on page load?
>>
>>56970218

oh btw I would be grateful if anyone could help. probably don't need to know much to answer my question.

basically just wondering why line 6 calls turnItBlue() on page load. if I do onclick = function() {turnItBlue()} instead then it works. but it seems redundant to have to put turnItBlue() inside of function(). am I missing something?
>>
>>56970293
That's all there is to it, call your function turnItBlue() inside an anonymous function or it'll fire at launch.
>>
>>56970387

thanks, that's sort of what I figured, but someone above said

>If your function have no arguments then you can just do:

>.onclick = functionName;

then someone else said that was correct.

but obviously I can't because it fires immediately.

I guess I just figured I was doing something wrong because it SEEMS (to my newbie eyes) that putting it inside an anonymous function is extra unnecessary work.
>>
>>56970435
Kinda tricky for me to explain exactly why it works that way, but basically you're trying to assign a value to your element, so javascript has to compute the function first to assign the result to the element (like a variable).

Putting your function inside an anonymous one assigns the actual call to your function to your element instead of running it.
>>
Am I the only one learning C# to do web dev? Backend mostly, though of course you have to cover a bit of frontend as well just for employers to even consider looking at your CV.

Don't leave me alone here, bros...
>>
>>56972189
Eh, if you want to work for a Microsoft shop...
Most devs are not excited by that prospect.
>>
>>56972189
I learned it, too. It's a good starting point because of all the job prospects.

Don't let the memes discourage you.
>>
>>56972380
You've been able to run .NET stuff on *nix for a while now
>https://en.wikipedia.org/wiki/Mono_(software)
>https://hub.docker.com/_/mono/
>>
>>56972553
>It's a good starting point because of all the job prospects
This has always sounded like such a meme to me, and I *like* writing C#

Do you really consider competing with pajeets a prospect?
>>
>>56973088
I already have a job, but I don't compete with Pajeets. I compete with the people who have to come in and fix the shitty code the Pajeets code.
>>
With ruby and RoR knowledge and building websites with html and css and js what should I learn next to get a job?
>>
>>56973403
In no particular order:

- Git (not just add/clone/push)
- Dev Ops stuff and how to set up and run a server
- Another backend framework and language
- CSS preprocessor languages (less/sass)
- Frontend frameworks
- Advanced OOP and Functional JS

Start applying now, but always be learning and always be making shit.
>>
I think I'm gonna get fired on Monday.

I was hired by a startup with the view that I would work for them over the space of 3 weeks on a project they need to push and if all goes well I would stay on as a developer to keep the system up to date and create new features as we progress. My problem is D-day is on Thursday next week and I haven't accomplished shit over the past two weeks.

I've been working with a developer who has basically created a clusterfuck with CodeIgniter that I don't even understand. Apparently he was the main developer bu hasn't done any work on the system since April. Now with a short period of time they're thrown me into the deep end with this shit because the other guy isn't able to work more than a few hours a day now. Even doing something simple like creating a Controller I have to call him on the phone to find out how to do it because of all the modifications he's made. He's added so many JS files and scripts that I can't even keep track. I feel like this is something I should get used to in this industry but after this I don't know if I want to continue on this path.

This is my first real job in web dev and I'm getting shafted after 2 weeks. I feel like I'll get fired for even letting them know I'm drowning here. I'll ask to be move to front-end only or tender my resignation. fml.
>>
>>56973794
Welcome to framework hell anon.

We can try to help you through it as best we can, though. Post anything you're having trouble with and I'll give you a hand.
>>
>>56973820
Thanks for the offer. However, for you to understand anything I would need to post all the code. He basically took CodeIgniter and used it as a base to create his own framework. And obviously I have no documentation to refer to in order to understand what the fuck is happening.
>>
>>56973685
I already worked with bootstrap but why would I need frontend frameworks wouldn't one be enough? I was thinking of learning Go but I want to focus on what I already know for better chances at work. will be going with sinatra as another framework. what about rspec? I can write some basic shit should I focus more on it? And thank you
>>
>>
>CodeIgniter
isnt that some php clusterfuck on its own?
>He's added so many JS files and scripts that I can't even keep track
forget about the client side, or are you in charge of that too?
make you code on a separate file then ask the numbskull to include/call it whenever needed
do not, i repeat, _do not_ change/touch his shit! and make sure the versioning system states the same.

either way, good luck on the job hunt
>>
da fuck?
>>56974047 was for >>56973794
>>
Shitty facemash here.

Saving current "opponents" in $_SESSION to then compare them with what I'm getting in my voting script to prevent "cheating".

My issue is that I will soon be implementing AJAX calls when JS is enabled and so the $_SESSION variables won't change on AJAX call.
Question is - is there a better way of doing this or should I just make it so that I change the $_SESSION variables through that AJAX call?

I will have to rewrite voting script so that it pulls the next opponents from the db and spews them back anyway so I might change $_SESSION stuff while at it.
>>
>>56974066
CREATE TABLE voteips (ip text, opponentsid int)
>>
>>56973794
Maintaining someone else's shitty spaghetti code is unfortunately pretty normal, but expecting a junior dev to work miracles with no time and no help is bullshit. Sounds like you might be riding a sinking ship though, so you might want to start looking for another job.

>>56974009
>I already worked with bootstrap but why would I need frontend frameworks wouldn't one be enough?
Bootstrap is just a CSS framework. I'm talking about JS frameworks like Angular, React, Vue, etc. which are generally used for making SPAs. You should at least know what each of those are and be somewhat practiced in at least one of them, if for no reason other than that they're widely used in the industry.

>I was thinking of learning Go but I want to focus on what I already know for better chances at work. will be going with sinatra as another framework. what about rspec? I can write some basic shit should I focus more on it? And thank you
Personally, I didn't really understand what I was doing until I learned a second language/framework and could compare and contrast the two. Rails in particular does a lot of shit for you under the hood, so you should make an effort to understand what a backend framework is actually doing. Go is neat, and I would also recommend NodeJS + express, Python + Django/Flask, and PHP (I know, I know, but it's easy to learn and still widely used. If you bitch about PHP without having actually learned it you just sound like a retard)
>>
File: jayz.gif (489KB, 500x302px) Image search: [Google]
jayz.gif
489KB, 500x302px
>>56968284
>boolean ffalse = false;
>boolean ttrue = true;
>>
>>56968284
>>56974180

k and to actually provide some help...

System.out.println(java.math.BigDecimal.valueOf(d * i)

is missing an ending parenthesis.

I learned this by pasting it into Eclipse. are you using an IDE? you should for Java.

anyway after adding the parenthesis the code did run. it spit out the following:

123456789.98765433
1975308639.8024693

not sure if that's the desired result because I don't wanna read your code.
>>
>>56974047
I don't particularly like frameworks either but CodeIgniter is one of the easier ones to use without much knowledge.
I'm in charge of everything. I've basically been handed the project as the lead developer and I'm supposed to get support from this guy.
Our code is separate, we're working through Bitbucket (not Git because they are skint and didn't want to pay for a private repo) and I'm on a different branch from the master.

>>56974148
>but expecting a junior dev to work miracles with no time and no help is bullshit
True, but technically I am getting help from the guy who created it. I already call him a lot but it doesn't help much. I don't know why they hired me, I'm pretty sure this guy could make more progress working 2-3 hours a day working on me working for 8-9.

>Sounds like you might be riding a sinking ship though
Not necessarily. The system works but it's far from perfect. They've invested a lot of time and effort into making this a thing and I doubt they would allow this to fall flat without really fighting.

I started contemplating my next move the second I walked out of there after work today.
>>
>>56974130
Ah, yeah. That actually makes more sense. Cheers, anon.
Insert before vote, delete after a vote. Or add a third column "voted" with default "no" that would switch to "yes" on vote. Problem with this is that it would just sit in db being worthless afterwards since I already have a method of tracking what I need to track.

tl;dr I either delete a record after every vote or rewrite the table into something more useful like "duels" tracker with ip, winner, loser, vote_state and such.
>>
File: hamstrings.jpg (191KB, 1600x1200px) Image search: [Google]
hamstrings.jpg
191KB, 1600x1200px
>>56964528
>For example, I need to build a portfolio and I don't know what projects I should put on it

that's actually a really good question that I don't see many people address or ask. I would think portfolio is probably the #1 most important thing for folks applying to entry level positions, but I can't remember ever reading about what an ideal portfolio looks like.

So a question for all the more experienced folks: what 3 types of projects would you like to see in a beginner's portfolio?

I would guess:

1) A nice responsive website made from scratch... shows off HTML/CSS/JQuery
2) some type of CRUD project that shows you can work with databases
3) maybe a passion project of sorts? some kind of game if you're into that. or maybe some simpler data visualization with d3... something that shows your interests and that you're not just a pajeet.

wondering what you guys have to say? did i miss anything essential with my three?

pic for attention only, girls are yucky.
>>
>>56974440
The type and number of projects don't really matter too much imho.

I would be looking for markers of general competency, like:
- Clean, well commented code (obviously).
- can use git effectively, e.g. non-retarded commits, the repo isn't fucked up somehow, branches and tags if needed, PRs aren't fucking wacko, etc.
- Interested in trying out and learning new things.
- Tests. Throughout your career and especially as a noob, you're going to be writing a lot of unit tests.
- Can make a functional CRUD app. You should be able to do basic db/3rd party API shit.
- At least some consideration given to security. A non-production portfolio app doesn't need to be hardened against every possible threat, but user data should be properly sanitized, sensitive info should not be stored in plaintext, that kind of thing.
- COMPLETE projects. Are you capable of seeing something through all the way to the end, or are you going to drop it as soon as it gets boring?
- At least some level of UX consideration. You don't have to go full dribbble hipster if you don't want to, but your shit shouldn't be ugly or unusable.
- Generally capable of working as part of a team and existing in public. Open-source contributions = good. Excessive weeb/autismo shit in portfolio = not good. Portfolio contains /b/ loli scraper = instant disqualification. FFS, remember rules 1 and 2.
>>
>>56959228
>cheap vps hosting in most western locations
Does anyone know if they have a location in Hong Kong?

I specifically need a server in HK.
>>
>>56960321
>For the past 2 years I've been doing web development and portfolio design for... XXX related things. Cam girls, porn sites, etc. I've also been learning programming on my own and want to get a job with my C# or Java skills.
>What do I do?

Honesty. Actually you shouldn't even be afraid, own it.

They ask what you did, say that you did web dev for adult industry sites. They ask what kind, say streaming cam sites, porn, etc. Maybe leave out any escort sites if those were included.

They might ask about it but it's unlikely that anyone in IT is seriously embarrassed about porn.

Best of all, I promise that afterwards, in the meeting where they review all the CVs and shortlist candidates, you are NOT going to be forgotten.

Standing out is the most important thing in job interviews, just make sure that the rest of your CV is worth the attention that your porn jobs are going to give it.
>>
>>56974440
What hamstrings?
>>
>>56960462
>Node has hype. It's 100% meme technology
This.
>>56960393
>node or go
Also this.

Node.JS is pure meme but it works and it's being absurdly, ridiculously hyped. It also has EXTREME PENETRATION in javascript libraries and frameworks.

I wanted to do some React stuff and fuck me but it's hard to do anything with React without going into node. I just gave up and drank the koolaid and it's turned out pretty well.

Anything that you used to get from CDN is in Node if you want to bundle it, or don't and include it via page link, your choice.

You can do some snazzy stuff pretty easily with node/react/material design. It simplifies a lot of shit once you get your head around writing webpack config scripts.

>>56960875
>unfortunately the bulk of my experience/professional work has been in adult web design
Just stop giving a shit, don't be ashamed and people can't shame you. Nobody worth paying attention to cares about porn anyway.
https://www.youtube.com/watch?v=eEEVNX7dSCU
>>
node is the future

node is where the money is at
>>
>>56967351
Thanks anon, that's a quality post.
>>
Is the programming thing in Khan Academy worth learning?
>>
>>56975029
>can use git effectively, e.g. non-retarded commits...

can you expand on this? by retarded do you mean making trivial commits, like committing way too often? or do you mean maybe the opposite, committing way too much and having a dumb name for a commit like "change a lot of stuff"? like what particularly were you thinking of when it comes to retarded commits? asking mostly because I never know when a good cut-off point for a commit is... I've even searched and found conflicting information.

thanks for the comment btw

>>56975123

that delicious inner thigh chunkiness right below the ass. cmon m9
>>
Should I bother with React? I don't see how it's any better than Angular but it seems to be in demand
>>
>>56975452

what course do you mean specifically? I haven't worked with anything by Khan, but unless their teaching style is really ridiculous or their stuff is really flakey or hard to use, it looks like learning the stuff they teach would be very useful for a beginner.

in fact it looks like their programming courses are geared towards web dev. I'm looking under the "computer programming" category, and all but one focus on JS and/or HTML/CSS. and the one that doesn't is SQL, which is also essential.

their courses definitely pass the eye test for someone interested in web dev who is just getting started.

I will say with these types of courses that you want to zoom through them and get away from just working within the browser. but yeah it looks fine.
>>
>>56975604

Yeah, the computer programming section is what I meant.
>>
>>56967351
>Full stack developers shouldn't *really* exist in 2016
I agree but they do, I'm one.

Basically, I'd rather be back end but clients/managers are all like: "Oh, it's just another language, front-end web-devs cost money and you've got time"

Back-end DB stuff is easy and quick, I end up with time left over, I get lumped with front-end work that takes ages.

Literally, I'll have the back-end sewn up in three days; server admin, DB, Apache, API layer.

Front-end takes 30 days because I take twice as long to do front-end work that I'm not that good at. I'm getting a lot better but I'm basically a web dev because everywhere I work is too cheap to hire enough web-devs.

Is a 3:1 webdev:DB/SysAdmin ratio about right?
>>
>>56975589
>Should I bother with React
It does let you make swish UI really quickly. It's highly modular which is nice on a SPA
>>
>>56975759
>highly modular
And wrapping a component to add a little functionality is ridiculously easy, it's one of the things I like the most.

I'm using React-toolbox and I wrapped their Dropdown to make a TableLookup which just ajaxs a DB and loads the data into the dropdown. Super easy to do.
>>
>>56975759
Do people use Angular and React on the same project? Angular seems to have a lot of features react lacks like variable binding
>>
>>56975816
React is just a view framework, more or less.

I believe people do mix them but I'm less certain that it's a good idea.
>>
>>56964184
You aren't a JS developer if you asked that question.
>>
>>56975737

I can't answer your question but I just wanted to say that I deeply empathize with client / manager woes. I'm front-end 100%. I know only incredibly rudimentary MySQL knowledge for Wordpress, which I also loathe, but end up having to do everything because the database the client's been using is always in fucking shambles before they bring me onto the job. And of course, they can't look into bringing someone else onto the project.

Just once I'd like to be paid to set one up from scratch. That would take far less than a day for something as idiot-proof as Wordpress. Instead, I end up trying to reorganize, update, and just generally fix their terrible mess of a backend and the project just drags from there.

>>56975816
>>56975881

Same. I know for a fact people do it but I have absolutely zero idea why. React is nice because you can sprinkle it into an old project (though JQuery is arguably still far better for this), but Angular is a complete overhaul.If you're going to be building from Angular up, I see no reason to use React. It doesn't seem to have any additional features.
>>
Webnoob here. My mentor irl is telling me to start with php now that I have a firm grasp on HTML and CSS, but every other place i read days php is cancer and I should skip to JS. What do?
>>
>>56975971
Php is shit.
>>
>>56975971
Learn Javascript. PHP is a sinking ship and it's made to suck the fun out of programming
>>
>>56975971

What the other two said. PHP is dying out to JS technologies. Even Wordpress is abandoning it, albeit slowly.
>>
>>56976111
Trips of truth. Learn JS, fuck PHP.
>>
>>56960482
just do it in the html file in the tag your submit button is in brah
>make sure to link js in your header
>or make sure your script is in the head of your file under a script tag

<div>
<input type="submit" value="Submit" onclick="changecolor()">
</div>
>>
>>56976249
Is this 2005?
>>
How realistic is it to make decent to good income as a freelance web dev? Is location that relevant, or are online interactions between dev and client pretty common these days?
>>
>>56975971
At least learn the basics of PHP. If you've programmed before at all, you'll be able to fill in the blanks or at least know what to google.
>>
>>56975971
>start with php now that I have a firm grasp on HTML and CSS
I agree with your mentor.

I'll disagree with the majority though.
>>56976111
>>56976149
>>56976199
>>56976203
>PHP is a sinking ship

It's way less popular than it used to be but it's still useful for server-side processing. Yes, you can do that with Node.JS these days but the support for external technologies is still small.

Node support for say transmitting prepared statements to Postgresql, is minuscule. Actually, Postgresql support in Node is minuscule and support for prepared statements is nonexistent. In PHP, there's shit loads of support for anything you can think of and pages of stackexchange Q&As that cover whatever problems you might have learning it.

PHP is a mature technology and plays well with other technologies, it's great for backend APIs that do processing and transformation or even just interrogate DBs.

Node is meme and unless you're dealing with other memes like MongoDB, you're going to have a bad time. It's coming along but PHP still has a strong role to play and will for a while. That role is middle-ware and back-end.

If you're asking about front-end apps then I'd tend to agree with the above anons but I'd say that it's still worth having. It's not hard to learn anyway.
>>
>>56976348
Good post.
>>
File: images.duckduckgo.com.jpg (78KB, 720x888px) Image search: [Google]
images.duckduckgo.com.jpg
78KB, 720x888px
I need to make a portfolio.

Can /g/ recommend me some good sites/projects to browse for proper inspiration?

I appreciate any srs response. Thank you.
>>
>>56976836
Forum.
>>
>>56976836
Recreate a single facebook page with fake interactivity
>>
File: firefox_2016-04-08_13-59-04.png (301KB, 424x409px) Image search: [Google]
firefox_2016-04-08_13-59-04.png
301KB, 424x409px
>>56968284
>>
>>56960821
You can use args in your first example, but you have to use .bind()
>>
>>56976836
Bump. I'm looking for specific files/webpages to browse and examine.
>>
>>56972380
as someone who's never worked as a webdev anywhere, what's the difference between a Microsoft shop and the rest?
>>
>>56977206
Bump
>>
File: serveimage.png (59KB, 2000x1333px) Image search: [Google]
serveimage.png
59KB, 2000x1333px
I'm a programming noob (took an intro to c++ course) who wants to make an imageboard in golang.

What textbooks should I download off of library genesis? I guess I need to learn:
>golang
>sql
>html, css
>js, jquery, jwhatever is the hot shit
>how to make it secure so someone doesn't hack it like 4chan got hacked

Also, if you were making an infinity-style imageboard in golang, what would YOU use the goroutine concurrency feature for? Would you give every board its own goroutine? How about every active discussion thread?
>>
>>56977276
>as someone who's never worked as a webdev anywhere, what's the difference between a Microsoft shop and the rest?
Generally, the rest learn new things, Microsoft just do the way it has always worked for them.
>>
>>56978482
you could also just google "Imageboard in golang" and take it from there. Whenever you hit something you don't understand, look it up.

What I mean is, reading a whole book on SQL just to be able to build a shitty database for a 4chan knockoff is overkill.

Also,
>reading a book on html/css
lol no, just do the codecademy/freecodecamp tutorials online. For other languages yeah books are needed, but for these two, forget it
>>
>>56963642
combine your interests - make a game in js
>>
>>56978606
>the rest learn new things

you mean like keep up with all the new languages and frameworks and stuff?
Yeah, it does seem like all Microsoft places tend to stick to the same technologies, whereas the rest are mixing it all up. Any other important differences?
>>
>>56978608
Yeah html/css can be learned easily but a nice handy book for reference is always good. Never sht on more access to knowledge.
>>
File: not just a meme.jpg (159KB, 1059x320px) Image search: [Google]
not just a meme.jpg
159KB, 1059x320px
Oh god, I'm a couple of months into C#, and I always thougth the "lel C# is pajeet-tier" meme was just a meme. But I've been starting to realize, all the youtube tutorails have that disgusting accent, all the blogs are by guys called Jingesh Trivedi, and pic related is what their conferences look like. Should I abort? Turn around and pick up something else? Will I be surrounded by pajeets working with C# in the UK? Oh god no...
>>
>>56978701
>you mean like keep up with all the new languages and frameworks and stuff?
Yeah, that, more or less.

I had to work with a microsoft shop for a bit. Not a single one of them knew how to ssh, they complained that their keys didn't work but it was because putty doesn't like standard ssh key format, had to convert them into a different standard. All shit they could have done themselves but they just had no idea.

If it's not Wordpress/PHP hosted on CPanel on some box that they never see the OS on...they don't have a clue.

They weren't just being lazy, they are just so set in their ways that they'd rather lose a contract (which they did) rather than use or learn skills outside of their very narrow experience.

All they did was churn out websites in wordpress/php/cpanel hosting, anything more complicated than that was too hard and they didn't want to know about it.

They had quite good UX design, my boss ended up paying them a few bucks for their mockup screens and then giving it to me to actually do.

>>56978768
If you're English and don't like Indians, you have bigger problems than learning C#. Shouldn't have been born in a country that colonised their country, Empire is never a one-way street.
>>
>>56978768
Lol sounds like a nightmare. Indians have a bad rep for a reason. where do you live?
>>
>>56978898
I'm in Bath, it's not too bad, but I'm planning on moving to apply to webdev jobs in London, or maybe Bristol.

Any brits wanna tell me what the situation is like in here? Am I gonna have to work in an office surrounded by Pajeets?
>>
>>56978845
so how easy would it be to start out working in a Microsoft shop and then, with some experience and studying on my own, migrate to another framework? I just started out with C# cause I thought it had the best job prospects.
>>
>>56979062
>so how easy would it be to start out working in a Microsoft shop and then, with some experience and studying on my own, migrate to another framework?
It's fine, you just don't want to fall into their mindset of fear of everything outside the Microsoft ecosystem.
>>
>>56979073
>>56979073
no, not at all. I figured starting out with C# was good because of the job prospects and because with visual studio and the .net framework you have all the tools encapsulated and ready to go, you don't need to start juggling 27 different languages and compilers and stuff like that. They just make it easy for you as a beginner.
>>
>>56975481
I'd interpret it as

>do your development on a branch
>after testing that branch thoroughly,
>merge the squashed branch into the main branch

This way you avoid trivial commits like
>fixed typo lol
>missed a paren
>fix
>fix
>work damnit

And just have
>Added feature X, Y
>Fixed bug descriptionZ {, issue#}
>>
>>56978482
That imageboard was made using tinyboard. The admin of old 4 ch o/ n dotnet made tinyboard. Just throwing that out there.
>>
>>56976348
>>56975971

That's fair. I mainly say that PHP is dying because I come from the perspective that web development moves extremely fast and I'm not trying to get into the SDLC / Waterfall industry at all. PHP is going to be necessary for interacting with large scale databases (anything a major corporation with tens of thousands, if not millions of customers is going to use) for a very long time. If you want to do Agile web development -- small teams working on a personalized web app for another small business or a small project for a larger corporation -- you absolutely need to be learning JS.

I'm freelancing while I work through the last semester of my undergrad, and I have almost no reason to learn PHP besides a couple of Wordpress loops. The cool exciting stuff -- the newer technologies are all in JS now. But if you're looking for a steady, corporate development job, then PHP is still going to be your friend.

Also, PHP5 imporved on a lot of stuff and not many people give it the credit it deserves. People are still having nightmares over PHP 3/4 imo.
>>
>>56979197
tinyboard, vichan, and infinity are all total unsalvageable messes written in php
>>
>>56975481
>can you expand on this?
Don't overthink it. Git in general gives you a lot of rope to hang yourself with, but commits are easy. I would put a lot more weight on the latter part of that bullet point. If you've ever accidentally committed sensitive data and had to spend hours going back and scrubbing everything, you'll know how easy it is to fuck up and how hard it is to fix.

>by retarded do you mean making trivial commits, like committing way too often? or do you mean maybe the opposite, committing way too much and having a dumb name for a commit like "change a lot of stuff"?
A good commit is right up the middle. "Change a lot of stuff" commits are pretty useless for obvious reasons, and you also shouldn't do a separate one for every line you change. Each commit should change "one thing".
Imagine it's 6 months from now, you don't remember doing any of this shit, and everything in your working copy is broken for some reason. What can you write that will make it easy for future you to track it down?
If in doubt, write a commit message first, and then do that thing.

This is also probably something you'll find useful:
https://about.gitlab.com/2014/09/29/gitlab-flow/
(don't think you need to follow it to the letter for everything. Most portfolio projects are small enough that it's fine to commit directly to master.)
>>
>>56979401

What is 4chan built with (or did it use a framework at all? -- I know it's based off of 2chan, or at least was in the early days)
>>
<b>Testing</b>
>>
File: 1469062088976.jpg (301KB, 601x850px) Image search: [Google]
1469062088976.jpg
301KB, 601x850px
I want to make a webpage for personal use.
I need to convert links to hyperlinks.
I've found this
http://www.hyperorg.com/misc/ConvertURLsToLinks.html
But it only convert it to what would be the html tags, and without line breaks.
Is there a way to make it more dynamic?
Also any idea how to add <br> tag in it?
Sorry if I'm not making sense.
>>
>>56979772
iirc it uses vanilla PHP

>>56980183
No idea what you're asking, friendo
>>
File: 1469690381787.jpg (119KB, 889x1300px) Image search: [Google]
1469690381787.jpg
119KB, 889x1300px
>>56980453
Sorry, See this
http://hastebin.com/abupoholeb.xml
The links appear in HTML markup instead of proper links, and if I supply more than one link the links appear one after the other, not one below the other.
>>
What's the best way to sanitize form input in an Express app?
>>
>>56978768
Java/C# and even C/C++ to an extent are colonised by Pajeets
JS, Golang, Rust, Ruby etc are full of hipsters, you might get some okay people or you might get weird mystery meats and neon hairs, who knows

Consumer software in general is kind of shitty and kill
>>
i'm following this tutorial
http://www.androidhive.info/2012/05/how-to-connect-android-with-php-mysql/
but it's written for WAMP and not LAMP. i created a folder android_connect in var/www and created the php test file, but when i go to http://localhost/android_connect/test.php it says not found on this server. what am i doing wrong?
>>
>not satisfied with typical frontend and backend dev job (doing shitty business SPAs and personal websites)
>not very interested in math (nor know it very well), algos and the rest of the CS either, despite getting a will to learn it a few times per month

What do? I want to work on something I care about and what will be important. I grew to hate webdev and I only interned for a few months, thinking about declining the job offer for angular2 dev since I find it extremely soul sucking, and staying a neet student for some more time.

I guess only the end result is what sparks my interest, like AI, or some other important field. But I don't like the processes behind that at all. I actually don't really like to program, I don't have a lot of exp in it but I believe it is true since I rarely did anything outside of schoolwork and I always fall asleep on tutorials.

If only I was as smart as Musk and Zuckerberg.
>>
>>56965869
You're posting in /wdg/, mate :^)
>>
>>56961581
>>56961618
This. Symfony framework can generate a CRUD MVC for you in one command.
>>
>>56981256
> I actually don't really like to program
lel, that's your problem
>>
>>56980667
No wonder it doesn't work, that shit is a mess. You have no idea what you're doing. Here, it was easier to just fix that hot garbage than to try to point out everything you did wrong: http://hastebin.com/sadadosoke.xml

Please go do an html tutorial from this decade.
>>
>>56970435
> .onclick = functionName;
> write >.onclick = functionName();
>>
File: Top20-Anime-to-Keep-Watching-4.jpg (269KB, 700x1093px) Image search: [Google]
Top20-Anime-to-Keep-Watching-4.jpg
269KB, 700x1093px
>>56981784
What do you mean it doesn't work?
It works fine.
My question is
1. How to get the links to have <br> tags.
2. How to make the box display the proper Clickable link instead of the HTML markup.
Also thank you for replying an wasting your time on me.
>>
>>56980699
If you are looking for a out of the box try
validator.js
>>
File: Capture.png (2KB, 353x25px) Image search: [Google]
Capture.png
2KB, 353x25px
whats the best way to download cookie-authenticated, no-cache swf objects?
>>
I want to implement sanitization in my express app, using a module like sanitize-html or express-validator. Is it possible to just call their sanitization methods on the req object and be done with it, or will I have to manually iterate over every key I want checked, sanitizing them individually?

>>56982113
Thanks for the suggestion, although it seems some of their sanitization options have been split off into a separate package.
>>
Does firefox have HTML editor/Creator?
Something like this
http://www.onlinehtmleditor.net/
Where I put HTML markup and see what comes out?
>>
>>56976308
Do not listen to the memers. PHP has decades left even if it isn't significantly improved upon. Your mentor is 100% right. Jumping strait into JS either front-end or Node puts you in the biggest camp of lumpen shitscrape newbies. Knowing PHP makes you a commodity and a well rounded webdev in a hurry.

Compare and contrast a mason with an artist. Artists can be as rich as anyone else, but there are a hell of a lot more jobs for masons. Masons do the necessary and often tedious work that artists won't do because they're too prissy to sully themselves. That doesn't mean you can't make it as an artist, coding in only the most trendy and neat languages web has to offer, but you'll find life much easier and more fulfilling if you don't fight trends and instead capitalize on them.

>>56976348
Thank fuck someone here isn't a braindead neo-/g/ acolyte. PHP is comparatively chaotic but it is ubiquitous, has massive inertia, and fulfills key web roles where Node can scarcely dream of taking over any time soon.

Young people aspiring to be well rounded developers absolutely cannot ignore PHP except to their own detriment.
>>
>>56981720
I know, I don't know what to do since I study informatics though. I realized it is not something I actually enjoy that much.
>>
Whew, hours of my life lost because I rolled with JOIN instead of LEFT JOIN.

Suits me right for forgetting how to MySQL.
While on that topic, any good MySQL sources to refresh my memory without banging my head against a wall for hours at a time? 3 months without this shit is way too long...
>>
>>56981938
>How to make the box display the proper Clickable link instead of the HTML markup.
You can't make the link clickable inside a <textarea>. You'll want to create a new <a> element and append it to the DOM. Something like this:


const links = document.getElementById('links'); // select <div id="links"></div> on the page. <a> elements will go inside here

const newAnchor = (src, text) => {
let a = document.createElement('a'); // create a new <a> element
a.setAttribute('src', src); // set the src attribute on it
a.textContent = text || src; // if text arg is supplied, put that inside the <a>, else use the src url
links.appendChild(a); // append it to the dom as a child of links
links.appendChild(document.createElement('br')); // add a <br> since you asked
}

>>
>>56982590
I'm by no means have knowledge in HTML.
First are you referring to this >>56981784 script?
or this >>56980667
And do you mean the second <textarea> is swapped with <a>?

To be honest the script is to turn normal html links to click-able ones for sadpanda pastebin drops.
And most of the codes are copied and pasted from W3/MDN
>>
>>56976348
PHP pages are online shell scripts.

They're quick to write and very useful, which definitely has value.

Unfortunately they're sloppy, fragile, hard to write correctly. APIs are based on global variables and mutable references, use unsafe defaults and encourage ignoring things like encoding.

You can't find any reliable help online because it mostly written by people who don't know which pitfalls they're introducing.

If you don't already know how to write web apps securely in a more solid language like Java, I'm willing to bet that your PHP is trash.
>>
>>56982818
Neither.
 newAnchor(someUrl, someOptionalText) 
just creates a new <a> element and appends it to
 links 
(in this example)

>And do you mean the second <textarea> is swapped with <a>?
no?
>>
>>56979106
Today I learned I've been using git incorrectly all along.
>>
>>56982499
>comparing php to masonry
You really need to develop stockholm syndrome to appreciate this piece of shit in any way.
>>
how do you resize a video inside an iframe?

document.getElementsByTagName("iframe").contentWindow.document.getElementsByTagName("video").style.height = 385.867px

document.getElementsByTagName("iframe").contentWindow.document.getElementsByTagName("video").style.width = 686px
>>
I've done a bunch of research on front end junior/entry level stuff and am just curious to ask other self taught people in thread.

What did you know when you got your first entry level job, what where you asked about and what did you acutally do starting out.

Researching I see a bunch of different stuff, including people hiring someone that barely knew html because they liked their attitude (job posting near me also just has html listed as preferred)

As well as seeing someone who was hired and they just sat them in there and had them do a payed online course for php.

Seem pretty variable, just kind of want to see more peoples experiences.

For other new people who are curious the low/average I normally see is good grasp on html/css and basic javascript (and jquery is sometimes included), with some people saying good grasp on all of those , git, SAAS, grunt,php, and a bunch of other things.
My general consensus is be decent with html/css and know some javascript. But acting like your passionate and showing you will learn on your own outside of work is something they really like. People who seem more likely to learn and ask questions seems like their most preferred thing though having actual experience is likely better.


I've mostly just been able to find people who said they hired people like this, dont see many people acutally saying how they got hired though.
>>
>>56959920
Don't use a framework.
>>
>>56982381
>Does firefox have HTML editor/Creator?

just press F12
>>
Is Express good or am I wasting my time?

>>56984478
I hate frameworks but everyone expects a knowledge of some. It fucking sucks so hard. I don't wanna learn Angular and React for frontend, I fucking hate them so much.
>>
Hey anons, how can i add unique to created column in maria db?
>>
Junior PHP with JS and mysql...located locally but 100% remote.

White whale, holy grail.
Come on, based recruiter.
>>
>>56981256
can someone enlighten me on how math is related to real life web programming?
all the math guys build functions and libraries for us
what the fuck????/
>>
File: 101.jpg (23KB, 400x302px) Image search: [Google]
101.jpg
23KB, 400x302px
>>56977206
>>56977464
>>
>>56985367
It isn't.
>>
anyone familiar with chart.js? I m trying to get the chart to update after changing the data with a slider, tried this for the slide function and still won't work

   slide: function( event, ui ) {
TheChart.update();
}


here is the fiddle https://jsfiddle.net/yty1s76u/
>>
>>56959920
Laravel
>>
>>56985367
Math doesn't really have anything to do with programming, even less to do with web programming

It's actually still impossible to use something like CSS in a "mathematical" way (like width: 50% -5px" for example)
>>
why go
>>
>>56985523
Yeah good luck with that attitude you dumb piece of fucking shit.
>>
>>56985612
please answer >>56985367
>>
>>56985523
>CSS
>programming
top kek
>>
>>56985643
>not working with css preprocessors
>2016
>>
>>56985523

1. It is possible, use calc()
2. CSS is not programming, even with preprocessors
3. Math can be related with web a lot, but it depends what you do, if you are working with some 3D libraries or make fancy shit with canvas then yes, but for an average monkey in this industry who is building shitty webapps all day long, math is not important at all

This industry is shit. I can't understand why people with better degrees get into it (e.g. that physics guy).
>>
>>56985808
>This industry is shit.

There are a ton of jobs and it pays well. that's why I'm into it. granted I don't have a physics degree and have no idea what type of opportunities come with that degree.

you have to realize any 9-5 is pretty "soul sucking." I was doing customer service before this and getting paid 1/3 of what I get paid now. now work is boring, sometimes frustrating, but I get to pretty much keep to myself and make a lot more money. better than talking on the phone with a bunch of mad people all day.
>>
>>56976836
>>56977206
>>56977464
https://github.com/HackathonHackers/personal-sites
>>
I want to sanitize user input in my Express app. Is there some way to just drop some middleware in my app.js file that cleans the entire req object before it hits the router?

Or am I condemned to refactor my code to clean it property by property?
>>
Is it too late to master PHP? my company uses wordpress so it will benefit me there but I don't know about the future.
>>
>>56987062
it's never too late to master anything homie
>>
>>56987062
>Is it too late to master PHP?
Of course not. PHP is the retarded stepchild of web programming languages, but it's not going anywhere. If you learn it, you'll find plenty of use for it for at least the next 5-10 years and probably longer. However, you should ask yourself if that time might be better spent learning about something else.

>my company uses wordpress so it will benefit me there
Well, you barely need to know PHP to use wordpress unless you're fucking around with the worpress core (don't) or making custom plugins.
>>
>>56987062
I made my own Wordpress theme for my website without knowing any php. I still only use include, if, else and arrays.

Plus all the weird Wordpress functions like get stylesheet directory uri and get template part etc from the Wordpress codex. Just learned it on a need to know basis.
>>
How do I recreate 4chan

Modern version
>>
>>56985808
>This industry is shit. I can't understand why people with better degrees get into it (e.g. that physics guy).

Eh, what? The industry is fantastic. I came into software from a Physics post-doc leading to nowhere. You have not got a clue what a shit industry looks like until you count on one hand the number of open positions relative to your skillset.
>>
>>56987853
Grass must be greener. I've been in web development for almost ten years and I dream of doing physics in academia or something.
>>
>>56986328
>>56987853
I guess this is what I needed to hear, thanks for that. To think of it how respected some degrees are, like physics but then people not getting jobs with them... Wew.

I'm studying multimedia computing where I had a solid amount of webdev and design classes and I'm not thinking highly of that degree, but the truth is that people are getting jobs extremely easy, despite the fact the program is pretty easy (at least for me). So I miss that feel of getting a respected degree, but I guess that having that paper and no money would be even worse, so yeah...

It's just that so many people are getting jobs in this industry, from various fields so I feel the overall respect for "webplebs" is dropping. I'm not a fan of the fact there are so many hacks who copy-paste shit from google either. I don't find this job fulfilling either, despite a decent money. I can't imagine doing same CRUD shit all over again, or code designs from photoshop, or making yet another generic business app with the flavour of the month meme framework. I think it's a waste of time and I will never become an expert at anything. Ehh, I probably don't know what I'm talking about...
>>
>>56988041
>I dream of doing physics in academia or something.
Well good luck. I hope you're female or a non-asian minority because that's literally the only way to get a tenure tracked position in physics today. There are between one and six such positions open any given year for you depending on your area of focus and you won't be changing that because in order to stay competitive you'll need to constantly research and publish in that narrow area only.

The grass doesn't look greener over here. It's actually greener. Academia is quite literally a more incestuous and elite inbred club than corporate executives. Unfortunately nobody tells you that until you're ten years of life into the fucking research.
>>
>>56988071
>I guess this is what I needed to hear, thanks for that. To think of it how respected some degrees are, like physics but then people not getting jobs with them... Wew.

You're welcome. If I steer one person off my life mistakes in that regard I feel slightly better about it. There's really no way to accurately describe the feeling of finding out way too late that you dumped thousands of hours of your life into something that is never going to happen no matter how hard you work or how brilliant your research.

I thank the fucking starts I had been programming as part of my research. I have no idea what I would have done with my life otherwise. Probably just traveling around taking post-docs and adjunt jobs for peanuts until I drank myself to death.
>>
>>56987554
I forget what reddit uses, but use it.
>>
>>56987554
>>56988421
I wouldn't recommend imitating leddit's tech stack as it's a mishmash of various things (mostly python) glued together with shell scripts. most of the code is open source, though: https://github.com/reddit/reddit

A better starting point would probably to take a look at some of the various open source imageboard projects to get some ideas and then using whatever language/framework you're comfortable with. Basically anything would do.
>>
If i want to make something that will be able to notify to my phone when something was added how do i achieve this?

Like somebody posts something on my website and i will get a notification or something like that

I read about restulf api? soap web polling, web sockets

What should i do?
>>
>>56989395
email alerts?
>>
>>56989395
You will either need to make an app that will constantly check for updates on the server and notify you accordingly, or set your web application to send out emails when particular criteria is met.
>>
>>56986328

how'd you get a job

in similar situation

I used to do HTML shit when I was a kid, have done an SQL course on codeacademy. I am decent with design/adobe stuff. Also have decent amount of photo/video knowledge.

How do I get a decent wage for designing shitty webapps and webstores...
>>
>>56987231
>making custom plugins.
Not that anon but it seems wordpress plugin and theme creators can make pretty good money. It's probably worth the time investment to become competent in PHP.
>>
>>56985523
>something uses math therefore it is programming
Hmm.
>>
>>56989513
>How do I get a decent wage for designing shitty webapps and webstores...
Build a mock sql database and hack together a web frontend that doesn't look like complete shit glued with PHP. Show it off on stock landing page with your contact information to potential employers.
>>
>>56989559
Why is bootstrap more popular than Pure?

Pure is amazing. The navbar stuff is a lightyear ahead of anything bootstrap can do.
>>
>>56989488
>>56989489
Preferably an app.

Let's say i make an app and i will get a notification when X happens what should i look for?

Not emails though just a notification of the app
>>
>>56989718
Push notifications.

Use Cordova with JS. Ezpz
>>
>>56989628
Bootstrap has more features. Pure is relatively barebones. I like the popup "cards" in bootstrap, for example.

Thanks for informing me about Pure. It looks pretty good for a minimal css kit. It's a little concerning that it's by Yahoo.
>>
>>56989628
>why is X more popular than Y
inertia, mostly.

>>56989718
Most phone carriers have a free email to text service. (e.g. your server emails [email protected] and you get the message as a text.) You can google it to find out the email for your carrier. There are also apps like IFTT but that might be more complicated to set up, depending.
>>
For those who have been in the industry for 5+ years, is it hard to get out?
I want to go into the VR dev industry after I graduate but I don't know how much my previous experience will be valued.
I know I will land a higher paying job if I continue with web dev since I won't be seen as a junior, and so I feel locked into this.

I have fun but I will have more fun if it is in an industry I actually care about and want to expand, as long as I don't suffer economically.
>>
>>56985523
>It's actually still impossible to use something like CSS in a "mathematical" way (like width: 50% -5px" for example)
What is Less, SASS, Post-CSS?

CSS is a complicated beast these days.
>>
>where are my c# buddies
>oh, wrong thread
>>
>>56976836
>Can /g/ recommend me some good sites/projects to browse for proper inspiration?
Just go to a github for a reasonably new but popular framework (try React-toolbox).

Go to the issues page, read the issues, work out how to fix them. Then fork the repo, fix the issue and submit a PR.

Then you can put 'Contributor' on your CV with a popular and well-known project that your interviewers have probably heard of and may even use.

If that doesn't help you get a job then fuck you.
>>
>>56990436
that's a good idea, will do that now
>>
>>56978482
I am making an infinity-style imageboard in golang. You generally won't need to think about goroutines. The http server uses a goroutine per request, so if you use a request-response model, you are already multithreaded. You will also want a few goroutines to run scheduled tasks in for-select loops, but that is mostly it. Mine is built around realtime character by character updates, so I also have one goroutine per client and one that listens for change events from the DB.

I can also point you to some thumbnailing libraries my friend is working on, if you want.
>>
>>56992412
Have you done load testing on your realtime etc. functionality?
>>
>>56992600
Because it's not too easy to make a synthetic load test for this, I used pprof and went through a few different strategies with around a hundred active users. I will have to write a synthetic load test eventually though.

What I currently have is one goroutine that handles change events from the DB and adding/removing clients to specific feeds. This can probably be split more later. The update feed goroutine dispatches buffered messages at 0.2 second intervals to client goroutines, which write to their respective sockets. Right now my bottleneck is database CPU usage for realtime updates. Serving snapshot JSON and all other operations aside from thumbnailing is basically a non-issue.
>>
>>56992802
Neat. I wonder if a cache / message queue could speed things up. Redis might be worth testing.
>>
Is replicating word by word some popular github repositories a good learning strategy?
Is it realistic in terms of how long that will take?
>>
>>56993182
I doubt a message queue or external pub/sub would yield anything. Rather the extra IPC and encoding are likely to introduce more overhead. The CPU usage mostly comes from performing the rapid post updates in the DB. Although it did drop since my last refactor and I have yet to test this under load.

What did you mean by caching?
>>
I am searching info on interfaces in canvas and grid systems, please link what you know.

As far i stumbled upon flipboard with their react-canvas and muller-brockman book.
>>
>>56993191
nah, I don't think so. For me, typing something out only works on small bits of code, but for a whole project, I doubt you would be able to maintain your focus for that long.
>>
>>56992412
>Mine is built around realtime character by character updates, so I also have one goroutine per client and one that listens for change events from the DB.
By this you mean one goroutine per person browsing a webpage? I guess since goroutines are cheap, this is actually scalable?

>I can also point you to some thumbnailing libraries my friend is working on, if you want.
Yeah, I guess there isn't anything like ffmpeg or imagemagick for go yet. Can't I just use imagemagick with cgo? Is there a drawback?
>>
>>56994796
Now that I think, it's actually 3 per client because of the underlying libraries. And yes, a goroutine initially allocates only 2 KB of stack and can only switch context on predefined points like channel sends, mutexes and blocking syscalls. You can easily have hundreds of thousands on a single process.

The drawback is that you have to write the bindings yourself. My friend is working on that part, albeit less so lately.
https://github.com/Soreil?tab=repositories
>>
>>56994972
>The drawback is that you have to write the bindings yourself.
For something like imagemagick though, these should be relatively simple, right? It's basically sending a few commands like resize to the library.
>>
>>56995104
No clue on the details, but if you just need thumbnailing of JPEG/PNG/GIF/WEBM/MP3/MP4, the libraries I linked already do that.
>>
Hey guys, which backend language is the best one in your opinion, in terms of the available APIs, level of optimization and popularity?
>>
File: geQBMP.png (981KB, 1280x720px) Image search: [Google]
geQBMP.png
981KB, 1280x720px
what can i add to my new tab page to make it look cyberpunk? doesn't even need to be functional, just look like a cool cyberpunk interface. the thing on the right is a scratchpad that saves to local storage.
>>
>>56995202
looks pretty cool
>>
>>56995227
thanks, i used the newish css grid stuff to make it look like a tiling window manager, but aside from a scratchpad and bookmarks i have no clue what other functions to have. maybe an rss feed or something?
>>
>Look at react
>Every single starter kit is rediculously huge and overwhelming

I just wanted to try and make a dynamic website.
>>
>>56995591
>falling for the framework meme
i don't know what to tell you anon, you may be a fool.
>>
>>56995609
The last website I did used backbone and lodash didn't exist.
>>
>>56995180
>available APIs
Python
>level of optimization
Go
>popularity
PHP

>>56995675
Write your own micro framework with 2-3 classes in around 150 lines. Then extend on top of it.
>>
What video ad service provides a callback once the ad is finished?
>>
>>56995787
Why not NodeJS?
>>
>>56996141
Dynamic typing, no multithreading, heavy tasks block the entire server, callback hell, incomprehensive standard library, inconsistent and retarded community packages ala left-pad, cancerous hipster- and SJW-ridden userbase, JavaScript is not as fast as advertised (only the C++ beneath it is). I can go on.
>>
File: nodejsvsphp.jpg (54KB, 770x539px) Image search: [Google]
nodejsvsphp.jpg
54KB, 770x539px
>>56996206
>>
>>56996424
explain what this is meant to be a graph of
>>
>>56996424
Yes and? Everybody knows PHP is even more shit than Node.
>>
>>56996436
whatever it is, PHP is clearly outperforming Nodejs, so yeah
>>
>>56995787
Ruby on Rails is better than all of this.
>>
>>56996631
And also slower than all 3 :^)
>>
I'm driving and cant make a new thread.

Who's gonna do it?
>>
>>56996828
"local man dies in car crash while trying to make 4chan thread"
put the fucking phone down anon
>>
>>56996842
this lol
Man, what the fuck
>>
>>56997377
>>56997377
>>56997377
Thread posts: 329
Thread images: 27


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