[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: 49
File: 1414849017196.jpg (42 KB, 500x428) Image search: [Google]
1414849017196.jpg
42 KB, 500x428
>IRC Channel
#/g/wdg @ irc.rizon.net
Web client: https://www.rizon.net/chat

>Learning materials
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/
>>
old thread >>52432581
>>
I'm working on a site and my local environment is screwing me up. I used local fonts so when users visit the site they don't have access to it, the local on the assets is different, and in general its just fucked.

How can I make a virtual environment on that doens't replicate my machine.
>>
File: awesome.png (5 KB, 202x202) Image search: [Google]
awesome.png
5 KB, 202x202
this is the right board, right?

I'm streaming coding a js "game", come chat with me:

twitch.tv menkodany

I'm looking at the chat sporadically
>>
>>52476478

Theres a site dedicated to live coding

>livecoding.tv
>>
File: 1426891123590.jpg (26 KB, 308x308) Image search: [Google]
1426891123590.jpg
26 KB, 308x308
>>52476534
been there, tried it, and it's shit

thank you


also botnet
>>
At least the retards on livecoding know to show the actual ide
>>
>>52476564
what ide? I'm on codepen rn

I could switch to local if that's your kinda thing
>>
So I posted a couple days ago and was talking about a small transaction project, just for fun. Basically a small web interface where one can see other users, send them "currency" and then have this transaction logged and completed.


I'm having issues displaying the balance on the index page. The pastebin shows the code for the index page.

http://pastebin.com/JyHSWbMX (the echo json_encode is just for debugging i guess)

The way this is set up is I have two tables, users and transactions. Balance is stored in the second column of 'users'. How do I display the current balance of the user here?

Cheers.
>>
How do I create an element in the DOM and add a onFocus or onKeyDown event listener to it?
>>
>>52476786
Forgot an example. Where to go from here?

I have a variable, and I want to assign a function. What do?

var token_input_box = document.createElement("input");
token_input_box.type = "text";
token_input_box.autocomplete = "off";
>>
IRC seems dead, lads.
>>
>>52476786
>>52476891
http://lmgtfy.com/?q=add+event+handlers+javascript
>>
>>52476891
>>52476786
Same guy here, here is how I think it's done, but I'm not sure:

token_input_box.onfocus = function () {
if (arbitrary_condition) {
my_function();
}
};


>>52476972
I did google it. I'm just wondering if it's OK to assign the function directly like this.
I'm a retard at JS.
>>
>only really enjoy web development and making things look nice
>not being able to do normal programming makes me feel like a giant retarded baby
>i've tried to learn but i hate it

anyone else know these inferiority feels?
>>
>>52476891
Use camelCase in Javascript. Input type is implicitly `text` by default, no need to set it.

const tokenField = document.createElement("input")
tokenField.addEventListener("change", function (event) {
console.debug(event)
})
>>
>>52476158
Every time I see that NEET guide I can't help but wonder if you guys always link the wrong one. The one linked is for NEETs yes. But it doesn't focus on web dev. Just employment in general
>>
>>52476158
I haven't learned any javascript or jquery yet, and I was wondering what you found most difficult about it? I have learned HTML and CSS, and I am working on mastering those skills a bit. The biggest challenge that I foresee is one of creating an internet business or a website that needs pages created automatically. I would imagine this is where scripting comes in.

A webpage is far more simplier (as I imagine) than a website like facebook. Facebook needs to create pages automatically for each new user, and it needs to "generate" (more like strageically placing) new content on the user's wall.

So, what are your two cents on using javascript? What uses have you found for it, and what was simpler to create than you imagined?

Btw, I have no experience in scripting whatsoever. What other languages can be used for scripting? python or ruby?
>>
File: 1452528549749.png (16 KB, 512x512) Image search: [Google]
1452528549749.png
16 KB, 512x512
>http://business.tutsplus.com/articles/guys-and-girls-does-your-language-exclude-people--cms-25264
>>
>>52476410
Use a VM! Virtualbox is free and easy to use. Install Ubuntu server on it or something, and make sure its networking is in bridge mode. Enjoy
>>
File: 1446660156762.jpg (1 MB, 5628x3348) Image search: [Google]
1446660156762.jpg
1 MB, 5628x3348
How do I select the Nth row from a table using SQL? The database is MySQL.
>>
>>52479508
Anon, no offence, and I hate telling people to "just google it". But it shows that you didn't try. I just googled your EXACT question:
>How do I select the Nth row from a table using SQL?
And the very first result is this helpful stackoverflow question:
>http://stackoverflow.com/questions/16568/how-to-select-the-nth-row-in-a-sql-database-table
In which the accepted answer neatly summarises things:
>Basically, PostgreSQL and MySQL supports the non-standard:
SELECT...
LIMIT y OFFSET x

and if that wasn't enough, the second answer provides a concrete example of selecting the 21st row:
SELECT * FROM mytable ORDER BY somefield LIMIT 1 OFFSET 20;
>>
Sql alchemy isn't slow, I'm just stupid and ignorant. Deadline is approaching and everything is fucked. I wish I knew how to effectively use sql alchemy. The end.
>>
File: Big-Boobs2_682_1332735a.jpg (36 KB, 682x381) Image search: [Google]
Big-Boobs2_682_1332735a.jpg
36 KB, 682x381
can anyone advise me advanced mysql lessons, prefer on youtube
>>
I'm having problems running unit tests for an angular based website using jasmine. I have angular-mocks, and a few other things but my references for it don't seem to be working properly. What are some of the basics for unit testing that I may be missing?
>>
Just tried my website on PHP7.

Thank god it all seems to work. I really wouldn't know how to fix it all if it wouldn't.
>>
File: Screenshot_2016-01-17-18-26-09.png (203 KB, 1080x1920) Image search: [Google]
Screenshot_2016-01-17-18-26-09.png
203 KB, 1080x1920
>>
File: Screenshot_2016-01-17-18-26-14.png (184 KB, 1080x1920) Image search: [Google]
Screenshot_2016-01-17-18-26-14.png
184 KB, 1080x1920
>>52480232
>>
>>52480232
that is a ridiculously sexy site on a desktop. holy fuck.
>>
File: _20160117_182929.jpg (39 KB, 1080x629) Image search: [Google]
_20160117_182929.jpg
39 KB, 1080x629
>>52480273
>>
I made http://chiru.no
>>
>>52480309
I like what you all did. From a technical perspective.

But it's not a site I'd visit - ever. And the upload and shorten url buttons don't do anything yet?
>>
>>52480462
Oh wait, I found the shortened url.
>>
It's Current Year, Is it okay to use Flexbox yet?
>>
File: coyote.jpg (151 KB, 778x519) Image search: [Google]
coyote.jpg
151 KB, 778x519
The fuck is 'golang'?
>>
>>52480040

did you read this: https://docs.angularjs.org/guide/unit-testing?
>>
>>52480715
sure why not?
>>52480742
https://golang.org/
>>
>>52477004

yes
>>
>>52476639
>http://pastebin.com/JyHSWbMX

I suggest you capture the results of your query and store them in the $c_balance variable. That way, when you want to display the value that variable points to, the right thing will be there.
>>
>>52481238
http://pastebin.com/raw/0HwXitJa

something like that?
>>
>>52480309
not clicking
screenshot or gtfo
>>
>>52480742
Google's attempt at the C#/Java thing, except it doesn't necessarily use intermediary language. I compare it to C#/Java because it's more similar to them feature wise and seems to perform about just as well, it's simply not as fast as C++ and both java and C# are faster than /g/ will admit.

It's not a bad language, but there are little problems, like there are libraries with faster json parsing than the built in. Some good advantages is that it also has decent (as in fast) built in networking libraries, definitely worth looking into if you're thinking of switching up from something faster than php/ruby/python, and you're not all that enthusiastic about node.
>>
I want to build a website where users upload and download high quality video files. Basically a P2P site. What should I learn, sql, php?

I've taken some js, html, and css courses but I can't do anything productive with that.
>>
>>52484652
I built a similar site with RoR in like 4 days.
>>
I only have 2 projects to show in my Portfolio and neither of them were done for clients. I'm just gonna start doing random projects and adding it to my Portfolio senpai. I need this
>>
>>52480273
it's a screenshot, site looks fine on mobile.

i think he's trying to point out the name, maybe something to do with that pretend game? either way, the autism runs deep in this one, just ignore further posts.
>>
>>52484678
do you think I should try to build my website with ror?
>>
File: 1452347136140.jpg (116 KB, 800x600) Image search: [Google]
1452347136140.jpg
116 KB, 800x600
sup, not webdev exactly but still related.

I'm using ansible to deploy muh app and am trying to use hashicorp vault to store passwords and shit. the problem is passing the token to the app, namely i want to dynamically create a single use token on deploy and then the app will go and acquire a permanent one in memory.

The problem comes when I want to use the token generated by vault, I make a local_action call that tells the local machine running ansible to generate a new token, this works and it can return json. But how do I parse this into ansible... in the situation where the destination is a hash/list.

  - name: Generate site tokens
local_action: command vault token-create -policy=root -format=json
register: tokens
with_items: endpoints

- debug: var=tokens.results


The next task also iterates over "endpoints" so basically I need a way to associate the token result with the endpoints hash.
>>
>>52485127
Since you'd be dealing with user authentication, database queries, sessions and handling data uploaded by users (things which need to be treated seriously and secured), a framework is convenient for quickstarting things, but you still need to understand how all the middleware is working.

protip: use django and stay the fuck away from PHP
>>
can anyone recommend a good ide/text-editor? im currently using notepad++ without any plugin, i want something that helps with html-css-js (currently learning the mean stack)
>>
File: `.gif (705 KB, 500x500) Image search: [Google]
`.gif
705 KB, 500x500
>>52486994
atom/brackets with emmet
>>
>>52486994
Sublime/Atom for simple things. Atom is slower, but does have a few nice features out of the box, like git integration and easy-to-make snippets.

For IDEs there's PHPStorm, PyCharm, Eclipse, etc
>>
File: 1433611029618.png (104 KB, 358x242) Image search: [Google]
1433611029618.png
104 KB, 358x242
What's the most effective whitehat SEO technique, other than on page optimization (including quality content, using keywords, adapting title/metashit etc.)?
How to perform whitehat link building?
>>
>>52484325
what'd you expect when you entered "web development general"? surely not websites
>>
File: 1453087816557.jpg (48 KB, 599x447) Image search: [Google]
1453087816557.jpg
48 KB, 599x447
>>
what does /g/ think of free code camp?
>>
>>52488928
too campy
>>
>tfw my favorite registrar doesn't offer two-step verification
Should I send them an angry email?
>>
Guys, I need help with what framework to pick. I wanna develop some sort of IDE, similar to c9.io, but oriented towards teaching programming.
I've been thinking about either Meteor or ASP with SignalR. The former seems like a great choice and is also higher-level, but it's somewhat dying according to some people.
>>
>>52489063
send them two
>>
>>52489560
>mongo
Not dying fast enough. At least it's better than MEAM.
>>
File: 1415121454689.jpg (51 KB, 450x450) Image search: [Google]
1415121454689.jpg
51 KB, 450x450
>>52489560
>relying on html/js
>current year
>CURRENT YEAR
>>
Can anyone tell me how the hell does this return work in ES6? I know it's related to template strings, but shouldn't there be a delimiter to mark it?
render() {
let {active} = this.props;
let {color, opacity, transition} = this.state;
let style = {
backgroundColor: active ? color : 'white',
opacity,
transition
};
return (
<div
ref="pad"
onClick={() => this.onClick()}
style={style}
className={`pad ${active ? 'active' : ''}`}>
</div>
);
}
>>
>>52490007
Oh, nevermind, I'm retarded, it's some sort of React-only shit that's compiled to JS.
>>
>>52490007
it's not react-only shit

it's some bullshit "Natural xml coding" thing that react copied
>>
So last week I has problems with a script I was working on. I asked here for help and someone pointed out I shouldn't be using .click.

    $(document).ready(function(){
$("#submit").click(function(){

alert('Test');
return false;
});
});


This is just some code that will run when I click the submit button. As far as I can tell this method works on all browsers, remind me why I should use anything else?
>>
>>52490336
Because submit basically uses .on("submit") internally.
>>
What advantage does something like Django have over a PHP framework like Laravel? Am I wrong in thinking PHP integrates better with Apache or Nginx?
>>
is there a library out there that plays music? i'd like to do something like r-a-d.io but im not sure how'd i go about playing the music

i tried looking at the source code but i aint gettin it
>>
Daily reminder you shouldn't be using html/js at all
>>
>>52490471
Kind of.

For me "intergrating" means using nginx and creating a location that also passes the ip address with xforwardedfor. It's so easy and I'm confident it works with any language or framework, not just the one I'm using.

The advantage python has is that it's a nicer looking language than php, honestly not much else.
>>
File: canvas.jpg (10 KB, 214x174) Image search: [Google]
canvas.jpg
10 KB, 214x174
I posted this in the SQT but I'm hoping you guys would be better at helping me out. I'm doing some work for uni involving HTML Canvas and I can't figure this out. If pic related makes an object move right, what would I have to put to make the object move left?
>>
>>52490496
What else then?
>>
>>52490785
I think I'll code my own browser, soon
>>
>>52490708
Change the sign of the of the x-coordinate?
>>
>>52490645
Thanks.
>>
>>52490708
direction isn't defined
>>
>>52476158
Hey guys, what's your opinion on Freelancer? Any of you use it? I don't really need money, I just want to be doing stuff while in uni. Also, I'm not talking exclusive about web development, but I'd prefer it, which is why I'm asking here.
>>
>hi I'm FAP-kun
>C# >all, faggots
>>
So, since money is not an issue, is there any reason I shouldn't go with a MacBook Pro for school/work in web development? Nearly every course I have taken, as well as online learning resource I have seen has recommended having some kind of Mac for web development and design.

I was thinking about getting a 15 inch MacBook Pro but I'm not sure. All I know is that not having a laptop and only having my Xbox huge desktop at home is making everything more difficult that it needs to be.
>>
>>52491835
Have fun getting cucked, I'm not gonna hold you back.
>>
>>52492148
What do you mean getting cucked? I'm a trustfund baby. If I don't end up liking the Mac or if it doesn't do what I need it to, I can just go get a Windows laptop.

Are you mad because you are poor and can't afford whatever you want?
>>
>>52491835
Most people using Macbooks are hipters/faggots who buy it just because it's expensive and because of the brand.
The rest of them buy Macbooks to use MacOS and are cucks who can't
a) get a Hackintosh running or
b) git gud and use any other Unix-based OS which can do pretty much anything that they'll require from a Mac.
>>
>>52492284
I had a Hackintosh running on some shitty like 11 inch netbook in high school and I absolutely loved OSX. That's mainly why I am considering it, plus hearing all the recommendations for one for web development.

