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

wdg

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

Thread replies: 314
Thread images: 22

File: 1418489598061.jpg (339KB, 1210x834px) Image search: [Google]
1418489598061.jpg
339KB, 1210x834px
Generic picture edition

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

> Tutorials & Resources
https://www.codecademy.com/ — Learn to code.
https://www.bento.io/tracks — Start here if you’re new.
http://www.theodinproject.com/ — Alternative to above, focused on Ruby on Rails back-end.
https://developer.mozilla.org/en-US/Learn/Choose,_Install_and_set_up_a_text_editor — Choosing a code editor.
https://libraries.io/ — Discover new open source libraries, modules and frameworks.
https://www.coursera.org/browse/computer-science — CompSci courses.

> Getting Hired
https://pastebin.com/4YeJAUbT/ (embed) (embed) — NEET Guide to Web Development
http://elliotec.com/how-i-got-a-job-in-web-development/

Previous thread: >>51381484
>>
Is the general missing some links now? It's been awhile since I've been to /g/ but I could've swore there were more links.
>>
how do i get a front end job?
>>
File: laravelsd.com.png (145KB, 1366x929px) Image search: [Google]
laravelsd.com.png
145KB, 1366x929px
>>51415730
>Laravel is LOVE

Is there something similar to pic related (an ERwin clone for Laravel), but for Rails?

I mean the only thing to get the full stack done is to have a good data model, draw it in pic related and presto then download the Schemas, Models, Controllers, Views and finally the Seeder.
>>
>>51415742
Sorry I didn't lurk into the archive another version


>IRC Channel
#/g/wdg @ irc.rizon.net
Web client: https://www.rizon.net/chat
Move to freenode already, fuckers

>Where to start
[YouTube] WEB DEVELOPMENT - SECRETS TO STARTING A CAREER in the Web Development Industry
[YouTube] WATCH THIS IF YOU WANT TO BECOME A WEB DEVELOPER! - Web Development Career advice

>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
[gist] backendDevelopmentBookmarks.md

>Useful tools
https://pastebin.com/q5nB1Npt/ (embed)
https://libraries.io/ - Discover new open source libraries, modules and frameworks and keep track of ones you depend upon.

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

>How I Got a Job in Web Development
http://elliotec.com/how-i-got-a-job-in-web-development/
>>
>>51415850
You didn't have to do all that man, I wasn't complaining I was just curious if I was losing my mind or not.

Thanks for posting though.
>>
>>51415757
>maek shit with meme languages/frameworks
>put shit on github
>write a decent resume
>apply

That's how I got a job at least
>>
>>51415757

where do you live?
>>
>>51416026

seattle area
>>
File: 1276623034064.gif (1MB, 231x210px) Image search: [Google]
1276623034064.gif
1MB, 231x210px
>>51415943
>>
>>51416001
>meme languages
Never change /g/entlemen. I code my sites in c ##
>>
>>51416001
>meme languages
like what? do i have to into angular? i can barely js
>>
>>51416118
You heard of code fellows? I went to that bootcamp last year. Been working pretty much ever since.
>>
>>51416441
Angular is javascript mang.

And yes, if you can write decent JS then you can land a job in the civilized world. Add some React (Angular is so 2013) experience, understanding of the back end (create a well tested REST API, deploy it to AWS and use Github, TravisCI), people communicating skills and you're looking at minimum 90k salary a year.

Too bad I live in the third world and barely reach 40k, even though I make more than the average person.
>>
>>51416497

i used to do tech support around that area and would visit the food trucks right by code fellows

the problem is im already in debt and really cant afford that school. It looks great though

so what languages do you use? did they actually get you a job or were you out applying?
>>
>>51416502

90k?

I mostly use scripting languages and databases for my STEMfag duties, but I learned angular in one of my classes among a few other webdev memes. Front end could be a good backup if I keep adding a few skills as well as some portfolio items.
>>
>>51416595
They "guarantee" a job, but it's mainly them just sending you job postings. So most of the work is up to you.

At this job, PHP/SQL and typical front-end stuff. I went for the Ruby on Rails bootcamp, but getting a job was kinda hard for that. But looking back I really should have done the Javascript one.
>>
>>51416680

you should let me know if any front end positions come up since we both are seattle area

hook an anon up
>>
Anyone know if Visual Studio Code editor is any good?
>>
>>51417080
Wondering the same
>>
Newbie to JavaScript here..

Why my array lister doesn't work?

http://jsfiddle.net/0wuqLt60/
>>
>>51417080
It's pretty much the only good option if you're stuck coding C#.
>>
Anyone here using bluebird?

I'm thinking about rewriting a PHP application tomorrow using nodejs with express, socket.io and bluebird.

I don't think bluebird is like those other libraries though - it just seems like something great to be used for any node.js application. Promises sound great
>>
>>51417597
Ah forgot to add, will also be using some sort of MySQL wrapper as well. I already know SQL, I don't feel a need to learn nosql
>>
>>51416502
Which part of the third world?

40k per annum is quite a lot if you're in any part of Southeast Asia.
>>
>>51417415
you put html in the js box
>>
>>51417415
it looks like your for loop doesn't even run at all
>>
>>51417080
>>51417404
>>51417440
You guys know that C# really isn't just .net, right? I'm the FAP.NET dev, I wrote it all in Monodevelop, tested it with mono, benchmarked it with go-bench and apache-bench and not a single fuck was given towards the way of Microsoft. C# is about as cross platform as you can get.

It's currently deployed on a Debian server running, you got it, mono.

Also, Monodevelop on Windows is called "Xamarin studio." They make you pay for their Android libraries, but the editor appears to be free. Nuget still works on both Monodevelop and Xamarin, remember, it's
Install-Package FAP.dll
clearly the most meme-worthy web framework since, like, forever.
>>
how hard is it for a newbie to get comfortable with DICSS?
https://github.com/letsgetrandy/DICSS
>>
>>51419449
>DICSS
Haha

Perfect.

>letsgetrandy/DICSS
oh god I'm dying

>
DICSS.putIn('body', 'transition: .1s linear');

Lost it completely.
>>
>>51419467
why are you being sarcastic? Is it hard to get into it? I was told by many people who are into webdesign that they like DICSS.
>>
>>51419500
Honestly man, I'm yet to find something I can't do with jQuery, standard Javascript and a backend (which you could honestly program in any language you wanted). I have a hard time justifying why anyone would need angular.js unless they wanted to break browser navigation for some horrible reason, even then, I broke browser navigation myself by using a position variable through local storage.

As far as DICSS goes, I'd use it sooner than SASS, purely because SASS is doing weird pre-processor CSS stuff... that being said I wouldn't use either because plain CSS is the easiest to find solutions to online and likely to have better performance: especially since that guy is probably using something similar to jQuery (but clearly not jQuery) to inject CSS. Why do you even need something to handle your CSS anyway?

My advice? You don't need it. In fact, unless you want to do something very specific (say, BBcode or carousel or maps or whatever) you don't really need any libraries or frameworks. Just keep your projects simpler, you'll notice you'll start using less code anyway simply by gitting gud.

