[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: 325
Thread images: 29

File: wdg.png (725KB, 822x552px) Image search: [Google]
wdg.png
725KB, 822x552px
/wdg/ - Web Development General


Previous Thread: >>57197188

> 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.m.wikipedia.org/wiki/Comparison_of_web_application_frameworks
https://gist.github.com/dypsilon/5819528/

>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

>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
>>
>>57233466
When do we think WordPress will die?
>>
>>57233595
But it works perfectly fine for what it is made for.
>>
File: maxresdefault (7).jpg (103KB, 1280x720px) Image search: [Google]
maxresdefault (7).jpg
103KB, 1280x720px
Thanks for recommending Coding Rainbow, whoever put it in the OP pasta. Quite pleasing and relaxing to watch, interesting topics.
He'll be live in ~10 minutes, for anyone interested.
>>
>>57233595
Realistically? When Apache servers are completely phased out, which probably won't be for another 10-15 years.
>>
Which Perl web frameword is the best las?

Catalyst, Mojolicious or Dancer?
>>
>>57233666
Perl's still a thing? I honestly haven't heard of anyone learning/using that language since like 2007.
>>
>>57233641
Talk shit about Apache all you want, but at least they ship with a handy status page.
Where's this shit in Nginx? In a paid version? Fuck that.
>>
>>57233624
where at
>>
>>57233728
In the only place he's at, also known as the top link on Google.
https://www.youtube.com/watch?v=P01Pl7yCPqg
>>
>>57233466
Hello gents I am working on a Java-script that will go to a page get some info from a div and place it in a textbox. Everything I have tried has not worked to this point. Am I missing something the string i am passing into .load is "../ajax/thanks.blade.php #1" .
shouldn't this get a div with the id of 1 and place it in my .page_text textbox?

<script>
$(document).ready(function(){
$('.backup').on('click',function(e){
var id = $(this).attr('id');
var file_name = "../ajax/"+{{ json_encode($data[0]) }} + " #" + id;
console.log(file_name);
$(".page_text").load(file_name);
});
});
</script>


>>
>>57233717
I'm not talking shit about Apache. In fact, I prefer using LAMP over meme-of-the-week web stacks like those based on Node.js (even though I love JS).
>>
>>57233748
of course i found this but it wasn't clear that he did live stuff there. thanks
we'll see how good this is
>>
>>57233813
That's fair.
I'll just keep harassing people until somebody kicks me in the direction of the status page alternative for Nginx.
>>
>>57233748
I don't know how I feel about this. The projects seemed cool but when I realized everything is made in some JS library I lost my will to watch it. It would be nicer to learn to make stuff like these from scratch, because a lot of things are not even that hard to do. It feels too kiddie for me, correct me if I'm wrong.
>>
>>57233786
ids must begin with a letter a-z, #1 is not a valid selector.
>>
>>57233845
>It feels too kiddie for me, correct me if I'm wrong.
Yeah, it's more about doing fun simple things rather than hardcore programming. Unfortunately, in current year, it means JS or Processing.
I often wish the explanations and implementations were deeper, but there's still cool stuff on his channel, if you're not too advanced or don't want to dig deep.
>>
>>57233831
http://lmgtfy.com/?q=nginx+status+page
>>
>>57233879
I just changed the div id to #backup1 , #backup2
and changed the search to ../ajax/thanks.blade/php #backup1

but still no dice if I just load the page ../ajax/thanks.blade/php it works fine but when i select the id it just changes my default text to a blank page. 1
>>
>>57233985
>>57233879
Oh I see what its doing its placing the whole div in there tags and all. What i need i a way to get just the text form the div tag and exclude the <div> tags
>>
>>57233748
this guy is fucking retarded, been watching for over 20 minutes and the guy still hasn't said ONE single fucking thing...
>>
>>57234184
Then you should stick to watching videos. His streams are basically raw unedited peek-from-behind-the-scenes type of deals.
>>
File: soapiff site.png (751KB, 1650x738px) Image search: [Google]
soapiff site.png
751KB, 1650x738px
About to rework my portfolio, after getting side-tracked with a job outside of the career field that I couldn't turn down. It's got some pretty old sites on it (pic related).

I'm sure that style of boxed sites is grossly out of date right? Also I'm trying to make the site responsive (make it bootstrap/foundation). Is there an easy quick way to do this or do I have to remake the entire site?
>>
>>57234295
Looking at the complexity of the design I say it'd be quicker just to rebuild rather than retrofitting.
>>
>>57233466
Whats the way to link from the navigation to your other html pages?
I know the a href but after making a bunch of pages theyre not linking or going anywhere when i click my nav buttons
>>
>>57234587
>theyre not linking or going anywhere when i click my nav buttons
Explain.
>>
>>57234612
I have my landing page with its navigation at the top
In CSS i have a nice underline stroke effect on the hover, but thats not important
The important thing is clicking on the nav doesnt take me to the page it should, so i need to know the process to link them in?
>>
>>57234564
Yeah it probably needs to be redone anyway just since it's so out of date. Thanks anon.
>>
>>57234674
you don't use CSS for that, just plain html on your main html page. You would have something like

<ul>
<li> <a href="link here to the page">Films/Submit Film/Sponsors/whatever</a></li>
</ul>


my formatting sucks, sorry
>>
>>57234795
thanks m8 Its that simple isnt it?
I thought there was something like "#" id tag in there as well
>>
>>57234795
>>57234902
oh but dont knock yourself out trying to help me,
i think youve been a help already cheers
>>
>>57234795
I worked it out yes you were right theres no "#"
i dont know where i pickled that up from
>>
>>57235132
>theres no "#"
you're talking about id's, which you can add if you want to style the link in a particular way.... Read more about it here

http://www.w3schools.com/tags/att_global_id.asp

also, your html/css knowledge is very rusty, just take a day to refresh those skills
>>
>>57235222
ID's are pretty bad to use for styling, classes are better and should be kept as generic as possible for each component.

So if you wanted a block component on the frontpage you'd do
.block { background: red; }


Instead of
body.frontpage .block { background: red; }


Unless you specifically wanted to override it on that page.
>>
Hey guys, I'm working on a website, I'm a PHP programmer and I have an issue related with the server, its overloading everytime it gets 40+ people connected, not even at the same time, I'm using the Yii2 framework, so I don't know if that has anything to do with it, like if there is some kind of wrong default configuration maybe?
>>
>trying to name page and buy domain
>this website is for sale on flippa!
>Parked by Sedo
>parked by Go Daddy
>Make offer

That's it. Domain regulation when? 20 per person limit is plenty.
>>
>>57235311
You're probably doing stupid shit with queries, check the mysql slow log.
>>
>>57235311
Also make sure you have mysql/(nginx|apache) setup properly for your server.
>>
>>57235359
Yeah, I've checked that but less than 5 queries take more than max time and those are queries only I execute, not the final user
>>
Are there any legal issues with having a similar name to someone else?

Let's say I have the name smileletters but there is already a thing called smileletter.

Our things are completely different.

Actually the guys with the better name just have a landing page saying "Our idea is secret and will change the world!"

Been there for years.
>>
>>57235551
Depends on where you live and how aggressive they are.
>>
>>57235570
Australia.

Literally all they do is post articles about startup companies on facebook and bot follow keywords to inflate their epeen.
>>
>>57235611
They are oz im us.
>>
>>57235624
do it
>>
>>57235651
Did it.
>>
Post projects
>>
>>57235986
my project is really shitty though.
>>
>>57236912
Are you worried about criticism?
>>
Question.

I have a menu that is on every page.
This menu has a list of applications on the website, as determined by the user's permissions.
I'm thinking that loading permissions from the database every request would add a ton of overhead, and severely slow down the website.

How should I handle this? If I cache the menu, then I have to tell users to clear their cache any time I make changes to their permissions.
>>
>>57237049
yeah
>>
So I am about done with a web development boot camp tutorial i pirated from udmey.

I just got my feet wet in js, html, css, nodejs( express, ejs, mongoDB).

I spent a little more time learning JS on my own so I am a little more stronger than what the course itself gives.

My question is besides getting better at js and contributing some stuff on github, where do I go from here? I am thinking of learning react and mysql then start building up a project.

What my idea for an independent project is a website where you upload new music videos from youtube and ranks them based on user feed back. You will also be able to register and comment on said videos as well as your comments and votes becoming shown in a history. Oh, I would also like to make a page for the artist where users can edit the bio but fetching a default bio from wikipedia until trusted users can edit a better one together. This isn't designed to make money or anything, just something to get better at coding.


What things would you suggest I learn for this project?
>>
>>57237079
Is this your first project to launch?

You become immune to the criticism after the first one.
>>
>>57237091
Whatever interests you.

I would use PHP back and JS front. If you really like JS then you could use MEAN or with React instead of Angular.
>>
>>57237063
You can change SESSION values.
>>
Guys.

I have come to the conclusion that web development is a meme.

I need to get out of this godforsaken area as quickly as possible before I kill myself.
>>
>>57237215
I guess I could store sessions in the database, as well, and invalidate the user's session when I change their permissions.
>>
>>57237239
Or just update their session.
>>
>>57237186
Well I want to learn php or c# eventually, but my focus right now is to get better at JS in general and using a JS backend on a project should yield tons of experience.

Eventually I want to pick up c# or php once the project is done and build something using that as the back end. Ideally I would pick up both but once I pick up one of them I have been toying with the idea of picking up c++, well get competent in it since I learned it in college, or python. I want something I can make games with or make apps on linux with. That is why down the line though for all things. My main propriety is to finish what is left of the boot camp then start on the project.
>>
I have a question regardign CSS.

P.test1class.test2class

does this look for
class=" test1class test2class"
or does it look for
class="test1class"
class="test2class"
>>
>>57237530
.test1class


Would look for test1class in either of those. That looks like something you could easily try yourself without having to ask us
>>
Which stack is the best for web dev starter on Linux?
>>
>>57238270
Any of them.
>>
>>57238270
Stacks are bullshit. Learn HTML, CSS, and JS + whichever backend language(s) you know and/or like the best + some dev ops stuff.

Pretty much everything will run on linux. (C# is mostly a MS thing, but you can make it work.)

Pretty much everything can talk to SQL or NoSQL databases.
>>
>>57238389
You gotta learn them stacks in order to get a job, though.
>>
>>57238389
stacks are overrated indeed
there are some tools like react that are pretty different from everything else and worth looking into specifically, i think
>>
>>57238611
yeah but the point is to study first the parts of the stack then make one yourself where you'll be confident in and start working from there.
>>
File: _MG_5544(2).jpg (326KB, 1842x777px) Image search: [Google]
_MG_5544(2).jpg
326KB, 1842x777px
What options do I have legally?

I want to create a website that let's people compare news articles from different websites or blogs.
>>
>>57239559

is it illegal to compare news ? If we can compare smartphones, then why tf not about news ? Bumping for answers to this.
>>
>>57239559
I imagine you don't have options legally.
>>
Best VPS for the price?
>>
How to hide my admin panel?

I usually put it in a folder with a crazy name.

Is that fine or should I just give it a crazy name so I won't have to navigate directories?
>>
Planning tables has to be one of the few things that is simultaneously annoying and fun.
>>
>>57239912
1. Merely hiding your admin panel is security through obscurity, aka shit. Make sure you're using a secure login method and a strong password.

2. If you're still going to bother hiding your admin panel, just name it literally anything other than "wp-admin". Problem solved.
>>
>>57239980
I make my own admin panels.

I use PDO with stored procedures.

I'll just give it a 60 character filename.
>>
Going through a Laravel course on udememey.

The retard made string('author') and string('photo') columns in the comments table even though he could've just integer('user_id') and pull both of those via that relation...

Is every instructor on udemy brain dead?
>>
Installing nodejs bricked my apache server.

I have to reinstall everything I guess?
>>
>>57240359
define bircked
>>
>>57240488
Nodejs set a virus that constantly installs php7 and it errors out.
>>
God fucking dammit.

I can't even reinstall apache without this shit

The following packages were automatically installed and are no longer required:
php7.0-cli php7.0-fpm php7.0-json php7.0-opcache php7.0-readline
>>
>>57239730
Lowendbox.com
>>
I've been uploading my projects to my portfolio page. It's been the first time I've had the chance to ever check out my projects using an actual mobile device, rather than a resized browser window.

Unfortunately, I've discovered that the majority of my front-end projects do not respond to touch. If I touch an element that has been bound to respond to click events, nothing happens.

Is this a common problem? I've used jQuery to bind events in these old projects. Is it a jQuery specific issue?

What's stranger still is that I have a newer application hosted online that responds fine to user touch, and that used jQuery for event handling too. Shit's confusing as fuck
>>
>>57240878
Presumably the old projects are using an old version of jQuery then,
>>
A VPS can be used for any kind of online application, right? It's not just restricted to webpages?
>>
>>57241110
Yes, generally speaking.
>>
Is Dreamweaver merely just a memeweaver?
Or what is the other better alternatives? i like how memewaever makes alot of things easy but then I dont leant the code as much
>>
>>57239559
It's not illegal to cite news. Sites like HN are obviously linking and talking about articles en masse.
>>
>>57241356
Didn't Mozilla have a live website renderer dev thing you can use online that shows what you're making? Try that.
>>
>>57239559
that would be interesting.
>>
>>57239559
This article may help:

http://www.bna.com/legal-issues-raised-by-the-use-of-web-crawling-and-scraping-tools-for-analytics-purposes
>>
const selectSelfOrAncestor = (selector, element) => {
if (element === null || element.matches(selector)) {
return element;
}
return selectSelfOrAncestor(selector, element.parentElement);
};


i thought the way i wrote the null check was neat
>>
>>57241581
Not relevant because you can literally just use iframes.
>>
File: 2d54e7f737e0e30b71de77e7866ec9e9.jpg (177KB, 1345x750px) Image search: [Google]
2d54e7f737e0e30b71de77e7866ec9e9.jpg
177KB, 1345x750px
It's been two months and I still don't have a fucking job. Today I got stood up on two separate interviews

How the fuck do I have the gall to keep leaching off my dad
>>
>>57241745
Invent your own social media website and become a billionaire all on your own ;^)
>>
I want to make a right-wing news website. How do I prevent insane radicalized leftists from hacking me?
>>
>>57242180
getting hacked is one of the best things that could happen to you
the alt-right loves feeling persecuted
>>
>>57242180
Schedule some appointments with a therapist. They know how certain people tend to think
>>
>>57242180
That's a stupid question. Don't expose any personal data. Pay attention to best practices in web security. You're not getting a step-by-step tutorial for your specific needs in this thread, so put some effort in yourself.

Start here: https://en.wikipedia.org/wiki/OWASP

>>57242313
>>57242408
/pol/ belongs on /pol/, you're not helping.
>>
File: Maki-Phone-Gif.gif (474KB, 500x281px) Image search: [Google]
Maki-Phone-Gif.gif
474KB, 500x281px
React Native
or
PhoneGap?
>>
>>57235313
There's plenty of .website domains.
>>
whats a good language and framework for backend dev that doesn't hide a lot of details behind magic?
>>
Quick question for those willing to answer something which has probably been asked dozens of times...

I don't have the time/resource/patience to go for an LOLDEGREE and was wondering if I should...

A: Spend a little extra time getting an LOLCERTIFICATE from LOLCOLLEGE (will take 9 - 12 months due to current jerb).

OR

B: Fuck that noise and just learn HTML/CSS/Jquery/Javascript/Node.js for the next six months while handing out free websites before applying to jerbs.

Note: I live in San Francisco if that makes any difference.
>>
Has anyone used vue.js? Is it worth learning?
>>
Is Elixir as meme tier as it sounds?
>>
>>57241745
Why do you think they didn't hire you?
>>
I need a new laptop for webdev to carry it to work everyday. Thought of Surface Pro 4, but my coworkers say OSX is much better for this than Windows. Why is that? One of them is Apple fanboi, so I didn't really take it seriously. Or are they right?
>>
>>57244272
Yes and no.
>>
>>57245143
Linux > Windows >>>>>>>>> OSX
>>
>>57243653
jquery mobile is all you need.
>chough
>>
>>57245256
was true 4 years ago, but apple is really neglecting everything that isn't a smartphone
>>
>>57241075
That was it, thanks for the help dude
>>
>>57245143
I have a linux laptop, windows main computer at home and use a mac at work.

OSX and Linux will be the same, you might have more setting up to do on Linux (I have Kubuntu running with everything a full stack would want to run and it took me slightly more work than it did on osx.) Windows can be fine too but you lose virtual desktops, desktop management in general, tilling windows etc.... but as far as actual development, you wouldnt really lose anything, gulp, npm, git etc.. would all work and everything is neatly bundled and easy to install (phpstorm for example is just fine on Windows)
>>
>>57245523
Thanks, that helps a lot.

How about performance? Macs are expensive in general, and I'd buy one with i5 if I was buying it - how does it compare to Windows laptop with similar i5 that is much cheaper (1/3 of Mac's price)?