Like I said, the money isn't really an issue and I'm just looking for something nice that I enjoy using that's quality and will last me a long time.
>>
>>52478119
Thanks bro. I saw it a bit late, but I appreciate it!
>>
>>52481189
no

>>52477004
element.onevent is outdated and should not be used
Use addEventListener instead

https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener
>>
>>52492169
>because you are poor
Poorfag fallacious argument is outdated because of microsoft's expensive surface line.
>Are you too poor to buy a surface and have to settle on a cheap macbook? Get a job so you can buy something that isn't cheap garbage.
>>
>>52492825
Duly noted.
>>
>>52490471
Django is far more matured than Laravel (started 6 years before Laravel), some advantages/benefits I can think of:

- you can use Python to program your backend
- you don't have to use PHP to program your backend
- 'magic' which is actually useful and easily customized, benefits are migrations, validation and forms being handled by your defined models (DRY principle), post-initial migrations are all derived from changes made in the model
- meanwhile in Laravel, Taylor deems the HTML/Forms package to be 'non-essential', so rather than turn it in to a useful CRUD generator/serializer, he removes it from the framework
- fixtures (seeders) which support multiple formats, such as JSON and YAML, doing this in Laravel is a pain (having to json_decode and then manually specify all the columns in db and their respective value in json file)
- commitment to PostgreSQL, i.e. you get all the nice advanced features of PostgreSQL out of the box, issues like cross compatibility with MySQL are left to the user to decide, unlike Laravel which aims to be cross compatible with several databases and therefore limited (manual queries required, messy)
- easy access to different templating engines, such as jinja2. Blade templates can get pretty sluggish.