BTW, that guy's clearly making joke stuff.
>>
>>51419579
Thanks, I dont like DICSS anyways. It was just an hypothetical question.

>I have a hard time justifying why anyone would need angular.js
I'm using react. I've heard its good for preventing repainting and its important for browser performance or whatever.
>>
>>51419629
I just did some research on react, it's for a backend, specifically node.js (or someone has managed to hack it for .NET)?

Anyway, angular is front-end... let me re-specify, I don't see any purpose to front-end frameworks, except jQuery because typing document.getelement each time would drive me nuts.
>>
Does anyone know a Google maps Wordpress plugin where you can do the following:
>make a new wordpress post
>you can add location data to the post
>the location entered is seen in a Google maps widget on the same page as the post
>each post can have a unique location

I used WP Geo for this in the past, but the plugin broke. And most Google maps plugins require you to make a map seperately from a post.
>>
>>51419773
no, react is just fronted. its a View framework, or however they call it.

It has something like a shadow-dom where and calculates the diffrence to the real-dom, then just updates the modified elements (thats why it prevents so much repainting)

I'm using both, jQuery and React. I could probably leave react out, but again, I want to prevent repainting and learn the framework. Also, its fun to use it.
>>
I applied to LaunchCode this morning. Anyone get a job through them?
>>
>>51420621
Getting the users location can be tricky, unless you enter the coordinates just by hand programmatically? Otherwise I've used the Google maps api, I even grabbed a location from Facebook for it, but that's just another means of getting coordinates.

>>51420941
Why are you worried about "repainting"? Are you unaware of how caching works?
>>
Is it possible to get a job without any certificated course? Also, To be a back end developer I have to study html, css, etc? I fucking hate CSS and HTML.
>>
Beginner here

Using atom; what is the best way to save your html/css/js files and refresh the web you are working on? Right now I have to individuale press ctr+s on all pages, switch to browser and then refresh the page.

I bet there is a better way?
>>
>>51419449

> writing css in json then injecting it via javascript

wow are you fucking serious

>>51420621

Sounds pretty simple to make, why not code it? Shouldn't take more than 2 hours, but then again, I've never worked with WP extensively so I have no idea.

>>51422434

> Getting the users location can be tricky

Why?

navigator.geolocation.getCurrentPosition(showPosition);

function showPosition(position) {
latlon = position.coords.latitude + "," + position.coords.longitude;
}


then it's just a simple matter of plugging the latlon into Google Map's API.

>>51422571

> Is it possible to get a job without any certificated course?

yes

> Also, To be a back end developer I have to study html, css, etc?

no

front-end is HTML, CSS, JS, Bootstrap, and all the meme js frameworks
back-end is PHP, Python (Flask/Django), Ruby (Rails), etc etc etc
full-stack is both

if you choose the back-end path, you need to learn basic sysadmin skills as well (at the very least, learn how to deploy to a VPS)
>>
/wdg/

why the FUCK is there so much white space on Google's search results

why don't they widen the text of the results? what could they possibly have been thinking?
>>
>>51423431
Gulp/Grunt watch tasks with liveReload plugins
>>
>>51423465
basic ux, reading wide text is awkward, makes it difficult to quickly go to the next line, you have to remember that 99% of users are retarded in all scenarios
>>
>>51423465
your fault for browsing in fullscreen
>>
File: killme.jpg (169KB, 716x716px) Image search: [Google]
killme.jpg
169KB, 716x716px
Shopify is literally the shittiest ecommerce platform. And fuck whoever wrote this retarded stylesheet.
>>
No one answered me last thread

I've been learning HTML + CSS and I know enough to get a basic static website online, however I cannot for the life of me think of anything to make.

Also, I've been doing Freecodecamp's course, and they're trying to get me to do Jquery before Javascript, which seems fucking retarded in my opinion, since they just do random small tidbits of example coding. No explanation other than "this makes this shake"

What should I do?
>>
>>51423542
Both seem pretty complicated for me. I just started javascript and have no knowledge about node js or any of the other about those two tools.

Do you know any alternatives? I just need it to for example autosave.
>>
>>51423969
there was a dev at my old company who would write css like that in order to save space, he became an account manager

>>51423974
you need to learn jQuery if you want a front end job, but you need to learn basic javascript, learning jQuery before javascript is backwards, not knowing why something works is the best sign that a dev doesn't know what they're doing

>>51424052
use an app like this
https://prepros.io/
there's a few simpler alternatives knocking about too but can't remember names
>>
Do JSX and Jade server the same purpose?
>>
>>51423974
>What should I do?

Learn Javascript first, most beginner jQuery tutorials will just have you showing and hiding shit, which is completely ridiculous to include jQuery to do if that's all you need it for. As for what to make? Anything man. Make a static YouTube clone. Try to clone the front page of Twitter without looking at their source or anything else. You can do it mane.

Read Eloquent JS first:
http://eloquentjavascript.net/
Then:
https://github.com/getify/You-Dont-Know-JS

For little projects try to implement your own jQuery/lodash or similar library.
>>
>>51424162
does jsx get used much outside of react development?
>>
How the fuck do I call my python function using flask from my web page using ajax?

I set up my apache server with the cross origin permissions.

This is the ajax:
$.ajax({
url: '/function_route',
data: {param: "parameter as text"},
type: 'POST',
success: function(response) {
console.log("PYTHON SOMETHING " + response);
},
error: function(jqXHR, textStatus, errorThrown) {

console.log(textStatus, errorThrown);
}
});


This is the python
@app.route('/function_route', methods=['POST'])
def something():
pass


Both files are at the root of the http server.

What the fuck am I doing wrong?
>>
>>51425440
I just get the 404 error all the time.
Tried million variations of the url/path too
>>
>>51419449
i-is this a fucking joke? put dicss everywhere? js-injected css? WHAT THE F
>>
>>51423701
who the hell even uses fullscreen nowadays
>>
>>51425935
>put dicss everywhere
well, its a generalisation. You can acutally only put it into BODY or HEAD sections
>>
>>51425440
dude, wtf, you still havent figured it out??

also, having to restart the fucking server each time you change something.
>fucking python shills defend this
>>
is this proper architecture? Starting from the top down, I have:

services: They just return promises for gets, posts, deletes, etc..


