[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/wdg/ - Web Development General
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 255
Thread images: 26
File: 1449507899971.png (747 KB, 824x553) Image search: [Google]
1449507899971.png
747 KB, 824x553
>>52923206 -> old thread

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

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

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

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

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

>vps hosting in most western locations
http://lowendbox.com
>>
File: 1454316600883.jpg (48 KB, 640x480) Image search: [Google]
1454316600883.jpg
48 KB, 640x480
first for golang
>>
>>52935369
Golang looks like gonads if you don't look carefully.

C# a superior
>>
What projects are you guys working on?
>>
>>52935833
Making my own travel site. Setting up my own email.

I do wonder if new gtlds will disappear again soon. Or if I can safely use them.
>>
If I'm quite new to webdev, functional programming is worth learning this soon?
>>
Teaching myself RoR + some type of javascript bullshit for front end with the goal of being a self-taught junior web dev. What should I be able to do / what should my portfolio show in order to be a reasonable candidate for a junior full stack dev? Currently making a fake restaurant website: customer view and admin view with a CRUD interface for the menu database. Any suggestions?
>>
Soon I will apply for internship and I was flicking through some job offers and they note down that knowing tools like Maven or Tomcat is necessary.

I've always been using them during my projects so should I include in resume that I can use them or it is a meme?
>>
>>52935833
Writing handler + tests for a binary websocket server for an imageboard in Go.
>>
I have a security question. Is it possible to view the content of a php session clientside? Is there any way for the client to manipulate the php session and change the values stored in it?
>>
>>52938580
> I have a security question. Is it possible to view the content of a php session clientside?

Only if you pass the content of a session clientside.

> Is there any way for the client to manipulate the php session and change the values stored in it?

Only if you store anything passed from the frontend in the session.
>>
>>52936088

JS is functional so it couldn't hurt. You can get away with using it in a more traditional way but in my experience, as projects get more complex you start doing functional stuff because it makes more sense.
>>
>>52935833

Currently writing a CMS from scratch, just for shits and giggles.
>>
>>52936088

To clarify >>52938814 - 'traditional' was an unclear term to use, and I meant shit like imperative/procedural/OO. JS has wrappers to make it behave like those but it's worth putting the effort in to learn and play to its strengths.
>>
>>52938910
Thanks for the answer.

I was enjoying OO and functional seemed like a pain in the ass, maybe just because I haven't get to know it.
>>
>>52935254
this thread is made almost daily, because not a lot of people care about keeping it afloat...

>>52935369
this
>>
I don't come here much, but I need to know how to customize my html5 menus on WP. I already know how to sticky them, but using the ftp editor is confusing as fuck.

Trying to get it to stay at the top of the page and also customize it...

Send Help.
>>
>>52935369
Agreed.
>>
>>52935833
ur mom
>>
Bootcamps good?

>teaching myself for the last 6 months

>went to a meetup last night

>starkly confronted by my noobness

>someone said my code was spaghetti and I need to learn MVC

>he used to work at a bootcamp and said good things about it

I could get a BS in CS (already have an unrelated STEM BS), take a bootcamp, or keep learning on my own.

I might be one of those people who is learning this stuff for a job upgrade rather than as a passion, but I actually enjoy it and am dedicated to learning, so does it matter?

Are people like me overrunning this field like cockroaches?
>>
>>52940026
I don't know about bootcamps but I am at uni CS in Poland(Eastern Europe) and there are many cockroaches. I was noob in the beginning but was programming all the time and learnt a lot while some learnt nothing. My friends who study in the west say it is the same situation there
>>
Should I have a footer on my site? Does the standard copyright text even protect you from anything?
>>
>>52939849
ANGRY WHITE BOY DETECTED

back to /pol/ with your cancer, dragon dildos and java script belong to us you cia nigger.
>>
bumping...

>>52936290
make a CRUD webapp?
>>
Why do I never see people use Switch statements in JS?
>>
>>52942010
https://javascriptweblog.wordpress.com/2010/03/08/caseagainstswitch/
switch(){} considered harmful
>>
>>52942315
http://meyerweb.com/eric/comment/chech.html
"considered harmful" essays considered harmful
>>
>>52942315
Adding to >>52942852, that post is retarded, he's basically saying "here's a shitty implementation of something that just so happens to use switch, therefore switch is bad."

Sometimes you need to do different things based on what you're testing and having tons of if/else if's just begins to look dumb so you use a switch to condense it down. Switch statements are useful when you, for example, have a variable that denotes state as a number and need to take different steps based on the state. Sure, you can have an object with the states as keys and functions representing the actions necessary as values but that just looks retarded.
>>
>>52938580
>Is it possible to view the content of a php session clientside? Is there any way for the client to manipulate the php session and change the values stored in it?
Only if your session data storage is vulnerable. Another danger is session hijacking. Both are very improbable with default session handlers.
>>
>>52942315
Reminds me case where somebody asked same about do{}while() loops and somebody answered something similar to how they are considered harmful. No they are not. There are cases where theird usage is suitable and they should be used then. But there are very few situations where there is good reason to use them over if or any other alternative.
>>
>>52940547
The copyright notice does nothing legally, but it might scare people off from copying your shit.
>>
Why did no-one tell me about Webstorm?
Why have I been working in sublime?
>>
>>52943506
What's wrong with Sublime?
>>
>>52939648
Stop using WP.

It's made for people who want to set up a quick and easy blog without much effort, not for web designers.

If you want to get into web development quickly just fucking use bootstrap or some shit, there's really no reason to use bootstrap when AWS makes deploying websites so fucking easy.
>>
>>52939849

It's getting hot in here!
>>
>>52943635
i was following you until this comment made almost no sense toward the end there
>>
>>52943604
It's like notepad compared to Webstorm.
I work alot more effective in WS compared to sublime.
>>
>>52943865
I mean, yeah, use whatever will help you develop projects, but if you were just using Sublime default, then that's where you went wrong.

You can get a lot of plugins, like Emmet (I use often). Maybe its just because I've used sublime for years, but a full blown IDE for what I do doesn't seem completely necessary
>>
Should ads be loaded through javascript, to help with caching?

Or should you disable caching and load the ads through php to avoid adblocker?
>>
>>52943730
Ya reading it back I made some mistakes and it really doesn't make any sense..

I meant to say you can easily use bootstrap and AWS to design and deploy a decent looking static website incredibly quickly. There's no reason to use WP these day's unless you have no interest in web development.

Not to say that bootstrap is great, just that it's not much harder to use to make a website than WP but allows more flexibility and AWS lets you deploy it for free.
>>
>>52944060
no matter what you do, it'll get blocked eventually.
>>
>>52944060
>avoiding adblocker
shigidydigidy
>>
>>52944060
What do you mean by loading through javascript or loading through PHP?
>>
>>52944180
Why would it?

Just load a random affiliate ad in a dynamically named div and voila.
>>
>>52944201
>not building a website that is entirely ads, no single word displayed isn't an ad
ads ads ads
give me
aids aids aids
>>
>>52944192
>cache the site
>php stops working and only the static html/css shows at every request
>javascript gets loaded as a whole, so you can still randomize things with javascript
>then you can still use adsense and everything

Or
>disable javascript and caching
>let php randomize and load affiliate ads on the backend after which they are shown without loading anything offsite
I was just wondering what people prefer.

Although I have to admit it's pretty pointless to show ads to people who know how to block them. I mean, anyone who knows how to computer doesn't click ads anyway.
>>
>>52935833
A signup system for Australians to go clubbing in the USA on package trips that interacts with a database.
>>
>>52943635
There's absolutely nothing wrong with WordPress.

>It's made for people who want to set up a quick and easy blog without much effort
And that's the kind of BS you hear from people who don't know how to use it correctly.
>>
>>52945459
There's plenty wrong with WordPress, I lose respect for anyone who can't implement a post/user system and still calls themselves a programmer.

Otherwise, sure, I absolutely don't mind teenage girls WordPress it to fish comments about their delicious bodies, I guess if they need the self esteem?
>>
>>52946788
I wrote and secured CRUD operations for my blog is a short period of time, it's not hard. But even I can't deny that WP makes things a lot easier. There are tons of pre-defined functionalities that makes it great for that kind of thing. A common complaint is that it's slow and bloated but it doesn't have to be - i.e if you implement it correctly. I'd use WP right now, but only for the blog section.
>>
>>52947057
It's slow and (feels) bloated because of PHP, even the fastest interpreter is still at least 10 times slower than plenty of other languages that are just as commonly used for backends.

"Easy" for programmers should be a dead give away that they're probably sacrificing something somewhere, either features or speed. Programmers who flock to "easy" are 9/10 times really shit.
>>
>>52947118
There are 3 main reasons why I like WP
1. Routing - it handles all of that for you, automatically.
2. Analytics - no reall need for third party plugins since it records everything
3. Some general tools - like categorizing your content, showing related content, searching, etc.

>It's slow and (feels) bloated because of PHP
I'd agree with you if you're referencing large-scale implementations. Yes, PHP is slower but it's hardly noticeable. PHP7 is a lot faster now, although I haven't gotten around to using it as yet.

>Programmers who flock to "easy" are 9/10 times really shit
Not disagreeing with you there, but sometimes convenience isn't a bad thing.
>>
what grid framework do you guys use?
>>
>>52947547
PureCSS. Working on my own though, just for fun.
>>
File: asdsadsadre.png (133 KB, 1338x913) Image search: [Google]
asdsadsadre.png
133 KB, 1338x913
I don't understand how by returning the collection in the function update, the collection object gets updated.
>>
Are there any sublime text plugins that allow me to preview a linked image when I hover over the link?
>>
>>52947594
collection is a global variable, it's accessible to everything. this is an anti-pattern and you should try everything in your power to not create global variables or write code like this.
>>
>>52947956
what is wrong with global variables. Whats the point in passing stuff around if there is only ever 1 instance of it
>>
>>52947956
I know that much. But I don't understand the logic behind returning collection. How does JS know that you're just updating the global object and not just returning whatever values we deleted/updated/created.

Like, why is it not showing just the new values, instead of the whole object.

--while typing this I realized why. I'm returning the whole collection object after messing with it in the if statement before it. It's actually kind of simple when I thought about it, guess I was just overthinking it.
>>
>>52948077
They're dangerous, mostly.
There's absolutely, positively nothing WRONG about using global or static variables and classes.
But every CS kiddo in the universe has been taught never ever to use them because they always fucking forget how they work, and then they're irreparably ruined some data.
>>
>>52948077
If X plugin has a global variable named something and you create a variable with the same name it can fuck you up, specially if you don't find out about it until later and can't find why the code isn't working or is messing up
>>
>>52948419
I mean I agree that there's a dogmatic opposition to things that look like globals (amusingly things like dynamic binds get shit on while things like singletons (something much closer to a global) are considered acceptable) I think that's a poor characterization. It's more than simply "they forget how globals work". When you make something a global value you're basically saying it's never ever going to be a parameter, that there is only going to ever be one instance any process that references it in the same address space, and your intuitions about that are usually wrong. It's actually fairly hard to think of something where there's never going to be another thing of the same kind operating in tandem. Even on the level of operating systems, virtualization is a thing, so anything from that level down is going to be sharing at least _something_ with another self-same process. It may be dogma, but it's really pretty rarely a bad design decision to make something a parameter of some sort (not necessarily an argument, but that usually makes the most sense) than an absolute shared refrence
>>
>>52947594
>I don't understand how by returning the collection in the function update, the collection object gets updated.
You could remove the
return collection;
line and it would still update the collection object. Opinions differ but returning a value after an update operation can be nice because you often want to operate on the thing you just updated. If you update and then get independently there's occasionally a risk of a race condition (there isn't in this example, but as a program grows it's something you need to consider) so taking a "snapshot" as the post-update instant can be useful sometimes.
>>
>put partially randomized affiliate link in php redirect script
>all links on the website go through the same script, so blocking it is impossible
When were you when adblocker was kill?
>>
>>52949898
The link to the script is partially randomized. Not the link it redirects to.
>>
Are there people that really only work on CSS/HTML? What they hell is there job title?
>>
>>52950262

Yeah but they have to literally know every aspect of the their field and lead in its development. Look at Harry Roberts, he's a legend in front end development but even he acknowledges that almost no companies have the resources to hire just a front end developer.
>>
>>52950300
>front end developer
That's a pretty common listing though. But that usually means doing CSS/JS/Html. You just mean markup?

I honestly don't know how that works either. If the service I need doesn't work do I just sit on my hands and wait for the big boys on the backend fix it?
>>
>>52947547
Foundation . Looking at Bulma because it uses flexbox.
>>
>>52950262
>Are there people that really only work on CSS/HTML?
Yes, although in my experience they aren't paid particularly well.

>What they hell is there job title?
Web Designer on a bad day, Frontend Web Developer on a good one
>>
File: TGWrGB3.jpg (180 KB, 1600x1200) Image search: [Google]
TGWrGB3.jpg
180 KB, 1600x1200
how do I go farther?

I feel like I'm scratching the surface. How did you guys go from making a website to making a CMS or something?
>>
>>52950806
apt-get install git
apt-get install gud
>>
>>52947547
bootstrap
>>
>>52950885
DUDE

not helping, AT ALL
>>
>>52950806
im teaching myself web dev from scratch but the way i'm doing it is to build incrementally. CMS is hard. start off by building something simpler, like a CRUD interface. then keep building on that until you have a CMS interface. then keep improving it -- maybe instead of using a module for login, you write your own. if you're like me you will undoubtedly hit significant roadblocks along the way. just keep asking questions, keep trying, and if you're truly at a dead-end then stop and think of alternative avenues for solving a particular problem.
>>
Flask or Django ?
>>
>>52952857
Flask if you want something specific.
Django if you alright with their included stuff.

I choose flask desu.
>>
>>52952882
>I choose flask desu.
Good, thenewboston have some tuts about it
>>
Is it time to abandon GitHub for GitLab?
>>
>>52953039
I use atlassian. Unlimited free private repos
>>
Could you recommend me a open sorce example of a Meteor app that is not very basic nor very big?

I think I've got most of it down, for like a single-page app. But I can't seem to get how it would work on a slightly bigger app. The open sources I've found are stupidly simple or gigantic.
>>
I'm writing a tool that generates HTML. My client's tool, a webapp, fetches this HTML (ajax) and just inserts it straight into the page. So far, so good.

Problem: I need to run some JS after my markup is added. My client's tool doesn't provide any kind of hook or event for this, and I can't modify it. Just having code in a <script> tag doesn't work; it doesn't actually run when it's added this way.

Help? How can I be sure JS will be run when it's being plonked dynamically into the page?
>>
>>52953039
Not until GiLab gets a nice API and services like Github. Stuff like Travis, Coveralls, David, etc. is very useful. Of course you can have some scripts to do that, but that would be not as handy.
>>
>>52953902
>My client's tool
What is it.
>>
>>52948077

> be a code base
> have dozens of devs add to you over time then leave the project
> have undocumented or poorly documented globals all over the place
> expect next batch of devs not to encounter a world of hurt

sheeeeeeeeeeyiggydiggy
>>
>>52953993
It's just a piece of HTML+CSS+JS, running in the end user's browser.

Its function is to fetch the HTML I generate and insert that into its own DOM.

It's very simple, and if I could just make a small modification to it, it this wouldn't be an issue. But I can't, so I'm stuck trying to find a way to trigger my own code solely as a result of my markup being inserted.
>>
File: tears.gif (36 KB, 276x179) Image search: [Google]
tears.gif
36 KB, 276x179
>never used apple before
>get a job as a web developer
>we have to use macbook pros hooked up to 4k monitors
>forced to replace my android phone with apple
>forced to wear an apple watch
>forced to wear thick-rimmed glasses
>forced to grow a beard and wear checkered shirts
>got new macbooks on Friday
>forced to enjoy the experience of unboxing them

What do I do? I'm afraid I'm going to have to start using a standing desk soon.
>>
>>52954166
Go the full experience and pay for some overrated text editor.
>>
>>52954166
But smoothly adjustable standing desks are the best, family. I'd buy one for home if I wasn't of hebrew descent.
>>
>>52954166
Are checkered shirts a hipster retro thing now? Anyone over 40 here has worn them for the past 2 millennia.
>>
>>52954166
son, how much you getting paid? i think you'll learn to cope
>>
>>52954166

get a qt asian girlfriend and enjoy life
>>
>>52953902
>>52954068
Have you tried some hack like this:
><img src="empty.gif" 0nload="alert('test');">

I don't know how to get code by the 4chan spam system...

http://stackoverflow.com/questions/2592092/executing-script-elements-inserted-with-innerhtml
>>
>>52953902 (Me)
>>52954068 (Me)
>>52953993

Solved it! Solution: Have an <img> element with display:none as inline style, a tiny base64 data: URI as src, and the payload in onload.

>>52954408
Ahaha crap you solved it literally as I was typing this, yes basically that.
>>
>>52954408
oops, forgot this link

https://24ways.org/2005/have-your-dom-and-script-it-too
>>
>>52954166
how the fuck are you "forced to wear thick-rimmed glasses" and "grow a beard and wear checkered shirts"?
who can force those things on you? the rest i kinda get, i guess, with peer pressure and such, but those?
>>
>>52950806
This might be helpful.
https://www.youtube.com/watch?v=pB0WvcxTbCA

Also there's shitloads of links in the OP

If you want to really get gud, then I'd recommend watching various lectures and conference talks on Youtube. JSConf is like TED talks for Javascript, Crockford on Javascript is a great lecture series which is worth watching. If you use another, lesser, language then there's probably something similar for your language.
>>
How do I parse xml data from a 3rd party domain onto my own website?
>>
>>52955878
Find an xml parser for whatever language you're using.
>>
Anyone knows a website that analyzes the internet to see what are the most trending JS and how effeciently the website use them?

If not I sort of want to make such a site
>>
>>52956130
How do you measure how 'effectively' a website uses javascript libraries and frameworks?
>>
>>52956180
Well, load times, which kind of developers use it, do they optimize their website? Are they new? Are they veterans and easily picking it up? Other stuff, all things I can find out if I manually look at the code or close as I can.
I cant check HOW MANY LINE OF CODES ARE CALLING THIS LIBRARY (technically I can but its stupid) but I believe I can get some other interesting data
>>
>>52956242
What if a site is using minified code, all packaged up by webpack or browserify into a single js file. Which is what they should be doing tbqhfam. I don't see how you'd be able to pick that apart to find out what was actually in it.
>>
>>52956485
I'll skip over it? Grade it as F for fuck this website?
I think minification leaves comments though so if it really comes to it I can inspect those or keywords.
Also tbqhfam its not the way you should be doing things because cache doesnt work correctly if you package all your libraries in to one file.
>>
>>52955923
jquery doesn't let me parse data from external domains....
>>
>>52956543
>developers do the right thing and optimize their site as much as possible
>get their sites graded F by some faggot

>I think minification leaves comments though so if it really comes to it I can inspect those or keywords.
Minification removes all unnecessary characters to reduce filesize as much as possible, its supposed to result in a file that is virtually unreadable by humans. You have to add comments purposefully after mininfication.

>Also tbqhfam its not the way you should be doing things because cache doesnt work correctly if you package all your libraries in to one file.
Caches are gay regardless of how many files you have, hopefully serviceworker will make them less gay.

If you're worried about the browser serving an old cached version of the file after you update it, you can easily rename the file every time you update it so the browser will always have the latest version. And its easier to rename one packaged file at the end of your build process than trying to rename and re-link 20 separate files.
>>
Are using CSS animations to enlarge images on hover going over the top? I'm trying to appeal to normie women age 15-30.
>>
>>52956642
And you shouldn't be. Do it server-side.
>>
>>52956785
No. Well depends how ugly you make them, but in general it's not over the top. As long as it provides functionality.
>>
>>52956752
Wait a second, I did offer to use keywords/chunks to identify the scripts.
So whats the issue?
What are you being so upset about?

>Minification removes all unnessary characters
http://code.jquery.com/jquery-1.12.0.min.js here is a jquery minified. Are you sure about your statement?
>>
>>52957254
>http://code.jquery.com/jquery-1.12.0.min.js here is a jquery minified. Are you sure about your statement?
jQ and a lot of other libraries leave things like version info as a comment at the top of minified files in case you find one in the wild with the version stripped from its name. None of the comments that were actually in the code are still there.
>>
>>52957254
>http://code.jquery.com/jquery-1.12.0.min.js here is a jquery minified. Are you sure about your statement?
You're completely uneducated about the topic my man.
>>
>>52957325
But thats what I need.
I dont need comments from code. I need version info to identity what library it is.
>>52957382
Would you care to elaborate?
>>
>>52957497
Then that should work in a lot of cases. Some developers will combine and re-minify their vendor libs and their own code, which makes sense when you have a lot of vendor code, so you'd lose the comments there (second pass minification would read the version comments as code comments, may or may not put a new version comment at the top but it almost certainly won't include library info.

A more reliable way would be to load up pages and look for the standard library globals. So if "$" is in scope (and has a few other properties to distinguish it from something like zepto) then you know that page has jQ. If they're using require then you can pry open its module registry and pull info from there.
>>
File: dadsadre.png (156 KB, 1805x922) Image search: [Google]
dadsadre.png
156 KB, 1805x922
What am I doing wrong here?

var contacts = [
{
"firstName": "Akira",
"lastName": "Laine",
"number": "0543236543",
"likes": ["Pizza", "Coding", "Brownie Points"]
},
{
"firstName": "Harry",
"lastName": "Potter",
"number": "0994372684",
"likes": ["Hogwarts", "Magic", "Hagrid"]
}
];


function lookUp(firstName, prop){
for(var i = 0; i < contacts.length; i++) {
if(contacts[i][firstName] == firstName && contacts[i].hasOwnProperty(prop)) {
return contacts[i][prop];
} else if(contacts[i][firstName] !== firstName) {
return "No such contact";
} else if(contacts[i].hasOwnProperty(prop) === false) {
return "No such property";
}
}
}
lookUp("Akira", "likes");

>>
>>52957770
Inconsistent indentation.
>>
>>52957770
if(contacts[i][firstName] == firstName && contacts[i].hasOwnProperty(prop)) {

should be
if(contacts[i]["firstName"] == firstName && contacts[i].hasOwnProperty(prop)) {


In general subscript notation is like:
obj[<EXPR>]
meaning what goes between the square braces is evaluated, since `firstName` is already a variable in scope it's look at the ith contact and checking for "Kristian" or whatever got passed in as the `firstName` argument.
>>
>>52957750
I feel like this is too library specific though.
What if some schmuck decides to make a library and make $ his global var just like jQ.

I'd have to implement a javascript engine on server side too which is kind of annoying.

But hey, thanks for the tip. Ill try to do it properly.
>>
>>52957934
That's possible, in fact it's exactly what zepto is which is what I mentioned earlier. You'll need to know a little about each library you're itnerested in.

For example, you can use
$.fn.jquery
to get a jquery version number and it's pretty unlikely anyone else is going to make a library that both picks "$" as its global and puts its version number there unless it's intentionally mimicking jQ.

As for a javascript engine, I'd suggest looking at phantomjs, a web browsers that implements the full DOM spec but has no render engine. It's a good way of programmatically interacting with web pages in as browser-like of an environment as you can get without busting out something heavy duty like selenium.
>>
>>52957934
>I'd have to implement a javascript engine on server side too which is kind of annoying.

Its not that hard, you just run Selenium to emulate a web browser, which has a javascript engine already in it. You can do it quite easily in Python

from pyvirtualdisplay import Display
from selenium import webdriver

display = Display(visible=0, size=(1200,800))
display.start()
browser = webdriver.Firefox()
browser.set_window_size(1200,800)
browser.get("http://boards.4chan.org/g/thread/52935254/wdg-web-development-general#p52957934")
browser.save_screenshot("screenshot.png")
browser.quit()
display.stop()

Use pip to install the modules. Run it with python3 (haven't tried 2)

That should take a screenshot of this thread with your post highlighted.

Selenium is specifically designed for automated browser test running, you can interact with the browser and the DOM programatically, and you can run javascript using the browser's javascript engine on your server.

Alternatively you could possibly just use node.js to accomplish that, since node.js is already a javascript engine on the server side.
>>
>>52959002
>>52958031

I already went after phantomjs and it was exactly what I need. It offered even load speed timing which is something I wanted. I guess I have to research phantomjs/selenium pro/cons
>>
Which web framework should I learn first? I'll mostly be doing front end web design.
>>
Math.floor(Math.random() * (max - min + 1)) + min
>>
>>52960377
Doesn't really matter. Angular or React are the two big ones.
>>
Working on an assignment for a class atm.
I decided to use XHTML Strict for my validation. but I keep getting the error
>there is no attribute "required"

It's required="required" on a textbox in a form

Possible reasons it's doing this?
>>
>>52961971
Also, fo0r further clarification, if I do anything to that single error, the next textbox gets the same error.
So, I figure it's got to be one of the more common errors...

Here's that part of my code:
<fieldset id="contactInfo">
<legend>Contact Info</legend>
*Name: <input type="text" name="contactName" class="txtBox txtInput" maxlength="255" required="required" /><br />
*Email: <input type="text" name="FromAddress" class="txtBox txtInput" maxlength="255" required="required" /><br />
*Phone Number:<input type="text" name="contactPhone" class="txtBox txtInput" maxlength="10" required="required" /><br />
*Street Address: <input type="text" name="streetAddress" class="txtBox txtInput" maxlength="255" required="required" /><br />
*City: <input type="text" name="city" class="txtBox txtInput" maxlength="255" required="required" /><br />
*State: <input type="text" name="state" class="tinyTxtBox txtInput" maxlength="2" required="required" /><br />
*Zipcode: <input type="text" name="zipCode" class="shortTxtBox txtInput" maxlength="5" required="required" /><br />
*Country: <input type="text" name="country" class="txtBox txtInput" maxlength="255" required="required" />
</fieldset>
>>
>>52961999
labels?
>>
>>52962086
I'll try that first.

Hopefully it's supported...
>>
>>52961999
required was an html5 add so it wouldn't be considered valid XHTML (the parallel XHTML spec has not reached feature parity with HTML5 yet)
>>
Wordpress makes it quite hard to get variables from the url.
>>
Best website to test loading speed?
>>
>>52962196
oh....

That sucks.

I suppose I could just throw in JavaScript validation, then...
>>
>>52962248
Can't use $_GET ? Anyway i remember WP having "official" way of getting variables but like everything else in WP it was retarded.
>>
>>52962293
Actually, fuck it. he didn't say it HAS to be required, so whatever.

I'm just OCD about it.

That's why I don't like using validation... so many technicalities... I usually just echo html from PHP on my personal projects, so it's a nightmare to even check valid code. I just see if it looks right in different browsers, usually.
>>
>>52962327
Come to think of it... maybe I don't gotta worry, either.

Just checked this:
https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.facebook.com%2F
>>
File: horrifying.jpg (56 KB, 225x220) Image search: [Google]
horrifying.jpg
56 KB, 225x220
>>52961971
>I decided to use XHTML Strict for my validation
Fucking hell why would you do this? Its not 2003 anymore friend.

Also "required" is an html5 attribute. You should be validating in html5 anyway. Who the fuck uses xhtml?
>>
>>52962475
This class uses XHTML.

idk.
He said Transitional is easier, but strict will get a better grade, so I did strict.

Anyway, while we're kinda (it's also part of my class) on the subject, what are some actual uses of XML? Like, othyer than data storage without a DB (which is irrelevant to my person projects), can I... like, make language templates for my own sites or something?

Or... is there a way to actually use it to make my own tagging scheme? I still can't understand what XML is for unless I want to store data in XML files...

From what I've seen, it's almost like:
>HTML is for display
>JavaScript is for client-side scripting and AJAX
>PHP is for server-side scripting and accessing databases
>MySQL is for storing data
>XML is for XML
I literally cannot figure out one purpose where XML is actually useful for... say, writing a blogging site...

Would really appreciate input on this. Thanks
>>
>>52962683
>what are some actual uses of XML
Outdated and obscure APIs will send and recieve data using XML because they're gay and stupid.

>othyer than data storage without a DB
What? No. Its just a data interchange format. There are also some specific dialects of XML like SOAP.
https://en.wikipedia.org/wiki/List_of_web_service_protocols

>XML is for XML
XML is just what we had before JSON, and JSON is a way better interchange format so everyone uses that instead.
>>
I've read that Disqus has ads, is that true?
I put it on my site but I can't see any, will they appear later on?
>>
What is /g/'s favourite CSS framework? Been using Bootstrap and some Skeleton mostly, now I'm toying a bit with Pure.
>>
>>52962920
Compass. What's the point of bootstrap? I liked the columns stuff but flex is so much better.
>>
>>52962936
You have to wait for IE to drop off the support spectrum before you can use nice things like flex.
>>
>>52962888
Ah ok.

Alright.

So, what WOULD be a good recommendation for a language template on an actual site? Store all messages in a PHP file for each language? Or access them via database?
>>
>>52962920
p u r e
u
r
e
Skeleton has caught my eye though.

>>52962936
>What's the point of bootstrap
To pump out designs in seconds.
>>
>>52962936
it is good for quick-and-dirty sites and webapps that don't look like ass and are usable for normies. I work as webdev bost mostly work on intranet sites, in a big telecom in my country.
>>
File: pooh.png (102 KB, 403x293) Image search: [Google]
pooh.png
102 KB, 403x293
>>52962987
>language template
>Store all messages in a PHP file for each language? Or access them via database?

I don't understand what you're asking.
>>
Should a complete linux noob admin their own server? I'm getting close to the point where I want to release my website. I've been reading tutorials on how to best setup a nodejs web app. I have no idea what I am doing but copying and pasting commands. I think this is going to end up badly. Is there some cheap service for hosting retards like me? I'm using nodejs and mongodb. Part of my website revolves around a "cron" job that scrapes data and update the database. I managed to get that setup fine but I doubt it is secure.
>>
>>52963090
Basically, I'd like a centralized location for every website message for each language the site can be displayed in

So, if it's the English version, the title will be similar to "Welcome to My Site", but the Japanese version would be "私のサイトへようこそ!" and German would be "Willkommen auf Meine Seite!"

But each of those is somehow stored separately.
Same with langs, About page, instructions, error messages, etc.

Should those be stored as variables in PHP files and included on a user-by-user basis, or should they be queried from a table in MySQL?
>>
>>52962997
>Pure

my nigga.

Haven't looked into Skeleton, though
>>
>>52963264
You can try out Digital Ocean. I use them, they're fairly cheap, and they use a bunch of different distros.

I would recommend understanding the commands you are pasting, just because it will make your life a lot better.
>>
>>52963270
Depends on that your framework works in respect to i18n. Using config files usually works.
>>
>>52963270
php files is pretty ez tbqh familam
>>
>>52963270
In applications architecture you've got three basic concepts. Model, View and Controller, forming the MVC design pattern that is very popular and useful.

Model stores information, its basically a database
View displays stuff
Controller defines behaviour and links the model and the view together.

Storing information or data in a php file is not what php is for, php is basically a glorified html templating language. Storing data is what databases are for, hence the name. php should just be retrieving the information that you need at any given time.

Use a php variable to decide which data to query the database for. So you set a language variable, store it in your session or something, php looks at the variable and decides which greeting (and presumably page content) to retrieve from the database and send to the view to be displayed.
>>
>>52963391
I'll look into this as a possibility, then.

>>52963433
and if the above won't work, I'll just stick with this then. Thanks.
>>
>>52963476
>>52963486
Hmmmm... alright, maybe I'll consider the database approach, instead, then.

Should the database be each language as a column and every message is a record, then? So, max columns might over time be like 200 ish?

Or should messages be the columns..? It seems a bit ... wide... though

For ease of access, languages are columns, then?
>>
What do you guys put on a personal home page? (For a developer.)

Looking for ideas, something that can be included on a resume or cover letter...
>>
>>52963596
links to g.e-hentai, your favorite celeb nude as 100% 100% background, and a JavaScript setup that causes Rick Astley to play on loop and hijack the user's mouse. Also, their webcam, and it should pretend to be recording them
>>
>>52935508
monads gonads
>>
File: Screenshot_43.jpg (25 KB, 417x157) Image search: [Google]
Screenshot_43.jpg
25 KB, 417x157
>>52963532
No.

The messages should be rows, so you can query the right message based on where you want it to appear, and which language it is.

So for the title of your site, you'd have a database with a single table called 'messages', and a query that says something like:

SELECT content FROM messages WHERE language='english' AND type='titlegreeting' LIMIT 1


The values for language and type would be inserted by php before calling the query, so you'd get different messages for different places in your website by changing 'type'
>>
> wanted: PHP Developer
> Required experience
PHP 5, HTML5, CSS and JavaScript/jQuery, Drupal, Wordpress and Magento, MVC web development: 6 years

That's not a PHP dev.
>>
>>52963873
But doesn't having NEITHER language NOR message as a unique column or row make modifying the database more difficult?

Like, someone could accidentally create a file capable of adding a second ENGLISH TITLEGREETING, rather than modifying the one already there?

And if I queried for like 50 separate messages at once, that'd be extremely more complex than

SELECT titleGreeting, aboutPageMain, aboutPageFooter, navigatorHome, navigatorProfile, navigatorBlogs[...], JSPageExitError, JSPageExitConfirm, jaxLoadingMessage
FROM langMessages
WHERE language="en-us"


Wouldn't requiring a ton of records for each language also require a TON of queries?
>>
File: 1380431609544.jpg (13 KB, 375x360) Image search: [Google]
1380431609544.jpg
13 KB, 375x360
>>52963904
>reading job descriptions
>taking them seriously

An IT manager takes 10 minutes to reel off a fantasy wishlist of every random skill that the absolute ideal candidate would have in a perfect ideal world. The HR drone writes "required" in front of each item, and shits out a job description.

Apply anyway, fill your resume with buzzwords to get past the non-technical recruiters, and then actually talk to someone who knows what the fuck the actual job requires.
>>
>>52964058
just use the standard translation method of loading an translation file, witch read something like this:
$L['welcome_message'] = 'ching chong';
$L['generic_insult'] = 'bing bing';
...

then whenever you need to display text, instead of just putting text, get it from the language file:
echo "<b>{$L['welcome_message']}</b>";/code]
>>
>>52964058
See, I guess a good way to put it is: how can I ensure that languages are displayed properly on a site... where there could very easily be over 2000 different messages for each language that may need to be simultaneously queried or otherwise acquired in sets of multiple tens?

Everything the user might read needs to be something that is collected from somewhere, NOT hard-coded.

In other other words, how does Facebook have entire complete versions of the site for like 200 languages? What is THAT sort of method?

Prompts, links, titles, AJAX and JS messages, loading screens, header title, instructions on how to do things, tutorial messages, errors, etc.

If the user, for instance, tries to make a post excluding a required field, there should be 200 separate messages, 1 for each language saying the language-equivalent of "You may not submit a post without some kind of content"
and then another entirely separate 200 messages saying "content submitted successfully"
and 200 more for "Welcome to my site"
"Are you sure you want to leave this page"
"Cancel post"
"Image unavailable"
"This site was developed by [Team X] and launched on [blah, blah, blah]."
"logging out"
"This page is currently under maintenance, please come back later"

I mean, that alone is already potentially over 1000 different messages that might need to be searched, AND I might need 12 of tyhem at once.

Idk, maybe that explains what I'm trying to do better.
>>
>>52964097
I like you. Thanks.

I always imagine the HR person just asks the person they are replacing what they know so they just rattle off a huge list of shit.
>>
>>52963904
Actually it is. Pure PHP backend developer is very rare and typical PHP devs are expected to have at least some understanding of frontend.
>>
How do you guys get users?

My site is ready for people to start using it, but I don't know how to market it without seeming spammy as fuck.
>>
>>52964358
into google.
clear your cache/cookies and logout, then look up things that you think your site has,if it's not on the list, fix it.
>>
>>52964236
So, that would be either reading in a text or PHP file, then?

That would be better than trying to query something that needs to store all of this:
>>52964293
?

K. That would also allow me to just send out updated versions with new variables, so my translators will be able to fill them in.
>>
>>52964358
When I launch my site, I plan to start with friends and also privately advertise it on my YouTube channels.

Then, maybe after a little while, buy a bit of AdSpace
>>
>>52964293
This shit gets extra fun with dynamic content- for example how to make it possible for every page in CMS to have translated version. Anyway storing messages and storing in database are both valid approaches. Keep them in files if you have more static content and keep them in database for more dynamic content. Also it normal for strings to have some sort of "domain" or "type"- for example "errors" or module name. Also if you want to use some translating service you want to add import/export functionality.
>>
>>52964425
i straight php file would be the easiest, php chokes when arrays start getting bigger than a few 100k though.
There are some much lighter ways to store and load the data, but they mess the fuck out of your code.
>>
>>52964421
My website is an art website, so the chances of us getting into the first page of google anytime soon is next to zero.

We are the first result when you google our name, though. So that's nice.
>>
>>52964358
I shitpost mine on leader sites where my target would be. You only have to do it once per site.

You have twitter/facebook sharing, right?
>>
>>52964580
There are actually some standard formats for storing translations, like gettext. They have both parsers for all common languages and programs for actual translating.
>>
>>52964621
then you should be making sure all the images on your site have accurate meta data, descriptions and ideally licensing info, so that the google images bot can index them.
>>
>>52964557
Yeah, yeah, that's exactly what I meant. Every single page has a translated version.

However, how dynamic is "dynamic"?
Do you mean, might need a new set of translations a couple times a month? Or changes almost daily?

Because, the actual messages would MOSTLY be 'added' but only infrequently 'modified'.

So, would that be better to use a database or the files, then?
Database, I could release new features sooner, but I'd need to include default messages or something.
Files, I could still release with defaults, but it might take a bit longer to get to each of the translators and then re-upload them all.

Under that kind of circumstances, which do you think might be more appropriate?

>>52964580
>>52964722
I'll look into this. Any preferential sources that I might wanna check out?
>>
>>52936636

include them in your resume.
>>
>>52964621
Lets have a look then lad.
>>
>>52964782
>>52964557
Oh yeah, just reread that. I was actually considering the "domains" thing to an extent.

Like one page that includes the necessary files using the language as a variable. And it might have like langErr_en-us.php
and I'd include like
currLang = "en-us";

require_once("langGreetings_$currLang.php");
require_once("langErr_$currLang.php");
[etc]


So, this would be a perfectly valid way of handling it?

And I can just include new modules as they're created, only uploading the new modules and changing a couple lines in the include file?

if($currPage == "nameOfNewApp")
include_once("messageNewApp_$currLang.php");
>>
Does anyone know what happened to web dev jobs?

In 2007 I pursued another career because they were only like 30-45k.

I looked last year to now in the same area and they are now 100-140k.

Bananas. Why?
>>
>>52965402
high demand maybe ?!?!?! you know basic economics right??
>>
>>52964734
We have all of those things already.

>>52964851
https://www.imagehex.com

>>52964656
Right now we don't. We could probably add it pretty easily though, right?
>>
>>52964782
Does content that needs to be translated come from database? It's dynamic. Is it hardcoded into files? It's static.
Also read the "programming" section in https://en.wikipedia.org/wiki/Gettext#Programming , it has couple of ideas.
>>
>>52965530
Took me 30 seconds to figure out you're not ready for promotions. You still have a few pages on your site that needs work, you have dummy/test comments, dead links, your search doesn't work - sort those out before you get more traffic.
>>
>>52965649
ok will do. thanks
>>
>>52950334
what they usually mean is CSS/HTML/JS and can use a drag and drop WordPress site builder
>>
>>52965662
What dead links?

Our search does work on the search page, but the one in the header needs a bit of work. And by "a bit" I mean "a lot."

The dummy about pages are also stupid. I actually forgot we had those. Whoops.
>>
>>52965905
Ignore the dead links part, but your Contact and Help pages are blank
Your registration form doesn't tell me where I went wrong if I submit it (eg. if my passwords don't match then you should tell me)

Looks good otherwise btw.
>>
>>52965905
>>52965662
Actually, could you give me some advice with search?

We currently have it set up so it auto-suggests tags, and you hit enter to select the tag. However, that presents a problem: You have to hit enter twice to actually submit the search, which feels weird.

Do you see any better way to do it?
>>
>>52966013
>ignoring advice

Do I have to tell you who I am and how much traffic I get so you'll listen to my advice? Are you just a sucker that listens to what sounds easiest?

Jesus.
>>
>>52966129
Uh, in what way am I ignoring advice? I never said that I wasn't going to fix the things you asked for. In fact, I just put issues in our tracker for everything you mentioned.

You also mentioned how our search was broken, so I merely explained why it is and asked for possible ways to fix it.
>>
>>52940026
>take a bootcamp, or keep learning on my own.

do both of these. even if you get a BS in CS you still have to learn on your own a lot. i've heard of people taking bootcamps and getting a shock of what else they have to know.
>>
>>52966277
That wasn't me. I offered advice at the beginning when you asked how to get traffic.

By the way, a website where users submit content is the literal easiest type of website to get traffic to. Not only that, the content writes itself so SEO isn't even needed.

Looking at your website I have no idea what the website is for. Your about page is Latin placeholder. There is no description on the main page. Why did you launch? It's not ready.

I see some mild mention of commissions? If it's a website where people post art to find work then that's cool. It's a really good idea if that's the idea; like I said, no idea.

An idea for down the road. Take the most searched tags and put them as links near the top so people can just click to search without having to type.

Anyways gl;hf
>>
anyone here do lsd or anything and program?
>>
>>52966456
Beer.
>>
File: 00000.jpg (146 KB, 750x1000) Image search: [Google]
00000.jpg
146 KB, 750x1000
>>52966456
a waste of lsd q e d t b h f a m
>>
>>52966513
nothing is a waste
>>
>>52966431
It's a place to share art with the hopes of getting commission work, yes.

I'll go and write an about page right now and post it here. See if it's clear enough.
>>
File: 00002.jpg (126 KB, 759x720) Image search: [Google]
00002.jpg
126 KB, 759x720
>>52966597
alright.

i am happy if it works for you. for me it's better to get naked and outdoors.
>>
File: 00001.jpg (168 KB, 1200x900) Image search: [Google]
00001.jpg
168 KB, 1200x900
>>52966649
well thats obviously the wrong picture
>>
>>52966649
u haven't even done lsd u faggy fag. go get shaggy somewhere else
>>
>>52966633
You need to write the commission system before launching. That is the main selling point.

Unlist yourself from search engines until everything is done. You need to launch feature complete.

You need a login system for artists. Email notification to notify artist if a commission is requested. Cookie-based safesearch for NSFW.

Also a picture description is bad since people can just post "Commission by emailing [email protected]" which completely bypasses you so you won't be able to take a cut.
>>
Once all of
>>52966710
is done in a month or two, come back and I'll make your website explode with traffic.
>>
>>52966710
Most of the backend work for commissions is finished already. Unfortunately my designer has been incredibly busy, so it looks like total shit right now. Pic very much related.

I'll work on that now. I don't really know how to get unlisted from search engines, but I'll try that as well.

If you don't mind me asking, how would you make it explode with traffic?
>>
>>52966851
Your site is poop on mobile. CSS is fucked. Once I open and closd the signin/create acc panel i can't scroll.
>>
>>52966910
What browser and OS are you using?
>>
>>52966851
>how would you make it explode with traffic?
Let's get your site finished first.
>>
>>52966975
Working on it now.

I'm actually streaming that at shthesuper on twitch, if you wanna stop in and ask me further questions or something.
>>
>>52966963
Newest chome on newest Android. Nexus 5
>>
>>52967270
I'll forward it to my designer.
>>
why isn't jquery included in bootstrap if it is required for javascript plugins?
>>
>>52967004
I remember you. I have stuff to do so just post here when you get further along. I'm happy to help when I have the time.
>>
>>52967446
Thanks, man.
>>
Ok, I'm completely new to all of this so slightly daunting.

I was going to use Udacity but now I see all these links.

Is Bento the place to start?

You all might say to me, just start now with whatever but I really don't want to start with something that isn't as effecient/beneficial as something else.
>>
>Volusion charges per extra GB off the free 100GB per month
>$500 bill comes to $5000
>host images on server we spend $150 per month on
>bill drops down to $500.
>>
>>52967843
What's your traffic like?
>>
>>52967768
>You all might say to me, just start now with whatever but I really don't want to start with something that isn't as effecient/beneficial as something else.
You'll never get anywhere with that attitude tbqh, especially when you're not going to invest any monetary resources into the tools available.
>>
No one told me setting up a web server would be this fun.
>>
>>52967960
1.1TB before. Now we're under 100GB
>>
>>52967993
I was asking because I question the type of service you're running that requires that much bandwidth. If you host bit heavy content then you need to run your own server. If not then you're at like 500k to 1 mil pageloads a day which needs a server of its own anyways.

Basically what the hell are you doing besides wasting money?
>>
>>52968048
We have around 150k visitors per day, 50k of those are new.
>>
>>52967843
what do you mean by host images on server?

have you ever though tof moving somewhere cheap to live and having your website as a source of income there?
>>
>>52968785
Volusion is a Shopping Engine. When you make a product, they have an upload product image page. We also payed them to create a layout for us.

All the product images and template images are hosted on the same domain. So our website xyz.com will have a product image xyz.com/v/vspfiles/productimages/productcode-2.jpg. Template images and other files will also be stored under the same domain.

For each GB of data over our max allotted transferred from this domain, we incur a $5.00 fee.

We purchased from another company a server which doesn't charge per GB bandwidth. Then we changed the addresses of the images and other files from src="/..." to src="//newhosting.com/..."
>>
I hate working in an agency and everything about it.

>Start project
>Boss wants me to make complicated web app
>A week in he asks to see it and its nowhere near completion and seems pissed off and gets sidetracked with another idea

wow every week
>>
>>52968814
so if that other server goes down ur kind of fucked then?

>>52968844
take it all in stride
>>
>>52968850
Yeah, but we've had the server for 5 years and it's been extremely reliable, plus we have backups of it locally. If the hosting company was nuked off the face of the earth, we would find another host, upload all the data, transfer the domain, all within less than a day.

It's a small, family owned business with a very generic domain name and we've been struggling lately, so saving even a few thousand per month with the risk of having the entire site not work for 48 hours is worth it.
>>
I'm really doubting if I should get webhosting with directadmin, a vps with debian or a vps with centos and directadmin.

A vps has higher starting expenses than webhosting and I have no idea what I'm doing (yet), but it's more easily upgradeable.
I have experience with directadmin, but not with linux. And if I use Linux I'd prefer debian over centos, because then the commands would resemble those of Ubuntu which I could try on my laptop.

I think the logical thing would be a clean debian vps and try my luck. What do you guys think?
>>
Noob question:
I'm writing a wrapper in JS for a online service API.
What is the common best practice?
- should I check the type of the values and bound of values the user provide directly in the wrapper? like 'limit' parameter must be a number and <=
- or should I let the wrapper send whatever data provided directly to the API and return the API error message?
>>
>>52969822
Disregarding the obvious aspect of speed: When I write an API I expect the people who use it to have read the spec. If you send me the wrong type I may or may not return a useful error. It's not really my problem if you can't be bothered to read, you know? So I'd check in the client.
>>
Is laravel good?
Im writing mainly in plain PHP and want to start using a framework, is laravel ok or should I use something else?
>>
I'm a complete retard so I may need some handholding here.

Trying to make a fake ecommerce site for portfolio purposes(i'm a graphic designer, trying to learn) and I was told Wordpress is best for beginners and in the long-run, most people use it for CMS and to simply add a woocommerce plugin. I can't.

I just want a "shopping cart" to the right of the navigation and a fake add to cart function. Wat do?
>>
Can I use bower to actually *clone* git repos?
Composer does this, it checks out a local git repo that I could use for local development.

bower only gives me the contents of the repo without the actual repo.

I have failed to find proper search terms for this kind of problem, so I'm asking you guys
>>
Symfony > Laravel
>>
>>52971607
So have you installed woocommerce yet?

You should be able to add the shopping cart as a widget to your theme sidebars.
>>
>>52966456
Weed and programming works, but only if there's sufficient caffeine added. Otherwise, depressants suck for programming.

Dunno about lsd. You drop it and go to work instead of a hang out with mates?

>>52968844
Your boss sounds like an "ideas man". BTW, if he uses a mac that dick behaviour is him imitating Steve Jobs.

>>52971144
It's significantly slower than raw php.

>>52971607
Have you looked into PayPals api? You can do most this stuff in plain JavaScript.

>>52972082
Locking shit down to php and accruing tech debt, nice.
>>
File: vS0jcgt.gif (2 MB, 360x360) Image search: [Google]
vS0jcgt.gif
2 MB, 360x360
I think this here fine anon >>52972019 wanted to answer to that there fine anon >>52971144, but being a dimwit that only has brain capacity enough for PHP, failed to do that.

Thankfully, I was around to fix the problem.
>>
>>52972130
>Locking shit down to php and accruing tech debt, nice.
What?
>>
>>52972240
PHP a shit.
>>
>>52972290
That guy was specifically asking about WooCommerce/WordPress.

I just responded to him.
You're just shitposting
>>
>>52972011
Are you restricted to using bower or something? Because I can't see any reason why you're so hopped up on this. Just install git.
>>
>>52972337
I didn't post this >>52972290

Just driving my point. You can do ecommerce in plain JavaScript, the backend then just needs to log transactions. If you use PayPal it'll come as an email.

PayPal have an api for all this, even a shopping cart.
>>
>>52967294
You need a new designer.
>>
>>52972339

git submodules or subtrees are pretty cumbersome for handling dependencies. As I said, I was hoping to find working git repos after running bower install.
Seeing that it doesn't do that (as opposed to composer for instance) is kind of a let down.

I'm not restricted to using bower, I literally just tried it for the first time because it seems to be pretty widely used among frontend JS libraries and I wanted to keep my own repo clean and up to date.


Still, it would be cool to be able to switch a dependency to a branch on my own fork in order to work out a pull request should I ever find an issue with one of my dependencies.
>>
Guys, I am developing a website and I had a brilliant idea to use AJAX to refresh only a portion of content when navigating. I wanted my users to be able to copy the link even though it's AJAX, so I used the History API to push a new state. It works great, but when using browser's back button, only URL is getting changed, not the actual page. What do?
>>
>>52972920
When you push the state, you can also pass data to reconstruct the current state.

When navigating back, you receive that piece of data again, allowing you to make the necessary changes.

You could pass in an object containing information about what the user did to trigger the history change, or even the raw HTML that you are going to replace.

Then you can use that to restore the previous state
>>
File: 1444778085204.jpg (27 KB, 259x383) Image search: [Google]
1444778085204.jpg
27 KB, 259x383
What's the best link building method that won't get you blacklisted on Google?
>>
File: lilfag.jpg (12 KB, 275x183) Image search: [Google]
lilfag.jpg
12 KB, 275x183
>>52935254
So you think you know how to math? Lets see if you can improve the formula to make it more smoother on my equalizer:
<code>
#Expression to determine the frequency range of the bars
l = i**2 + 20
h = (i+1)**2 + 20
</code>
>>
Hey, I'm trying to quickly make a webapp. I need to get a fuckload of data (~50k points) from a csv file and display it on a map. I've already got the web page and the map running, but I kinda hacked the solution and pic related probably isn't the most ideal way to get data on the page.

Can someone point me toward a software that I can use to manage and query this data? I'm guessing its SQL, but I don't do web development so I have no fucking clue. Something easy to use and learn is best even if it ins't powerful.
>>
>>52972130
Slower than raw PHP? Not like raw PHP isn't slow enough.

Which language+framework is actually good and can be picked up in a week?
>>
>>52973231
Anyone?
>>
>>52973131
Thank you, man. Works like a charm.
>>
>>52973675
You should be asking Google.

https://www.youtube.com/user/GoogleWebmasterHelp
>>
File: squinting.jpg (66 KB, 514x282) Image search: [Google]
squinting.jpg
66 KB, 514x282
>>52973254
>So you think you know how to math? Lets see if you can improve the formula to make it more smoother on my equalizer:
>#Expression to determine the frequency range of the bars
>l = i**2 + 20
>h = (i+1)**2 + 20
>>
>>52972482
Why?

He can generally fix bugs once he finds them.
>>
>>52974667
You shouldn't be the one pointing out obvious bugs. It seems like he didn't even test it on mobile
Thread replies: 255
Thread images: 26

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.