>Am I wrong in thinking PHP integrates better with Apache or Nginx?
Yes, mod_wsgi/uWSGI/Gunicorn is easy to connect with apache/nginx.
>>
>>52493547
Thank you, that was very helpful.
>>
>>52490416
I don't understand.
>>
>>52493547
>unlike Laravel which aims to be cross compatible with several databases and therefore limited (manual queries required, messy)
That's where I stopped with learning Laravel. Got to the database section and noped the fuck out.
>>
File: 1408208386095.jpg (55 KB, 648x540) Image search: [Google]
1408208386095.jpg
55 KB, 648x540
>>52494947
so you're stupid what can I tell ya

learn how dom events works it's not hard
>>
File: 2.jpg (80 KB, 500x250) Image search: [Google]
2.jpg
80 KB, 500x250
How to create this kind of box with JS? What information should I be looking for to learn this?
>>
File: opticilusion.jpg (372 KB, 1600x1400) Image search: [Google]
opticilusion.jpg
372 KB, 1600x1400
I'm helping a friend to improve his website which is a page with links/icons to some mysql consult/search forms.
Google lead me to http://getskeleton.com/ and seems nice since is only html and css,
do you got a better option for this small website improvement?
Maybe a better framework with cooler tools but not a full bloat api. I don't mind any other language as long is in centos like repos.

I'm more like linux sysadmin than a web developer, and a simple but flexible framework could help my pocket in the future.

< funny unrelated pic
>>
File: 1407804110017s2.png (45 KB, 250x226) Image search: [Google]
1407804110017s2.png
45 KB, 250x226
>>52495331
is this "im 12 and how do I computer" hour yet?
>>
>>52495360
Lel I hope noone falls for half the stuff in this picture.
>>
Does anyone use Java for Web Development?
>>
>>52495331
CSS. The rounded borders use border radius, and the arrow thing abuses the ::before and ::after selectors.
>>
If I use YouTube's color combination (red, light grey and white) for my website which is related to videos, will I be infringing YouTube's copyright/trademark/whatever?
>>
>>52495893
Also, forgot to add that I will use blue for some buttons as well, just like YouTube. I plan to make my site look similar to YouTube when it comes to color combinations and choices.
>>
>>52495414
Yes. Grails on one I develop, and then we use another open source one based on jsp struts
>>
>>52495968
Why don't you just take the same color scheme of Youtube and keep the greys/whites/blacks, and use a different color for the reads?

I know Twitter requires you use very specific stuff in terms of fonts, colors, logos etc if you plan on copying any of their stuff.
>>
>>52495360
10/10
>>
>>52495414
I get paid to do so, JSF+Java EE.
>>
>>52495999
How's grails? Some time ago I looked into groovy because I wanted to learn java in a scripting environment but I ended up learning python.
>>
>>52496140
it is pretty great. groovy has a lot of convenient language constructs for making java more functional and treating JSON very naturally and dynamically typed. criteria queries are also awesome
>>
>>52495893
absolutely not and the fact that you even have to think about this is a testament to how fucked up the copyright culture is

unless your work tries to allude to the spirit of their work you're fine

ie you can use red and blue and gray but you can't just take the YouTube logo and call it MyTube

layout and colours are not a body of work, how they use those colours and fonts in relation to eachother is

in other words, what makes youtube unique is theirs

you can make stuff *inspired* by youtube

you can't make mytube 2.0 totally not a scam(tm)
>>
>>52490708

Obviously you do the reverse of right... are you trolling?
>>
>>52495360
I've been using uikit and it pretty much served my needs perfectly

however that skeleton thing looks neat and I'll definitely use it for codepens and jsfiddles and such!
>>
I'm de-jqueryfying some jQuery javascript nonsense.

