[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: 319
Thread images: 19

>Old thread
>>58271450

>2017
[YouTube] Web Development In 2017 - A Practical Guide

>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
thenewboston
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

>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://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
>>
JavaScript is a meme lol great pic OP
>>
I have a phone call about a position soon.

I don't even know how to prepare.
>>
>>58319376
A phone call interview will probably be pretty simple.

You should start preparing for the whiteboard interview, though.
>>
>>58319439

>whiteboard interview for web dev

do they really do this? thought that was only for software engineer positions.
>>
>>58319439
I'm very ready for a whiteboard.

This company has 11 employees though. If they whiteboard me I will be disappointed.

>>58319460
They do. I hear they don't even let you use stackoverflow for help.
>>
>>58319460
>do they really do this?

https://css-tricks.com/tales-of-a-non-unicorn-a-story-about-the-trouble-with-job-titles-and-descriptions/
>>
"Tell me a little about yourself?"

Oh god. I forgot about this question.
>>
>>58319543

its the easiest one you idiot
>>
>>58319543
Literally "Brag about all your accomplishments"
>>
Well, the call is in 8 minutes.

I think I have supplied my pockets with an adequate amount of spaghetti.
>>
Since this is pretty much the best place for this, without much shitposting, I'd just like to ask for a quick feedback of this layout (and a design in general). It's almost impossible to get any.

>https://the-kinematograph.rhcloud.com/

I can't tell if the header should have more info or not. Ignore a few bugs.

P.S. - I bet some anons have already seen this, since I posted it before. Just want to mention that people don't use the sidebar at all if it is hidden on default. I'll just put a hide button on top and make it work like YouTube's, I guess. Otherwise, it's more or less finished.
>>
>>58319810
>https://the-kinematograph.rhcloud.com/
Comments section in a side-bar is kinda dumb. Not wide enough to have lots of information in it. Otherwise I think it's pretty well-made site.

Since we're shilling sites: https://om-verysimplyms.rhcloud.com/

Only works in latest versions of chrome and firefox
>>
>>58319845
Oh, it just lists latest comments there, like, their excerpts. I could change the length of an excerpt and add more info, though. Thanks!

From what I can see from yours, it looks pretty nice, colors are sweet. Don't have a webcam or mic so I guess I can't test a functionality, though.
>>
>>58319915
The site should, ideally, work fine without mic + webcam. You can deny it and it should work without issue, similar to omegle's text-only chat.

Nobody is ever on my site though, so you probably still wouldn't be able to test functionality :^)
>>
vue 1 or vue 2?
>>
>>58319460
they ask you to write the names of some frameworks on the board lol
>>
>>58319845
How do you do the webcam stuff?

I know how to use HTML5 to get video, but not send it to others. Flash server?
>>
>>58320026
>Welcome to om, A flash-free, peer-to-peer, encrypted (both with SSL as well as PGP), FLOSS alternative to Omegle/Chatroulette/etc.

>Flash-free

Flash is deprecated.

Source code: https://github.com/verysimplyms/om
>>
Phone call is 16 minutes late.

:(
>>
>>58320110
You're fucked. They're incompetent.
>>
>>58320117
Good. I am too. We should get along fine.
>>
>tfw no call

Maybe they found someone already.

Only 3 people had applied when I applied and now 22 have.

I wonder how many of them are from India. I DO GOOD PRICE 3 DOLLAR HOUR TO ME THANK YOU COME AGAIN.
>>
Anyone have a good guide to building a site or blog specifically to monetize through advertising.
>>
>>58320308
Call them instead. If they're as incompetent as I think they are, they probably literally forgot.
>>
>>58320629
No listed phone number.

I will just email about a reschedule.
>>
>>58319460

Any company that does that is pretty shit.

I've a crap memory and can't remember syntax for shit. You ask them generic coding principle questions or give them programming exercises to do at home. No one works without being able to look shit up, especially in web development where You're working with 6+ languages together (plus god knows how many frameworks).

That said I tanked an interview once and I had no idea why. Was a fairly generic drupal job, interview was over and done with in under 10 minutes so I knew I'd done badly. Got a call from the agency, apparently the guy was really angry, said I'd wasted their time and knew nothing.

I couldn't remember them asking me a single technical question, they had no fucking idea what my ability level was. Only thing I could think of was that I must have mispronounced a framework or just mixed up a word at some point. Didn't care too much though, ultra shitty commute to the middle of nowhere, everyone seemed up themselves and half their building was currently flooded.
>>
>>58319439
You're going to be asked standard HR shit. They're going to ask you your pay rate. You might be asked some technical stuff the HR person won't know about but she'll write down your response to give the actual department. So brushing up on terminology won't hurt.

Good luck.
>>
Should I use w3school or codeacademy to learn html? I have been using w3school for the past while and just found out it might not be a good site but I haven't had any problems with it
>>
File: 1465131230539.jpg (47KB, 423x750px) Image search: [Google]
1465131230539.jpg
47KB, 423x750px
Does anyone know which tutorial site is the best for web dev? I'd like to get a subscription to one as a supplement for learning some of this stuff. I'm at a pretty basic level skillwise. I had access to a Lynda account when I was in school, it seemed OK but I just want to know if there's anything better out there.

Pic unrelated
>>
Since I'm really bad at linq this is my solution to parse an html document and return the content in the div block.
[
string textSnippet = String.Concat(String.Concat(reviewBlock.Split(new string[] { "<div itemprop=\"reviewBody\">" }, StringSplitOptions.None).Skip(1).ToArray()).Split(new string[] { "</div>" }, StringSplitOptions.None).Take(1));
]

Please tell me there's a more succint approach to solve this problem.
>>
When giving an inline-block div a padding it goes over the next div.

How do I avoid this?
>>
File: truearyan.jpg (57KB, 500x375px) Image search: [Google]
truearyan.jpg
57KB, 500x375px
>>58322806
Change the width and height of it to compensate for padding lad, margin,border,and padding all add to the length and width of a div. You may think padding wouldn't because it happens inside the div, but it does m80
>>
>>58322629

I don't know C# but I do know there will be a better way of doing that.

There will be some DOM loader type function that'll load html as an object and let you more safely extract a particular element.

Never use text find type functions to traverse HTML, the edge cases are a nightmare, you're coding a HTML parser.
>>
>>58322629
Use Regex.
Or Linq.

Give me the original text sample and what you want from it because I have a headache. I'll write you a school lesson.
>>
>>58322868
I have multiple <li> with one of these in each one of them:
<div  id="comment_40413_">


<meta itemprop="name" content="Ok">

<div itemprop="reviewBody">Satisfied with it, pretty good.</div>
</div>
</div>

It's the reviewBody content I want.
Tnx!
>>
Why is the animation eating the other div? I can't z-index it out.

http://codepen.io/webdevhehehe/pen/ZLYbYP
>>
>>58323299
Simultaneously fixed and broke it;
>>
>>58323299
Kinda confused.

What's supposed to happen and what's actually happening?
>>
>>58323299
What do you mean with eating the other div?
Can you provide a screenshot what it's doing and what it should be doing?
it looks fine on firefox.
>>
>>58323255
You have two options. Navigate the DOM cleanly using .NET and LINQ, or just regex it out.
Looking at your earlier attempt, it seems like you don't particularly care for the DOM order of the elements, so it'll be a lot easier.

4chan thinks my help-links are spam so for REAL google
"msdn csharp regex"
and
"regexr"

string pattern = @"(?:<div itemprop=""reviewBody"">).*(?:</div>)";
string textsnippet; //= ...

foreach( var match in Regex.Matches(input, pattern, RegexOptions.IgnoreCase) )
{
//...
}


Regex is a collection of escape characters and shortcuts for finding something in text.
Simply specifying " <div itemprop=""reviewBody""> " will find that item in the text.
" (?: <div itemprop=""reviewBody""> ) " will look for that, but not return it.
" .* " will match any number of any non-newline character.
" (?: </div> ) " means that again, we're searching for this but don't return it.
I suggest you look into some readings next for Regex.
Keep in mind though, that Regex is not the PROPER solution to your problem here.
You may later want to only fetch instances of this that are inside another specific element or with more complex logic. Then you'll be looking at using C# and LINQ with DOM objects which will parse the text and present it as an XML tree for you to navigate.
>>
>>58323453
I had display: inline-block; so the animation was moving within the parent div.

I set to float right to fix, but then had overflow. Turned off overflow and everything seems to be better.
>>
reading an angular2 book right now

does it get good at any point?

angular1 syntax was pretty bad, but this is some new level of retardation
>>
>>58323477
Thanks a million! Will use this in a lot of places!
>>
still pretty new to JS to and web dev
any books to help me understand programming concepts in general? reading YDKJS currently
>>
>>58323477
thats slow as fuck you clown stick to js
>>
>>58323493
You can also change the min-width to a higher number (256 worked for me) and should get your ideal results that way as well.
>>
>>58323452
Ok, take a look now.

The div that says "something" is ontop of the twitter icon div.
>>
>>58323501

no
>>
>>58323555
Regex is the fastest Generic solution to the problem that can be expressed in the fewest expressions. It's clean and not too confusing, leading to its widespread adoption. It may not be as fast as a forloop, but I would wager money that the poster would rather sacrifice a couple microseconds of performance ( in a compiled fast language! ) for a clean solution they can learn a new ability from than write for loops.
It's also eons faster than their previous solution of splitting a thousand arrays.
In either case, no, JavaScript would not be faster.

>>58323537
No problem. As mentioned it's a pretty popular thing present in most standard libraries. It's also something I've found that everyone 'knows of', but doesn't know how to use. You can get easy brownie points with a basic knowledge.
>>
>>58322409
Bump for help plz
>>
I don't know if anyone here will remember me from the previous thread a day or so ago. I had a stack that was from 2009/2010 written by C++ devs using JQuery to manipulate the dom. All HTML was span tags with ids, and used an internal library (the team who wrote it was fired) to create shit like buttons, textboxes etc.

4 files of 40,000 lines of jquery mixed with html strings.

First day back to work yesterday it was announced the web client would be put into legacy status and i would be leading the new direction and client.

Could not of gone any better and I didn't do a damn thing.
>>
can anyone tell me why this doesn't work?

    $queryPrevName = $dbh->prepare("SELECT * FROM ReplacementOrders WHERE [Replacement-#] < ? AND [Name] LIKE ? ORDER BY [Replacement-#] DESC LIMIT 1;");
$nameParam = array("$repNum", "%$searchText%");
$queryPrevName->execute($nameParam);
$prevName = $queryPrevName->fetch();


normally i would just bindValue() but i can't since i'm using a LIKE statement in SQL.
>>
>>58322409
Picture is the most pure truth.

Don't use that sites, they are just a way to take money out of you.
My suggestion, learn the basics of:
A web framework and a language to use in the backend(python django/flask are good options);
Client side JavaScript framework(Angular, React);
HTML/CSS.

Think of something you like and implement it. It's the best way to learn anything.
>>
Just enabled caching on my site(used a config from Stackoverflow). And now whenever you load the site for the first time(or after clearing cache/new incognito window), the banners div text and background image disappears?

Any idea what I fucked up?
>>
>>58326389

you cant just expect to grab code from stackoverflow and make it
>>
>>58325547

nevermind.

i discovered one of my variables was getting wiped out. I solved my issue by creating a

SESSION
E
S
S
I
O
N

i love php.
>>
>>58326484
What am I supposed to do then? Can't see anything wrong with the config:
http://stackoverflow.com/a/38002853
Am I autistic and missed something, or does it look ok?

Only thing I did was removing the Flash Player attributes
>>
>>58326573

i have no idea what language youre using or anything about your project. If stuff on your site isn't loading then you fun fucked something up big league
>>
>>58326603
Just plain old HTML, CSS and JavaScript. Worked perfectly before.. It has to something with that config to do, works when I remove it. I just don't know what's wrong..
>>
>>58326515

fek, im not sure when i want to end the SESSION. If i disconnect from the db does that end the SESSION automatically?
>>
>>58326674

idk man i still need more info. Check this out

https://help.ubuntu.com/community/EnablingUseOfApacheHtaccessFiles
>>
>>58326782
What more info do you need? There's personal info on the site, don't wanna dox myself. But I can try to provide as much as I can.
>>
web assembly when
>>
>>58326824

make sure the background image is in the same directory as your index.html and it wasn't renamed or anything like that. Try making a fresh whatever.htm page and try to get the image to show up there. Put it in same directory as index.html
>>
>>58326879
...why would you want to web dev in assembly?
>>
>>58326882
Ugh, I updated jQuery from 1.12.4 to 3.1.1 and apparently THAT broke the site's banner(and menu animation). Really weird, menu animations worked randomly and the banner only rendered after refresh.

Sorry to keep bothering, but do I download jQuery Migrate to check what's wrong then?
>>
>>58327009
jQuery is so 2015
>>
>>58325659
Thanks for the advice anon. I was really wanting to get into Ruby/Rails but I've heard that it's been dying in demand for a while (at least that's what I hear), I've never seen a job listing that asked for Ruby yet.

I assume that just making various applications is the way to go?
>>
>>58327064
Developed it in 2015, used a template(Yeah I know) and that heavily relied on jQuery. Had a look on their page and migrating shouldn't be too bad
>>
>>58327118
>Thanks for the advice anon. I was really wanting to get into Ruby/Rails but I've heard that it's been dying in demand for a while (at least that's what I hear), I've never seen a job listing that asked for Ruby yet.
I don't know anything about RoR.

>I assume that just making various applications is the way to go?
Yes.
>>
>>58327129
>used a template(Yeah I know)

Nothing wrong with using templates imo, as long as it doesn't look too generic and you manage to customize it enough. Templates are great for people with no design skills.
>>
whats the fastest database
>>
So I made a webapp with buttons in it. Some of the buttons are pressed rapidly. So I need to disable zooming so that double taps don't zoom in on the button. So I do
user-scalable=no
and this works on android. I test on my gf's iPhone and it doesn't work. So I look it up and:

http://stackoverflow.com/questions/37808180/disable-viewport-zooming-ios-10-safari

>To improve accessibility on websites in Safari, users can now pinch-to-zoom even when a website sets user-scalable=no in the viewport.

Holy flying fuck apple why are you so terrible
>>
>>58325057
lel I remember
you dodged a real bullet right there m8, good for you
>>
File: 19404535.jpg (42KB, 300x300px) Image search: [Google]
19404535.jpg
42KB, 300x300px
Why is meteor js so popular on github? I've never seen it used anywhere.
>>
File: 15xrx1.jpg (22KB, 482x453px) Image search: [Google]
15xrx1.jpg
22KB, 482x453px
Do I need to know CSS before learning JavaScript? I already know HTML. I mean I can always outsource web design or freelance it. I want to learn JavaScript, PHP, PYTHON, .NET, SQL, and JAVA. I want to start an SEO/Online Digital business later on.
>>
>>58328648
no but you may end up using alot of css in your js depending on what you do. like if you are modifying the style of a div element you will be changing the css via js:
document.getElementById(some_id).style.cssProperty = abc;


if you are into web dev then you should probably be familiar with basic css
>>
>>58328648
You really can't do HTML without CSS these days.
Just learn enough CSS to use a framework like Bootstrap and you won't have to worry about it again
>>
I'm still amazed at how bad Webpack's documentation is given how popular the tool is
>>
>>58329292
how much have you contributed to improving it?
>>
RIOT.js has potential but the documentation is very short. Back to vue.js for now
>>
>>58329292
>how bad Webpack's documentation is given how popular the tool is

it's a pajeet filter. we just need to maximize our wits learning it then everything will be easy. best to leave the documentation at that than getting the pajeets spoonfed
>>
>>58326904
In order to obtain native speed by taking advantage of common hardware capabilities available on a wide range of platforms so that the App meme can die. Long live the Web App meme.
>>
>>58328648
Javascript is a programming language. You can learn it without touching the DOM API.
>>
>>58323501
no
>>
>>58323541
I really enjoyed "Fuck Off: We're Full" and "Let's change the subject to Python and PHP"
>>
>>58329623
My favorite is "Vanilla Javascript - jQuery Edition" by Stack O. Verflow
>>
browserless internet integrated into the os when
>>
>>58329971
u haven't heard of ActiveX before, Mr. Underage Millenial?
>>
>>58329971
Imagine if you could just write a standalone application with internet connectivity that wasn't restricted to running in the browser as a web app. The possibilities would be amazing.
>>
>>58329971
That's impossible, everyone knows that HTTP is the only Internet protocol and that only browsers can understand HTTP
>>
>>58330668
Imagine if you could make a shirt where the fabric thickened or thinned depending on the temperature.
>>
>>58330816
What if we gave the internet to Google and let them rebuild it better?
>>
File: 05873884.jpg (74KB, 387x505px) Image search: [Google]
05873884.jpg
74KB, 387x505px
>>58330816
>2017 and HTTP still has only get and post
>>
File: jwst.jpg (232KB, 800x600px) Image search: [Google]
jwst.jpg
232KB, 800x600px
>>58319171
> Writing Device Drivers with Javascript
That's literally nothing.
James Webb Space Telescope is programmed with Javascript.
I wish I was kidding.
http://www.stsci.edu/~idash/pub/dashevsky0607rcsgso.pdf
> The JWST science operations will be driven by ASCII (instead of binary command blocks) on-board scripts, written in a customized version of JavaScript. The script interpreter is run by the flight software, which is written in C++. The flight software operates the spacecraft and the science instruments.
> The on-board scripts will autonomously construct and issue commands, as well as telemetry requests, in real-time to the flight software, to direct the Observatory Subsystems (e.g., Science Instruments, Attitude Control, etc.). The flight software will execute the command sent by the calling on-board script and return telemetry, which will be evaluated in real-time by that on-board script. The calling script will then send status information to a higher-level on-board script, which contains the logic to skip forward in the observing plan in response to certain events (see Section 4.1).
>>
>>58330936
i do alot of hobby-level hardware work in js but that's kind of scary
>>
how can I put loop into array data?

I have this
for (i = 0; i < 5; i++) { 
var test = {
data: [i]
};
}


but I only get one value
>>
>>58331197
var test = [];
// for loop
test[i] = {
data: i
};
// end for loop
>>
>>58331233
it doesn't seem to be working, could it be because I have other arrays inside test except data?
>>
>>58331349
if test is already an object/variable then you could just append it with push. otherwise you might want to try explaining in more detail what you are trying to do.

// for loop
test.push({ data: i });
// end for loop

>>
>>58331422
I have something like this

   var test = {
label: 'dataset title',
backgroundColor: 'blue',
data: [ array[0].test, array[1].test, array[2].test, array[3].test, array[4].test ]
};



the data gets values from another array but the problem is the array changes length constantly so I want a loop with i<array.length to put values in data
>>
>>58331075
I guess the kernel wouldn't let them do something stupid with JS, just like your browser doesn't let a web page do something stupid.
>>
>>58331597
```
array.map(a => {label: 'dataset title',
backgroundColor: 'blue',
data: a
})

```
>>
>>58330928
Actually, I never understood that. Why couldn't HTTP allow arbitrary method names?
>>
I just realized I can use PHP to control my
Handjob bot.

This means I can use JS.

This means you will be able to control the jackoff bot over the Internet.

How do I get funding?
>>
>>58332063
people have been controlling sex toys over the internet for awhile now
>>
>>58332063
you wouldn't stick your dick in a websocket
>>
>>58332068
Actually, I'm surprised that none of the big camwhoring sites have tried to make internet-controlled fleshlights. It's kind of sad, but you know that a lot of desperate guys would be paying a lot of money to be remotely jacked off by a camwhore.
>>
https://hackernoon.com/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f

how accurate is this
>>
>>58332190
idk but js feels good to me because of how flexible it is
>>
Does PHP have to be parsed every single request, or does it get automatically compiled/cached at runtime? Seems like parsing potentially huge amounts of PHP every request would be extremely unscalable...
>>
>>58321944
>Got a call from the agency, apparently the guy was really angry, said I'd wasted their time and knew nothing.
I really hope you found the interviewer and broke his jaw or something for saying that about you.
>>
>>58331861
>Why couldn't HTTP allow arbitrary method names?
It does, you can use whatever method name you want. Most servers will probably have no idea what the fuck you're doing or trying to do, but that's another matter
The original RFC only describes a set of "common methods"
>>
>>58319376
>How does I phone screen
Read this story + comments https://news.ycombinator.com/item?id=10166091

You hope the phone screener is somebody who actually works for the company and not a pajeet contractor like the clowns google hires
>>
>>58327064
Have people stopped using jquery now?
I haven'e been following the newest trend
>>
>>58333850
they shill vue.js now

https://news.ycombinator.com/item?id=12828003

https://news.ycombinator.com/item?id=12540542
>>
>>58333850
browsers are not so pain in the ass these days anymore. we could now use vanilla js equivalents of jquery methods. leave jquery to the pajeets

>write less, do more
we could also write less and do more in raw js by using autocompletes
>>
>>58333901
nothing bad with vue js.
vue js(view-model) cannot be compared with a dom manipulator. its a different thing.

jquery can be learned by pajeets without knowing js, while vuejs can't

vue js' internal js observer is the bomb!
>>
>>58333919
But when the clients request compatibility with IE8 you still have to go back to use jquery and other pain in the ass shit.
>>
so uhhh firebug is no longer working on latest firefox. any alternatives for logging console.log()?

firefox default console is bloated as bootstrap.
>>
>>58333982
Just tell your clients that there are only 2% of global IE8 users...

One more thing...

Of those 2% of global IE8 users how many percentage of probability do you think those 2% of users would land on his "goddamn nonsense" website anyway?

.000000000000000002% chance of those 2%
global IE users would land on his page!

And WHEN does he expect those .000000000000000002% of users to land on his page? So if your client's life expectancy is 70 then 70 * 24 sqrt 5/.000000000000000002% * 24 * 365 = ?
>>
>>58333982
you tell him to fuck off
>>
I caved and paid for a month of Laracasts. Time to binge watch and see if I absorb anything.
>>
>>58334119
Videos won't even play on my tablet. Getting off to a good start...
>>
Uhm...am i missing something here?

Say i want to create a site where people can upload and view webms. Lets say each webm file is 5mb, and in one month about 1000 webms are uploaded, so thats 5gb of data. If i store this in an AWS S3 bucket, that would cost me "$0.023 per GB", or 115 USD. Next, say i get about 1000 requests a day for a month. So thats 30.000 requests a month. If i use a CDN like Cloudfront, that would cost me "$0.085 per GB", or 2550 USD.

So for a small shitty site with barely any content or users, it could cost me almost up to 3K USD a month...

I thought shit like this was supposed to be cheap? Is that really what things like this costs???
>>
>>58334556
Ah nevermind... 1000 * 30 *= 30.000 * 5mb = 150.000mb or 150gb * 0.085 = 12,75 USD.

Correct or am i still a dumbass?
>>
>>58319515
>can't do fucking fizzbuzz

holy fuck how do they let women in this industry jesus christ it's the simplest thing
>>
>>58334608
the question is how did your dumb ass so 150*0.085 and got 2,550 in the first place
>>
File: fizzbuzz.jpg (174KB, 854x853px) Image search: [Google]
fizzbuzz.jpg
174KB, 854x853px
>>58319515
>>58334632
She's a designer not a coder.
>>
Who here makes passive income as a web developer?
>>
>>58334910
designers should generally have some programming knowledge to stop them from fighting with the other half because they want a polymorphic responsive nu-material sliding fixed status bar
>>
File: 1350099468657.png (138KB, 507x486px) Image search: [Google]
1350099468657.png
138KB, 507x486px
>>58334916
I'm trying to. My website launch last month. 0 visitors starting. The money is (almost) rolling in.
>>
Can anybody help me out with htaccess stuff?
I want to get my layout to look like this in a way
http://localhost/<pages>

And for items listed
http://localhost/item/<category>/<item#>

I had something like this
#RewriteRule ^(.*)/$ index.php?pg=$1 [QSA,L]
RewriteRule ^item/(.*)/(.*)/$ /index.php?$2=$3 [QSA,L]

But it didn't work with the second line so I merged them together.
This worked:
RewriteRule ^(.*)/(.*)/(.*)/$ /index.php?pg=$1&$2=$3 [QSA,L]

it gave me a response after I checked what's in the item's category by using GET['category'] for example, http://localhost/item/drinks/soda would be like GET['drinks'] would return "soda"

BUT the only problem arises now is that, when I go to let's say http://localhost/about/ it fucking 404s on me via the .htaccess even though I have my rewriteengine On. This thing has been bothering me for several days now, I can't seem to find a way around it without declaring
RewriteRule ^(.*)/$ index.php?pg=$1 [QSA,L]]


What should I do to stop getting 404 pages from the .htaccess? I mean, it's very annoying how http://localhost/about is totally different from http://localhost/about/ getting it to redirect to the latter was weird, but that works, but not for the later things like http://localhost/item/drinks/soda ;_;
>>
>>58335626
Oops, the first code shouldn't be commented, should be like
RewriteRule ^(.*)/$ index.php?pg=$1 [QSA,L]
RewriteRule ^item/(.*)/(.*)/$ /index.php?$2=$3 [QSA,L]
>>
>>58335626
>>58335640
RewriteRule ^([a-z]*)/?$ index.php?pg=$1 [QSA,L,NC]
RewriteRule ^item/([a-z]*)/([a-z]*)/?$ /index.php?$2=$3 [QSA,L,NC]


don't use . to match, it also matches forward slashes.
>>
>>58335730
Alright that works, though doing it like this worked too (from the other thread (>>58335575) )
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ /index.php?pg=$1&$2=$3 [QSA,L]


Also, I had to change $2=$3 to $1=$2 with the two liner one because it didn't work as I expected.

Now the thing is that, how to redirect to a ./ for a page like http://localhost/item/drinks/soda -> http://localhost/item/drinks/soda/

I currently have
# index.php to /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
RewriteRule ^(.*)index\.php /$1 [R=301,L]

# always a / at the end
RewriteCond %{REQUEST_URI} !../+$
RewriteCond %{REQUEST_URI} !./+$
RewriteCond %{REQUEST_URI} !/+$
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([a-zA-Z0-9]+)
RewriteRule ^([a-zA-Z0-9]+)$ /%1/? [R=301,L]

You can tell I suck ass at regex and I was just copying and pasting whatever I found that worked, then modified it a bit to see if it worked or not. This works for the regular http://localhost/about -> http://localhost/about/ redirect but doesn't for the latter.

Any good sources to get gud at regex and htaccess stuff?

Thank you by the way.
>>
>>58335773
>>58335730
Nevermind, yours work perfect. The longer one integrated with your regex still gives me 404s from the .htaccess. Guess something is breaking the rewriteengine when doing so. Or maybe that first line is important.
>>
If I showed Redux to the Haskell people, would they have a minor erection?
>>
>starting to see a bunch of job postings finally going up for the new year janurary/feburary rush

actaully feel like i need to put effort in now
>>
How do I check all the domains a website connects to in Google Chrome?

Yes, yes, I know... We all start somewhere.
>>
>>58336347
Open the developer tools and look at the network tab.
>>
Laravel question.

Where you want to use @include you can use @yield instead, but not the other way around?
>>
wasted 5 hours trying to get typescript to compile into browser usable js using browserify but im fucking done
>this is how you export things
>but there is also this way
> and that way
>did we mention that some ways are imcompatible with some module targets
>oh you wanted to use your output in a browser? well, sucks to be you
>>
>>58337206
at least you didnt waste 3 hours on heroku figuring out why some trivial unheard of shit wasn't working only to find out the node version in the package.json was different than the actual version
>>
>>58337206
how that? did you use some node only libraries?
>>
Easy way to do async?

Like I want to change things on client within 5 seconds of changing on server.
>>
https://jsfiddle.net/ofx6uxcu/
Why not saving as txt?
Also, how to make it save as excel file or save as data and be accessible in other page as a stock manager?
>>
>>58337761
I use https://phpexcel.codeplex.com/ to create Excel files. But i use https://github.com/akeneo-labs/spreadsheet-parser to upload and parse larger excel files (10.000+ rows)
>>
>>58328563
It's good for noobs just learning things (i.e. people who are on github a lot) because you can very quickly make a real thing that actually works with just some basic js skills.

It's very awkward and inefficient to use in production though, especially if you want client/server separation and a REST API, so you pretty much never see it used for real life stuff.

>>58328648
>Do I need to know CSS before learning JavaScript?
Technically no, but CSS is easy as fuck to learn and things will be a lot harder for you not to know it. You don't need to master it, but if you take a day or two to get the gist down, you'll be much better off.

>I mean I can always outsource web design or freelance it.
You're handicapping yourself by not knowing it. What if you just want to tweak something a little? Would you want to pay a designer to do something that you could do yourself in a few minutes?

> I want to learn JavaScript
Sounds good
>, PHP, PYTHON, .NET, SQL, and JAVA.
You're getting waaaay ahead of yourself. Learn SQL (easy) and only one of the other ones. They all have their pros and cons, and all do basically the same thing. Other popular options are NodeJS, Go, and Ruby.

>I want to start an SEO/Online Digital business later on.
Cool, but you don't really need any of that stuff to do that. Just know how to do good SEO, use Google analytics tools, maybe use Wordpress, and mostly how to convince people that you're actually worth the money and not just a worthless parasite.
>>
>>58337761
it works, just not in jsfiddle due to how jsfiddle works.
>>
>spend 30 minutes trying to figure out why my ads aren't loading
>realize adblock is on
>>
>>58337935
Oh, that's true. How to make it save as data and accessible in other page?
>>
>>58338107
save it in the sessionStorage
>>
>>58337761
The code you type in the JavaScript panel is wrapped inside a function before being executed in the lower right panel, that means the functions you define in there are not accessible via HTML
You need to attach them dynamically via event listeners, see https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
>>
>>58332541
PHP is reasonably fast for most needs (especially 7)
If it isn't fast enough the first thing you should do is look at how you can optimize your code because that's almost always where the bottleneck is. If that's not enough, you can use something like HHVM to compile it or just use a faster language.
>>
Why is my ad not showing up?

tfwnogf.com/view_feels.php

It's just a blank box. I just created this ad unit. Does it take time?
>>
Pretty new at this. I have a CSS file, by some reason some styles work, but if I add new classes, they are not working. Why would this be? Old classes work fine, the new ones are not being applied
>>
>>58338477
browsers cache files, either press ctrl-f5 or add a timestamp that you update when you change the file, like file.css?t=20160105
>>
>>58338490
Thank you very much. ctrl-f5 worked.

Checking how to do that timestamp. Thanks
>>
is there a language that lets you "carry" over variables? So you don't have to use SESSION or COOKIE like you do in PHP.
>>
>>58338833

or i guess prevent the browser from refreshing after every request?
>>
>>58330936
This makes me angry.
>>
>>58338833
>>58338900
use a JS framework and call your backend with ajax only.
see angular, ember, react etc.
>>
>>58338924

so thats why all these meme js frameworks are popular...how would i call queries with ajax tho? how similar is it to php/sql apps?
>>
>>58339011
you don't.
your backend with PHP or whatever does.
>>
is it bad to call javascript through php isset() functions?
>>
>>58338833
>>58338900
>>58339011
>>58339211

also i have to say wtf i got dubs on all these posts. Feels comfy
>>
>>58339211
what?
I don't even.
>>
>>58339229

yeah i dont know either man but since im not using async i dont know what else to do haha...it works tho.
>>
>>58339256
???
>isset — Determine if a variable is set and is not NULL
Where in the world do you execute javascript in there?
>>
>>58339270

well im using conditions. I hide and show divs based on if some submit types are set or not. First I tried to just use jquery and say "if this button is clicked then hide/show this div"....BUT it would still go through even if the submit button didn't meet the backend validation requirements i gave it.
>>
>>58339379
are you mixing code with markup?
disgusting, use a MVC framework.
>>
>>58339388

ya all of this is raw PHP. I'm learning a lot though. It's a pretty complex app. You sure some .js framework, ajax, and php won't be overkill?
>>
>>58339432
for what?
>>
>>58339441

it's a heavy duty CRUD app. Ideally it would have been awesome to have this app be a one page app that never refreshes the page after each request
>>
>>58339472
then no, why would it be overkill.
>>
>>58339479

because ive seen some Angular apps that were slow as shit. It was 1.0 though. Think i'll check out React
>>
>>58338352
Nvm. Adsense is balls, thay's why.
>>
https://github.com/NativeScript/NativeScript
https://github.com/alibaba/weex

Now accepting bets on which one is going to become the next native meme after hipsters get tired of React Native
>>
>>58339529

what does native mean?
>>
>>58339496
>Angular
>slim and fast
Pick one
>>
>>58339542
You write HTML+CSS+JS, they output an .apk/.ipa/whatever-extension-windows-phones-use that can be installed and run on Android/iOS/Windows Phone
"Native" usually means that the UI components are generated using the operating system's native components (eg Activity in Android).
There's also other "non-native" projects (see: Ionic) that let you do the same thing as React Native but instead of using native components, they just run a pseudo-browser, present it as an app and run your code in there
>>
>>58319171
how would you notice if your api stopped working? do you write in some kind of self-tester?

i wrote one that takes in ajax and sends email with nodemailer. do you res.send the success message or an error message to the AJAX requester? my end users are just joe blow off the street so they have no incentive to report errors.
>>
>>58339582

oh wow i didn't know React could do that. Sounds comfy.
>>
Beginner here. Does anyone know what could make Wordpress go from showing the usual theme homepage to pic-related? (Blurred cause my friend doesn't want others to see). Is this some sort of Wordpress default theme?

I've been doing FTP stuff today, but I don't recall changing anything from the child theme, let alone the parent theme. I can always restore yesterday's backup since we didn't add anything relevant today, but I thought I'd ask first just in case someone knows what the problem could be.
>>
File: wtf.png (124KB, 900x551px) Image search: [Google]
wtf.png
124KB, 900x551px
>>58339609
And of course I forgot the pic
>>
is it just me or are simple text editors like notepad++, sublime, etc more comfy than IDE's? Don't think i've ever used an IDE for web dev
>>
>>58339688
only when I need to edit 2-3 files, on larger projects I really wouldn't want to miss out on autocomplete/filetrees
>>
>>58339719

pretty sure sublime has autocomplete and a file tree
>>
>>58339735
then it's an IDE.
>>
>>58339739

nah its a text editor. What makes it super comfy is the package manager. I think the file tree and autocomplete are enabled by default. There are better autocomplete packages you can install tho. It's pretty comfy
>>
>>58339778
for me a text editor has no filetree or is aware of other files.
but I guess there's no definition of what an IDE actually is and what not.
>>
>>58339781

this might be something youd like (if you ever do use Sublime). It's comfy

https://packagecontrol.io/packages/All%20Autocomplete
>>
>>58339609

I'm not familiar with Wordpress. Heard it's not very comfy. I am sorry for your feels.
>>
>>58339781
if youre not using emacs or vi(m) or text wrangler youre not getting the supposed advantages of supposedly simple text editors

the primary use case of sublime, atom, etc is that other IEs are intimidating or confusing
>>
>>58339866
Apparently it had something to do with Jetpack and their mobile option. It's fixed now. And no, it's not comfy at all.
>>
Anyone have any experience with monetization through captcha ads? I've looked around and not found anything decent. Perhaps drop the idea and just get regular locally-generated captchas or Google's captchas?
>>
I just had a phone call.

The guy was saying buzzword after buzzword. He explained the company and I had no idea what he was saying.

I've never spilled so much spaghetti in my life. I was literally forgetting what I was saying as I was saying it. I would go to answer a question and would then ramble on forever, then forget the question.

"Please list some of your experience with web dev"

Well i started when I was 8, then at 12 learned this, then php and I made this thing where it's like popular site A but it was my first project and then I made x and y and z and uhh yeah!"
>>
What js library for graphs? there are so fucking many
>>
>>58339999
Are those the ones with videos and you have to type "Lysol" to solve them?

Those pay like .50 cpm. They are useless.
>>
>>58339999

Nice quads. Looks comfy. I've implemented a google captcha and it was bit of a process. They send you a key to put in the code, then just "link" it to whatever submit button you want
>>
>>58340022

one interview i had the guy kept asking me about css pre-processors. Wouldn't shut up about them. I dont know why he was so obsessed with them.
>>
>>58340084
Yeah, that is what I've gathered. Ads still the best way to monetize?

>>58340086
Yeah, I guess I'll just use Google's then.
>>
>>58340135
Just learned about them and wanted to change everything around just to use them.

Nah he was just heavily hinting that they were looking for someone that knew them well and was telling you what to brush up on I would imagine.
>>
>>58340204

it was funny because i told him i've used LESS a few times and that was just unacceptable to him. Screw the fact that i built a game in LUA or i've done many apps in PHP, or made UI's in jQuery. MY CSS PRE PROCESSOR SKILLZ JUST WERENT GUD ENOUGH.
>>
>>58335445
>The money is (almost) rolling in.


how? good content? ads? porn?
>>
>>58338922
then do it better fag
>>
is web development worth it?
>>
Whats the difference between a fully wualified namespace and a namespace? They are asking for the fullyqualified namespace of an interface and I know fuckall about OOP PHP as I do procedural.
>>
>>58341955

if you git gud and by that i mean

FULL
U
L
L

STACK
T
A
C
K
>>
>>58341997
in other words?
>>
Hey guys I'm hiring:

http://youtubecontroller.com/jobs.php
>>
Ok so.

namespace balls\face;
use dick\butt\interface;

Then the fullyqualified namespace of the interface is balls\face\dick\butt\interface

Right?
>>
>>58342129
it's still dick\butt\interface.
use just makes it so that you can use interface without having to write the entire namespace path.
>>
>>58342008

idk man just shut up and learn how to program. it's comfy.
>>
>>58338833
HTTP is a stateless protocol, you can't just ""carry" over variables". You have to store your state somewhere.

>>58339379
What in the god damn motherfuck...
>>
>>58342180
But is the the fullyqualified?
>>
File: Untitled.png (44KB, 1355x699px) Image search: [Google]
Untitled.png
44KB, 1355x699px
>>58342109
>>
>>58342318
Needs to be more innovative
>>
File: 1385913270490.gif (2MB, 296x328px) Image search: [Google]
1385913270490.gif
2MB, 296x328px
Is Uniregistry any good? Or should I just stick with Namecheap / Gandi?
>>
>>58319171
Where can I find this book? My boss wants me to do this for an internet of things device
>>
>>58342399
drivers with js are simple. Just open /dev/[devicename] as a file.
>>
>>58342304
\dick\butt\interface

are you confusing using to do something else?
>>
>What kind of web projects would you like to work on?
Complex and challenging ones.
>What would you consider not complex?
Installing wordpress plugins.

It slipped out. He had a giggle though.
>>
>>58342281

yeah i know it's cringy.
i dont know another way to do it. I need to check if a query returned some rows, if it does, then display the div, if not then hide it
>>
>>58332153
>Actually, I'm surprised that none of the big camwhoring sites have tried to make internet-controlled fleshlights.

But they have.
http://motherboard.vice.com/en_ca/read/how-secure-is-the-virtual-blowjob-marketplace
>>
is it possible to test a website on a mobile or tablet if I don't have one? but not just screen size like actually run on the software
>>
Is there anywhere / way to practice web dev on mobile?

I work on an assembly line and I want to do something more productive than browse 4chan all day.

I know theres links at the top, but none of them are specified as mobile friendly
>>
anyone ever register a .jp domain? Who did you use?
>>
>>58343404
You can't just register a .jp domain. You have to find a person living in Japan to do it for you.
>>
does a php session end automatically if the form posts to the same page? i just left the action blank
>>
File: requiremyass.png (121KB, 1634x758px) Image search: [Google]
requiremyass.png
121KB, 1634x758px
Your daily dosage of JavaScript-Hate.

>requirejs
>get code with .toString on a function
>regex over function code to find strings
>get aids, die young

Popular library my ass.
I hate every single one of you web 4.0 retards
>>
>muh callbacks
>>
>>58342281

there's nothing wrong with rendering html/javascript/css with php, if someones server blows up because of it or something then they need to git gud

with that said, looking for a client side solution first is ideal.
>>
>>58343957
>requirejs
ew
>>
>not developing your own browser so you can display your website exactly the way you want
>>
>>58344463

have fun making your own dev tools! lol!
>>
>>58343957
>requirejs
Bloat. Use the much lighter almond.js, if you like AMD.
>>
>>58343939
newish to php but think no, you have to session_destroy or session_unset
>>
I feel like I'm getting stupider the more I study webdev. Why can't it be more like real dev.
>>
>>58344876

weird cuz it was acting like it got destroyed automatically....
>>
>>58343369
Where do you get time on an "Assembly Line" to stare at your phone all day?

What you should do is practice what's called 'Deep Work'. Go on libgen.io and look up the book Deep Work by Cal Newport (computer science prof).

You get up 1-2hrs before work everyday and use that time for concentrated work on webdev or whatever it is you want to practice or learn. After a few weeks you will train your brain for concentration and it pays off like compounding interest, soon you'll rapidly make progress whereas if you glance at a phone all day you'll learn shit.
>>
>>58344956
Take webassembly, it's the future anyway. You can compile C/C++ or Rust to webAsm.

All these javascript frameworks will be extinct within 2 years, and there will no longer be such a thing as 'apps'. Instead what you will do is use a browser to download a proprietary binary that runs local on your device and interacts with the remote API. All future phones will just be a browser and nothing else because calendars/clocks everything will be webAsm.

It's the evil future Stallman warned us about though we can always create free webAsm binaries. https://news.ycombinator.com/item?id=11976509
>>
>>58345103
But web assembly is actually bytecode, not a native executable binary file
>>
So I'm making an e-mail waitlist, and when ever a person signs up it stores that e-mail for later use. Is there an e-mail redirecting service that signs people up for a wait list so when the website is launched it sends them an e-mail notifying of it? Or am I gonna have to make a back-end to make this happen?
>>
>>58345173
WebAssembly is not bytecode: Bytecode is linear and (usually) stack/register/SSA-based, wasm is a binary format for an abstract syntax tree (AST).

WebAssembly eliminates the parser as a bottleneck so will be insanely fast whenever it's ready for production.
>>
>>58345366
Web assembly is byte code running on a virtual machine. Obviously it'll be faster than parsing JavaScript as it's executed, but it's not goign to be "insanely fast". It'll be similar to Java or or .NET.
>>
>>58345458
WebAssembly is not bytecode it's a binary format which is different. It's like bytecode in that it allows for universal VMs but it's a binary format for AST/S-expressions you compile with C/C++ and LLVM (and soon lisp).
>>
>>58322353
Sololearn
>>
So lets say I have all img.src from a page stored in an array, which is fairly easy to do if you know any sort of DOM traversal...how do I then transform those src into actual images?

Obviously save the log of the console but then what? Hear someone said he used wget but no experience whatsoever with this and rather curious...
>>
>>58345815
As in, you have an array of image urls and you want to use wget to save them to your computer?

Join the array with newlines (
arr.join("\n");
) and write it to the page somewhere you can copypaste it. Then do this in a terminal:
mkdir ~/your_images
cd ~/your_images
touch urls.txt

(then paste the list of urls into urls.txt and save it)
wget -i urls.txt

then wait a bit while wget downloads your images to the current directory
?????
PROFIT

of course, if you're trying to do all that programmatically without having to copy/paste, you'll need to find or create some crawling software
>>
>>58346402
problem is I'm on windows, but I'll get linux running on a virtual machine and try this. thanks
>>
I'm trying to learn node.js, but both NPM and Bower seem to be pretty shitty package managers. Is Yarn any better?
>>
>>58328648
You should learn HTML and CSS before JavaScript in my opinion. Then pick a professional one like Ruby or Python and stick with it/master it.

When you're using JavaScript for web dev, you end up using CSS a lot in your js, and knowing how the three (HTML, CSS, JS) interact together is really important. They're kind of like, the core of web dev.
>>
>>58346572
You can do it with powershell. According to stackoverflow, you do it like this:
$client = new-object System.Net.WebClient
$client.DownloadFile("http://www.xyz.net/file.txt","C:\tmp\file.txt")


No idea how you'd go about reading from a file (not a windows guy), but I'm sure you can do it pretty easily.
>>
>>58347106
will check that out, ty anon
>>
>>58330936
Why would anyone do this? With all of the money they spent on that thing they cheaped out on software devs?
>>
why would anyone use anything besides php

whats the point
>>
>>58347398

async stuff so page never has to refresh/reload
>>
>>58347398
For writing things other than generic CRUD.
>>
>>58347398

for specific single page applications it seems js is the way to go, but I agree that PHP is really the smart way to go. PHP was listed as the top language for web dev to know....at least in the UK
>>
>>58347398
DIVERSITY IS OUR STRENGTH
>>
I've got a question about what's safe to share on github.

keep in mind im a newb.

I have a project with a mysql database. if the database is just running locally, do I need to be worried about sharing code with user/pass info for the SQL server? seems like that would only be an issue if it was some public server. since I'm just using localhost for the mysql server it's fine to have a user/pass for the database in my project right?
>>
>>58347922
Put the database login info in a special file and add it to your .gitignore.

Also, use a dev database while you dev and a production database on live.
>>
>>58347947

thanks for the info, but I'm really just thinking about Dmitris and Pajeets running scripts to find my info and mess with my database. not really looking for best practices info.

so if just running on localhost:3306 or whatever my username/pass won't be good for anything right?
>>
>>58347922

just replace the username and pw with "xxxxxx"'s. The database is local so they wouldnt be able to access it anyway.
>>
>>58347996
If your database is just exposed to localhost and not the general internet it's impossible to access unless they logged into your server through SSH in the first place.

Putting any kind of username/password info on a public git is still stupid. Just use .gitignore. Why use git if you're just going to halfass it. Might as well just use dropbox or something if you don't want to learn the basics of git.
>>
>>58348081
>Putting any kind of username/password info on a public git is still stupid. Just use .gitignore. Why use git if you're just going to halfass it. Might as well just use dropbox or something if you don't want to learn the basics of git.

because I just got into this stuff like a month ago. I plan on learning how to everything the right way, but everything is a big confusing mess in my head right now. thanks tho
>>
File: 1362960884713.png (28KB, 499x322px) Image search: [Google]
1362960884713.png
28KB, 499x322px
>>58348127
If you want to learn to use stuff the right way then use a dedicated file with your db info and add it to .gitignore. What's the problem?
>>
>>58347411

you can do async ajax with php.............
>>
>>58348151

it was just a quick question that came to mind as I was following through a tutorial. I'll be sure to do that, now stfu.
>>
>>58348170

and i just said "async ajax"

time to go to bed
>>
>>58339432
> It's a pretty complex app
Oh boy are you in for a surprise. Also, you mention ajax like it's a framework or something -- it's just a paradigm, so if you tell somebody you're "using ajax" they'll probably laugh at you.

>>58339496
If you're just starting out, diving straight into Angular or React is probably a bad idea.

> ive seen some Angular apps that were slow as shit
I've seen Angular, React, Meteor, Backbone, even vanilla JS apps that were slow. No amount of framework or libraries will save you from writing a slow application if you're a bad programmer
>>
>>58323501
no but stick with it lad, in a year Angular 2 devs are going to be in HIGH demand. Its a lot better than the shit that was AngularJS and will compete very well with React (Until kikebook releases a newer version to compete that its)
>>
whats a good api out there to use to build shit with React?
>>
File: poorlittlewhitepepe.png (192KB, 700x700px) Image search: [Google]
poorlittlewhitepepe.png
192KB, 700x700px
>>58327336
This anon is so fucking right lad, I can't even begin to explain, when I was still scrub status (I still am to a degree) and learning HTML/CSS/JS I would go through Jon Duckett's pajeetbooks

https://www.amazon.com/Design-JavaScript-jQuery-Duckett-2014-07-08/dp/B01JXS1RKG/ref=asap_bc?ie=UTF8

that had no questions/assignments at the end of each chapter btw, and just make my own shitty miny coding challenge like "oh i'll use js to make this div have a red background" or "oh i'll use js to make a slider" etc.

Now I read a book that i most likely pirated all the way through without coding shit and then make something yuuge. Once I finished the first HTML/CSS book I sat down at a computer hoping to make something that looked good but realized i didnt know shit even though i did all those faggy assignments. You will realize whenever you are using a new language/framework/whatever you will feel very helpless until you bring yourself through hellfire making something that looks professional like that anon's russian movie site before me. Just read something as reference then program your heart out lad.

Also while I'm at it you will learn jack shit from places like codeacedemy. If go to your local library and get a free lynda account (at least thats the case in my city) or pirate some book then do what I did
>>
>>58329386
I'm curious lad and could google it myself but what is vue and what is /g/'s opinion on it (from people that have used it)?
>>
>>58349508
More like in a year Angular 1 devs are going to be in HIGH demand, because everybody's jumping ship to whatever bullshit flavor of the month is popular.

You're better off just getting a proper handle on web components, because *that* seems to be the way things are going, if anything.
>>
File: nothatwouldruinit.jpg (35KB, 696x423px) Image search: [Google]
nothatwouldruinit.jpg
35KB, 696x423px
>>58347922
Add a directory outside of public_html that isnt publicly accessed and store the info in a .ini file, then write a class in your public_html that specifically parses that ini file, gets the db/username/pass, then returns a PDO or mysqli connection for you to use. That way you wont even have to upload the .ini file containing special information to github in the first place. Safest way that i know but im still quite the scrub
>>
>>58348127
anon all you literally need to do is include the file in .gitignore if youre going to do that, god damn

>>58349764
good point anon
>>
>>58327118
>dying in demand

Yea, we'll see how far up his own ass DHH is. If he stays really, really far up his own ass, then it's dead because rails can't do SQL right, and it can't do javascript right. If he gets his head out of his ass then you'll see rails drop it's fucking shit-tier "asset pipeline" bullshit in favor of something javascript devs actually want to use. If he REALLY gets his head out of his ass, then it'll be even better because he'll stop loudly telling his shitty rails-dev cult about how he's the greatest and how nobody needs to know any SQL... then maybe you'll see moderately performant rails apps become the norm instead of the exception.
>>
>>58347922
Use environment variables. Then you don't even need to have anything ignored and you'll have smoother deploys.
>>
File: nondripnuttray.jpg (95KB, 576x1024px) Image search: [Google]
nondripnuttray.jpg
95KB, 576x1024px
>>58319515
>those comments

I literally RREEEEEEEEEEEEEEEEEEE'd. Fizzbuzz isn't some fucking complex shit, you could solve fizzbuzz after your first 3 chapters of babby's first programming language. Anyone whose literally not fucking retarded should know that.
>>
File: hehehe.png (27KB, 1545x296px) Image search: [Google]
hehehe.png
27KB, 1545x296px
Explain.
>>
>>58349582
Kevin?
>>
>>58350793
first hex string decodes to WScript.Shell, sounds like an attempt to exploit IE
>>
>>58350821
Go on. I believe this is a new exploit because the site in question is used by dissidents of a particular country. It might contain a 0-day.
>>
>>58350842
Turkey? It looks like a privilege escalation / remote code execution type of exploit, it's trying to get in thru the javascript interpreter to execute a command that i cant figure out yet, it might attempt to install a backdoor / logger to track the dissidents I imagine.
Not sure if its related to this, its a zero day
https://www.exploit-db.com/exploits/40990/
>>
>>58350842
this sounds closer to what the exploit says
http://blog.trendmicro.com/trendlabs-security-intelligence/cve-2016-3298-microsoft-fixes-another-ie-zero-day-used-in-adgholas/
>>
Lads, I can't be fucked to type this up again. Any MEAN stack buffs here with some input?

http://stackoverflow.com/questions/41500544/angularjs-nodejs-mongodb-table-shows-when-i-go-to-edit-an-object-but-not-when?noredirect=1#comment70206703_41500544
>>
>>58350886
>>58350902
I think you solved it. Anyway, I've removed that post so retards don't get infected by that shit. It contains a link to some EXE (I ran it in a VM and watched wireshark traffic).
>>
>>58347398
maybe because they're hipster
>>
>>58321944
>Any company that does that is pretty shit.

You should be able to at least do it in pseudo code. They aren't testing your coding skills. They want to see if you can think on your feet and communicate well.
>>
>>58351033
I'm wading through a MEAN stack site because I took it over from a useless cokehead dev and that's what he wrote it in.
Fucking end my suffering.
>>
>>58350976
Bumpo from page 9
>>
>>58352375
just let it die tbhfam. 310 is bump limit anyway
>>
>>58322832
box-sizing: border-box; lad
>>
>>58352923
Eh, I know but if it dies and someone is searching for /wdg/ there won't be one.
I managed to fix my problem anyway.

Lads, never, NEVER agree to fix someone else's code. Fuck me.
>>
>Web development
>Programming
pick 1
>>
>>58353156
back end development is pretty much programming
>>
>>58353214
I work at a giant tech company (you waste your time on our website every day) doing backend development and its the most tedious shit.

Most backend development is rewriting the same shit ad infinitum.

Infrastructure or any sort of non-web software >>>>>>>> web development
>>
>>58353237
>implying 90% of programming jobs aren't like that
>>
File: wbc21A8.jpg (102KB, 970x943px) Image search: [Google]
wbc21A8.jpg
102KB, 970x943px
I've got a .ogg live stream on my site that plays music.

But sometimes in my firefox browser, (might be other browsers as well but i've only seen it there) it stops playing from the live feed and starts playing from some cache instead. No matter how many times i refresh the page it starts playing the same buffered audio over and over again. If i want it to go back to the livestream i have to restart my browser and visit the page again.

Does anyone know if there's a possible fix? i think its a browser issue, but it would be nice to fix it in the code anwyays,
>>
>>58354106
add a timestamp to the file requests.
>>
>>58347045
The JS community has moved back to using npm.
Don't bother with bower or whatever
>>
What's a good certification to go for in the UK for web development? I'm learning the basics right now and I want something to help me find work when I'm done.
>>
>>58351103
There's nothing wrong with MEAN tho
If you understand routing and middleware you can write super clean and efficient code
The '../../../..' from hell do suck I'll give you that
>>
>>58342416
We are using javascript because it's cross platform. This does not appear to work on windows
>>
>>58349627
It's like react but simpler and less facebooky
>>
>>58349627
It's babbys first SPA framework
It's not shit but I suggest using React/Redux instead. Less opinionated and can scale to huge fucking apps

t. currently working as a React dev, have used Angular1 in the past and dabbled in NG2 and Vue
>>
>>58350976
>MEME stack
>>
I feel like I should take one of the existing MEAN stacks and extend it to include babel from the get-go in order to promote the use of ES6.
I'll call it ENEMA.
>>
NEW THREAD WHEN
>>
>>58355412

cant believe this one is still alive
>>
>>58321944
>I've a crap memory and can't remember syntax for shit.
Who wants to hire a programmer who doesn't even know a language well enough to write fizzbuzz without having to look up where the curly braces go?
>>
alright wdg im gonna bite the bullet and learn React. I still don't get how I use a backend language with it...
>>
>>58337432
A simple and easy solution is running a
setTimeout(someReadAllFunction(), 5000)
which consumes a REST resource via GET every 5 seconds
the function should of course merge the return data into the apps state.
>>
>>58357186
good luck mate keep at it
the official docs are pretty good. especially those of Redux once you're ready to get into that, really take your time to work through these if you want to build scaling apps
Thread posts: 319
Thread images: 19


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