factories: They contain all of (I think it's called) the business logic. They do the prepping of the data before passing it to the services like converting from camel case to title case and reversing it on the way back.
>>
fuck, making my portfolio site and all the colors I'm pickign look terrible.

Any designers here pls help
>>
I am currently using a session to tell whether a user is logged in or not.

Since that's the only thing I'm using sessions for, I'd like to stop using sessions.

Could I instead generate a random string on successful login, and then store that string in both a table on a db, and in the user's browser through either a cookie or some sort of html5 client-side storage? Then when the user makes further requests I just check his cookie.randomstring against the one in the table matching his username (and pw?), and if same, authenticated, else not authenticated.

And to simulate sessions further I'd add an expiry functionality to the random string so I could add another column beside "random string" in my db, which would just be "last logged in".
if [[ req.cookie != db.cookie WHERE req.uname == db.uname || now() - last_logged_in > some_arbitrary_time (20 mins)? ]]; then deny_request(); fi;
>>
>>51423453
>Sounds pretty simple to make, why not code it?
Considering I haven't found a good alternative plugin I'm afraid I do have to make it. I don't know how you turn something into a Wordpress plugin, but I guess I'm about to find out.
>>
>>51427802
yes just make sure you don't let it leave the server unencrypted
>>
>>51428034
sweet, I'm pretty proud of myself for coming up with that btw, since I am a big noob. I just figured, maybe there's a better way to check if users are authenticated, rather than using the non-stateless session abstraction

Now I don't need sessions :D
>>
>>51427667
http://www.color-hex.com/color-palettes/popular.php
>>
>>51415730
hey f.a.m., do you know if there is a website that lets you do this? >>834498 >>834514
>>
>>51417597
I am currently slowly rewriting a chunk of async.js code to work with Bluebird coroutines and other methods. Liking it so far.
>>
>>51428457
crap... >>>/wsg/834498
>>>/wsg/834514
>>
>>51416502
>and you're looking at minimum 90k salary a year

That's reserved for the big boys. Not recent grads and self empowered former NEETS.
>>
Is there a way to use
app.use(express.static('./'));

and still chain middleware?
I can't seem to access "console.log" when I use express static
>>
>ask about what i should do to practice HTML skills
>someone says remake a website
>choose twitter
>work on it at work
>get home
>twitter completely updated their site

WHAT THE FUCK I WAS HALF WAY DONE TOO.
>>
>>51429710
lol, you could have just used twitter bootstarp.
>>
.container {
width: 64px;
}

.btn-plus, .btn-minus {
width: 100%;
}

<div class="container">
<span class="btn-plus">+</span>
<span class="btn-minus">-</span>
</div>


Why does my span take up the entire screen instead of it's parent? Also if I try setting the span to relative positioning it is relative to the body instead of the container div.
>>
>>51429935
try setting span to width: inhereit
it should be relative to the container div
>>
>>51430273
Inherit works, thanks. I got relative to work by setting the span to absolute and the container to relative.
>>
>>51429812
i want to work on my html+css before moving onto bootstrap.
>>
Have:
><script src="lib/jquery.min.js"></script>
><script src="lib/bootstrap.min.js"></script>

Get:
>Bootstrap's JavaScript requires jQuery

What gives? jQuery is included before Bootstra's JS.
>>
Visual Studio Code is great
>>
I'm developing a project that sees if the user weights according to his length, sex and physical constitution, and recommends them different foods according to the results.

I've been trying to make it recognize the Radio input where you choose your sex, and I'm testing it by making it print the selected value, but I'm having problems making it work, help me.

    <script>
function Dietso() {

var e2 = document.getElementById("lenght").value;
var pe = document.getElementById("weight").value;
var cf = document.getElementById("pc").value;
var s = getRadioValue('sex');

if(s = 'Man') {
document.getElementById("banana").innerHTML = "You're a man";
}else {
document.getElementById("banana").innerHTML = "You're a woman";
}

}

function getRadioValue(theRadioGroup) {
var elements = document.getElementsByName(theRadioGroup);
for(var i = 0, l = elements.length; i < l; i++) {
if(elements[i].checked) {
return elements[i].value;
}
}
}

</script>
>>
I'm trying to grab an input field's value
var tip=document.getElementById("tipTotal").value;
is giving me 'undefined'.
Wtf. The value is an integer. does that make a difference?
>>
>>51433232
Try getElementsByName and .checked instead of .value
>>
>>51426681
>https://prepros.io/
>each time you change something

plebs not using debug mode
>>
Why the fuck do all Postgres tutorials tell you to make a new connection for every query/endpoint? What's the fucking point? Can't you just setup a single persisting connection and use it across requests/queries?
>>
>>51426681
flask autoreloads in debug mode you mong
>>
>>51433616
>>51434101
I'm not using flask (or python), I was just intrigued by this dude >>51425440
>>
>>51433616
also, linking me proprietary grunt/gulp clone with ui
>>
>>51434091
Of course you can and if you don't do it your a gigantic faggot. Connecting to DB is really expensive and slows down your application, that's why you don't want to do it often. There's even a thing called connection pooling.
>>
>>51434218
Apparently you're not supposed to do that because PGSQL executes a query per connection.
>>
>>51431689
Copy the jQuery path, and paste in on the browser's navigation bar. Or check the requests in the URL tab, in your browser's developer tools.
>>
So far React + page.js has been a better experience than AngularJS. It took me 6 hours to get the environment up and running tho (gulp, babel, webpack).
webpack seems to produce smaller bundles than browserify.
>>
>>51434971
Forgot to mention that webpack seems to have some issues bundling complex css like bootstrap's, there seem to be some solutions for that but i've had no luck with them. I could always use gulp-concat and other modules but i'd miss webpack file watcher (it's faster than gulp as it caches the shit out of your files before hitting the disk)
>>
I had to redesign a website in Foundation for a college project, about 6 weeks in total, currently 2 left and I still didn't finish main page though. I spend so much time on details that I'm starting to think I'm a gigantic autismo lol. Anyway, I was looking for the best method to do a simple parallax effect but Foundation fucks everything up so I decided to just add Parallax.js. Might as well fully bloat it with everything I can. Everything works and looks great though but I have a one problem, maybe someone could help me with it.
I want to have a top bar with hamburger that shows a sidebar - basically "offcanvas" in Foundation, but the problem with that is that it can't stay fixed at top and just normally moves up when scrolling. Any way to make it possible with Foundation or should I code it from scratch (too lazy for that at the moment, sidebar styling makes me rage)? I've already look up some possible solutions in Codepen but not one is good. Well, except this one:

http://codepen.io/rafibomb/pen/hApKk

Actually, if someone can figure out how to fix that overflow on the scroller I would greatly appreciate it, because that is the only reason that stops me from using it.
>>
bamp
>>
FAP.net dev here.

Someone was asking about Microsoft's implementation of http? Well I found some code and decided to benchmark Microsoft's http against mine, turns out my implementation actually is more performant and Microsoft's implementation is only really as performant as node.js. I'm actually okay with this, by the one millisecond level you're going fast enough to have virtually zero side effects.

Meanwhile php devs are bragging about 40 requests a second... Microsoft gets around 2000 (along with node.js) and I get around 4000.

Question remains, why are you using php?
>>
>>51436898
Does your server fully support HTTP/1.0? How about TLS, SPDY or HTTP/2.0?
>>
Stupid question here.
How can I simply execute one time a simple JS script from a keyboard shortcut in Firefox (i.e. when I press ctrl+p the script 'javascript:chatbox.connect();' is executed.) ?
>>
>>51436898
Can you add methods instead of building the headers by hand? You trash on PHP, but spaguetti code (concatenated strings) can be created in any language.