I'm wondering what this:
$.data(li.get(0)


does. The jQuery API tells me this:
https://api.jquery.com/jquery.data/
>Store arbitrary data associated with the specified element and/or return the value that was set.

Is this seriously a Map of values tied to an element? Why on earth would this be implemented at all?

Am I assuming correctly when I the vanilla javascript equivalent would be a Map variable?
>>
>>52496368
>Is this seriously a Map of values tied to an element?
Yes, well, just a piece of data tied to the element but since everything in JS is a map(object) anyway then yeah, just a map.

>Why on earth would this be implemented at all?
All kinds of reasons. One common one is to store event handlers for unbinding. When you unbind a handler you need a reference to the handler being unbound (since an element can have multiple handlers on the same event). Instead of trying to hang onto the reference through all your code from the time its bound to the time it's unbound it's a lot easier to just associate it with the element so you can retrieve the set of handlers at any time you have a reference to the element. There are plenty of other cases where this is useful to.

>Am I assuming correctly when I the vanilla javascript equivalent would be a Map variable?
The return value of $.data(element) would be a map but there's logic in the background involved in figuring out which map is specifically tied to the element (element data has to be stored somewhere and there has to be a scheme to reference it).
>>
>>52497188
Thanks for the insight.

I don't have use for that sort of functionality here, so I'm better off with a locally defined map.

Thanks!
>>
Are mechanical keyboards good for programming?
>>
>>52497359
are you serious?
>>
>manage a small website for a club
>i get a message saying
>"anon can you contact my daughter about the website"
>"she is a very talented designer"
>they give me her email and i ask her what's up
>she responds three days later
>"we want to completely change the corporate identity of our club"
>"i will give you details when the decision is finalized"
What did i get myself into /wdg/?
>>
>>52497410
>corporate identity
>What did i get myself into /wdg/?
Something bad, prepare yourself for carousels, spinners and animated page transitions. Get out while you still can.
>>
>>52495266
JQuery works just fine papi. Fuck you and your ancestors.
>>
>>52490336
Because it breaks expected form behaviour. The big one is if you press enter with focus on a form element (like a text input) users expect the form to be submitted, but it will trigger the "submit" event rather than the "click" event on your button. Use
$('form#my-fom-id').on('submit', function(e) {...
instead
>>
>>52497527
Oh, that makes sense. Thanks a lot. I've used it so much but without really looking at it in detail.
>>
I've been able to get react to display what I want using "class x extends component", but haven't been able to get it to work using "var x = React.createClass". The browser's dev tools say I'm receiving all of the html and jsx file information and I'm also not getting any errors; I'm just getting a blank page.

React = require('react');
ReactDOM = require('react-dom');

var mercInfo = React.createClass ({
render: function() {
return (
<div>
<h1>HELLO</h1>
</div>
);
}
});

ReactDOM.render(
<mercInfo />, document.getElementById('root'));


What's wrong with this code?
>>
>>52497738
nothing looks wrong, except declaring React and ReactDOM without var
>>
>>52497410
>"she is a very talented designer"
buy her crayons
>>
>>52497410
Tell her to fuck off, but fuck her first.
Or actually listen to her ideas out of humor.
>>
>>52497410
>>"we want to completely change the corporate identity of our club"
>>"i will give you details when the decision is finalized"
I require that this becomes a meme.
>>
what do you think about typescript?
>>
>>52500220
Yes.
>>
>>52500220
I haven't written anything in it myself but the idea is appealing. I'm fine with dynamically typed languages but the particular way JS turned out we suffer a lot of pain for the absence of a good type system (I'm certain thousands upon thousands of human hours have been lost to NaN propagation errors). On the other hand I have every confidence in MS to absolutely fall on its face when trying to solve this kind of problem.
>>
File: 123.jpg (88 KB, 1015x305) Image search: [Google]
123.jpg
88 KB, 1015x305
I'm having trouble with my nav bar. It works fine unless you go to the mobile version first. If you go to the mobile version first (small window) and then resize the window to desktop size (large window) the nav bar goes inactive. But if you go to the desktop version first, it works. The navbar is suppose to show the items when you click a category. Again, it works when you first go to the large version but if you go to the small version and then resize immediately to the large version, the navbar somehow dies. The site isn't live yet so all i have are screenshots. Here's the code.

var toggleDefault = function(tar,desktopLink,touchLink,mobileLink) {
if(!$('body').hasClass('mobi')) {
if($(window).width() > 1199){
$(tar + ' > a').attr('href',desktopLink);
}
else if($(window).width() < 768){
$(tar + ' > a').attr('href',mobileLink);
}
else {
$(tar + ' > a').attr('href',touchLink);
}
}
}
>>
File: 1433568331193.jpg (620 KB, 1600x1200) Image search: [Google]
1433568331193.jpg
620 KB, 1600x1200
>>52488880
This is not a rage thread
>>
>>52488928
>code camp
You mean the conference about nothing?

Conferences are 9 times out of 10 an excuse you give your employer to eat free food and get a few days away from your wife. It's a bonus if people talk about interesting things but everything I've seen or heard of code camp is it's the conference for people who don't have a sufficiently specific skill set to justify having conferences.

If your boss is paying then go for it, bang some average looking "geek feminist" chicks and go see the sights (there's a cool computer history museum in Mountain View). But if you're paying for it yourself then steer clear.
>>
>>52501161
This really isn't how you should be deciding links in the first place (links going to a different place based on screen resolution shouldn't be happening at all, but if you have to then do it serverside via redirect). This isn't the code that's responsible for your dropdowns not working though, since it just sets hrefs, it doesn't init the dropdown show/hide logic.

Can't say without seeing more code, if you post all the relevant code somewhere I could tell you more.
>>
>>52501963

ok I think this is it. I didn't write this code, I took this over. But it seems like the parameters are the URL's for the desktop version and mobile. The "javascript:void(0)" is the function that is called when you click a navbar item and it drops down options to click on.

        //Execute functions when the window is resized
$(window).resize(function() {
//Toggle Mobile only functions
bsBools();
mobiFunctions();
switchMobiLinks();
aPerfectCircle('.an-icon-circle',10);
setTimeout(function(){flushHeight('#testimonial-area','#home-about-text')},5);
toggleConfirm('#click-to-return','en_us','mobi/en_us');
toggleDefault('#nav-new','javascript:void(0);','en_us/defaultNew.asp','mobi/en_us/default.asp?vintage=395');
toggleDefault('#nav-used','javascript:void(0);','en_us/defaultUsed.asp','mobi/en_us/default.asp?vintage=396');
toggleDefault('#nav-specials','javascript:void(0);','en_us/typebrowse.asp?internetspecial=1','mobi/en_us/typebrowse.asp?internetspecial=1');
toggleDefault('#nav-service','javascript:void(0);','en_us/contacts.asp?service=1','http://m.xtime.com/scheduling/?webKey=hus20150316144703207415');
toggleDefault('#nav-finance','javascript:void(0);','https://extranet.dealercentric.com/CreditPlus?AssociateID=119356&AssociateTypeID=4000&P=PYP&Video=speed','https://extranet.dealercentric.com/CreditPlus?AssociateID=119356&AssociateTypeID=4000&P=PYP&Video=speed');
toggleDefault('#nav-parts','javascript:void(0);','en_us/contacts.asp?parts=1','mobi/en_us/contacts.asp?parts=1');
toggleDefault('#nav-contact','javascript:void(0);','en_us/ContactRequest.asp?StoreID=1','mobi/en_us/ContactRequest.asp?StoreID=1');
toggleLogo('#logo-img','images/logo.png','images/logo-m.png','../images/logo.png','../images/logo-m.png');
changeServeNav();
}).resize();
[/code[
>>
Is it okay to build the front-end of a website first before the back-end? I barely known any front-end and plan on learning as I go after I've completed courses on Codecademy. I don't know any back-end just yet though.
>>
Made a script to make piratebay populate a "ratio" column for better to get illegal software.


function isInt(value) {
return !isNaN(value) &&
parseInt(Number(value)) == value &&
!isNaN(parseInt(value, 10));
}


$("#searchResult tr:first").append("<td style=background-color:#d2b9a6><a href=''>Ratio</a></td>");

var counter = 1;
row = 1;
var seed;
var leech;

$('table tr td').each(function(){

var texto = $(this).text();

if (isInt(texto)) { // It is seed or leech

if (counter % 2 != 0) { seed = parseInt(texto); }

if (counter % 2 == 0) { leech = parseInt(texto); }

if ((counter > 1) && (counter % 2 == 0)) {

$('<td align="right"><b>' + (seed/leech).toFixed(2) + '</b></td>').insertAfter($(this).closest('td'));
}

counter++;

}

});

>>
>>52502093
I still can't tell what any of bsBools, mobiFunctions, switchMobiLinks, aPerfectCircle, toggleConfirm, toggleDefault and changeServeNav do. My guess is the issue is somewhere in either switchMobieLinks or changeServeNav but I can't trace the code so I have no idea. Try and find where the dropdown logic is instantiated and post the logic surrounding that.

>>52502131
Sure, probably a good idea even. I almost always end up tweaking my DB schema or url patterns/responses based on the frontend design, if you can start there you're probably saving yourself work.
>>
>>52502212

thanks for helping man

this has got to be it, right?

var dropToggle = function() {
if($(window).width() > 1199){
$('.has-dropdown > a').on('tap click',function(e){
var that = this;
if(!$(that).hasClass('nav-active')){
setTimeout(function(){
$(that).addClass('nav-active');
$(that).siblings('.nav-dropdown').slideToggle(300, 'easeOutBack');
$(that).find('i').animate({'opacity':1},300);
},600);
}
else {
$(that).removeClass('nav-active');
}
});
$(document).on('tap click',function(e){
$('.has-dropdown > .nav-dropdown').each(function(){
if(!$(this).is(e.target) && !$('#QuickStockNum, #QuickStockNum2').is(e.target)) {
$(this).slideUp(300, 'easeInBack');
$(this).siblings('a').removeClass('nav-active').find('i').animate({'opacity':0});
}
});
});
}
}
>>
>>52496345
thanks that looks great! It'll with the learnig curve and my laziness
>>
2 questions:
1. Best place to learn C# / asp.net? I've been programming for a year and a half mostly JS, trying to cross the great divide into the back end. I look at the code back there and it's like everything's short hand. It's hard to follow

2. My boss says there's more to SQL than knowing how to write queries and knowing how to normalize a database... What else is there? He started going on about the application layer and data layer..
>>
>>52503064
>2. My boss says there's more to SQL than knowing how to write queries and knowing how to normalize a database... What else is there? He started going on about the application layer and data layer..
One part is knowing what queries should have caching set up for.

For data which doesn't frequently change, yet still requires several queries, you obviously would want to cache the results for awhile, preferably with memcached or redis.
>>
Is it REALLY a good idea to make a single AJAX function for my website... and use callback functions to handle different requests?

It's incredibly fucking hard to figure out what the parameters of such a function should even BE, since I have so many different things that'll need to be done, many of which require parameters, others which do not. Some just operate on single items. Others load in pages...

Is ONE AJAX that uses Callbacks REALLY what I should do?
Would there be any significantly negative effects of forcing separate function names for each JAXable item? I mean... other programmers and I will STILL need to know the function to call. Moreover, having to pass the proper parameter list and using the proper syntax for the thing will be fuckloads more confusing.

So, the file will be a bit bigger... is there any other problem, really?

Adding to that, a lot of the functions really aren't even AJAX; they're just outright JavaScript...

I literally can't think of how many of the functions would even use the AJAXing function. Shouldn't I just run them separately?


Perhaps I'm trying to use AJAX incorrectly?
Thanks.
>>
>>52496319
Where's the line between making a website inspired by YouTube and infringing their copyright?
>>
>>52502313

bump

this is confusing as fuark.
>>
>>52502313
Still can't say 100% but I think it's that window width check that's messing you up. From that code try simply removing

if($(window).width() > 1199){


and the corresponding close brace and see how it goes. One would hope the same logic applies to both resolution ranges
>>
>>52478119
Why const?

I write JS on a daily basis, and I've never used const. I've done enough C++ and C# to understand the implications in those languages, but I've never seen it used in js.
>>
>>52503687
Try in /dpt/, you'll probably get more replies.
>>
>>52503380
I really don't know how to answer all your questions. If it defeats the DRY principle then use a single function.
>>
If anyone wants to write articles and have them published on my personal site, I'll gladly post them for you (with full credits to the author of course). This is your chance to get your content/opinion out there.
>>
>>52509119
Can I write an article about prime teen boypussy?
>>
>>52509136
If you can somehow make it related to tech...
>>
http://jsfiddle.net/stA8K/72/

i am trying to figure out how to make my circle use .fadeout whenever they user has not clicked on it. i cant figure it out. could i please get some help?
>>
File: architecture.png (27 KB, 400x300) Image search: [Google]
architecture.png
27 KB, 400x300
Can anyone explain to me, or provide me with resources, how to correctly implement the mediator-facade pattern in javascript.
Is it okay to refer to plugins in your sandbox? Should a plugin only change the core object, and leave the sanbox alone, or should it alter the sandbox as well?
>>
>>52476478

For the love of God give that block element a
width: auto;
>>
File: joke missed.gif (959 KB, 448x352) Image search: [Google]
joke missed.gif
959 KB, 448x352
>>52510595
>>
>>52509226
would
.glowfinger:active { background-color: red; }

be enough for you?
not sure what you plan to do exactly.

this wouldn't work if you click anywhere outside of it first though.
>>
>>52510669
How exactly is it a joke? It's just a demonstration of some text overflowing a block element
>>
>>52510702
so basically i dont want the circle to be visible if the user is not holding the mouse down and dragging or clicking on the page. and i want it to fade out after a user has done one of the two previous things.
>>
>>52510787
not_bait.svg
>>
>>52510799
>>52509226
http://jsfiddle.net/uetae9vv/

you might want to refactor that a bit, but is this what you want?
>>
File: chinese hamster.jpg (147 KB, 1024x1305) Image search: [Google]
chinese hamster.jpg
147 KB, 1024x1305
>>52510787
>>
>>52509226
>>52510799
https://jsfiddle.net/oe3ts3uv/
>>
File: 1440274420889.jpg (362 KB, 1500x1000) Image search: [Google]
1440274420889.jpg
362 KB, 1500x1000
Django, laravel or rails?

Also what's your setup and your everyday tools /wdg/?
>>
>>52511040
>>52511023
AMAZING thank you
so interesting to see how people do it differently
>>
>>52511086
Using Django right now. It's pretty cool. Easy to learn, and you actually feel really productive with it.

However, I only have experience with Django.
>>
>>52511086
laravel
>>
Is it just me or is Ruby on Rails the most messed up and bloated piece of shit ever made?
>>
>>52511475
it is.
>>
>>52511475
Yup it's you. Former Rails dev here and I can't tell you how much I love Rails. Yes it can be slow if you have a really high-use app and you're trying to optimise which is why companies have moved away from it (e.g. Twitter but they still use it for many functions, just not the whole site). But for 99% of people it's appropriate. And it's so fucking powerful. And most importantly it's not PHP.

>>52511086
Totally depends on your requirements but I can't recommend Rails enough. Are you asking what you should use for a personal project, or what you should learn to get you hired? If the former, yeah I would say Rails. If the latter, learn PHP because that's what most jobs will want or expect you to know.

>>52511381
Bloated piece of shit. Use CodeIgniter.
>>
>>52511013
>>52511031
It's not a joke. I suppose you might find it funny because it is a common layout issue that CSS fixes. But it's not a joke. There is no joke being made.
>>
So, ho can i get into web programming? I was thinking about Django because python is the only language i know atm. There is something i should study before i fuck up my pc trying to code something i python/Django?

>inb4 stupid question thread
>>
what's a cool website project i can do that will impress some employers for an entry level job
>>
File: 1308097591001.png (23 KB, 604x453) Image search: [Google]
1308097591001.png
23 KB, 604x453
>>52511614
>>
>>52490471
Any FastCGI-enabled web server will do. You can use http://caddyserver.com/ for development, which is really simple to use.
>>
>>52511651
python and django is a waste of time imo,
if youre new, you should start off with javascript.
>>
>>52511475
>>52511122
>>52511571

Given this three responses i think i will try Django
>>
>>52511840
hope youre not planning to make money off of this anon, good luck.
>>
>>52511877

thanks :^)
>>
>>52511750
I'm being entirely serious and you're just shitposting 9gag-tier maymays

It is LITERALLY just a common layout issue that CSS fixes. At the most it can be described as a whimsy. It's not a "joke". It's not like this CSS joke I just googled:
#titanic { 
float: none;
}


THAT'S a joke. The thing on the mug is just an amusing mug. It's not a fucking "joke".

Go fuck yourself
>>
>>52511840
Literally fucking why? I literally told you why Rails is the best you dense cunt

Were you dropped on the head as a child or something? Is this why you fail to understand basic written English?
>>
>>52480054
what version was out in 2008? Im reading a php book and now im worried its outdated
>>
>>52485117
I too am having trouble getting clients as a begining developer
>>
>>52485117
post your portfolio, and I'll give you some tips.
Also you can lie about stuff, just don't go overboard.
>>
>>52511724
this
>>
Is it just me, or are jquery ui draggable elements kind of fucked up in Firefox, while working well in webkit?
>>
>tfw web dev with no portfolio

i dread having to find a new job
>>
I have like 30 photos that I would like to set up as a ``gallery''. Is that something I could do on my own using js/jquery, or should I look into 3rd party libraries?
>>
File: 1442799519037.jpg (94 KB, 640x640) Image search: [Google]
1442799519037.jpg
94 KB, 640x640
>>52511985
>>
>>52512719
There are probably a million libraries that can do it but it's not something that would be hard to do yourself.
>>
>>52512865
I am just worried about corner cases and making the gallery usable on all sorts of devices, which is why I prefer to use a library. Any recommendations?
>>
Amazing how a good designer using just css and html can produce a better looking site that another guy deep in all the latest frameworks and languages.
>>
File: 1447509824143.jpg (40 KB, 463x520) Image search: [Google]
1447509824143.jpg
40 KB, 463x520
>>52511999
Not him but I'm now going to learn rails just off the intensity and conviction of your post
>>
Looking for a way to put query results in a pretty chart. I'm not sure if I can somehow use Google Charts for this.

I'm using Node.js, and I have a successful test of taking a mySQL query and displaying it on the page with:

    h1= title
p #{title} test

table
thead
tr
th Name
th Organization
th Location
th Serial
tbody
- each item in rows
tr
td=item.Name
td=item.Organization
td=item.Location
td=item.Serial


My node.js:
router.get('/sqltest', function(req, res)
{
var connection = mysql.createConnection({
host: '',
database: '',
user: '',
password: ''
});

connection.connect();

connection.query("SELECT Name, Organization, Location, Serial FROM computers",
function selectrows(err, rows, fields) {
if (err) {
throw err;
}
res.render('sqltest', {
title: 'SQLTest',
rows: rows
});
});
})
>>
File: shiggy.jpg (9 KB, 250x250) Image search: [Google]
shiggy.jpg
9 KB, 250x250
>>52511999

Your shit bashing m8, sounds like you are overexited over Rails

And probabily i am the densest of cunts :^)
>>
>>52513208
d3.js
>>
document.getElementById("shade1").onclick = function() {
if(colorPickerSecondStage < 0.34 && stageNumber === 2) {
renderStageThree();
stageNumber = stageNumber++;
}
else
{
document.getElementById("pic").src = "resources/gover.png"
}
}


I want this function only to be called if stageNumber === 2.
Currently it also activates when you press shade1 when in stageNumber===1. Don't want that.
Beginnersquestion but I'm kind of learning
>>
>>52513337
Can I just pass a chart in d3.js my 'rows' object?

I've succesfully created a JSON out of the query results, but I can't figure out how to pass that to an inline javascript in the html.

What I want to do is something like this:
    script(type='text/javascript', src='https://www.gstatic.com/charts/loader.js')
script(type='text/javascript').
google.charts.load('current', {'packages':['table']});
google.charts.setOnLoadCallback(drawTable);
function drawTable() {

var data = new google.visualization.DataTable(#{jsonData});
var table = new google.visualization.Table(document.getElementById('table_div'));
table.draw(data, {showRowNumber: true, width: '100%', height: '100%'});
}
>>
>>52513628
return when stageNumber is not 2.
>>
>>52513024
Is it a hobby project or something you're getting paid for?

If it's just a hobby thing or for a portfolio do it yourself as a learning experience. If you're getting paid for it then use a library. Just search for js carousel if you want to find something.

Js usually isn't as bad as css when it comes to browser compatibility. It either works or doesn't and whatever is the case it works logically(excluding ms edge, thanks for breaking so much shit).
>>
>>52490051
that's absolutely react code (jsx) , look at the attribute names
>>
>>52495414
java shops usually use something that runs on jvm these days, like scala
>>
>>52497410
just run
>>
>>52505275
it is expressing that the thing isn't going to be mutated. babel can give you warnings based on it
>>
>>52511086
django
i use node/express/orientdb on backend, elm on frontend
>>
>>52513208
>using Jade
>>
>>52512647
make shit and build up a nice github
>>
>>52513075
perfection
>>
>>52478251

For me the most difficult part of JS initially was getting my head around asynchronicity - caught me off guard a few times! Getting into it's real strength as a 'functional' language has been tricky too.

On a side note, jQuery isn't really distinct from JS - it's just a wrapper to make development a bit more consistent when dealing with the DOM.

Generally speaking something like Facebook is what's called a single-page application (SPA) - basically a single template is used (which includes the header bar with messages/notifications/etc.) and the main areas of the page (left bar, right bar, main content). When a user logs in, your browser requests data from a server and the server replies with all the stuff that populates that template (and sometimes FB 'pushes' data to you, so you see notifications shortly after they're sent instead of having to refresh the page) - so your description of 'strategically placing' content is pretty much on the button. SPAs have really taken hold in the last few years and it's hard to imaging some services without it (Google use it heavily in recent apps, for example, as does Twitter).

JS can be - and is - used for a whole fuckton of stuff. Significant uses include SPAs, interactive content (e.g. popup menus, modals, accordion-style interfaces, etc.) and tracking users behaviour on websites, but there's a lot more than this - an implementation of JS is also used in website development tools like Grunt/Gulp and package management tools like NPM/Bower.

If you're comfortable with HTML/CSS I thoroughly recommend Javascript: The Good Parts, and Eloquent Javascript - both great guides. Be sure to actually use it too, experiment lots, connect to APIs, check out SPA frameworks like Ember/Angular/Backbone.

The above is a pretty brief summary but will hopefully point you in the right direction!
>>
>>52511571

You serious? Codeigniter is bordering on archaic and has zero ongoing support.

I LIKE CI, btw. Best to be realistic about these things though.
>>
Anyone got any interesting website ideas they're willing to share? Just want to make something for practice or add to my portfolio, and I got nothing.
>>
best approach to building a site with ecommerce functionality?
>>
>>52515345
Realistically? Wordpress+Woocommerce.
>>
File: MainAB.png (1 MB, 1280x800) Image search: [Google]
MainAB.png
1 MB, 1280x800
Rate my frontend design? (Because /gd/ is dead)
>>
>>52515433
Add item feels awkward compared to add project. Other than that its looking good bro
>>
>>52515433

The font sucks, the tick is weird (don't like that wavy look) and the ellipsis not being underlined is kinda jarring.

That said, I like the background image and the effect of the panels. Information is clearly laid out and the steps required to perform multiple tasks are obvious. I could see myself using this with a few tweaks.

7/10
>>
>>52515395
thanks.

how difficult is it to convert an existing site (static really, with a dynamic products page linked a db with a a bit of php). to a wordpress theme?
>>
>>52515534
>>52515537
Thanks anons! I appreciate it and I'll revise when I get the chance.
>>
>>52515579

Not particularly, just learn the components of WP and piece them together as you see fit.

The products would take a bit longer. Depending on the size of the product DB you could write a plugin that adds tables to the existing WP DB maybe.
>>
>>52515804
I'm worried about the site risk though? Doesn't wordpress constantly get hacked? Can I reduce it down to just the ecommerce aspects and ignore the rest of it?
>>
>>52516220

Pretty much. When you hear about Wordpress being hacked it's pretty much always a flaw in an inexplicably popular shitty theme or an out of date plugin.

So as long as you build your own non-shitty theme and keep plugins up to date you'll be fine.
>>
>>52516220
>>52516382

In short, WP core is solid; it's add-ons gone wrong that give it a bad rep.

Also less security through obscurity than most, not that it's an excuse but considering the attention it gets it actually holds up well.
>>
>>52515433
Some labels have all lower case while others have proper casing. One or the other, man.
>>
>>52517099
They're all lowercase except for the literal (user-entered) projects and tasks.
>>
File: 1414433810312.png (2 MB, 1732x1016) Image search: [Google]
1414433810312.png
2 MB, 1732x1016
So I'm working on a website that has to be as lightweight as possible for fast loading times, and that doesn't use any JS. To send updates about content etc to the user, I'm using Spring to generate pages from HTML templates.
Currently, we have the service running through spring in an iframe that resides on the main page. We want to reduce loading times as much as possible, so ideally all CSS etc would only have to be loaded once. Is it possible to use the parent's stylesheet from within an iframe?
>>
>>52512165
>this
Funny, but accurate.

Web forum or imageboard is a great way to show skill, as it can encompass a user system and database usage/creation.

>>52511086
Django.

I use a c# socket implementation for the backend, just jQuery using the common append statement in an Ajax callback style for the front end.

I dunno, do I need anything more?

>>52515345
http://www.labnol.org/internet/sell-digital-products-online/28554/

Srsly.

>>52517261
Are you making sure everything except the https traffic (like captcha) is generating 304s?
>>
>>52517821
Not yet. How would that help, though?
>>
How would I go about playing a video from my server, such that it runs on the server time, and not from when each client clicks play?

Essentially, using my server as a standard TV, with the web page being the couch?
>>
>>52517853
When things respond by 304s, less reading and writing is done because the client just retrieves the data from cache. When you generate 200s (with message bodies) your backend has to go through the effort to actually write the message. For a backend, generally the most expensive operation is reading and writing from the network, as it's a syscall.

Otherwise, if you're not loading any JavaScript that's the biggest bottleneck to load times already removed.

You can use this http://www.w3schools.com/html/html_forms.asp
For post requests
>>
>>52517985
I'm looking at making it light for the user- not for the server. Our server is fairly beefy and is running a relatively intensive program. Our users will just likely be using TOR or a VPN and those aren't often known for their speed
That's good to know, though! Thanks.
>>
>>52518045
The thing about tor is that some users will experience like 1 or 2 kbps, this means even a light webpage that's only 10kb will still take 5 to 10 seconds (excuse my butchery of how these numbers actually work), but if you're generating 304s only the first time is going to take that long and otherwise your clients are getting packets well under a single kilobyte.

Again, you're correct that the biggest bottleneck is JavaScript loading, but right next to that there's 304s.

I'm actually not sure if tor will 304 correctly because it's encrypted traffic, which shouldn't be 304ed.
>>
>>52518255
So if I force 404's for non-HTTPS traffic, it'll load the CSS and all the images etc from the cache instead of from the website?

Also, JS is disabled because TOR just simply doesn't allow JS.
>>
>>52518286
>404
Assuming you mean 304s, yes. Clients tend load 304 css quickly.

But again, it's (all) encrypted so I don't know if you should. You shouldn't even use compression for encrypted data because of certain attacks.
>>
File: Untitled.png (23 KB, 955x326) Image search: [Google]
Untitled.png
23 KB, 955x326
I can't believe I can't get this working and I've tried everything.
after checking username and password and crossreferencing it with a database (wich works) I cant get the rest of that row's info
How can I be losing my sanity over something so simple.


            if(isset($_GET['username'])) {
$username = trim($_GET['username']);
$password = md5(trim($_GET['password']));
$people = $db->prepare("SELECT username, password FROM usuarios WHERE username = ? AND password = ?");
$people->bind_param('ss' , $username,$password);
$people->execute();

$people->bind_result($username,$password);

while($people->fetch()){
//how do I get $row[] to exist and to contain the info of the row where username & password where read?
$_SESSION['currentUser']['id'] = $row['id'];
$_SESSION['currentUser']['username'] = $row['Usuario'];
$_SESSION['currentUser']['password'] = $row['password'];
$_SESSION['currentUser']['name'] = $row['name'];
$_SESSION['currentUser']['email'] = $row['email'];
$_SESSION['currentUser']['signature'] = $row['signature'];
$_SESSION['currentUser']['avatar'] = $row['avatar'];
$_SESSION['currentUser']['type'] = $row['type'];

var_dump($_SESSION['currentUser']);
//header( "Location: success.php");
exit();
>>
File: based.jpg (162 KB, 1728x1152) Image search: [Google]
based.jpg
162 KB, 1728x1152
just took a 20 dollar an hour html/css/less/javascript/gulp/node job

is that standard pay amount for this? also with those technologies i listed, does that make me a full stack? half stack? whatever the fuck stack?
>>
>>52518472
Where is $row declared?
Where is your foreach function?

I don't know how to use bind params desu, but this is what I usually do

foreach($checkas $row){
//set session variables here
}


Where $check is the variable that holds the boolean value that tells whether the password/username combination actually worked.
>>
>>52519136
>
foreach($check as $row){
//set session variables here
}

Corrected.
>>
Why havent you switched over to the beauty that is Rails?
>>
File: Simple-sign-in-up-form.png (8 KB, 750x489) Image search: [Google]
Simple-sign-in-up-form.png
8 KB, 750x489
do i need to know backend in order to make a working sign in/up kajigger?
>>
File: 1428613593873.jpg (22 KB, 300x300) Image search: [Google]
1428613593873.jpg
22 KB, 300x300
>>52476158
What good dedicated webhosts do you guys use for your websites with back ends? Esp. bootstrap.

Cant host on my own server because reasons.
>>
working on html and css. keep having to put -8px on 'margin-left' in order to remove the gap between the edge of screen and the beginning of the div. What gives?
>>
>>52503064
>2. My boss says there's more to SQL than knowing how to write queries and knowing how to normalize a database... What else is there? He started going on about the application layer and data layer..

Dont listen to him. All you need to know are select queries.

Seriously , look up a few database engineer jon requirements.
>>
>>52519908
Any respected unmanaged VPS provider is good. Manage your

>websites with back ends? Esp. bootstrap.
>back ends
>bootstrap
I hope you're not referring to Bootstrap CSS.
>>
>>52520201
You need to set body width to 100%. Also, try to use negative margins sparingly, if ever.
>>
>>52519484
Because I use Django.
>>
File: code.png (379 KB, 620x321) Image search: [Google]
code.png
379 KB, 620x321
I've been learning webdev and programming for about a year (HTML, CSS, Javascript, jQuery, Ruby, and maybe rails soon too. I can't decide if I want to do Front End, Back End, or go for Full-Stack.
I think I enjoy Front End and ux/ui design a bit more, as i'm more of an artistic / visual person. However, it seems like Back End jobs are more common and easier to get? Am I wrong on that? I really don't care about salary for now, as long as my first job is at least 35k.
Please guys, help guide me!

Also how the fuck do I get my first job in this??? I'm putting so much time into learning and I'm worried I won't know enough. I'll be needing to get a new job in 3 months anyways, but literally EVERY SINGLE webdev job posting I find is like "hurr durr at least 3+ years experience required". How do I get past this hurdle and get hired?
>>
>>52520865
>respected unmanaged vps
such as?
>>
>>52521091
have a good portfolio or freelance until you get a good portfolio. Basically, show them the money. I've just been freelancing to git gud. Go full.
>>
>>52521303
Thanks for the input! Isn't it a bad idea to freelance if you don't really have any business experience? Seems like it'd be really easy to screw up or misunderstand a client's project or get way underpaid or something. I could be wrong though, idk. Also if you don't freelance, how do you get a good portfolio? Are lots of personal projects good enough?
>>
Has anyone ever used Selenium?
>>
who here has tried learning angular, and is it worth using?
Did it make it easier for you to develop websites easier/better/more productively?
>>
File: JUST.jpg (72 KB, 563x600) Image search: [Google]
JUST.jpg
72 KB, 563x600
>"hey man, we got something for you to do"
>oh yeah?
>"yeah, we just need an inventory to be managed"
>sounds easy enough, what d-
>"it needs to be in whitedb and have a java application to go with it, as well as an android application for inventorying the products themselves"

JUST
>>
File: 1440354604444.jpg (34 KB, 640x480) Image search: [Google]
1440354604444.jpg
34 KB, 640x480
Does Google privilege websites which frequently update their content when it ranks pages?
>>
Why the fuck is every example everywhere in PHP.

God damn it, why did I decide to learn node.js?
>>
>>52519970
I always use an unmanaged VPS, usually a DigitalOcean droplet.

>back ends? Esp. bootstrap.
Maybe you phrased this wrong? Bootstrap is a CSS framework, not a backend.

>Cant host on my own server
Assuming you mean at home, no worries, that's normal. Nobody hosts a real site from a server in their home, it just doesn't make sense.
>>
>>52521387
Not him but
>Isn't it a bad idea to freelance if you don't really have any business experience?
In my case, I freelanced *so* that I could get experience.
>Seems like it'd be really easy to screw up
Only take on projects you're comfortable doing at first, then start taking slightly more advanced ones that force you to learn things.
>or misunderstand a client's project
Indeed, you need to absolutely flat out certain you understand EXACTLY what they want. In my case I was quite lucky- one of my first clients was a very patient Singaporean man who had carefully written up an extremely detailed spec document.
>or get way underpaid
Yes, that can and will happen at first. You WILL drastically underestimate how long a job will take, and underbid as a result, ending up with less than minimum wage. Just power through it and put it down to experience.
>Also if you don't freelance, how do you get a good portfolio? Are lots of personal projects good enough?
Yes, but in my case I found that doing paid projects was far more motivating than thinking up random stuff to do myself.
>>
>>52524067
Anyone?
>>
>>52524067
If you keep adding more content then it increases the visibility of your site. More content == more stuff for google to link to.
I'm not sure how the ranking algorithm works in detail, but I assume more 'quality' views and interaction will bring higher rankings.
Thread replies: 255
Thread images: 49

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.