My current laptop with i5-3210M and 4GB RAM is almost unusable when Node.js is running in the background.
>>
>>57243931
PHP
>>
>>57241474
Yes, it's called Firefox
>>
>>57243653
Performance is arguably slightly better with React Native and you can use native modules. Either one should be fine for most needs, though. If you're trying to make a graphically-intensive 3d game you should obviously do it in native code though.
>>
>>57243931
use php since its the easiest language out there
then as a framework use either SLIM or LARAVEL
slim is more used for small websites and laravel for the bigger ones.
>>
>>57243931
PHP is awesome, you can go as far as making simple compression engines, PHP for life <3
>>
>>57245666
Currently I am on the mac I spoke of, which is from 2011, has an [email protected], 8gb ram, I have four terminals with two running gulp with several tasks, and I am running npm install in another one as we speak, I have chrome with 15 tabs opened and safari with three tabs, along with two phpstorms projects opened. I also am using spotify and slack, plus Sketch to preview the website I am making, and it's all smooth as butter.

I also have a dell from 2014 with basically the exact same processor, same amount of ram, and just a different integrated graphics chip (intel hd 4000 vs the shitter intel hd 3000 in this mac), and it runs perfectly fine too, basically the exact same as it does on the mac. The system itself, Kubuntu, looks slick and reacts as sharply as mac os I'd say, but the trackpad of the mac os is pretty fucking sweet and the touchpad gestures are just cleaner, work better. Not that it matters because I switch between desktops with ctrl+1,2,3,4 on Kubuntu but yeah.

