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

/wdg/ - Web Development General

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

Thread replies: 289
Thread images: 33

File: 1456449140972.png (868KB, 822x552px) Image search: [Google]
1456449140972.png
868KB, 822x552px
>Old thread
>>60395387

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

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

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

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

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

>Useful Youtube channels
derekbanas
learncodeacademy
funfunfunction
computerphile
codingrainbow

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

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

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

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

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

>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
>>
Is this safe enough for handling http basic auth on my app's api endpoints?

sub http_basic_authenticate {
my ($self) = @_;

my $auth = $self->req->header('authorization');
$auth =~ s/Basic //;
$auth = decode_base64($auth);

my ($user, $pass) = split(':', $auth);

return 1 if $user eq $self->config('api_user')
&& $pass eq $self->config('api_pass');

return 0
}


Code is in Perl by the way
>>
File: v3.png (999KB, 3828x4478px) Image search: [Google]
v3.png
999KB, 3828x4478px
Reposting from the end of the last thread. I promise I won't shill too much in the future.

I made this: http://www.qtchart.com
It fills in pic relateds. You can also save your chart as a page and link to it/edit it later.
Example profile: http://www.qtchart.com/?user=ExampleChart

Anon from earlier suggested switching off the requirement for all chart elements to be filled in before generating the chart image (there's no such restriction on saving your chart as a userpage).

At the moment I know there are some issues with element overflow at certain resolutions, and the account management interface is missing from the mobile version.

Let me know if you have any other suggestions, and I'll start working on them tomorrow.

I was considering adding a matchmaking feature if this picked up any steam.
>>
Someone posted a really useful link that compared a bunch of Javascript technologies. It had write ups for frontend stuff like React, vue, ember, etc., and for backend stuff like node.js frameworks too. Can anyone repost it?
>>
How do I build a portfolio as someone who's just started learning?
>>
>>60472525
Probably, since you don't seem to hash your password, but then again I don't know to much about Perl and Web APIs.
>>
>>60472525
>>60472760
*Probably not
>>
>>60472760
>>60472776
Oh smart. Wouldn't think to do that with static single user api details. Its not a public api per say, its just a couple of endpoints for a partner's web hooks
>>
guys, come play with us
https://www.drawasaurus.org/room/1
>>
File: twd-cover-crop.jpg (40KB, 300x368px) Image search: [Google]
twd-cover-crop.jpg
40KB, 300x368px
>>60472597
shill away, my friend, once per thread is ok. Seriously. Nobody wants to post their shit here on /wdg/ because they're afraid of getting doxxed or whatever, so we always have to beg people to show us their products.

>>60472737
First, take some time to learn shit, you can't build a portfolio if you're still struggling with array indexes. Once you got that part covered, take a book or video series that guides you through a whole project (pic related, for example) and do the whole book. Then do it again, from cover to cover, and then the third time you kinda follow the book but building your own website. Keep repeating with different projects until you get hired. Find a girl. Settle down. If you want, you can marry.
>>
>>60473371
tfwnogf.com

rate me.

It was my first time using PHP.
>>
>>60473983
>tfwnogf.com

lol pretty cool, and you've had this up since 2013? Tons of visitors I see
>>
>>60472688
Anyone?
>>
>>60474067
Yeah, about 130 pages were lost when my old host decided to drop my entire server a few years ago.

That's when I learned to use automated backups.

Just changed the layout a little since the homepage wasn't really necessary.
>>
Is 27 too old to get into webdev with no prior knowledge? I need an out from dead end jobs.

Does webdev have a stable future? Seems like it could go either way.
>>
File: gamevote.png (60KB, 1236x868px) Image search: [Google]
gamevote.png
60KB, 1236x868px
I'll post a couple more.

fundev.tv - posted earlier. Basically tools for twitch streamers. Just released a new tool today that let's viewers vote on games for streamers to play. The list of games has affiliate links. Pictured because you can't really see any of it besides bootstrap shit.

crowdcookie.com - Not even on search engines yet, haven't really worked on it much. People can write in fortunes for others to open. You can share a picture of your cookie right to twitter (it works, but breaks the layout)

Let's see, shushnotes. Basically you can leave anonymous notes for anyone in the world. I don't know why it's not launched yet. Not happy with the design I guess.

The last 2 are being compiled into mobile apps with Cordova.

>>60474207
Dev does, design doesn't. You can't really drag and drop logic like you can buttons and pictures.
>>
>>60474207
I started when I was 26. Mobile development will be more awesome in a couple of years, but start with web development first.
>>
>>60474207
>Is 27 too old to get into webdev with no prior knowledge?
not at all

>Does webdev have a stable future?
very much so. even mobile and desktop apps start to use web technologies more and more
>>
>>60474207
>Is 27 too old to get into webdev

hoping not, since I'm 31 and making the jump. There is ageism, but if you've got the knowledge then you can fight it.

>>60474224
>crowdcookie.com
nice, you seem to know your shit. Please tell me all that is enough to land a job.
>>
>>60474278
Honestly, LaunchCode told me it wasn't enough.

"Just basic storing/retrieving from a database"

Like most webpages can't be described that way. I did pass their interview though. Terrible company. They send emails asking for project updates, I said "Take me off your list, I got a job already". I kept getting project update emails. Never got an actual job interview through them either.

>hoping not, since I'm 31
I'm 28 and just got my first dev job in January.
Everyone there is between 26 and 40 so don't worry about being too old.
>>
>>60474364
If you're the guy that was interviewing at LaunchCode St.Louis MO then i remember ya from some weeks ago. So what job did you end up getting and how?
>>
>>60474422
I'm not, I was the other LaunchCode guy. Both of us got nothing out of LaunchCode.

That dude ended up getting a job on his own sometime in March if I remember right. I got mine after posting an ad to craigslist. They just asked some whiteboard questions and called to make an offer right after I left the interview. They didn't even look at my resume or portfolio.
>>
>>60474618
>I got mine after posting an ad to craigslist
wait, did you post the ad? How much $$ did they offer you?
>>
what's the common age bracket in your webdev office?
[25 - 45] ?
>>
>>60474364
I too applied for LaunchCode. Did their 3 question test on Hackerrank and aced them all. After both interviews they said they would contact me shortly. It's been a year later and no response. I emailed them about in about 2 month intervals for updates but nope, no response.
>>
Hey guys, so, this university near me is having a web development bootcamp for 6 months.

>HTML5, CSS3, JavaScript, jQuery, Java, Bootstrap, Express.js, React.js, Node.js, Database Theory, Bookshelf.js, MongoDB, MySQL, Command Line

Is what will be learned, but could change based on demands.

When I called the guy about it, he said you will be full stack web developer after this course, both front end and back end.

They will help with career placement, and what not.

Has anyone else attend one of these web development bootcamps, and if so, how was your experience, what did you learn, and would you recommend it?

>9500
or
>8500 if you sign up early enough.

Since its a continuing education course, I wouldn't even know what loans I can apply for to pay for it.
>>
Guys
Do I really need a nested foreach if I am going through a sequence say from 0-10 and each time I am going through this sequence I am checking if the sequence number is within an array.
>>
>>60477531
>Database Theory
>still teaches MongoDB

Waste of time. Why the fuck would you know better, then fuck everything up like that?
>>
>>60477592
Sort the array, then you don't need to completely search it every time. Or if the series is that predictable, search through the array one time and do a single condition on each item (> 0 and < 10).
>>
>>60477684
Ah, so for example
Loop is 0-10
Array is [3,4]
Loop starts at 0 and checks against the array, if there is anything at first position, no, then go to next loop position that is 1 and so on and if it 's done go back again and point to the second element and loop through?
>>
>>60477640
I guess it will be better just to take college courses instead, huh?
>>
>>60473371
Sick Cat Stevens reference
>>
File: pls_test_on_ff.png (28KB, 804x491px) Image search: [Google]
pls_test_on_ff.png
28KB, 804x491px
>>60472597
there are some layout fuckups on firefox
also pls let user use regular metric system as a setting or something
>>
Question for self-taught webdev currently in work: at what point did you know you were ready?
>>
>>60480379
when you read a job description and you are confident you can do what they say. Also, you're never ready. Also, companies don't even know what they want. Also, just fucking apply, what's the difference. Also, nobody will hire you anyways. Also, why even live?
>>
File: 8.jpg (47KB, 640x640px) Image search: [Google]
8.jpg
47KB, 640x640px
Anyone might know why the clear(second line) method also clears the taskParametersTemp variable I specifically saved so I can use it later?

public void updateTask(@RequestBody Task task){
Collection<TaskParameter> taskParametersTemp = task.getTaskParameters();
task.getTaskParameters().clear();
for(TaskParameter param: taskParametersTemp) {
if(StringUtils.isNotBlank(param.getValue())) {
task.addTaskParameter(param);
}
}
tasksRepository.save(task);
}
>>
>60480418
I came for webdev advice and left with an existential crisis so thanks I guess
>>
>>60480496
Meant for
>>60480418
>>
>>60480418
chuckled
>>
>>60480496
>>60480598
lol more serious answer now: most job ads are full of shit, it's HR throwing in buzzwords just for the sake of it. If you have *some* skills, and you can *sorta* whip up a website, then you can start applying, even to those jobs that list 50 required languages and 3 years of experience for a junior position. The truth is, nobody meets those requirements, so they'll take whoever comes closer. Fuck it, just apply once you're comfortable with your own shit.

This guy always has good advice:
https://www.youtube.com/watch?v=1hzEpRoMGD0

Check out this ad for an entry position:
http://stackoverflow.com/jobs/136115/entry-level-software-engineer-web-biz-national-yelp?sec=False&pg=1&offset=1&q=yelp

Notice how fucking vague they are in every requirement:
>Some experience with at least one popular server-side framework
>Desire to learn
>Basic familiarity with a Linux environment
>Belief in well-tested code

Do you have some experience, desires, basic familiarity and belief in shit? Fucking apply.
>>
File: betty.jpg (195KB, 1200x599px) Image search: [Google]
betty.jpg
195KB, 1200x599px
Have you guys ever tried to host Laravel project on a free shared hosting site? I want to do it just for some personal testing. Is that possible?
Any tips would be helpful.
>>
>>60480709
You seem to know what you're talking about

I have no degree and currently work at Walmart, but I know basic cs stuff (big O, searching, sorting, …) and can code some basic mobile apps.

What are my chances of getting a codemonkey job making mobile apps for like $15 an hour?

i will literally move to siberia if i have to
>>
>>60473371
Marriage is a meme.
>>
>>60473983
>tfw
make the >TFWNOGF.com an anchor pls
really cool shit tho, this will now be my drunk vent place
>>
>>60480788
the same way that being rich is a meme
it's a good meme if you can pull it off
>>
>>60480771
Lol I have no idea what I'm talking about. I was stuck at a dead-end job, stumbled upon /g/ and started learning how to code (I had done some back in uni but then never again). Been at it for the past 4/5 months, and now I'm feeling ready to start applying, probably next month. I quit my job 3 months ago, now on neetbucks, so no monetary pressure, I can study all day long.

Follow my advice here >>60473371, follow books or videos that guide you through projects. Build a bunch of those (or just one, who cares) and have it ready to show off.

Also, if you're in the US, you're on easy-mode. Also, network like a bitch. Go to meetup.com, find groups pertaining to your areas of interest and just show up. Put on a big smile and say "Hi, I don't know shit, but I'm here to learn!"

And remember, we're all going to make it...
>>
>>60477531
For 8500 I could live for 6 months on my own and do nothing besides study all of those topics at my own pace instead of the pace of others.
>>
File: 4fcdf2e118613355b500ba5d.jpg (26KB, 500x456px) Image search: [Google]
4fcdf2e118613355b500ba5d.jpg
26KB, 500x456px
AM I THE ONLY PERSON OUT HERE THAT DESPISES CLIENT SIDE RENDERING
>>
>>60480279
>there are some layout fuckups on firefox
This issue is thanks to the decision to go for a design which uses small, viewport width dependent borders because I was sick of the gigantic static borders on the desktop versions of most recently-designed sites which waste 3/4 of your screen.

I discovered that the drawback to this kind of responsiveness is that layout issues can crop up at any resolution (although giving everything a once-over at the edge of every breakpoint probably suffices).

I'll look into making the title and button text scale with the grid column / enclosing element width.

>also pls let user use regular metric system as a setting or something
I hadn't thought of that, thanks.

I don't like making special cases for single elements like "height" (although I sort of have already), but I do like adding buttons. I don't think I'm willing to change the generated image, so it would just be an option to view the existing ranges in inches as rounded values in cm (with the first value in a range being one cm more than the end value of the last range) in the form, and nothing would change on the backend. Your preferred measurement system would not be saved.
>>
>>60480709
In my experience really generic job ads like that one are rare and always get shitloads of applicants.

I spent a ton of time screwing around with different projects in Ruby, Python and Java before starting to apply places and realizing that the only entry-level work was in webdev. Didn't get many bites.

Then I spent a month and a bit building a website in React + Bootstrap with all the other meme bells and whistles so I could start applying to the billions of postings looking for React + Bootstrap. Now I'm working on a WebGL project while I wait for replies. I'll let you guys know if my strategy pays off.
>>
Why is this website so fucking sluggish? Runs like shit on my laptop and desktop:

http://www.realclearpolitics.com/video/
>>
Any Canadian web developers here?

How is the job market right now for front-end developers trying to break into the industry? What about if they don't have a university degree?
>>
>>60480744
As long as it has decent PHP support it should work. Problem can arise from Laravel not working in subdirectory.
>>
File: pepe bed.png (87KB, 684x576px) Image search: [Google]
pepe bed.png
87KB, 684x576px
>>60480890
>Also, if you're in the US, you're on easy-mode. Also, network like a bitch. Go to meetup.com, find groups pertaining to your areas of interest and just show up. Put on a big smile and say "Hi, I don't know shit, but I'm here to learn!"
o-okay I'll try to leave the basement and do this

Thanks for the advice. Solidarity.
>>
>>60481349
yes
>>
>>60481516
>In my experience really generic job ads like that one are rare
Granted, most ads are not as generic and 'easy-going' as that one, but still, they are out there, gotta keep your hopes up.

>>60481516
>I spent a ton of time screwing around with different projects in Ruby, Python and Java before starting to apply places and realizing that the only entry-level work was in webdev. Didn't get many bites.
So you were going for a non-webdev job at first? Yeah, I'll agree that those are a lot harder to break into.

I'm not saying there's thousands of jobs out there for us idiots who've just completed an HTML tutorial, I'm just saying it is possible. This is one of the few white-collar fields, I believe, where you can make money without a degree and without super awesome skills. I'd say this is the most meritocratic field right now, and with the most amount of openings.
>>
File: dwadadad.png (8KB, 311x334px) Image search: [Google]
dwadadad.png
8KB, 311x334px
allright so Im making a todo list and I figured out how to make the task text go crossed out and gray upon checking the checkbox, but I cant figure out how to reverse this process upon unchecking

here is the function for this

checkbox.addEventListener('change', function() {
if(this.checked){
this.parentNode.style.color="#b2b2b2"
this.parentNode.style.textDecoration="line-through"
}
else{
this.parentNode.style.color=black;
this.parentNode.style.textDecoration="none"
}

})
>>
>>60481905
and yeah the function doesnt work, or rather the secod part of the funciton doesn't work
>>
>>60481836
>https://talkpython.fm/episodes/show/111/pythonic-career-advice-and-more
listen to this podcast, at 32:00, or a bit before if you want to. People are getting hired at these meetups. I think it really is worth the effort. We're all a bit anti-social here, but no pain no gain. Besides, it should be a somewhat easy crowd, mostly nerds and dweebs, not too many brogrammers hopefully. Plus, there should be a whole bunch of these groups if you're in a mid-size city, so try with one and if you don't like it, try another one, til you find a group that suits you.

Stay strong, hikikomori-bro
>>
>>60481988
I guess I just need to find a wingman bro to take with me in order to alleviate the awkward lone wolf part of going to these sorts of things. I have a hard time striking up conversation with random strangers, especially nerds with self-esteem and ego problems (not casting any stones, but it's common with software people)
>>
File: ss-2017-05-19-16-15-03.png (7KB, 489x27px) Image search: [Google]
ss-2017-05-19-16-15-03.png
7KB, 489x27px
>>60481905
change
black

to
"black"
>>
>>60482084
that's a great strategy, whatever helps you deal with that anxiety. Just don't take your mom, that'd be weird.
>>
>>60482183
what if I bring my gf? ;_;
>>
How do I model my SQL database without making it into a clusterfuck?
>>
>>60482222
don't, unless you want her to get gangbanged in the bathroom by a bunch of muscular Ruby brogrammers while you just watch from afar, you limp-dicked HTML faggot.

Oh wait, you do want that?
>>
>>60482313
just wanted to say that i felt creepy just reading this, i get that you're memeing but to even think to say this kind of thing is pretty gross dude

sounds like you need go to outside
>>
>>60482122
thanks
Im really glad that this was the problem and not the whole function concept
>>
>>60482356
lol ok, I was just throwing some banter around. too much, I guess, apologies
>>
>>60482429
I know, I was just trying to make you feel awkward by changing up my shitposting style, experiment failed I guess

now we can both upvote each other :D
>>
>>60482429
>>60482443
Can you 2 faggots shut the fuck up?
>>
>tfw refactor a major feature and it just werks because you know how to write maintainable extensible code
>>
>>60482458
no lol
>>
>>60474237
>>60474270
>>60474278

I just read all the time from industry folk shit like

>plan to retire when you're 40
>you are ancient when you hit 35

I feel like you'd almost be forced to find some seat warmer job in IT when you hit 40. I am gonna need to have an income until I am at least 55, you know what I mean?

Is going from fullstack after 5 or so years into a sys admin type position a reasonable move?
>>
I have two instances of react-modal in my app, one requires css animations. how do I make it so the css only affects one instance?

.ReactModalPortal > div {
opacity: 0;
}

.ReactModal__Content {
transition: opacity 500ms ease-in-out;
opacity: 0;

&--after-open {
opacity: 1;
}

&--before-close {
opacity: 0;
}
}


ReactModalPortal is generated automatically and I don't seem to be able to add a className to it
>>
>>60484321
>react-modal
Huh, I'll have to take a look at that. I've just been using a Bootstrap wrapper component for modals.
>>
File: 1488616026036.jpg (386KB, 820x801px) Image search: [Google]
1488616026036.jpg
386KB, 820x801px
>>60482313
>gangbanged in the bathroom by a bunch of muscular Ruby brogrammers
>implying they wouldn't be sucking each other instead

newfags use node
virgin wizzurds use lisp derivatives
hipster fagget code in ruby
pajeets deploy php apps on windows nt
real men use java

come on, everybody knows that
>>
>>60472688
>>60474087
Please?
>>
>>60484538
search the old threads, that's why we have a link up in the OP.
>>
Stripe's API talks about "child arguments" in their API docs. Am I right to assume that I'm supposed to POST them as such?

argument[child_argument]=whatever
>>
when you sign up to an API you get a certain amount of free queries per month. Let's say I want my site to use one of google's API's but I don't want to pay (cause it's a medium-sized site that I just want to test out). Can I get several API keys, one for each of my many emails, and then have my site rotate the key with each API query? Any way that would not work? Would Google realize all these queries are coming from the same server but with a different user key?
>>
>>60472830
Just a random guess, I don't know what else goes in your networks.
>>
>>60484321
https://github.com/reactjs/react-modal/blob/master/src/components/Modal.js#L23
>>
>>60484587
Its from months ago. Archive is 48 hours only, no?
>>
File: bing.jpg (143KB, 969x640px) Image search: [Google]
bing.jpg
143KB, 969x640px
>>60484746
also, can anybody in the US tell me if they see the image in pic related in this link? Because it says "Service Unavailable in your market" to me, i wanna know if it's because I'm in europe. Thx!

https://datamarket.azure.com/dataset/5BA839F1-12CE-4CCE-BF57-A49D98D29A44#terms
>>
How many applications have you guys applied before being accepted? I'm self taught and I haven't even got a single interview and I applied for 30 positions. Been teaching myself for 6 months now and I like to think I have a solid understanding.
>>
>>60484903
Where are you located?
>>
>>60484746
This typically goes against the terms of service for many APIs, but you could do it.

Different APIs will implement different ways of preventing stuff like this, but if you're low-scale it shouldn't be much of an issue.

With that being said, I wouldn't test Google's security, and if you need to make that many queries, you ought to be out of testing and in some sort of production, which means you should be able to pay for it.

If you can't, then your design is most likely flawed.
>>
>>60484936
Toronto
>>
>>60484963
>you ought to be out of testing and in some sort of production

I'm unemployed and just fucking around with projects. I don't wanna pay $30/month to do some google searches. But I'm worried that the 5k limit per month might not be enough.
>>
>>60484963
One easy way to not hit my query limit so fast would be to cache the most popular searches, right? Never done this before, but I think that would work.
>>
>>60485037

>>60485119 makes a good point, and even Google encourages caching in this scenario.

But my point still stands. If your app is going over a rate limit during testing, it's probably because your design is flawed (including not handling caching)
>>
How do I make a site using positioning that won't break when you zoom in and out?
>>
>>60485349
what exactly breaks when you zoom in and out?
>>
>>60485337
why do you want to use an api to access generic search engine results, espcially if these are not free ?
>>
File: penis.png (10KB, 435x295px) Image search: [Google]
penis.png
10KB, 435x295px
>>60485037
also searx seems to have a free api
https://www.searx.me/?q=penis&categories=general&format=json
>>
>>60485595
Google search was just an example, I'm more interested in other API's actually, but they all have the same feature: first couple of K for free, then you gotta pay up
>>
>>60485811
the few i used in the past had hourly limits and you had to get in touch with site owners to raise it up for you if your application had value or something
has everything gone to shit or are you dealing with especially jewish api providers ?
>>
>>60472597
can't fill "them" in it's bugged
>>
File: platinum_5.png (45KB, 192x192px) Image search: [Google]
platinum_5.png
45KB, 192x192px
How viable is it to sell Static Sites to stupid rednecks and spics?

I live in a shit town that is only alive and booming with small businesses that are very technophobic. I managed to gain their trust with regular "technical consulting and computer repair".
>>
File: 1494396789828.png (45KB, 500x350px) Image search: [Google]
1494396789828.png
45KB, 500x350px
I'm on Summer break now from my college program and im heading into my final year next semester. I wanted to spend the Summer building a portfolio of projects so I have a decent resume for this time next year. What are some good webdev project ideas that I can spend my summer working on?
>>
File: rss.png (102KB, 630x416px) Image search: [Google]
rss.png
102KB, 630x416px
>>60486244
rss aggregator
>>
>>60486244
One neat project I started but never actually finished was a small multiplayer card game that worked over websockets between an angular frontend and a node.js backend.
>>
>>60486133
Did you pick from the color bar before making a selection on a widget in the 'Them' section, or did you do it the other way around? You need to select a color first. If that's your issue, maybe I should add a 'then' between 'Pick' and 'Click' to make it more clear. Note that the color selection is not global across all widgets.

Or did you have a different issue?
>>
https://www.youtube.com/watch?v=3J9EJrvqOiM
well shit, this is pretty significant
>>
>>60486276
are there any good tutorials for this?
>>
>>60486133
>>60486619
I made a copy of the most recent account with a missing 'Them' section, and filled in the remaining bits a few different ways. Works on my machineâ„¢. If my last post doesn't work, there's a few more things that I'd like you to try:

If you can access the 'Them' section at all (something wrong with the details/summary tags?) please try screwing around with the different types of widgets (a bullet list, the graph, something from 'quirks', a pick/click selection box) and tell me what works.

Note that if you accessed your page through the REST query (www.qtchart.com/?user=username), you need to click 'Your Page' to edit it. The frontend can't tell whether you own the page or not if you access the page this way (the intent was to make it so that you could view it from the perspective of a visitor).
>>
File: 1438317989900.jpg (813KB, 2432x4320px) Image search: [Google]
1438317989900.jpg
813KB, 2432x4320px
Should I learn WordPress? Is it useful as a webdev or should i just stick to raw html/css/js? Would an employer want me to know WordPress?
>>
File: 1493222031725.jpg (32KB, 447x456px) Image search: [Google]
1493222031725.jpg
32KB, 447x456px
>make app for business
>works perfect in Chrome
>they test it in IE
>some functionality doesn't work in IE
>tell them to use Chrome
>"But we don't use Chrome we use IE please make it work in IE"
>mfw
>>
>>60485468
Elements shift around.
>>
>>60487277
If it doesn't work in all mainstream browsers then it's shit. Also client's needs >your comfort zone.
>>
>>60485349
You don't. Layout using positioning is shitty idea. Learn responsive html.
>>
>>60487688

IE is at 10% share. If I make something in Chrome and there's no errors or warnings in the chrome debugger then hey, I think I did a good job. If IE can't do proper ajax, php, sql, html5/css3 then that's on M$
>>
>>60487766
So using position: absolute and position: relative is no longer considered good practice these days? How are you supposed to position things then?
>>
>>60487688

youre an idiot

id bet tons of big name apps don't work the exact same across all browers. Everyone knows Chrome/FF are the best

kys
>>
>>60487790
At best it's historical relic. You use relative positioning. Like I said learn responsive web design.
>>
>>60487899
So essentially instead of positioning things manually, I'm supposed to use floating and I have to use min/max-width/height, right?
>>
>>60487786
If it's functionally broken in other browsers then you did NOT do good job. Chrome is not perfect browser and has its own quirks. And it doesn't change fact that it's the client that sets the requirements. Yeah, it's possible that they are using IE 8 in Windows XP and then i feel sorry for you because it's your job to make it work there.
>>
>>60487962
There is a lot more to it but basically yeah.
>>
>>60487987

im just doing get/post requests with ajax and php, why IE doesn't like it is beyond me
>>
>>60487786
Oh god you have no idea what you're talking about do you?

Browsers don't run php or sql, I feel like you're just throwing around web-related words that you've heard people say.

Nearly all the incompatibility is newer html/css features that are unsupported, or newer js features that you either shouldn't be using or should be preprocessing out.
>>
>>60487790
display: flex
>>
>>60488084
Have you actually tried to run it in IE? Or Firefox? Also clarify needed version of the IE. If it's something really old then those used to have various problems. Also are you using any library or framework like jquery, angular, bootstrap, etc? Those usually include fixes for compatibility problems.
>>
>>60488084
IE sometimes has issues with caching files when it shouldn't; if that's the issue then there are some ways of preventing this.
>>
how can I create a variable in js using array values?

like var array[i].name+1 so it creates name1 variable
>>
>>60488189
>>60488247
>>60488257

i never said browser run on php, i was just stating what technologies im using. Here's an example of a ajax request that works in chrome/FF but not IE. And it's IE 11.

function searchRepNum(num)
{
if (num.length > 3)
{
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function()
{
if (this.readyState == 4 && this.status == 200)
{
var data = JSON.parse(this.responseText);
bindData(data);
}
}
xmlhttp.open("GET", "searchRepNum.php?replacement_num=" + num, true);
xmlhttp.send();
}
}
>>
>>60488349
You can use the 'eval' function. It executes the string passed to it.

eval("var " + array[i].name + "1;")


Not sure if that's the best way to do it, but it works.
>>
>>60486138

Your goal should be becoming competent in a stack and feeling comfy with back end, so you can get a real job and not depend on scraping the bottom of the barrel where you are competing with every hack freelancer who will undercut you just to get another bullet point on their resume
>>
>>60488349
window[array[i].name + 1] = "Hello"

also I'm 100% sure you don't really want to do this but you only think you do
>>
>>60488257
Funny because Chrome is known to have issues with caching.
>>
>>60488349
It can be answered with simple Googling. I just wanted to say that whatever you are trying to do is almost certainly bad idea.
>>
>>60488419
thanks that worked!
>>60488466
why I shouldn't do it? I have the same code repeated for dozen of classes so I want to create a loop for all the classes
>>
>>60488534
http://stackoverflow.com/a/7184813
>>
Does anyone know if HTTP::Common converts mutli-level hashes into the dictionaries you'd see in a POST request? I wrote my own subroutine that should take care of it otherwise. Is it good enough?

sub map_child_arguments {
my ($arguments, $argument_key) = @_;

foreach my $key (keys %{$$arguments{$argument_key}}) {
$$arguments{"$argument_key\[$key\]"} = $$hash{$key}
}

delete $$arguments{$argument_key};
return $arguments
}
>>
>>60488603
so what is the solution? create empty array and put the values in?
>>
>>60488534
Because stuff like that is usually symptom of bad architecture.
>>
>>60488396
Did you a favour and ran it through IE11. Worked well so problem is somewhere else. Guess you still need to find a way to run your site in IE. You can always try VM.
>>
>>60488692

damn - well thanks for trying it out
>>
>>60488659
It may be arrays, or it may not. I can't give you a solution because I don't know the problem you're trying to solve.
>>
>>60488534
>I have the same code repeated for dozen of classes so I want to create a loop for all the classes

So can you have all those classes inherit from a common parent?
>>
>>60486982
dunno, either use a preexisting rss library or just read the specs for the main rss formats and use you language's xml library
the base functions are easy, the devil is in the details
>>
>>60488692
>VM.
what is that? Can you explain in one sentence? Give link? something?
>>
I like to mix Angular with Wordpress :^)
>>
>>60488606
If it helps its used as such

sub create_card {
my ($self, $customer, $arguments) = @_;

croak 'Required argument \'customer\' is empty' unless $$arguments{customer};
croak 'Required argument \'source\' is empty' unless $$arguments{source};

map_child_arguments($arguments, 'metadata');
map_child_arguments($arguments, 'source')
if ref $$arguments{source} eq 'HASH';

my $req = POST "$base/customers/" . uri_escape($customer) . '/sources'
, Content => $arguments;
}


Code is in Perl by the way
>>
File: tOw6YIq[1].jpg (50KB, 640x640px) Image search: [Google]
tOw6YIq[1].jpg
50KB, 640x640px
Went to my first front end interview today.
I must say, I am very disheartened. We had a nice chat about stacks etc and then they gave me three A4 sheets of paper full of algorithm problems to solve. There was a one-dimensional selection sort problem, a multi-dimensional selection sort problem, functional string interpolation etc.
Naturally, I had absolutely no idea how to solve any of this, I knew vaguely what kind of algorithms they were because I'm somewhat of an enthusiast in CS, but I didn't know how to implement them (I come from a non-stem background).

Are these types of tests common on front-end dev interviews? I certainly haven't met any problem in front end that requires algorithms but experiencing this just crushed me.

Back to the drawing board I guess.
>>
>>60490192
this kind of stuff is indeed common
biggest worry of recruiters is to hire some memester who can't actually code, since people apparently apply to programming positions without being able to program

so far i've mostly had 30min - 1h paper tests about all kinds of stuff ranging from mental calculus to css questions
>>
What's the best place for paying someone for graphic design stuff like branding? All I want is a logo and color scheme, and I'll implement and improvise the rest myself like the full-stack code monkey I am. Is Fiverr still a good place for this? Anything better?
>>
I know its common not to block on IO or external API requests since node's been a thing, but when said API has to return something before we're ready is blocking really that bad of a thing? I feel like you'd still be waiting for a callback to return if you used an async model to begin with anyway...

Thoughts /wdg/?
>>
>>60472688
Humbly requesting assistance
>>
>>60490564
I have to git gud then
>>
>modern webdev:
>>Add all the things!

How is it any different from:
>>Add all the scripts!!
>>
>>60480744
Laravel is fucking garbage. Don't use it if you want to be a decent dev.
>>
>>60491305
>Laravel is fucking garbage
why?
>>
>>60490794
free sites do color schemes

make a logo by following a gimp tutorial
>>
>>60487145
its heavily geared towards minimum wage content managers

its shit from a dev's perspective but if it keeps a bunch of literal shitposters off your back well depending on your business that may be worth more than anything.
>>
>>60491612
I can throw together shit in Gimp, but its a waste of time unless I have some artistic talent of my own. Skill isn't everything
>>
How do you validate a credit card? I know its fairly easy to figure out for the bigger vendors since I did it for an assignment many many years ago, but I don't have the course material to refer to anymore. Anyone know how? I don't need code, just the method/math involved
>>
>>60491748
Also if I remember correctly I should be able to determine the card vendor as well, by the way
>>
>>60491677
>artistic talent of my own. Skill isn't everything
artistic talent is skill so wyd
>>
>>60491608
It's training wheels for webdev. You don't learn to be a developer, you learn web dev. It's opinionated, and trains you to be lazy with abstractions and it's slow. I interviewed two laravel devs with three years of experience and neither one of them knew anything more than rudimentary php. It's almost like they were Drupal devs or something, the only knew how to work in laravel and not php in general.
>>
>>60491785
I can know how to use Gimp inside out but it doesn't matter even a single bit if my creative direction isn't in line with trends/trend defining
>>
>>60491769
>>60491748
Alright I found this:

https://en.wikipedia.org/wiki/Luhn_algorithm

How does it apply to Visa, Mastercard, Amex, etc.?
>>
>>60492039
It mathematically validates a cc number that it is possibly correct. It basically validates it before you submit it for processing.
>>
>>60492061
I understand that much, obviously. What I'd like to know is where the check digit is in a Visa, Amex, etc., card number
>>
>>60492106
It's been a while since I've set up cc processing, but I don't think that there is a check digit, per se, but I think it's a mathematical formula applied to all of the digits.
>>
>>60492165
>>60492061
>>60492106
>>60492039
>>60491748
Alright here's what I came up with. It works from what I can tell. Anything I'm missing or anywhere I could get into trouble with this code?

#!/usr/bin/perl

use strict;
use warnings;

my $card_number = '4242424242424242';
print luhn_checksum($card_number), "\n";

sub luhn_checksum {
my ($digits_str) = @_;

$digits_str = "0$digits_str" if length $digits_str % 2;

my @digits = split //, $digits_str;

my $sum = 0;

for(my $i = 0; $i < scalar @digits; $i++) {
if(($i + 1) % 2 == 0) {
my $sum_str = $digits[$i] * 2;
my @sum_arr = split //, $sum_str;

foreach my $digit (@sum_arr) {
$sum += $digit
}
}
else {
$sum += $digits[$i]
}
}

return $sum % 10
}
>>
is Udemy any good? they are having a huge sale right now with most of their courses being 10 bucks.

I'm looking at these three right now
https://www.udemy.com/javascript-bootcamp-2016/

https://www.udemy.com/the-complete-mysql-developer-course/

https://www.udemy.com/complete-python-bootcamp/
>>
>>60493133
>is Udemy any good?
All the content on that site is made by different people, so that's not really a question that can be answered. It varies from course to course.
>>
File: dffwefwf.png (65KB, 648x533px) Image search: [Google]
dffwefwf.png
65KB, 648x533px
>>60474224
NoScript gives me this on the captcha. never seen that before.
>>
How do you pronounce "wdg"?
>>
>>60493285
I get that with youtube embeds here on 4chan sometimes.
>>
>>60493303
double yoo dee gee
>>
>>60493285
Odd. All the JS is right there on the page. I have no idea whats triggering that.
>>
I've tried to make this mobile friendly without having access to a smartphone atm, anyone up for testing?

https://hooktube.com/watch?v=0X1xOKMKX80

The important thing is that you can view the video and switch between available mp4s. And does the download dropdown work fine on a smartphone?
>>
>>60477531
its bullshit. trust me on this. they are lying to you
>>
>>60486244
One thing I really wanted to work on is monitoring torrents and list the activity/uploads/downloads/files of various IPs it encounters. It's been done already and received some press. But you might find a way to make it better if it sounds interesting.
>>
>>60493332
Everything works. Its not neccesarily a mobile website in terms of design but functionality is there. Also the 3gp videos dont work. Dont know if theyre supposed to
>>
>>60493473
Thank you. Nah 3gp only works on some phones/browsers, I should hide those when not relevant.
>>
What are the problems associated with web development on Windows over Mac? I work on Windows and it seems fine so far. I'm still learning btw.
>>
>>60493607
with macs you can kode at starbucks
>>
I have an idea for something we can do together. A document that's just a big fat list of apis and data sets. Idea being that you can browse it for inspiration.
>>
>>60490829
Yes, you need to do async/callbacks for that stuff. In Node, as far as I understand, you want to be able to handle other requests simultaneously while the current one is waiting for an external operation to finish.

On the frontend, you don't want your javascript to be "render-blocking". If you're not using async ajax requests, the user can't scroll or anything while the request is pending.
>>
>>60493869
maybe notes on each one with some interesting ways they're already being used.

Like tfwnogf.com above under 4chan api
>>
So, if I want to make near 60k a year in web development, would I need to a bachelors degree, or would it be quicker just to get associate, and get raises over the years?
>>
>>60492648
One other thing you might want to consider is if you have the user select one of Visa, Amex, etc. verify that the card number has the correct prefix.

Here's a list:
https://en.wikipedia.org/wiki/Payment_card_number#Issuer_identification_number_.28IIN.29
>>
>>60480483
passing by reference
>>
>>60489114
Virtual machine.
>>
Anyone here hate squarespace? Locks out basic features and makes you nigger rig html/css for some basic shit. Example:

>Client wants his Spotify list embedded into his page
>Pay the squarejew a """professional""" monthly subscription to get that feature
>Instead have to grab the HTML code from Spotify and find the element in his page that defines his body
>Literally a 20+ long nested HTML block that just defines his page's body
>Have to go and test each block one by one until I find it
>sq-gallery-block-body-bs-fuck-you
>now he wants it offset from the center
>That should just use some standard css rule, right?
>fuck you, you'll never find out where the margins or space are defined or how they're defined
>6 hours later and you finally embedded and formatted a Spotify playlist onto a web page

Fuck you, Squarespace.
>>
>>60494263
dont use squarespace then. any form of cms is retarded.

>"muh work"

freelancing for dumb niggers on fiverr/upwork is shit tier. if you work for a company that uses cms, shit tier.

time to buckle up
>>
>>60491748
You find a credit card validation library and implement it.
>>
>>60494278
Hey makes good money scamming spoiled """artists""" out of their cash.
>>
>>60494278
Any form of reinventing wheel is retarded. Only excuse for building stuff from ground up is learning.
>>
 import cs50

def main():


print("Number: ")
card = cs50.get_int()

digits = [int(d) for d in str(card)]
# print(digits)
rev_digits = digits[::-1]
#print(rev_digits)

##mult by 2 every second dig
digsx2 = []
for i in range(1, len(rev_digits), + 2):
digsx2.append(rev_digits[i] * 2)
#print(digsx2)

##add these digs together
sum1 = 0
for i in range(len(digsx2)):
if (digsx2[i] > 9):
sum1 = sum1 + (digsx2[i] - 10)
sum1 += 1
else:
sum1 += digsx2[i]
#print(sum1)

##add other digs
for i in range(0, len(rev_digits), +2):
sum1 += rev_digits[i]

if (sum1 % 10 == 0):
valid = True
else:
valid = False
print(valid)
print(len(digits))
print(digits[0])
if ((len(digits) == 13 or 16) and digits[0] == 4 and valid):
print("VISA")
elif (len(digits) == 16 and digits[0] == 5 and 1 <= digits[1] <= 5 and valid):
print("MASTERCARD")
elif (len(digits) == 15 and digits[0] == 3 and digits[1] == (3 | 7) and valid):
print("AMEX")
else:
print("INVALID")


Here's my python take on it. Be gentle, I was just a noob when I did that, for the CS50 class.
>>
>>60494332
Nah dude, it's not reinventing the wheel. It's throwing the fucked factory produced wheel away that only works on Hummers and replacing it with a better wheel.

There are html converters that don't suck ass.
>>
this >>60494337 was for you >>60492648

Also, check the first step on the Luhn algo:
>From the rightmost digit, which is the check digit, and moving left, double the value of every second digit.

I might be wrong, but I think the best for that is to invert the whole number (12345...9 >> 9...54321) because some credit cards are 15 digits long, others 16, so inverting it ensures you always comply with rule 1 and double every second digit. Does that make any sense?
>>
To anyone that got their CS degree and got a job as a web dev following it, how much did you end up making.

I'm currently deciding my discipline and web dev is super in demand apparently but I don't want to be payed less than I could be in other positions.
>>
Where do you guys stand on vanilla JS vs jQuery?
>>
>>60494907
Jquery is becoming less and less necessary but it's still safer and comfier than vanilla.
>>
Monolithic vs Microservice
>>
>>60495023
Monolithic if it's a proof-of-concept or small project
Microservice for anything else
>>
>>60471930
so i am learning nodejs using postgres and my teacher is the kind that "you on your own bro"
so should i use sequelize with migration or just sync()
>>
>>60483449
I'd also like to hear what people have to say about this
>>
How do you structure your project?
>>
Can anyone running firefox and/or linux see and play the game on http://crysik.io ? Just click the rocketship in the bottom right?

Tried making the switch from chrome to firefox, but I realised my game doesn't' function as I expected so trying to work out if its just me or not :)
>>
>>60493332
there's a built in android simulator in android studio or you can try genymotion.
>>
File: wut.jpg (46KB, 959x310px) Image search: [Google]
wut.jpg
46KB, 959x310px
Can someone tell me what the fuck this shit even does?
It's fucking weird
>>
>>60496208
 spoopy 
>>
>>60496208
seems like it just makes a 4x4pixel grid with a given height/width with a black border.

the foreach loop does nothing because the array is empty.
>>
>>60496540
damn I'm blind, thanks man
>>
>>60495168
by feature/domain and not by nature/layer
>>
I learnt js, html, basic css, php an want to learn to use mysql with php
i installed apache etc.

I just need some sort of a project, but I don't know how it's called for me to practice the above things

What sort of site should I make where i get to use the above tools?
>>
>>60496969
a simple blog with comments.
>>
>>60496989
what goes into the database then
>>
>>60497008
I'm not sure if you're being serious.

The posts, comments and whatever else you want it to save.
>>
>>60472525
I don't know perl but if you're not storing a password in a db, you should at least encrypt it and put it in an environment variable
>>
>>60497027
i am perfectly serious because comments and things like that can be saved in text files and accessed with a few ad hoc functions
but i see your point

i'll do it now
>>
>>60497053
Of course you can save shit into files, but you wanted to use mysql, so don't save shit into files but a mysql database.
>>
>>60481905
color=black should be color="#000", otherwise it's probably undefined
>>
>>60482254
learn about db normalization
>>
>>60483449
I'm 34 and feel kinda old, been doing it for 12 years. Transitioning to running my own biz. I'm learning how to delegate to younger people, but I spend more time getting clients, managing client expectations, being a 'product guy' and reviewing pull requests. I still do the foundational architectural stuff at the beginning of a project (db schema, tech choices, app structure, infrastructure).
>>
Yo check this out lol:

https://mavo.io/docs/primer/
>>
>>60497108
>tfw I'm 32 and looking for my first webdev job...
>>
>>60497053
...come on, man.

You store whatever you want to save after the page is closed. You said you learned PHP but not the part about what a db does which is like half of the language?
>>
>>60497189
We have a guy thats in his 50s as the main SQL guy. He writes gigantic queries, optimizes queries, tests queries; queries are his thing. He's been there for 30 years and the place needs him.

I also dated a girl who had a step dad that was late 50s. He did SQL shit for Oracle. His wife didnt work, spent money like mad, and they lived where the Jonas Brothers lived. They always had the newest Mercedes cars.

Basicallt your age doesn't matter. Just be good at what you do.
>>
>>60495023
start with a well-designed monolith, break out into services if/when scaling requires.
>>
>>60497246
That's good to know. My programming hero is Peter Norvig, he's 60 and still razor-sharp.
>>
>>60497310
>Peter Norvig
lol we're all learning how to shoot some hoops and dribble the ball and you say "My hero is Michael Jordan". Sure, Norvig can still be razor-sharp well into his 60's, but can any of us mortals do it? Age really does affect your cognitive processing, and specially in a field like this where you have to learn something new every week, it's gonna be hard to keep up.
>>
I don't think you have a web dev job.

Here's how it works.

You're young and learning shit like crazy. So you're perfect for startup environments where turnover is high and new technologies are the norm.

You're getting older. You get a job at an established place that uses established technologies. This place is only going to redesign their software every 20 or so years because there is really no point in replacing their proprietary crap if it already works.

You act like every company is going "Scrap everything we've been building for the last year, Angular 18 just came out!"
>>
File: 1442048858858.jpg (138KB, 768x1024px) Image search: [Google]
1442048858858.jpg
138KB, 768x1024px
Show me your tests and I will tell you if you're a shit developer or not.

Don't forget to state the purpose of the object being tested.
>>
Hey guys, building a news scraper, so I have one database with the news links and other crap, and I want to have another db linked by a foreign key, which lists every country mentioned in each article.

Here's what I have so far, running on Python/Django/SQLite. Am I going about this the right way? I set it as Many-to-Many because more than one country can be mentioned in each news article, and of course several articles can mention the same country. Tips/advice/memes welcome.

class Article(models.Model):
id = models.IntegerField(unique=True, primary_key=True, auto_created=True)
urlId = models.URLField()
feels = models.IntegerField()
date = models.DateField(blank=True)
length = models.IntegerField()

def __str__(self):
return self.urlId

class Country(models.Model):
country = models.Textfield(blank = True)
article = models.ManyToManyField(Article.id)

def __str__(self):
return self.country
>>
Why does the rest of /g/ dislike webdev?
>>
>>60497847
they just want to feel superior to someone
>>
>>60497847
Elitism fueled by memes.
>>
>>60497847
plus we're actually trying to help each other out, give some advice and learn together instead of just memeing about languages. That does not fly with them.
>>
>>60497879
this

>>60497835
The structure seems sound. I haven't done any Django at all, but doesn't Country having the "article" field mean that you would be able to create the association ONLY by doing country.articles.add(article)? If I'm not wrong, then wouldn't it be better the other way around? I mean when scraping an article you first map mentioned countries to Country objects and then do articles.country.addAll(countries) or whatever the syntax is.
>>
the second one was supposed to be article.countries.addAll(countries)
>>
>>60497449
Not sure, I think we might get better at seeing the big picture as we get older, but maybe not so quick on the 'raw' computational thinking. I've seen some very bright juniors cause more harm than good with their quick computational brains but lack of taste/insight. Busting out reams of code that is performant and correct, but it's totally the wrong approach at a high level.
>>
>>60497802
What the fuck are you talking about?

How about you show me your "tests" to prove you're a good developer.
>>
File: migrating migraine.jpg (154KB, 914x619px) Image search: [Google]
migrating migraine.jpg
154KB, 914x619px
>>60498000
Yeah, I'm working on it, having trouble with it. Also, I've done all the migrations but the new table, Country, is not showing up on my Django admin. Any idea why?
>>
>>60498292
nvm this, I forgot to register the new model in the app admin.
>>
File: 1409847473206.jpg (101KB, 343x408px) Image search: [Google]
1409847473206.jpg
101KB, 343x408px
>looking for a JS library that can read .sqlite files
>everyone seems to recommend sql.js
>2.1MB minified
>>
>>60498452
seems pretty good for a full implementation of sqlite in javascript.
>>
>>60498501
it's not a full implementation, it's just an ORM, just an object that can read the database and query it. Basically about 10 or so methods. You don't need 2.1MB for that.
>>
>>60497847
I can to some extent see why people students would look down on frontend devs. They probably think that non-webdev devs are constantly using "advanced" CS concepts, when in reality most non-webdev work is in writing dumb form applications (the same as most webdev).

At the end of the day though, it's a 'put up or shut up' situation. 99% of people on this board haven't written a single line of code outside of CS101.
>>
File: 2017-05-20-164636_879x696_scrot.png (165KB, 959x776px) Image search: [Google]
2017-05-20-164636_879x696_scrot.png
165KB, 959x776px
>>60497802
the purpose of the object is to add one to one
>>
File: 1288348376265.jpg (132KB, 500x667px) Image search: [Google]
1288348376265.jpg
132KB, 500x667px
>>60498865
>>
>>60498682
>it's not a full implementation, it's just an ORM, just an object that can read the database and query it.

>sql.js is a port of SQLite to JavaScript, by compiling the SQLite C code with Emscripten.
But if you say so.
>>
File: Screenshot_4.png (99KB, 1913x727px) Image search: [Google]
Screenshot_4.png
99KB, 1913x727px
Using Lumen. Why doesn't this work?
If I replace
return  Search::search($term, $type);

with
return  Search::search('username', 'type');

, it works fine, but its having an issue getting $term and $type from /{type}/{term}, which it really shouldnt.

Anyone know what's going wrong?
>>
>>60500169
you also have to set the parameters of your method.

https://lumen.laravel.com/docs/5.4/routing#route-parameters
>>
If you have to choose only between

NodeJS or PHP

which would you pick?
>>
>>60500347
depends on what you want to do with it.
>>
>>60500347
Probably Node, because that would mean I could use a non-shit language (Typescript)
>>
File: afafafaf.png (5KB, 262x197px) Image search: [Google]
afafafaf.png
5KB, 262x197px
My to-do list is complete, what should be my next project
>>
>>60500263
Oh wow thanks a lot feel dumb now
>>
>>60500703
nasrac se do ryja

I hope I was helpful
>>
>>60500347
For longevity and meme culture go with node, for anything personal or not shitty go with php
>>
>>60500703
Make it look nicer
>>
>>60500703
have those remove buttons line up with each other, my OCD is getting triggered.
>>
File: structure.png (4KB, 182x177px) Image search: [Google]
structure.png
4KB, 182x177px
>>60495168
mostly like this
>>
Redpill me on hybrid apps.
>>
>>60471930

how do you remove HTML sanitization from a URL?
>>
Will the Material Design meme ever die?
Is there another guideline meme on the market?
>>
>>60502282
most languages have some URL helper libraries with a decoder function.
how they are called depends on the language.
>>
>>60482254
>>60497088 is correct
>>
>>60493607
no problems because you're using Gentoo on both systems
>>
>>60495168
Depends on the project, language, framework, etc.
>>
How do u deal with height responsive?
Im having some problems working only with the vw.
>>
>>60494380
>>60494337
>>60494289
>>60494067
sub luhn_is_valid {
my ($digits_str) = @_;

return 0 unless $digits_str =~ /^[0-9]+$/;

$digits_str = "0$digits_str" if length($digits_str) % 3;
my @digits = split //, $digits_str;
my $sum = 0;

for(my $i = 0; $i < scalar @digits; $i++) {
if(($i + 1) % 2 == 0) {
my $sum_str = $digits[$i] * 2;
my @sum_arr = split //, $sum_str;

foreach my $digit (@sum_arr) {
$sum += $digit
}
}
else {
$sum += $digits[$i]
}
}

return $sum % 10 == 0 ? 1 : 0
}


This seems to work for every card number I've tried it with. Guess I'm done. Onto the billion other things I need to do
>>
How the fuck do I stop playing and watching games and start learning laravel?
>>
>>60503187
yarn add self-discipline
>>
File: image.gif (355KB, 245x377px) Image search: [Google]
image.gif
355KB, 245x377px
>>60503210
okay i've uninstalled the game i was hooked on and tomorrow i'll be studying competently and diligently. thank you oniichan for your revision
>>
>>60503187
foreach($hour in $gametime){
if($selfDiscipline => 100){
new Hour($codetime);
}
}
>>
> have URL to the thing I want
> manually enter it into URL bar
> verified it works
> Javascript REFUSES to redirect to it
> clicking an HTML hyperlink doesn't work either
> STUCK ON THIS FOR FUCKING WEEKS

webdev scum

I hope none of your crops grow and your son dies
>>
>>60503562
It's a hotlink protection. If a referer exist and it doesn't match the sites domain it does nothing.
>>
>>60503627

So how the hell do I fix it
>>
>>60503804
what are you trying to do? get some info off a different page and display it or just redirect onto it?
You could proxy it through your own server and rewrite all resources and do those requests without forwarding a referer.
>>
Is node.js as good as [spoiler]her boobs[/spoiler] people say? I'm new to 21st century web development, and trying to learn what's the actual way for developing frontend, a lot of people says that I should go with node.js
What does /g/ thinks?

https://www.youtube.com/watch?v=ame2PH67gnk
>>
>>60503847

I'm trying to do what it does when you enter the URL into the URL bar

It's for a website that you have to disable LibreJS to use

Can't that be done? It's a webextension and has a fuck ton of extra permissions
>>
I have a question about webdev and I suppose development of any kind in general

How do you not completely lose track or become overwhelmed as a project grows larger and larger and becomes thousands of lines?
>>
>>60504110
split them up into different files and use meaningful namespaces
>>
>>60504122
Can you explain a namespace?

I tried looking it up but I'm a little confused as to its application.
>>
>>60504207
it's just your classes being separated by a "label" so they aren't all in the same global one and you can have the same class names in different "labels" without having to add pre/postfixes to name them.
So you can have your Administration.Controllers, Administration.Config, etc. namespaces for Administration stuff, Users.Controllers for User stuff and a Helper namespace for helper classes.
>>
>>60504600
Okay, so how can that be applied in webdev? Can you name a tag in your HTML for instance?
>>
>>60504725
Are you telling me you have thousands of lines of HTML without a single id or or class?
>>
>>60504725
Rarely you've got a few thousand html files anyway, mostly some generic templates.
For those just create a file directory structure.
>>
>>60504747
No, Im just querying the logistics of having huge files.
>>
>>60504762
>a few thousand
I'd question if I didn't make a bad choice somewhere along the line when I started approaching a hundred...
>>
>>60487145
I don't think you want to.
It's pretty much the main reason why PHP devs rank the lowest on wages.
You will also have to deal with the most neurotic of customers who will randomly demand changes every week and keep threatening not to pay you unless you do those changes for free.

And then finally, the wordpress plugin API is atrocious garbage from the 90s. If you've dealt with something modern like Symfony before it, you will be extremely disappointed.

Stay away.
>>
>Using proprietary memeworks that can sue you at any given time.

>falling for every botnet
lmao sempai
>>
>>60491814
>Laravel is slow
Not really, it's not as fast as some others, but it also depends on how you use it.
>and trains you to be lazy
Not necessarily true. You can also argue that it's more effective since you can work faster.
>the only knew how to work in laravel and not php in general
Well, that's bad, however, it doesn't mean that all people that use Laravel are shit. I consider myself a decent web dev and have spoken to other decent web devs too that use Laravel. Any framework should be nothing more than a tool to work faster... it should never be a replacement for the 'mother-language' it was built on.
Thread posts: 289
Thread images: 33


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