Also, when I search "fap.net", I do not find the github project at all.
>>
>>51437575
Yes, virtually a full implementation.

No tls or spdy. I've thought about it, you really should use something like nginx or apache to handle tls (and gzip, don't forget to compress!) for you. Especially since I'm not too keen on handling signatures and other tls stuff.

>>51437628
I've thought about it, maybe I could make an add header function? In the end it'd just append the header to the headers string with a prepended carriage return, basically nothing you couldn't do in 2 or 3 lines of code.

Maybe
AddHeader(string name, string contents)

So you can add headers like

AddHeader("Content-Type","text/html")

Funny, Github finds it for me, then again I'm logged in as the dev.
https://github.com/MichaelFroelich/FAP.NET

I only trash php for funsies, really, use the language you're comfortable in. Also, it's a little slow, I don't like prefixed variables and I don't like a lot of it's other syntax. Of course spaghetti code can be written in any language, but that's not really something I'd flame php about. IMO it's just ugly.
>>
>>51437783
Does it at least support upgrade to HTTP/1.1 and websockets?
>>
>>51437816
You mean the directive to upgrade? No, I didn't really understand that when I came across it, that's in a later version though isn't it? And no, I wanted to avoid socket things, just keep it simple with http verb methods. I assume you want persistent connections, which would be helpful for streaming or whatever, yeah it bothers me too.

I'm returning http/1.1 as the http version though. I had some problems with my own vps returning http/1.2 and http/2.0, so I left it at http/1.1 since I'm using 1.1 things.
>>
>>51436898
18 requests per second master race reporting in
>>
>>51437873
So basically it's fast because it's stripped down and not fully implemented. No offence, but that is not very useful. More so, since the shift to HTTP/2.0 is already taking place.
>>
>>51437911
Try again in production with HHVM or PHP-fpm (and php artisan route:cache + php artisan config:cache)
>>
>>51437931
>41
but its on php7, I know that it would be faster with HHVM.
>>
>>51437931
>artisan
>>
>>51438001
Are you using Nginx, Apache 2.2 or Apache 2.4?
>>
>>51438001
btw, it would be faster with one of the many light routers available, but depends on your app.
>>
>>51438021
OS X version -> Apache/2.4.16 (Unix)

If I wasnt lazy, I would upload it to my linux server with hhvm to test it.
>>
>>51415785
would also like to know this
>>
>tfw made entire backend in the first day
>tfw its been 9 days since i started working on the frontend and i just reached 50%
>>
>>51426784
If you're working, then as the people who manage projects there what their architecture is and adhere to that.

If you're not working, then holy fucking shit, stop trying to inject disgusting "enterprise" architecture bullshit into your personal projects and just do the way that's the most efficient and makes sense to you.
>>
>>51437783
>virtually a full implementation
>No tls
Hahahahahahaha kill yourself.
>>
I was working on website header design and implementation for like 5-6 hours today. I like it very much but still not finished completely. Is that even normal? Like, it takes me weeks to do a single page. I could do it in an hour ofc, but it would be shite desu.
>>
>>51439148
Impossible to say without knowing what it looks like, several weeks for a single page sounds a bit much, though.
>>
>>51439148
Also, it's incredible how so much time can pass and I wouldn't notice it at all. Like, wtf did I do during that time? I was browising inspiration, some coding problems, testing, changing and changing again, coding, deleting, recoding etc. It's probably less than 100 lines of code. Man...
>>
>>51439190
Ok desu, I was working for like an hour and not even every day during those weeks. But still... It takes a lot of time to organize all the content, find materials, make a skeleton and brainstorm UI...
>>
>>51428174
jwt
>>
My button has only left and right border. When I hover over it, a top and a bottom border show up. The problem is that it makes the content above it to move up by 1-2 pixels and it is annoying as fuck.

How to fix this?
>>
fuck bootstrap piece of shit
>>
>>51439605
eh nvm, just made the borders transparent instead of disabling them. Now it's ok.

Also,

>>51439634
Same, except I'm dealing with Foundation. Fucking shit breaks so fast god damnit. I'd rather not touch any of it and just make my own shit. It is only useful for grids though, I can't it that desu senpai.
>>
>>51439661
>"it that"
>meant "into that"
>>
Need some money. Anyone have a project and a few thousand dollars to give to a full stack web dev?
>>
>>51440221
I'll give you $10 if you suck my cock, dude.
>>
>>51440427
how rood
>>
>>51440221
I will give you $0 to make a minesweeper clone with react (or whatever other library you like).

the catch, instead of squares, you put 2D muslim images.

I would do it myself, but I live in a muslim infected country. Somebody would kill me :)
>>
>>51440579
like this, but 2d imagery
>>
>>51440649
>>51440579
But how would you win if every "block" explodes?
>>
>>51440665
lol, that would be even easier to program. :)
>>
Just started learning codeigniter.

Never used object-oriented php or MVC.

Kind of confused as to what I actually learned after seeing all of this. Looks more like Java than my version of PHP.
>>
>>51441041
kek

So you can make a responsive site just using rem and width %? That's what I'm doing and it is working. Feeling boss

fk ya
>>
>>51417415
http://jsfiddle.net/0wuqLt60/1/
>>
>>51441154
Well I want a job in web dev and everyone wants object-oriented php and some kind of framework like CodeIgniter (being the most popular in my area).

No one even gives me the time of day for an interview currently.
>>
Trying to recreate twitter log in page.

I need to get the login and sign in to move up towards the top.

This is what I got so far.

https://codepen.io/anon/pen/OyqeYv

>twitter.com looks completely different on chrome than firefox
>chrome

dont blame me im at work.
>>
Messing around with TypeScript, really nice so far.
>>
>>51425440
Put simply, you can't. You also shouldn't. Just define a view for REST. Have your ajax pass a query string to the server.
>>
>>51441041
Codeigniter is a nice start into MVC frameworks. It has one of the best user guides available, and lot of 3rd party libraries.
But it shouldn't be your only framework for several reasons. You should learn how to use Laravel or Yii or "X" framework in the future (not now).

Also, check phptherightway.com
>>
>>51440579
maybe make them all muslim women.
They would all have a rag on their head thus making them unknown.
Clicking on one would remove their rag and reveal their face.
Terrorist want to hurt the western society so they would be near beautiful women.
Since there is no beautiful sandniggers, anything above an 8 is impossible.

If you make this, might as well offend people.
>>
      function drawCarton($cartones)
{
print_r("Se van a generar ".$cartones." cartones.");
for($x=0;$x<$cartones;$x++)
{
$cartones[$x] = array();
print_r('<table border="1" style="width:7%">');
for($i=1;$i<=9;$i++)
{
print_r("<tr>");
//numbers is now an array of 3 numbers
$numbers = fillRow($i);
print_r("</tr>");
array_push($cartones[$x],$numbers);
}
print_r("</table><br>");
}
}



Why am I getting "Warning: Cannot use a scalar value as an array in C:\xampp\htdocs\bingo\functions.php on line 15"

WHat is a sacar value and why aren't I defining this array correctly?