This Kubuntu laptop also runs windows 10 on which I play shit like HS, D3, or other meme games that run on an hd 4000 and it performs fine and I can suppose that it would be fine running a few phpstorm windows running their own gulp tasks with no trouble at all.

My main computer is a gaming machine that also double boots to Kubuntu/W10 and is more powerful than those two laptops, and I think you get the point, everything runs just as fine if not even better since I have 16gb and an i7 which allows for even greater multitasking.

Basically, get at least 8gb of ram and an i5 that's not too bad (>2.3Ghz), make sure you like the keyboard and trackpad (or use peripherals), and mac os / linux are basically one and the same, although again, you will have to maybe do slightly more work to make things as smooth on a (already pretty) distrib like kubuntu than you do on mac os, but then again, it's linux so in the end you can do even more customization.
>>
File: 1469417874323.jpg (2KB, 125x67px) Image search: [Google]
1469417874323.jpg
2KB, 125x67px
>>57245730
>>57245889
>>57245955
>PHP

I'm not getting trolled, am I?
>>
>>57233666
pls
>>
Best framework for serving static content?
>>
File: 1473068613644.png (120KB, 2000x1433px) Image search: [Google]
1473068613644.png
120KB, 2000x1433px
Please help me wdg,

i'm trying to get into .NET MVC and am reading Pro ASP.NET MVC by Adam Freeman, since it was recommended a lot. Right now i'm almost finished with the Sportsstore Application, but i barely understand what the fuck is going on.

It just seems overcomplicated, and i can barely keep track of where the functionality of the Application is actually implemented.

Is it just bloated or am i too dumb for MVC?
>>
>>57247098
Such is the life of a microsoft cuckold
>>
Why should I learn React.js ? what can react do that i cant do in jquery + css ?
>>
>>57247374
If you have to ask why, you probably don't need it.
>>
>>57247908
If you didnt want to answer the question you shouldnt have bothered to reply at all Sven.
>>
Does anybody know how to make that line from Google Maps when you hover over a photo and it connects the photo with a location on the map with a fancy animation?

I need to learn how to do this.

P.S: If you don't know what it is - open Maps and on the bottom right un-hide the photo window, then just hover over something.
>>
Man, Phoenix has a lot of dependencies
>>
anyone here a Webpack pro?
>>
Is SASS worth learning? Just seems worthless outside of variables desu but nesting is cool, I guess.
>>
>>57248732
yes it is.

However you should also consider learning PostCSS (you can use SASS within it)
>>
>>57247098
how much coding experience did you have before diving into .NET MVC?

I studied a bunch of books for C#, algorithms, and then HTML/CSS/Javascript, and only then did I dive into the .NET world. I wouldn't say I understand everything, but kind of. I can make sense of everything, yeah. All the toolboxes you have in VisualStudio are awesome, because you can just click and drag, but I actually know the code behind the thing I'm dragging onto my webpage.

I'd recommend maybe putting the .NET MVC thing on hold for a bit, and just going back to the basics. Like, if you don't know the difference between the .aspx.cs, .cs, .config and .js, then you need to go take it down a level. Everything will make so much more sense.
>>
>>57233786
You are trying to pass "../ajax/thanks.blade.php #1" to the server. The problem is that the hash (the part after #) is not sent to the server by browsers. It's for internal (client-side) use only. If you need to pass an id use a query string. It should look something like this "../ajax/thanks.blade.php?id=1"
>>
I simply can't make search to work on my custom Wordpress template. It just returns empty page, but then again, sometimes it returns everything and sometimes the everything just slides to the right. Wtf is happening. :(

inb4
>using wordpress

Be more original, please. It's perfectly fine for a blog, but this pisses me off.
>>
>>57249226
I dont know how wordpress search works, but do you have fulltext indexes and are you querying correctly?

Select * from dicks where match (columnName) against ($search_query)
>>
File: 1469473621356.png (577KB, 480x476px) Image search: [Google]
1469473621356.png
577KB, 480x476px
>tfw you've been web devving your entire life without really understanding what a database is
>>
>>57249274
Do you know what it is now?
>>
>>57249263
That part is pretty shitty because you have to basically just insert one PHP snippet "<?php get_search_form(); ?>" and it does everything for you. It should work but I'm not sure why it doesn't. I guess I'll have to start deleting files and disabling some plugins and see if it fixes itself.
>>
>>57249226

well if you're using WP... just use a plug-in maybe?
>>
>>57245055
maybe because i'm low on experience, maybe because I have to lie to cover up the fact that I got fired from my last job for bullshit reasons after only 3 months
>>
>>57248044
This is a sample of a laser widget
<div jstcache="232" class="widget-runway-subview-lasers">
<ul jstcache="603" aria-hidden="true" class="widget-runway-lasers">
<li jstcache="599" jsinstance="*0" class="widget-runway-laser" style="left: 1107px; bottom: 128px; transform: rotate(-65deg);">
<div jstcache="600" class="widget-runway-laser-reveal" style="height: 814px;">
<div jstcache="601" class="widget-runway-laser-line" style="height: 814px;">
<div class="widget-runway-laser-head">
</div>
</div>
</div>
</li>
</ul>
</div>

CSS
.widget-runway-subview-lasers {
position: absolute;
left: 0px;
bottom: 0px;
width: 100%;
}
.widget-runway-tray-open .widget-runway-lasers {
display: inherit;
}
.widget-runway-lasers {
list-style-type: none;
bottom: 0px;
left: 0px;
position: absolute;
margin: 0;
padding: 0;
height: 0;
width: 100%;
z-index: 8;
display: none;
}
.widget-runway-laser {
position: absolute;
-webkit-transform-origin: bottom;
transform-origin: bottom;
}
.widget-runway-laser-reveal {
position: relative;
overflow: hidden;
transition-property: height;
transition-duration: 0.2s;
transition-timing-function: linear;
width: 7px;
height: 0px;
padding-top: 6px;
}
.widget-runway-laser-line {
transition-property: none;
width: 1px;
position: absolute;
bottom: 0px;
left: 3px;
background: rgba(0,0,0,0.4);
}
.widget-runway-laser-head {
left: -2px;
top: -3px;
width: 6px;
height: 6px;
position: absolute;
background-color: #666;
border-radius: 3px;
}

cont.
>>
cont. >>57249930

It's just HTML elements not a canvas. They calculate the starting point, angle (for transform: rotate) and length of the laser on focus. They set the length of "widget-runway-laser-line" to the final value and they set "widget-runway-laser-reveal" length to 0 and then they animate "widget-runway-laser-reveal" to the full length.
>>
File: 6GxyXw1.jpg (41KB, 502x548px) Image search: [Google]
6GxyXw1.jpg
41KB, 502x548px
What is objectively the best backend language and why?
>>
>>57249959
Hack. It has a very fast run-time and it's relatively easy because it's a PHP dialect.
>>
>>57249959
Python.
Comfy, popular.
>>
>>57249959
PHP, it just werks.
>>
File: line.jpg (401KB, 1541x545px) Image search: [Google]
line.jpg
401KB, 1541x545px
>>57249930
>>57249954
Can you link me to this? I'm trying to google it but nothing comes up.

Basically, I have an idea where, when a users hovers over a certain keyword in a text, the line animates across the page and points to the relevant article at the side. Something like pic related. AFAIK, I can't do it in canvas anyway, but don't know if it is even possible.

Is there some library for this exact thing? I actually thought of coding it from scratch, I'd need to calculate positions of those elements and somehow draw the line, possibly with SVG, but I don't know how to do that part.
>>
>>57241745
at least you're trying which is worth mentioning
>>
I feel like a god when I'm knocking out code.

They say the average dev only writes 10 lines of code a day. How?
>>
>>57250184
>>Can you link me to this?
of course: https://www.google.com/maps
Seriously. I just used Chrome Developer Tools + some deduction.
>>Is there some library for this exact thing?
I really doubt that.
>>I actually thought of coding it from scratch
IMO it's the only choice
>>possibly with SVG, but I don't know how to do that part.
It's not an SVG, just a thin div rotated with CSS3 ("transform: rotate"). You calculate the length with pythagorean equation and the angle with some basic trigo. That's it.
>>
>>57250406
Thanks mate.
>>
Is there a secure way to use Google captcha in JS?

I want to send the captcha return from JS to a PHP page and validate it. Is that possible?
>>
Is rails dead or something? there's fuck all jobs in ireland for it.

Should i be learning something else?
>>
Can MD5 ever make duplicates if what you are hashing is always unique?

I'm trying to make a way to share profiles with unique identifiers.

Not sure if I should just use the DB key as I don't want people to know how many people there are.
>>
>>57233666
It's pretty easy to write a perl web application in any of them.
The problem is reading the entire thing afterwards.
>>
>>57250912
Look up UUIDs
>>
>>57250862
Learn whatever you like, someone will prboably pay you to do it.

I learned node.js, I'm surrounded by PhPajeet and ASPajeet jobs.
>>
So I have a wordpress site that was hacked. It shows the average user the original content, but when a search engine crawls it, it's just full of links to japanese sites.
Any idea how you would do this? Or where to start looking for the malicious code?
>>
>>57250973
"Warning
This function does not guarantee uniqueness of return value. "

I would rather not have to check if it already exists in my table.

Maybe I should just default my primary key to a high number like 12546
>>
I'm trying to make good website ui, but I suck at it. Espiecially at flexbox and float. Is there a good resource where I can learn how to make website ui?
>>
>>57251114
Honestly, I'd backup the database and perform a clean installation with new passwords and whynot some security plugins.
>>
>>57251114
I would run a delete query on every entry containing ".jp"
>>
>>57250862
If you're just going for jobs, then spend an hour studying the job market. I'm in the UK, hoping to relocate to London. There's an insignificant amount of Ruby on Rails jobs, as well as all the other new memes, because the UK is just not the best place for startups. If you want RoR, you have to live in SF or NY.
>>
I'm working on a beginner spring project, I can connect to a database, however I don't know the best practices for saving images

Do I keep the images in some folder and have some sort of image ID number in the database? How is this done?
>>
>>57248956
>>drag
You are not talking about webforms, right? MVC is only path to take.
>>
Anyone worked with Vertx framework?

I'm reading into it right now and it sounds somewhat better than meme.js at least.

But it's also fucking huge and I'm not sure if that microservice stuff is relevant right now.
>>
>>57235311
Use a PHP Accelerator and make sure your SQL queries are otpimized
>>
>>57235426
>and those are queries only I execute, not the final user

What do you mean ?
You have to send a response to the final user in the end
>>
It's another "every domain is loaded with google ads search and listed for sale" episode.

The only people who like this are the ones that do it.
>>
File: 1274312945009.jpg (12KB, 317x330px) Image search: [Google]
1274312945009.jpg
12KB, 317x330px
>want to start freelancing on the side in addition to fulltime job
>should probably make my own website
>know I'm going to spend fucking ages faffing around with the design when I know full well that nobody will care about it but me.
>>
Why won't people return my emails I don't get it
>>
>>57252070
Who reads spam?
>>
I'm starting a new project and need to choose a web dev framework. I have decent/good experience with JSF but that's basically 10 years outdated tech.

I have little knowledge of the pros and cons of modern frameworks.

My question is: How do I choose a framework? I've looked at comparison charts linked in the OP but honestly it doesn't tell me how good a framework is, how easy it is to work with.

I could also just ask for recommendations but I don't know how well that would go.

Leaning towards ruby on rails right now but some others I see mentioned often are django, flask, angularjs.
>>
>>57251161
Look up UUIDs again and actually read what it says.
>>
>>57252127
I'm lazy and just did high value auto_increment.
>>
Is there an obfuscation method that just changes variables and function names to random shit so it's not so readable?

Using JS.
>>
File: mvc.png (80KB, 1024x512px) Image search: [Google]
mvc.png
80KB, 1024x512px
>>57252099
Ruby on Rails and Django are opinionated MVC frameworks, they'll let you develop something that works quite quickly if you know what you're doing, but you'll have to do it their way, they're not very flexible but they get the job done.

Flask is less opinionated, more flexible. Haven't really tried it.

Angular is a meme, and frontend only. It needs to consume data from a backend API to do anything, that API could be made using any other language on the planet. Basically you're building separate applications for business logic vs presentation, and theoretically that API can be consumed by other applications like a desktop client or mobile app. Its a massively overcomplicated pattern for 99% of the shit it ends up being used for, and you shouldn't bother with this bullshit. If your web app takes off and you can hire 30 devs, then you can think about it, but there's no point in wasting your time with it for every project.

>JSF
You can use Java if you're comfortable with Java, Spring and Play are some modern Java frameworks.
>>
>>57252210
Google minify js, pick your favorite, add it as an automated step to be performed on your js files before deployment.
>>
>>57252210
any javascript minifier will make the code difficult to read by a human. But not impossible.

If you're doing stuff in client-side Javascript that you don't want the user to see, such as handling sensitive information... then you're bad and you should stop and do that shit server-side.
>>
>>57251216
That's what I tried first. The developer that built this site originally used a bunch of dumb plugins and I'm trying to avoid having to rebuild the a bunch of shit.

>>57251341
Thanks for the idea.

I actually ended up downloading all the files and using find and grep to find links to *.jp sites.

They had put a pretty sweet little cloaking script up in the index.php file that's in the public_html folder.
>>
File: 1461714769523.jpg (44KB, 1080x717px) Image search: [Google]
1461714769523.jpg
44KB, 1080x717px
Anyone feel like sharing and comparing cover letters? I feel like this is easily the hardest part of any application.
>>
>>57252033
are you me?

how do we beat this anon?
>>
>>57252242
Thank you for the reply.

I am definitely not using Java for web dev again unless forced to. It does not allow for a fast, flexible and lightweight workflow/pipeline.
>>
File: some hipster shit.png (12KB, 279x118px) Image search: [Google]
some hipster shit.png
12KB, 279x118px
Is Lapis any fun to use? Does it actually work decently enough?
>>
>>57252432
We use an off-the-shelf Wordpress template... just like we will for all of our clients' websites.
>>
>>57250394
html and css isn't code anon.
>>
>>57250406
Just want to say I made it, it looks based as fuck. Although I have actually found the exact solution which I slightly modified so I feel like a shitter and will now walk through the code and maybe rewrite it to understand it.

Actually yeah, I made it responsive while the code I c/p-ed wasn't, so there's that.
>>
>>57250394
>They say the average dev only writes 10 lines of code a day.
Who the fuck is "they"
>>
>>57249274
I've been web devving for 4 days and have a decent grasp on how a database works.
You need to stop being a dumb frogfaggot.
>>
>>57252718
"They" are usually fucking idiot marketing/hiring people on LinkedIn who repeat ridiculous platitudes in order to sound technical to other non-technical dipshits.
>>
What is everyone's opinion on django?
>>
>>57252271
I'm not.

I am sending everything over AJAX to a PHP page though since I'm using Cordova.

It has no logins or sensitive information and I check all input server-side. It's clean as fuck famalam.

I just don't want skiddies figuring out how shit works. Autismal hackers only.
>>
File: 1470781774108.png (147KB, 325x325px) Image search: [Google]
1470781774108.png
147KB, 325x325px
>>57253005
>afraid that script kiddies are going to figure out that a web page is using ajax.
>>
How do I make a "chan"?
>>
>>57237239
Do not do that. Just update the session. They'll expire frequently enough. 26 for PHP is default I believe.
>>
>>57253069
Copy it from a Japanese chan
>>
>>57253037
I just want as few people as possible to send bullshit to my php pages.
>>
>>57253069
You google "imageboard software", anon.
>>
>>57244272
Yes. Yes, but not before other frameworks.

React is better job wise. React is heavily battled tested and scalable, as we've all seen. Which I'm sure can be in Vue(2.0)'s future as well. As of now I wouldn't rec it unless your doing small one-off projects.

Default SSR is pretty good on Vue 2.0 (async). With custom configs React's is still better.

Eh, these comparison's are a bit weird as React is just the view layer while Vue is a MVVM. But they're commonly used to accomplish the same goal.
>>
>>57249959
Haskell because compile-time checking.
>>
>>57253204
What about Angular 2? Worth sacrificing my mental health to learn and possibly get a boring job?
>>
>>57244272
Has great docs, is really maintainable. Also comes bundled with the latest version of laravel so will open a good amount of job opportunities in future.

If you're not building a one page app but some reactive components, then vue is a solid choice.
>>
>>57253602
Not him but Angular 2 is awesome and torturous at the same time.

I recommend learning the basics of TypeScript first, before attempting anything with Angular2
>>
File: launchcode.png (195KB, 2854x1174px) Image search: [Google]
launchcode.png
195KB, 2854x1174px
What am I in for lads?
>>
>>57253792
Frustration.
>>
>>57253821
From the test or from the application process? What's usually on the test?
>>
>>57253125
Being careful with mobile app API endpoints is important. I'm running a niche real estate startup and we're snatching up our competitors clients contact details from API endpoints I found from their mobile app.
>>
Anyone else binge code because they are afraid if they quit then they won't remember what does what?

I follow good standards but can't help it.
>>
>>57253885
>Anyone else binge code because they are afraid if they quit then they won't remember what does what?

No. I just comment everything.

That way I can see what I intended the code to do, as well as having the code there to see what it actually does.
>>
>>57253876
Test.

The output restrictions are frustrating.

Attempt all questions before working on more restrictions.
>>
What does jquery .post send when a textbox is empty?

My validation is if (thattexbox != '') and it is running the code in that conditional when I know it's empty.
>>
>>57254140
Used isset ().

Can't believe I forgot about that shit.
>>
>>57254140
Debug it? Like all modern browsers allow you to look at requests. You can also check value on serverside.
>>
>>57254349
I just window.alert everything. Old habit.

Also I had forgot the # in my selectors, then I had if !isset instead of isset.
This is why I shouldn't drink caffeine.
>>
i'm trying to use my php script that gets all the entries from my database for an android app. i know nothing about this, but i got the php script working. This is what i have for the java end

    public static void getAllEntries() {
try {
// open a connection to the site
URL url = new URL("http://localhost/android_connect/get_all_entries.php");
URLConnection con = url.openConnection();
// activate the output
con.setDoOutput(true);
PrintStream ps = new PrintStream(con.getOutputStream());
// send your parameters to your site
ps.print("firstKey=firstValue");
ps.print("&secondKey=secondValue");

// we have to get the input stream in order to actually send the request
con.getInputStream();

// close the print stream
ps.close();

} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}


how do i receive the string of what's in the database in the app? this compiles and runs but it does nothing. i had it be system.out.println(con.getinputstream()); and it printed

sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@blahblah
Process finished with exit code 0

in the end i want the method to return a string of what the database is
>>
so i was looking at a site's source code (the site's old fashion html/css/client side js)