Since fillRow returns a 3 value simple array I wanted to make a bigger array with 9 instances of fillRow per index.
>>
>>51441271
>>51441271

pls respond.
>>
>>51441544
Read the docs for array_push.
>>
>>51441482
I'm not understanding the PHPtherightway website. Looks like a list of resources?

These jobs...there are literally entry-level jobs that require 3+ years in PHP HTML5, CSS, Javascript/jQuery, Rails, ios development, android development, windows phone development, 1990's nokia development"
12 dollars an hour.

Then everything else is senior-level with 30 years experience and $400k starting.

If I find something that's like "PHP/mySQL, HTML and CSS, some Javascript" and I apply? No response because apparently the entire metroplex knows this.

Feels like the only way to move ahead is to learn way more than everyone else or already have a successful website to stand apart.
>>
>>51441599
Like this or what:
https://codepen.io/anon/pen/MaRpVw
>>
>>51441720

I need the Login and Sign ups be directly next to the Welcome stuff. Like 2 Columns.

I'm at work and I can't really work on it or find the time to do research on it
>>
>>51441666
>>51441544
Read array_push docs , I got this more or less going, I now output the values.

Array ( [0] => 4,,6 [1] => ,, [2] => ,, [3] => 45,,49 [4] => 53,, [5] => ,, [6] => ,, [7] => ,, [8] => ,98,91 )

In the same array 3 times.
My idea was to have all those diamonds and numbers in one index

Array(
[0]1,2,3,4,5,6,7,8,9,0....
[1]1,2,3,4,5,6,7,8,9,0....
[2]1,2,3,4,5,6,7,8,9,0....
)


function drawCarton($cartones)
{
print_r("Se van a generar ".$cartones." cartones.");
for($x=0;$x<$cartones;$x++)
{
$_cartones = [];
$strNumbers = "";
print_r('<table border="1" style="width:7%">');
for($i=1;$i<=9;$i++)
{
print_r("<tr>");
//numbers is now an array of 3 numbers
$numbers = fillRow($i);
print_r("</tr>");
array_push($_cartones,(string)implode(",",$numbers));
}
print_r("</table><br>");
print_r($_cartones);
print_r($strNumbers);
}
}



sorry if my code is a bit un-intelligable and thanks!
>>
File: lovelycat.jpg (66KB, 627x429px) Image search: [Google]
lovelycat.jpg
66KB, 627x429px
>>51441693
Well I wish I didn't read this comment. I have to start looking for an internship soon and after the free labor I'll probably be fucked according to a random anon.

Which city you in anon and where are you looking for jobs?
>>
>>51443356
There's one disctinction though: Yes, there are lots of people who know that stuff, but there aren't a lot of people who use it correctly. Focus on one thing, study it, explore it the best you can- and git gud at it. Get even a shitty job, but spend your free time in studying the stuff you like. After couple of years (like one or two) apply for a better job in technologies you like and that's it.
>>
>>51441693
>"PHP/mySQL, HTML and CSS, some Javascript"

That's pretty much all I fucking know, with some node.js and very little python. I'm doing CIS (with security emphasis) but web development is all I'm passionate about.

Not too excited about the future.
>>
>>51443560
>>51443508
>>
>>51443508
This.

I just put out my resume saying "I don't care what you pay me"

I don't. I will work for minimum wage if it means 2 years down the line I can land a decent wage at another company.
>>
>>51443508
>>51443356
>>51443560
lel, you guys don't understand. That's what they WANT TO HAVE.

What ends up happening is they take whoever they can get, which is why you should apply to those jobs regardless.
>>
>>51443741
"Can I please see some samples of your work?"


I have no samples of my work. I can't make a page that does nothing.
>>
File: image_15.jpg (23KB, 423x287px) Image search: [Google]
image_15.jpg
23KB, 423x287px
>>51443508
Yeah I know from doing tech support that the first important step is accruing experience. Finding my first job took me almost a year and after that I was getting job offers left and right.

I'm hoping my journey into Web dev is easier. Problem is class I took for Javascript was fucking garbage. So I suck at it so far. I gotta start busting my ass with it next semester. I know people that can't make a good looking website for shit but know Javascript and get 50k easy being a code monkey.

>>51443741
Well I understand that but if you go for a position that is app development and you say gee wiz mister I never done that before, they're going to tell you to get fucked and if you're in a highly competitive area/small area. You're wasting everyone's time and that can earn you a reputation, if you're in a small area you can burn bridges and fuck your self.
>>
>>51443748
figure something you

post on cragilist for doing work 10$ an hour, bite the bullet now so you can fuck it later

>>51443812
there is a modicum of not being a retard that goes without saying
>>
>>51443748
>samples of your work

I made an e-commerce website from scratch with a custom admin panel/CMS in 4 months for a final year project in college. It's riddled with security flaws, though, and updating it is a bitch because I didn't use a framework to tie it all together. I'm contemplating putting it on GitHub so I can use it as reference.