and found this

<script type="demo">
for(_='M/2`I[4*O+4*C*M_:_+2]?`/5)=Cl[B]P=Sl=u?u%3,c.p.~=MtylefillS=d[++%11800+=at=" (u)*( =N=O=F=N Mh.sin".mch(/...height.width* >0&N<M||-1;N=(an2(y-U,x-T))*-K+random()+.9*~Text(D,`,M*.9*g,Mfont/e+"px serif"h++]),d #f#0f0#f#ff0#f0f#0../g);a=min(a,a);a.s=a.s+"px";V=4;N=b=A=W=5;!function R(){I=S?I:c.getImageDa(e=g=1,h=0,M,atextAlign center",s H=HeLiBeB eNaMgAlSiArKaScTiVrMnFeCoNiCuZnGaGeAsSeBrKrRbSrY=ZrNbMoTcRuRhPdAgCdInSnSbTeI=XeCsBaLaCePrNdPmSmEuGdTbDyHoErTmYbLuHfTaW=ReOsIrPtAuHgTlPbBiPoAtRnFrRaAcThPaU=NpPuAmCmBkCfEsFmMdNoLrRfDbSgBhHsMtDsRgCnutFlupLvusuo/g)[D=P],++DD ==s[1]?s[0]:s[0]= u"?"U"+s:se=9,g=.1,D qfox.nl"0).da;a;AVb;bWA;B=0;for(w=(S%32/9)*`/9;O<M?OK=-~max(`,5):O=(CK)<M;++B)p||{x:0,y:0},u=_+1]?B%6:0u?:_]?34:5],TA+cos ^1?*w||w:O+(S%M/32)*M/3:O,Ub+ *w||C+w:C,xA=cosA,yB=BRect(~x,~y,EKK*2:A-B,E);requestAnimionFrame(R)}(=[])';G=/[-_`]/.exec(_);)with(_.split(G))_=join(shift());eval(_)
</script>


how can you obfuscate your vanilla js like that?
>>
>>57254647
>>57252271
>>57252249
>>
>>57254600
Better to ask /dpt/ for java questions. java devs aren't here often.
>>
Does anyone know of a web form plug in for node js. I don't know what they are called.

What I mean is a plug in that will input html via a form but has a menu that has stuff like bold letter size and text color that will submit to a data base.
>>
>>57254740
i did but they called me a pajeet
>>
>>57254600
Java is shit when it comes to working with urls. There are many ways of getting data from a url but they're all long and ugly and make you hate what you're doing. Unless you use some obscure lib which I don't recommend because that will probably cause more problems than solve.

I don't feel like figuring out what you're doing wrong although I can tell you it's something stupid. I would recommend finding another example of fetching data from a url and copypasting it properly. Here is a not that good way of doing it that I used last time I did this. The main difficulty with using this code is that you would have to add the apache-httpsomethingsomething library to your project.

http://pastebin.com/9qqP16U9

Java has so much shit like this that makes me not give a fuck about clean code anymore and just do whatever just to get it over with.
>>
>>57241745
How the fuck does an interviewer stand you up.
>>
>>57254937
Lmao
>>
>>57251629
not an expert but you probably shouldn't be saving images on your own database. you should store them on something like cloudinary and keep the url saved in your database paired with its id
>>
>>57255162
i got it working, just copy and pasted some stuff. the code i posted up there was about half of what i needed. i implanted another code segment that looked promising in there and moved some stuff around and it works, now i just need to process the string

{"entries":[{"UserID":"0","FirstName":"John","LastName":"Smith","Schedule":"#end"},{"UserID":"1","FirstName":"Jack","LastName":"Jackson","Schedule":"freeonmonday"},{"UserID":"2","FirstName":"Bobby","LastName":"Bobson","Schedule":"busy"},{etc

into an array. eventually
>>
How do I combine 2 tables with a query?

I want to: select * from table2 where original_id = $id AND select * from table1 where id=$id

I'm reading into joins and unions and unsure which to use.
>>
>>57255453
https://jsfiddle.net/kkmh9fx5/3/

in my quiz, if there is a tie in answers, it displays the last one because I dont know how to put the document get out of the if block

how fix it wg/g/
>>
>>57255453
Assuming one of the tables has a foreign key column for the id in the other table (which it should and if it doesn't you should immediately fix that) you do

select * from table1 join table2 where ...

Google the difference between left join, right join and the other types. Use whatever one you need.
>>
I want to make a game with pure javascript (no canvas) the uses a grid ( 2d array of elements)

what's the best way to do this with the least amount of overhead? Say I want to check whether a player can move up, down, left, right, would I always need to iterate through a nested loop?
>>
>>57255600
Do you need to specify a foreign key or is it just a column where you put the original key in there so you know what it belongs to?

I just have a column in table2 where I store the id from table1 to maintain relation.

I got it to work with
select a.col1, a.id, b.original_id, b.col2 from table1 a, table2 b where a.id=:id and b.original_id=:id
>>
>>57255727
You have the coordinates of the player in the form of x,y. For example 5,7. If you want to check if the player can move right you access your 2d array at 6,7 and check if it's a valid tile.
>>
>>57255727
MD array for x and y with whatever values that tile has. While through that shit and display it.

JS can know when a key is held.
Use timeout to set movement speed.

Main game loop use a timeout of however long you want if you need it.

I just had timeouts based on player attack speed and enemy attack speed.
You don't really need a main game loop in js unless you're doing multiplayer then you're just responding to async shit anyways. I know nothing about JS multiplayer though.
>>
>>57255813
thanks, i'm retarded.
>>
>>57255792
The foreign key is something you specify in your table definition when you create the table. Google it, it's just 1 line. It's extremely important because it allows rows related to the same object in different tables to actually be "related", and this is extremely important for the performance and usability of the database.
>>
>>57255880

i was thinking of doing turn based so I could avoid dealing with time , but that will be my next project
>>
>>57255176
They arrange a skype call and then don't even send you a contact
>>
>>57254647
Use uglify
>>
Is it possible to pull data from a WordPress database using just raw php? I mean without all the built-in WP functions.

I'm building a website for a startup who wants it done by Friday. Instead of creating a full CMS from scratch, I thought why not utilize WP by allowing them to login and publish content, but have it show up on my site. Does this sound okay?
>>
>>57256378
I dont understand, you want to use their DB schema on a WP installation, but have it show up on your site?
If thats so, just use their rest endpoints
>>
File: 1476380156077.jpg (99KB, 571x758px) Image search: [Google]
1476380156077.jpg
99KB, 571x758px
Is there an actual, reliable way to test for different screen sizes for the purpose of responsive design?

Because I use the Firefox responsive tool and it looks one way. Then I use the Chrome one and it looks another way. Then I load it up on the actual device and surprise, it's completely different from the first two.

What the fuck? I feel like unless I've got six different kinds of phone and tablet in front of me I'm working in the dark. I live in perpetual fear of the sites I make for people telling them they're responsive just fucking breaking all to shit on some screen I haven't physically tested. There has to be a better way.
>>
>>57256738
is there a simple breakpoint coding that covers smaller or do you have manually chnage all the setting in css? im nearly drunk but maybe im being lazy
>>
>>57256798
It depends on what you're doing. I can't always rely on a responsive framework when I'm doing something complicated, and that means I have to set every breakpoint in the CSS by hand if I don't want any nasty surprises.

I can do that, all I want is a reliable way to fucking see what it's going to look like in every resolution
>>
>>57256533
Yeah, basically they log into WP and create a post, but the posts would be displayed on pages that I've created which aren't a part if the WP framework.

>use their rest endpoints
Didn't know about this, I'll check it out.
>>
>>57256864
I hear you, its a problem ive confronted myself
i only have one basic smartphone to test on
I could get access to other phone ans tablets if its live and i ask people but yeah
>>
>website's completely done
>just needs styling

Time to spend quadruple the amount of time.
>>
>>57256738
make desktop first,
create styling as responsive as you can
set break points and style them
check within chrome using the inspect 'device' stuff
use browser stacks or emulate iOS/Android to check your site, don't cater to all phones, just pick a semi decent one. we tend to cater for 5s, 6s and a Nexus 6. for tablets we go with the ipad air and make them pay extra for android testing as well as making them provide a test tablet as there's too many of them on the market.
>>
Any ideas for beginner web app projects? I have some ideas for things I eventually want to do, but I don't think they're practical with no experience.
>>
>>57259135
what ideas? you can start building them but split it into blocks and build on it
>>
PHP template engines, is there much point of using them?
Just been looking at Plates & Twig and not too sure if I should implement them for an existing site.
>>
>>57259734
Php is a template engine. If I was going for something like twig I'd use a diff language personally.
>>
>>57259135

create a simple CRUD (create/read/update/delete) app. start off just by making a to-do list or something.
>>
>>57259166
mmorpg with neural networks
>>
File: noice.png (55KB, 217x190px) Image search: [Google]
noice.png
55KB, 217x190px
>>57254937
kek
>>
>>57259135
Dragon dildo simulator
>>
I'm reading a book learning the basics of JS, and it mentioned that in older versions of IE, the DOM doesn't include whitespace nodes, but in newer versions and all other browsers, there are whitespace nodes in between nodes (if the HTML hasn't been minifed). However the book is a few years old, so I'm wondering is this still the case? Do all modern browsers have the whitespace nodes or do any browsers omit that in the DOM?
>>
>>57240600
sudo apt autoremove --purge
>>
>>57240600
are you me from 2 weeks ago?? do >>57261576
>>
>>57261576
That's a day and a half old. I just moved to php7 because all of my old code worked anyways.
>>
>>57261576
That doesn't necessarily revert your system back to exactly how it was prior to installing it. There's really no way guarantee that on Linux short of keeping a snapshot of your system prior to installation and reverting to that.
>>
I'm trying to push production versions of React applications that I've built to GitHub pages.

I'm using Webpack for production, and the production process itself works fine for the javascript and html. What I'm unsure about is how to get images to load correctly with the production version of the application.

I'm dropping my index.html and the javascript bundle into an output folder called dist. My images are within my dev folder, and so obviously the production app's image url paths no longer work correctly, because these new production files are not within the dev folder.

Is there a convenient way to have the images be outputted to the dist folder on production and the css url paths within my stylesheets change accordingly?
>>
>>57262169
Use relative paths?
>>
File: millennial.power.jpg (491KB, 1760x1275px) Image search: [Google]
millennial.power.jpg
491KB, 1760x1275px
anyway i can get github to automatically add a coc to new repos? im tired of running covgen
>>
Is Elixir really the future of webdev like they say?
>>
>>57262543
>Elixir adds a bunch of niceties. One of them is the pipe operator.
Lel. Really, the pipe operator? We're in the 21st century now, your language better have the pipe operator.

>Elixir is a functional language with immutability.
Yeah I'm not touching this shit until it's tried, tested and proven to work on dozens of high traffic web services.
>>
>>57262330
Relative paths will be relative to the directory in which they currently exist. When I produce this React app, the directory will be in a completely different place, as will the images they are trying to reference.

I dunno if there's an easy way around this problem.
>>
File: music2.png (82KB, 1366x631px) Image search: [Google]
music2.png
82KB, 1366x631px
Making a serverside music player for my 100gb vps. Chromebooks have no space and I can't find a lot of my favorite japanese/chinese music on spotify, so I'm writing a webapp which plays and catelogues MP3s. So far it plays songs when I click on them and gets ID3 info when I upload them, but I still need to implement moving to the next song, a volume slider, a progress slider, and playlists. I have an idea for how to do all of these.
>>
>>57263010
Going to add a login option so that only I can use it and don't get DMCA'd, and if I have any friends (lol) that want access to my weeb music I can make an account for them
>>
>>57262371
Start by killing yourself
>>
>>57253602
Hell no. With all the breaking changes in an2 people are jumping ship hard.
>>
>>57253771
Learn typescript period, I use it with my personal React site. Type checking is great.

Of course you could use Facebook's Flow instead. Writing .d.ts files can be annoying.

I'm this guy >>57253204 >>57264000
>>
File: 1012.jpg (22KB, 378x287px) Image search: [Google]
1012.jpg
22KB, 378x287px
<td class="listing" onclick="window.location = './View.php?id=<?php print($assoc['title']) ?>'">

>mfw embedding php into javascript
>>
>>57263023
>>57263010

actually kind of cool.
>>
>>57264082
>Not understanding templating
>>
>>57264179
>muh design patterns
kill urself friendo
>>
File: music1.png (49KB, 1366x631px) Image search: [Google]
music1.png
49KB, 1366x631px
>>57264132
I'll opensource it if you want to have something similar on your own vps. Check on github.com/collinoswalt every now and then
>>
>>57264298
just use cherrymusic m8
>>
>>57264317
Where's the fun in using someone else's software to do such a simple thing. I'm a CS major, not IT major.
>>
>>57264396
>>57264317

Like, if someone wants a website for their restaurant, are you just gonna install a CMS for them when all they need is a static page showing off their menu?
>>
[ { id: '%',
name: 'everything',
desc: 'All resources',
createdBy: 1,
modifiedBy: 1,
createdAt: '2016-10-25T13:49:11.000Z',
updatedAt: '2016-10-25T13:49:13.000Z',
userResource:
{ userId: 1,
resourceId: '%',
perms: 0,
createdBy: 1,
modifiedBy: 1,
createdAt: null,
updatedAt: null } },
{ id: '1',
name: 'user',
desc: 'Defines User Resource',
createdBy: 1,
modifiedBy: 1,
createdAt: '2016-10-25T13:50:25.000Z',
updatedAt: '2016-10-25T13:50:26.000Z',
userResource:
{ userId: 1,
resourceId: '1',
perms: 0,
createdBy: 1,
modifiedBy: 1,
createdAt: null,
updatedAt: null } } ]


Say I have a resource array of objects that I get when logged it. How can I use this data to dynamically build a navbar ul in jade? Certain users will not have access to all resources, so it doesn't make sense to populate the navbar with these links.
>>
>>57264530
It's simple, print all the links and then use jQuery to poll every link and if the return code is 403 then hide that link.
>>
>>57264208
>thinking that templating is design pattern
>probably thinks that design patterns are memes
Why don't you do a world a favour and follow your own advice
>>
>>57264979
>>57264530
Fucking barf.
>>
>No way to regain ID and pass to an element.
>Newly added entries loaded with json aren't creating a comment box

I just don't know anymore.
>>
>>57264530
RTFM
https://pugjs.org/language/conditionals.html
>>
>>57265437
GFY
>>
File: file.png (166KB, 1920x1080px) Image search: [Google]
file.png
166KB, 1920x1080px
Post you're web browser
>>
>>57265627
Is adding JS to a wordpress page easy?

This company needs a calculator to calculate earning potential and I can do that, but they use wordpress.
>>
>just completely blew a javascript developer interview

Fuck! I'm not going to get a job before the year ends, am I
>>
>>57265708
Create page template and you can directly add javascript to html. Or use enqueue event to properly add javascript file.
>>
>>57265836
So with what did you failed?
>>
>>57265884
questions about shrinkwrap, stubs, handling unhandeled exceptions and how to pass variables between controllers in angular
>>
>>57265019
>actually
k y s
y s k
s k y
>>
>>57266040
I've been using js since '98 and have no idea what anything but the exception one means.
>>
>>57266256
I also fucked up a question about promises and maybe generators too
>>
>>57266256
>not knowing the latest memes
no job for u
>>
>>57266168
Looks like somebody ran out of arguments.
>>
>>57266256
1998 interview:

>Show me how to implement a binary search tree

2016 interview:

>List the top 50 Javascript frameworks you feel the most skilled at
>>
File: 324Ricky.jpg (14KB, 400x268px) Image search: [Google]
324Ricky.jpg
14KB, 400x268px
what's a good alternative to

http://foaas.com

?
>>
File: LsRRB4i.png (169KB, 542x525px) Image search: [Google]
LsRRB4i.png
169KB, 542x525px
Hello, students. It's me, your favorite udemy instructor.
>>
I have spent 10+ hours thinking of a project name, or cool domain name "hack". Haven't started the project yet.
>>
File: csharp.png (51KB, 375x360px) Image search: [Google]
csharp.png
51KB, 375x360px
Here in the UK the highest number of sought after jobs are for the C# language.

If I seriously git gud with C# is it likely i'd be picked up without a Uni degree but other (lower) related IT qualifications?
>>
Is there a point in using View holder pattern and RecyclerView equivalent in rendering lists using Javascript/HTML?
>>
>>57254600
>android app
Use retrofit and GSON if you're returning json.
>>
>>57268511
yes

for beginners - http://csharp-station.com/Tutorial/CSharp/SmartConsoleSetup.aspx
>>
>>57268919
what about for intermediates? I'm stuck after having learned all the basic commands (control flow etc)
>>
>>57268444
It's always more important to make a name first.

No reason making a project with a shit domain.
>>
>>57267265
"It says here you are good at Javascript, so go ahead and create some crazy component shit in React."
>>
I have a website which sounds very similar to another website of the same kind, which is more popular.

Neither website contains a lot of content. There's just the landing page, and perhaps an about.php

How can I appear organically when you google the name (or keywords) of mine? Currently you'll get "did you mean *othername*?"
>>
>>57269387
You get better content and beat them out.

I would rebrand, honestly.

It can take a lot of work to beat out that site.
>>
>>57233624
Yay! Found one. It was one of my gos into creative programming.
>>
File: grew_up.gif (2MB, 390x300px) Image search: [Google]
grew_up.gif
2MB, 390x300px
>>57268919
>>57268986
What I'm studying right now
http://www.introprogramming.info/english-intro-csharp-book/

It's very in-depth and easy to follow.
Perfect for absolute noobs & also intermediates.
I've been using other languages for 5 years and I'm enjoying this book.
>>
>>57269477
I don't consider it a competitor, as such. It's more a matter of taste.

Is there any trick? Will I get to be at least #2 in google search with my domain name? People who search for mine knows of this other domain anyway.
>>
how come all the job posts in my city for javascript also say I need to know java? Others say I need to know ASP or some c# shit.

is pure javascript jerbs relegated to big cities on both coasts? I'm in pittsburgh so we don't have tons of tech here but still seems pretty dry. It's like either wordpress/css douche or they want java devs who also happen to know angular.
>>
>>57269759
Seems to me that pure JS is mainly relegated to startups and younger companies.
>>
>>57269759
I'm in philly what kinda shit do you know famalam?
>>
>>57269603
There's really no way to guarantee your search rank. You just have to do all the normal SEO stuff and hope for the best.

>>57269759
Pretty much every web dev job wants JS because it's part of the holy trinity. Most of the time, they just use it for jQuery-type shit. If it's a pure JS job, they'd likely specify Node and/or some SPA framework, so try searching for terms related to that stuff e.g. "Express", "React", "Angular", "Typescript", and so on.
>>
Webpack is really fucking with me at the moment. I just want to output an html page, a js/css bundle and some images referenced by my sass stylesheet into a production folder.

It's the images bit that's fucking with me. I want the urls within the production css to point to the images in their production location.

Is this a weird thing to want? I'm not hosting this on a dedicated server, just throwing it up onto github pages
>>
File: 1376919477967.jpg (44KB, 500x332px) Image search: [Google]
1376919477967.jpg
44KB, 500x332px
http://domainincite.com/19667-icann-security-advisor-predicts-hundreds-of-new-gtlds-will-go-dark

So, the people in the know basically said you can't trust new gtlds. I find this quite worrying.
>>
>>57269953
I want a jerb doing front end js. I know angular and react/redux pretty well. I've used express with node but don't really know what's going on in the node world too much. Same with rails, I've used it as a backend for pet projects but felt like I was just memorizing how to config other peoples packages and not programming so I abandoned it.

I'm actually a master at making wordpress and drupal themes. I really know css well and can do some design. I know enough php to work with the wordpress api but desu never really stepped into that world and don't especially want to.
>>
>>57270239
look into image loader config I guess?

this is my beef with webpack. why does fucking everything need to go through webpack loaders? you can't just have a fucking font or image in a file it first had to be parsed and fucked with for no fucking reason? its like as soon as someone has a half decent idea they then apply it to everything until it takes you 2 weeks just to set up a fucking static html file and then it burns to the ground.

fuck facebook and fuck webpack and fuck react i hope all you faggots sucking their dicks get aids. react isn't even good compared to modern virtual dom implementations. stop using it.
>>
>>57270273
Send all domain resellers to jail!

Fucking trash assholes buying domains like real estate and selling for 10x to 1000x what they paid.
>>
>>57269603
Not sure. My names are usually unique.

I just yesterday bought a similar domain to some ausfag and I'm going to btfo his stats in the first month.

My domain is his + an 's' at the end.
>>
>>57270492
That article is about domain extensions. But I know what you mean. I recently wanted to buy a .com domain with two long words. I offered 250 dollars. And then the guy asked for 25k. It was ridiculous.

I just bought a different name instead, because I had an entire list of alternatives ready.
>>
>>57270521
You mean you'll lose to his, or that you're going to take a lot of his traffic? Are you going to hold the traffic ransom, then sell your domain to him?

I don't know if there's a lot to SEO here.. I haven't looked too well into it, I'm new, but I thought most of SEO was basically "don't try to fool us, and make it easy to read by a bot".
>>
>>57269759
Javascript is part of frontend with html and css so basically every webdev job will list it as requirement but they almost always mean frontend.
Thread posts: 325
Thread images: 29


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