All I have right now is a personal website I made with its own custom CMS/admin panel. I was smart enough to built it with Laravel this time around, and Bootstrap (bootstrap counts for little, but I'm really good with this).

>>51443508
I'm way above average when it comes to PHP (trying to say that without being cocky). I'm hovering around average with the other languages.
>>
>>51443827
You can't rely on common sense to save the stupid from burning flames.
>>
Why is this general so dead?
>>
>>51444847
Us webdevs have a life unlike those losers in /dpt/.
>>
>>51444859
That's probably true. Speaking of having a life, I've heard that the Web dev field is littered with womens. Can anyone confirm this? All my old tech jobs I was office bullied because I didn't give a fuck about Manga, Babylon 5, monster hunter, etc...

I'm not saying I'm beter than them, I'm just more like booger than the rest of the nerds. I have little to no interest in the mega nerd hobbies. I like vaginas, how are the number of vaginas where you guys work?
>>
>>51445184
>I like vaginas
I forgot to mention we're also fags.The women are frontend devs and don't know shit 90% of the time.
>>
>>51445232
Again I'm guessing that you're right. There were a lot of gaylords in my classes. Fuck... I've always had problems getting hit on by fellows in the gay community. They tend to do it a lot.

Are macs super prevalent as I am told to believe?
>>
Anyone know how to use the Openstreetmaps API?

Mapquest and google charge money.
>>
Really making a website is a fucking pain in the ass.

Want to autofill a city/state? GIMME 100 A MONTH. Fuck off.
>>
>>51445462
Use leafletjs
>>
>>51445626
I need to pass 2 city/states and get a distance between the two.

Leaflet can do that?
>>
>>51445645
It's just a wrapper for multiple map libs. Read the docs.
>>
>>51445728
I'm not seeing much. The few things that I could pull data from require me to display an entire map.

You think I could host planet.osm and do some sort of straight line distance between two points?

http://wiki.openstreetmap.org/wiki/Planet.osm
>>
>>51423465
Your ad block doesn't fix cosmetic stuff.

Use ublock origin and active the cosmetic filters.

Also don't use Google, use proxied google like https://searx.me (very useful to wdg since you can activate stack overflow, search code code, and github engines) or https://search.disconnect.me
>>
Disregard. I can apparently use the Haversine formula and just use a download for city state to lat long.

This makes it WAY WAAAAY easier. This is actually cool as fuck.
>>
>>51419449
bump, should I learn how to use it???
>>
File: bumping.gif (1024KB, 193x227px) Image search: [Google]
bumping.gif
1024KB, 193x227px
>>51415785
>>51438567
^this
>>
what i dont like about php view loaders and template systems is, how you have to assign your variables before rendering the view, like

$this->loader->assign('title', $title);
$this->loader->render('views/header');
or in one line
$this->loader->render('views/header', $title); // usually an array


but i do like having to do $x->load->template instead of typing include/require in my controllers. it's neat and more readable. the problem is the scope, since you're rendering the file from another class, you can't use your current variables

class MasterController
{
public function render($path)
{
include 'views/' . $path . '.php';
}
}
class HomeController extends MasterController
{
public function index()
{
$title = 'Homepage';
$this->render('default/index');
}
}


how would i bypass the scope here? the view gets loaded inside MasterController's scope so $title is undefined
>>
>>51423969
Ok explain, is it because he's using only child selectors even though he has class names already specified? Or is it the single line madness?
>>51424110
Is becoming an account manager a bad thing¿
>>
>>51423974
I think I had answered another question like this.
Just think of sites that you look at on a regular basis. Make the site then without looking at the code.

Think like news sites, blog sites, your favorite online pizza order place. Etc
>>
>>51428568
Wells Fargo pays big boys 100-140k for front end or back end
>>
>>51447570
>few years ago
>making an account at wells fargo
>your password cannot be longer than 8 characters
>wtf

I hope they fixed it
>>
All I can do is make generic looking sites, how do I git gud at making attractive sites? I'm not so good at the design aspect of it, I would like to get better. Is there any sites you got for inspiration or am I likely destined to just be bad at design?
>>
>>51447608
Just take bootstrap themes and change a few things around.

Most web design firms I know just alter wordpress templates and sell that shit to the client like they made it.
>>
Whats the best way to create static websites now? Do people still use jekyll?
>>
Why do people here insist on Python instead of Ruby?
>>
>>51450130
Jekyll's advantage is that it's the most popular and well supported but it's slow as fuck. I'm preferring hugo at the moment: fast and you don't have a bunch of shit to install
>>
>>51446512
Render everything in a single method, from an instance array.
>>
React.js is fucking magic, oh my god. I feel like a child now.
>>
>>51450130
Wordpress
>>
>>51450130
For github pages:
http://hubpress.io/
More names:
http://superdevresources.com/static-site-generators-2015/
>>
Has anyone made an application in Polymer yet?

What elements do you miss most? I wish it had a multi select a la selectizr and data and time pickers.

...And much better performance on IE.
Dat rendering time.
>>
>>51450880
I just don't know how you'd deal with the one way data binding. I like the declarative syntax that Angular and Polymer allow by just binding to attributes and having the bindings change when stuff happens.
>>
>>51451745
>binding to attributes and having the bindings change when stuff happens
It also terrible for performance.
>>
>>51451745
As a former Angular user, I understand your concerns, but the way to implement "two-way" bindings in React (LinkedStateMixin and events) makes the control flow more predictable in my view: it triggers renders/updates in all nodes on a given tree and thus state is (nearly) always consistent.
The down side is having to write a bit more of code.
>>
>>51451813
how does one do it in react? you send a function via props down to children??
>>
>>51453228
Exactly. And when a parent is notified of a event he issues a this.setState() or something that forces an update/redraw of the children.
>>
>>51451706
I did like a year ago.

Didn't have any background in modern web applications like two-way arguments etc, so I was quite confused.

It crashed firebug because of polyfills everytime it was open, so I had to use chrome.

Really like how it looks but wouldn't use it again, there's much better frameworks now.
>>
>>51448864
LOL seriously? Thanks man.
>>
>>51453597
well, thats why webdesign prices are so low nowadays.

I do exactly the same thing, get a free worpdress template and modify it to fit the customers taste.

And it still takes me 4-5 days to do this. And since this is easy to do, the competition is hardcore and the prices keep sinking
>>
>>51446221
Now I see why all the ladies keep talking about exercise balls for office chairs.
>>
>>51453769
I-is it a dying industry anonkun?
>>
>>51453911
depends on your specialisation. If you make pages which are basically just online flyers, you are fucked.

If you make complex web apps, you probably dont have any competition (wouldn't know for sure, since I dont do this).
>>
>>51453911
The low-end part of it is pretty shit, there's still lots of money to be made in the specialized part of it and will be for many years.
>>
File: reaction.jpg (19KB, 180x180px) Image search: [Google]
reaction.jpg
19KB, 180x180px
>>51453962
Specialized part of meaning something like online stores or PHP?

>>51453961
Well as you may have gathered all I can do right now is make generic web sites (probably generic online fliers), nothing a curry couldn't make. But I'm trying to get better which is why I was asking about making better looking sites.

I'm hoping that I'm not fucked before I get out of the gate. But I was thinking since the job market was jumping so high and the huge influx of bootcamps was going to fuck the industry.
>>
>>51454356
yes, every teenager gets into web design, its just too saturated to make real money.

also, consider the evolution of technology and tings like www.squarespace.com/ . The savest bet would be building high quality specialized web apps. For example you just make a reservetion system website/app for hotels.
>>
>>51454483
Not this anon but what I am doing is trying to port/re-engineer a desktop application for the web. However, this is more of a hobby and contributing back into the game's community but also exploring new tech and designs that I can't freely employ in my work which is also web development.
>>
>tl;dr on how to get a job
Build cool shit
>>
File: australian steering wheel.png (722KB, 605x607px) Image search: [Google]
australian steering wheel.png
722KB, 605x607px
>>51454483
for the record are you talking about freelance being too saturated? Because I personally was not wanting to go down the freelance path, I'm happy with getting a firm job.

>>51453962
care to elaborate a bit?

Side note: React or Angular?
>>
>>51453274
Which one do you use now? React?

I really enjoy polymer. It has changed a lot since 0.5 (last year). I like how web components are actually going to be a thing eventually. This stuff will finally bring web development into the 21st century. We will finally be able to make truly reusable stuff.
We will no longer have to rely on libraries like jquery to generate a bunch of divs to get what we want (and mess up our styles and selectors because of it) and manually bookeep all dynamically created elements because lol javascript selectors.
>>
>>51454848
>care to elaborate a bit?
Just build cool shit, games, visualizations, web apps...
>>
>>51454808
Or learn the buzzwords.
>I'm specialized in SEO and dynamic web application development with offline-first, mobile-first with a test-driven development flow, bla bla bla...
>>
>>51454892
ember.js
>>
>>51451803
only if you're a retard that doesn't understand algorithmic complexity, idempotence, or how/when digest cycle is triggered.
>>
>>51455194
It still eats plenty of CPU cycles and RAM. That's equivalent to telling your mobile users to fuck off.
>>
>>51433232
>
if(s = 'Man')

This assigns s to man, not compares if they are equal

if(s == 'Man')

Is what you want.
>>
File: 1447266317493.jpg (53KB, 497x500px) Image search: [Google]
1447266317493.jpg
53KB, 497x500px
Which free Drupal theme is currently considered to be the best in the business?
>>
>>51455813
Not sure, google "best enterprise Drupal theme".

What do you guys think about Silverstripe? I might never touch Wordpress again.
>>
File: csAvMCd.png (501KB, 1920x1000px) Image search: [Google]
csAvMCd.png
501KB, 1920x1000px
hot or not streaming edition
rate faggots

live:
http://162.243.82.237/work-in-progress/streaming/
>>
Does anybody know of a library or a proven method to describe reports?
I'm trying to find a good way to output some preprocessed json from the server so that the client can render it according to the metadata/rules without causing house fires in the user computer.
>>
File: rateIt.png (94KB, 1858x1080px) Image search: [Google]
rateIt.png
94KB, 1858x1080px
how do the colors/layout look?

Still need to change font-sizes.
>>
>>51456943
colors are way too strong and imo adding borders below a top menu is overrated
>>
>>51456943
I don't like it at all.
the navigation text just floats around nowhere, the white border looks weird, the colors look off.
>>
>>51456943
the navbar/body contrast looks good but the text/navbar one does not. try using white and making the current link bold
>>
I really fucking hate all these js libraries.
>>
>>51456987
what you'll see if you look at some of my previous projects that have been linked weekly in these threads is that I tend to keep to a maximum of 3 or so main naviagation colors. And I always make sure they match. For example a strong red doesn't mix well with a saturated blue or the other way around. Also green is disgusting and you should kill yourself.
>>
>>51456943
I bet he puts color:red; green etc in his css.
>>
>>51456885
feels a bit empty. but I'll guess you'll add more content later on (could use more menu items, icons , submenu or breadcrumbs, subtitle for each item)
>>
>>51455813

There can't really be a "best" theme. As soon as a theme became popular, it becomes "too popular" which itself is a downside.
>>
>>51450191
>it's slow as fuck
?

$ time jekyll build
Configuration file: website/_config.yml
Source: /website
Destination: /var/www/html
Generating...
done.
Auto-regeneration: disabled. Use --watch to enable.

real 0m2.641s
user 0m1.733s
sys 0m0.387s

>>
>>51457021
Not exclusively, but I do when I'm just testing things out.

>>51456977
I was thinking a line under or to their left or right, what do u think?

>>51456987
>floats around nowhere
I think most do that. I'll group them closer together.

>>51456995
thx 4 the actual suggestion

I'll switch things up, desu.
>>
File: Screenshot_1.png (766KB, 1920x998px) Image search: [Google]
Screenshot_1.png
766KB, 1920x998px
hot or not updated to look not shit edition

live:
http://162.243.82.237/work-in-progress/streaming/

>>51457042
better now? definitively adding a drop down for the "settings" menu, but javascript is a pain
>>
>>51457445
images have two class attributes.

I feel like the hover is too slow, also why dim it when I hover it, highlight it!
>>
I want to scrap a shitload of data from one site and make stats and the likes off it on another, the data would have to update each day.

What'd be the right approach to it?
>>
>>51457475
>images have two class attributes.
fml totally forgot about that. went to go get something to drink and rip.

>I feel like the hover is too slow, also why dim it when I hover it, highlight it!
that actually looks a lot better. makes the images when not hovered over look more neutral and fit the theme I'm going for. also changed it to .35s.

thanks habbibi
>>
>>51457619
I have a scraper running off a scheduled task three times a day.
It scrapes the data and saves them into a database.
>>
>>51457445
I'd drop the borders or at least make them stand out less, also what is this for?

Do you need the release date in the title? Why not add a second row with meta-data like that (length etc) or show that only when hovering on the thumbnail itself?
>>
>>51457654

What language is the scraper written in?
>>
>>51457445
you should point to the font files in your css for users who don't have open sans installed.
>>
>>51457755
It's a C# console application
>>
>>51457668
>I'd drop the borders or at least make them stand out less, also what is this for?
The borders were kind of a design choice since I want it to be kind of obvious what you're hovering over and not have them suddenly move because a border that wasn't previously there appeared. As of now this isn't really for anything in particular, I just sort of like starting on projects whenever I'm bored. Might make some movie streaming site or some shit.

>Do you need the release date in the title? Why not add a second row with meta-data like that (length etc) or show that only when hovering on the thumbnail itself?
Added it below the image. Might make it appear on mouse-over, but javascript is boring.

>>51457760
done. your average windows 95 user will thank you.
>>
>>51458138
You can do a lot of animations with pure CSS.
>>
>>51458138
you can use outline instead of border so it doesn't move.
>>
>>51458287
made it 70% transparent. it looked a bit weird without them at all, so now its more of a faint shadow thing. not sure if this looks better or worse though.
>>
File: 1426858342702.jpg (31KB, 456x320px) Image search: [Google]
1426858342702.jpg
31KB, 456x320px
<div class="form-group form-group-sm col-md-2 col-sm-4 col-xs-6">...</div>

>tfw i fell for the responsive meme
>>
>>51458696
just use width and rems, ems. That's what I'm doing on >>51456943
it is fully responsive
>>
>>51458696
what the fuck is wrong with you? just make a separate style-sheet for mobile devices and set it to be used when the device width goes below 700px.
>>
>>51458823
that's how bootstrap/foundations grid system works.
>>
>>51458848
>>everyone
that's it. why do people use css frameworks? its so much fucking easier to just do everything yourself. plus you don't have to deal with the pain of trying to change the color scheme of a 2000-line long stylesheet that uses up half of the client bandwidth and barely functions the way you want it to.
>>
>>51458936
You just change the color variables if you want other colors.
>>
>>51458936
because you don't actually use the stylesheet, you use the files before compiling them to css where you have one file with all the variables where you need to change it once and it changes for all.
besides you don't have to worry about anything basic and it keeps everything looking the same.

<a href="#" class="button alert">delete</a>

link button that looks like all the other buttons with your alert color choice.

<div class="clearfix">
<div class="left">content left</div>
<div class="right">content right</div>
</div>

look how easy it is to make stuff appear next to each other and not worry about how to float, position, make it responsive etc.

so much time saved by not fucking around with the basics.
>>
>>51459008
well, this (http://162.243.82.237/work-in-progress/streaming/) took me literally 3 minutes to write and I got to customize everything. This would take you at least an 30 minutes to do with bootstrap.
>>
Why is it that for client side routing, many SPAs use hashbangs in the URL, even though having regular URLs works just fine?
>>
I want to put a little game (probably Asteroids) in a canvas on my website, what's the easiest of going about that? Is phaser.io any good? Any better alternatives?
>>
>>51459197
These browsers have a limited support for the browser history object:
IE 6, 7, 8, 9, (10)
Firefox 3
Opera 10, 11.0
Safari 4
Safari iOS 4.2, 4.1, 4.0, 3.2

Taken from:
https://github.com/browserstate/history.js/
>>
>>51459210
I like PIXI because it only does rendering so you can control the other stuff yourself, it's also really fast.
>>
>>51459251
I see. Thank you.
>>
>>51459197
it requires server side url rewriting to make /items/25 actually go to index.html, which some just don't have or it's not easy to setup.
where as /#/items/25 will always work.

(unless you use IE8 or below and try to 302, which just throws away everything after #)
>>
>>51459145
I use bootstrap because everything is ready to use. I'd still use a framework (pure in particular) if I were to design my own shit, it speeds my work up.
>>
>>51423969
It's supposed to be good practice to write elements on one line if they only have one value/property
>>
>>51459279
I'll look into it, thanks.
>>
I made some shit for data binding:
https://0x8890.github.io/simulacra/
>>
>>51458696
>implying this is somehow worse than writing 3 different media queries for the same element
>>
How to deploy minified style sheet and js automatically?
>>
>>51461607
gulp
>>
>>51461607
grunt
>>
Are there any libraries like socket.io which simplify ajax but don't require the server to remember (store in memory) a connection?

My javascript looks something like this:
var io = require('socket.io');

io.on('connect', function(socket){
var isThisAClojure;
socket.on('dude', function(){
console.log('wassup');
});
});


Two things.
1. In my experience so far, that variable, "IsThisAClojure", isn't destroyed in between the socket emitting things, so I think either it's a clojure or that function, "io.on('connect', function(){}); , doesn't exit until the connection closes.

Does the function callback sent to io.on('connect' ...) contain clojure variables?
>>
>>51462060
ajax really isn't that complicated m8
>>
>>51462085
With or without jquery?
>>
>>51461607
Makefiles
>>
>>51461607
Does minification matter?
It's just removing unnecessary whitespace and newlines, right?
>>
>learning HTML + CSS
>want to create a website
>can't think of anything
>was told to recreate a website
>everything is animated like crazy

Are there any websites out there that aren't dynamic as shit?
>>
>>51462092
w/o
>>
>>51462123
Recreate this http://motherfuckingwebsite.com/
>>
>>51415730
Hey /wdg/ I have a job interview soon and they're going to test me on HTML5, CSS3 and regular JS. I'm pretty familiar with HTML5 I think but I'm a little worried about CSS3 and very worried about JS.
What do you think they'll want for CSS3? Media queries and animations? And what for JS? I know loops, arrays, objects, but never practically applied them desu.
>>
PHP, Python or Javascript?
>>
I once spent 2 hours fixing a CSS issue. I'm not cut out for web development imho tbqfh family
>>
>>51462453
Well if you had the same problem again how long would it take you to solve it this time?
>>
>>51462494
Right away since I already know how to.
>>
>>51462576
Well there you go, once you've spend 1000 hours you know how to solve 500 CSS problems and will rarely be stuck again!

This is called "learning" if you want to look it up on Wikipedia or something.
>>
>>51462420
Javascript or Python on pypy.
>>
Are webfonts ever actually worth it in a dynamic page? Is the page loading overhead just too damn shit for the improved aesthetic to be worth it?
>>
>>51462977
It's a few kb, you decide.
>>
Validating your html. Y/N?
>>
>>51463443
Yes, but no need to be autistic about it.
>>
im 21 with no job experience
can i make it in webdev?
>>
>>51463479
no. webdev at this point should be a hobby and not something you want to work with. unless you of course somehow come up with a great way to steal someone elses idea and make money from it at which point its a great way to make money
>>
>>51463479
Depends where you live
>>
>>51463611
india
>>
>>51463621
Seriously?
>>
>>51463672
yes, why doubt it?
>>
>>51463693
Well you're fucked then, enjoy working for $1/hour.

My advice to you is:
1. Poo in the loo
2. Git gud and move to a real country
>>
>>51463621
get the fuck out of there
>>
File: 1448135505904.jpg (30KB, 300x300px) Image search: [Google]
1448135505904.jpg
30KB, 300x300px
>>51463621
> designated poo in the loo
>>
this thread still alive?
>>
is a single page application literally just on one URL? or can it have /whatever?

what actually makes it a single page app?
>>
>>51465353
It's a single page.
>>
Well, just spent the last few hours reading the first half of "Don't Make me Think"

I learned some things, but knew much of what's written. The book's funny though, so it's 'k
>>
Anyone here use Backbone.JS?
>>
When building static websites, is there any reason for not using github pages as a free hosting service?
>>
I'm having problems getting fonts to work in CSS using the @font-face and font-family shit.

Nothing I do is working. I put the @font-face block at the top of the CSS file, and I made sure that the font-family name in the CSS matches what it is in the <span> element. I know the CSS is getting imported since the rest of the page is styled right, not to mention chrome showed that it downloaded the font.

I've restarted my browser several times and it doesn't work.

What am I doing wrong?
>>
>>51467262
I've also made sure that the css file has the correct location for the font and still nothing.
>>
>>51467285
>>51467262
Check to make sure some other block isn't overriding it.
>>
>>51463479
Learn something different besides backend language/MySQL/Javascript and you might have a chance.
>>51467025
Github is for development related stuff (portfolios are fine, for example).
>>
>>51467847
Oh so you cant use github pages for random personal shit? TIL
>>
>>51466868
Yes. What do you want to know?
>>
How can I change a border color of input type text/textarea? It doesn't work like it should, blue is still visible.
>>
File: 3.jpg (223KB, 549x563px) Image search: [Google]
3.jpg
223KB, 549x563px
I use this method to check if javascript is enabled.

function JS(){
document.getElementById("test").innerHTML="<center style='font-size:32;font-weight:bold;color:green;'>JavaScript Enabled</center>";}


Is it safe to use?
>>
>>51468322
why would it not be safe?
>>
>>51468178
>blue
your talking about outline
outline: none;
>>
>>51465353
it can have as many urls as you want (but they all load the same app)

you would use a routing library to tell the app what to shop based on the url
>>
>>51468322

jsfiddle.net/h3s9t9rn/

Fuck spam filter
>>
>>51468353

I don't know I'm new to this and my project really needs javascript to function or else one can exploit some elements.
>>
>>51467262
Check the console to see if you're getting errors related to grabbing external resources.
>>
>>51468362
Ooh, nice. Thank you!
>>
>>51468376
>body onload

I barfed a little.
>>
>>51468558

Care to explain instead bitch nigga?
>>
>>51468589
onload triggers when all resources are loaded (css, fonts, images). if you have a lot of images and are on a slow connection it can take quite a while for it to execute.

either use the domready event or put scripts before the end of the body.
>>
tfw 4chan pass is expiring in a few days. Is this place going to be around for another year? I don't know what to think of azn moot
>>
New thread:
>>51468957
>>
>>51468362
That's rather bad for accessibility, though. You should have some kind of outline.
Thread posts: 314
Thread images: 22


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.