[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: 23
File: 1456449140972.png (868 KB, 822x552) Image search: [Google]
1456449140972.png
868 KB, 822x552
Old thread >>53445483

> Discord
https://discord.gg/0qLTzz5potDFXfdT

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

>Learning material
https://www.codecademy.com/
https://www.bento.io/
https://programming-motherfucker.com/
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md
https://www.theodinproject.com/
http://www.freecodecamp.com/
http://www.codewars.com/
>Crockford on Javascript
https://www.youtube.com/playlist?list=PL7664379246A246CB

>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.
http://www.programmableweb.com/ - List of public APIs

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

> How to get started
http://www.youtube.com/watch?v=pB0WvcxTbCA
Good videos on the channel too
https://www.youtube.com/channel/UCVTlvUkGslCV_h-nSAId8Sw

>cheap vps hosting in most western locations
https://lowendbox.com
https://www.digitalocean.com/
https://www.linode.com/
https://www.heroku.com/
>>
how would I do something like this

http://www.theguardian.com/us-news/ng-interactive/2016/mar/15/florida-illinois-missouri-north-carolina-ohio-live-results-primary-caucuses
>>
>>53511468
CSS animation.
>>
Anyone here have experience with GUIs like Electron, Shoes, or GTK?

I'm starting a pet project which will take in an API and it will be a desktop application.

I'm considering Shoes/GTK and Ruby because I'm focusing on Ruby right now but I don't want my application to look like shit. I'm not sure how styling would be. Is there any way I can use CSS or something? I don't think there is. I also need support for an equivalent for multiple divs/partials etc.

I think it would be easier to use Electron but I would like to use Ruby for this project. I don't feel like using JS for this even though it would probably be more straightforward due to the API and the general ability to use HTML/CSS/JS.
>>
>>53511468
Looks like they're using http://www.ractivejs.org/
>>
in php how can i check to see if some tag has a specific name? e.g.

 <meta name="someString" content="some content">


for this i'd want it to return true if this tag has an attribute with name 'name'

if($tag->hasAttribute(name))


doesn't work
>>
>>53511168
How can you securely delegate access to certain files ONLY IF a certain condition is met? Big files?
---
I have a website where users go through a paypal checkout process, then get a confirmation email, with a link to a downloader script. (php)

The script checks if their token is valid by verifying its presence in the database.

If valid, it checks that the user is actually allowed access to this particular file. (list of allowed files is also in DB)

If allowed, it reads the file contents, and serves it.

Problem?
Some of the zip files are huge. (200+ MB) I had to change the php settings, to allow 300 MB of memory to script executions. This VM only has 2 GB of mem total. Meaning if we get even like 10 users all trying to download massive zip files at the same time, we're totally going to crash the server, because that amount of ram doesn't physically exist.

I could use apache (rather than php) to just serve the files directly, authenticating access by the presence of some HTTP Header or cookie or some bullshit

But that's totally insecure. And it would probably only take a couple days for some script kiddies to leech the info of how to get free music with our site.

So how should I proceed?
>>
>>53512495
That really goes against the design of the language. You don't use php to detect HTML things.

You can, however, use JS for this. If you have the jquery library included in your <head> then just:

$('[name="someString"]')


Which will return the actual DOM object for any elements with the name "someString".

Or to stick to your true/false paradigm:
if ($('[name="someString"]').length >= 1) { return true; } else { return false; }
>>
>be me
>23
>2 year IT degree

Take a leap of faith and embrace all of what the Iron Yard has to offer

OR

Continue onward and get a 4 yr degree in Comp Sci
>>
>>53513032
Take a year off from college and see how it goes.
>>
>>53512666
im not detecting my own web page im scraping stored html files from a database
>>
How do you make those cool websites that use CSS animation whenever you scroll down?
>>
>>53513090
Looks like php can handle DOM documents http://php.net/manual/en/domdocument.loadhtml.php

I guess I'd start there.
>>
>>53513082
you mean give Iron Yard a chance and see how it goes or do something with IT?
>>
>>53513263
I don't know what Iron Yard is, but if you already have your associates degree then try finding a job and see how that goes. Quite a few people on here got jobs in dev without even having a degree, maybe you'll find a good one for yourself. If it doesn't work out then go back for the Comp Sci degree.
>>
>>53513330
https://www.theironyard.com/about.html
>>
>>53513330
Also how could I find a nice junior dev job with an associates degree in IT?

Those people you've mentioned probably have a portfolio too which is something I don't have.
>>
>>53513464
Start applying...everywhere. That's all I know, hopefully one of those guys will be able to tell you how they got their positions.

>probably have a portfolio too which is something I don't have
Now is a good time to get one started.
>>
>>53513542
I have no idea where to begin though lmao
>>
>>53513542
The portfolio or applying for jobs?
Portfolio: start writing shit in languages you're comfortable with. Get a GitHub account if you don't already have one and start coding. If you're more into the front-end side of things then as practice you should start making things, try to be unique.

Btw, if you're not familiar with any of the frameworks, languages, tools, etc. related to web dev, watch the video in OP and decide what you want to do.
>>
>>53513729
It would be nice knowing which path to choose...

I'm having a hard time deciding on frontend or backend.

I know some basics regarding to HTML, CSS, Javascript, Java, and PHP. But I don't think it's enough for an interview.
>>
>>53513811
Since you already know the basics of JS, you could go the MEAN Stack route (Mongo, Express, Angular, Nodejs). That will cover both the back and front-end using JS. I'd recommend this, although I don't know if Angular will become 'a thing' long term.

Your other options might be to spend more time learning PHP and becoming better at it, or to pick another language from the video like Python or Ruby.
>>
>>53512600
Upload files to CDN like S3. Dont serve large files over the server. Authenticate the paid users token and instead of streaming a local file from the server, have PHP stream an obfuscated file from S3 directly. That's it. You're already 95% there.
>>
What's the hottest meme language for someone just starting out in programming? I know a tiny tiny bit of Python, should I just continue to work at that?
>>
Anyone keeping up to date with ASP.NET Core? taking a look at this new plural site course around it and it looks like there are a ton of changes.
>>
>>53514099
Node / Express for back end, ReactJS / Angular 2 for the frontend. That's it. Jobs everywhere.
>>
>>53514099
Don't fall for what this retard is saying: >>53514119

Barely anyone actually uses full node.js backends, it's all just shitty startups which will die within a year.

At the very most you should learn Angular, don't bother with React, it's fucking useless and literally does nothing which jquery can't easily do.
>>
>>53515139
why do say React is useless? do you have some personal experience or been in the industry for a while?

if so would becoming a mean stack dev be worthwhile or nah?
>>
>>53515139
except for that whole React Native thing.. Making mobile front-end that is super smooth is definitely useless.

React and Redux are the way to go, in fact Angular 2.0 straight up ripped the Virtual DOM from React.

>>53515139
is a fucking NEET is what I'm saying


Node is suitable for starting out, and Express will be your framework of choice... 80% of all web servers in the world would be perfectly fast(er) and stable on Node. No one is using Go backend or Java enterprise clusterfucks until they can create functioning Node servers behind their back, let's get real here.
>>
>>53515245
>80% of all web servers in the world would be perfectly fast(er) and stable on Node.
Kill yourself you fucking mongoloid. The internet and our economy would literally be falling apart if this were to ever happen.
>>
>everyone has their own favorite meme javascript library
>you don't know what to pick
>>
>>53515333
Imblying 80% (or more) of web servers worldwide aren't websites or ad-sites hosting a handful of images and text

kill yourself, and start a webcrawler in the meantime to prove my point
>>
>>53513729
What's the best way to show off web pages? I have different JavaScript examples but if I link to GitHub they'll have to download all the files.
>>
Literally just deploy them
>>
>>53515684
>>53515733
lol /g/ is fucking newbs in every corner

>when the web dev is a better c++ programmer than 90% of /dpt/
fuck yooooo
>>
>>53515813
What?
>>
>>53515139
>Barely anyone actually uses full node.js backends, it's all just shitty startups which will die within a year.

On my phone on the train right now on my way to work, which isn't a shitty startup and where I'll be using node all day. Theres enough jobs to get paid doing the thing you like, don't focus on php or asp.net just because you think you've got more chance of getting a job. Theres more of those jobs but also every dickhead and his dog knows php.

Also you're legitimately retarded if you think React can't do anything that jQuery does. Dont give out any more advice.

Besides react is simple, you can learn it in a few hours, Angular is a shitty unintuitive mess and will take ages to learn, and there's no guarantee that you'll use it

>>53515244
If you're just starting out try a lot of different framework s and languages, and put them all on your resume under "skills". Only specialise if you're getting paid to.
>>
>>53516836
>unironically liking node.js
Gay as hell.
>>
>>53516836
>Angular is a shitty unintuitive mess and will take ages to learn
It's easy mode, actually
>>
>>53516862
JavaScript is unironically a gud language. Especially if you don't have to interact with the DOM.

>>53516867
Not if you want to do something more substantial than a "hello world" application
>>
>>53513404
So what is it?a job? A sschool? That page is so filled with buzzwords its lost all meaning
>>
>>53517341

>start using Typescript
>compiler complains about bugs
>complain about Typescript
>find out, they were all bugs in javascript. It's just the browser didn't complain and I basically had nothing else to go on
>>
File: 2016-03-16-111142_898x910_scrot.png (629 KB, 898x910) Image search: [Google]
2016-03-16-111142_898x910_scrot.png
629 KB, 898x910
Hey, I got a fucking responsive div with 4 elements in a row, and when I reduce the window size it's supposed to switch to 2 elements per line, right.

Something of the sort:
1-1-1-1 > on big resolutions

1-1
1-1 > on smaller resolutions

But instead, it switches to this shit, and fiddling with the CSS produces nothing.


1-1
0-1
1-0 > (this is what it switches to if you can't load images)
>>
>>53517457
>JavaScript has bugs so it's bad
No shit. Use JSLint.
>>
>>53517625
each element has to have a property of float: left

also add width: 50% in a media query
>>
>>53517735
Thanks, they already have float:left and width: 50% unfortunately, that's why I'm confused
>>
>>53517735
>>53517758
Although if i apply float:none to the third element, the second line appears as 1-1 as intended, but making an entire css class for one element with float:none is pretty cancer
>>
File: ur problem.jpg (36 KB, 752x668) Image search: [Google]
ur problem.jpg
36 KB, 752x668
>>53517625
heres ur fucking problem

ur 3rd element is floating under ur 2nd because ur 2nd is has a smaller height than the 1st

remember that the 3rd element wants to be as close to the top as possible, not as close to the left as possible

make sure all elements on the same row are all the same height and this won't happen

fucking float i wish flexbox was actually usable
>>
>>53518438
Thank you so much, that is some detective shit. Awesome, I'm gonna fix that right now.
>>
I fucking hate webdev..

Why are all the jobs only this shit
>>
I just wasted five days on a project then realized
the language I'm writing it in is broken and useless.

Ask me anything :^)
>>
>>53515684
Buy a domain and embed the code (actually implement it), it's that simple.
Have a sub directory with your examples, i.e: http://mysite.com/projects/projectname1, http://mysite.com/projects/projectname2, etc
>>
>>53519035
Was it PERL?

Anyway, stop blaming the language for your inadequate skills.
>>
>>53518438
>flexbox
not until 2020

unless you're making websites for some small random company that doesn't give a fuck
>>
>>53519124
nodejs
well it's broken what can I do

guess what I'm switching to :^)
>>
>>53519035
php?
>>
>>53519151
php poorly designed but hey at least it works
>>
>>53519147
Node isn't mature as yet, I don't give a fuck what anyone says. In terms of practical usage and ease of implementation it lags behind other languages/frameworks.
>>
>>53519177
it's flawed by design
it's got OOP but it doesn't work
you either have to write procedural spaghetti
or end up in callback hell, and don't even bother
connecting to a database, just ot fetch something
you have to align everying in a single continuous asynchronous call
>>
What is the best front end resource to make really good modern looking sites all of my sites don't look visually that great
>>
>>53519243
Pick a front-end framework. Bootstrap is the obvious choice, but check out http://materializecss.com/ - it looks a bit more polished/modern.

The rest is up to you; implement jQuery and CSS animations (use sparingly) if you want a bit more uniqueness.
>>
>>53519203
>Not using Promises
>>
>>53519354
What is the best resource for Bootstrap?
>>
>>53519365
>resorting to promises
>>
>>53519387
Wow. What a well thought-out retort that totally couldn't be applied to just about any improvement.
>>
>>53519377
What do you mean 'resource'? BS basically has everything you need to build a UI built in.
>>
>>53519203
You refuse to actually learn the language or how it works... Then you conclude that it doesn't work.

>it's flawed by design
>it's got OOP but it doesn't work
I doesn't have classes, because they're gay and so are the brittle taxonomies that come with them. It uses prototypal inheritance, which is better. It's also very functional. Theres nothing wrong with the design, you just don't know it

>or end up in callback hell, and don't even bother
>connecting to a database, just ot fetch something
>you have to align everying in a single continuous asynchronous call

The event loop is more sensible than trying to deal with threading. Use promises, generators, or async-await... Also known as learning the language.

If you can only program synchronous class-based code, just go back to a baby language like Java.
>>
>>53519437
Best tutorial to learn BootStrap
>>
Guys, I don't understand jQuery promises.
Can someone explain in more concrete or simple terms what they are, and how to use them?

Something I've been dealing with forever now, is that whenever I do like a
            $.post('/php/someScript.php', myData, function(resp){
var newData = someOperation(resp);
$.post('/php/anotherScript.php', newData, function(respB){ doSomething(respB); });
});


As you can see, to maintain the order of operation, and ensure that async behavior doesn't break the logic, I always end up either nesting function after function within eachother, callback within callback within callback

OR

I usually end up doing something like:

$.getJSON('/php/QuerySomeShit.php', myData, function(resp){
var i = 0;
var all = [];
resp.data.forEach(function(itm){
all.push(doStuffToItem(itm));
i++;
if (i == resp.data.length){ mySuperglobal.data = all; mySuperglobal.targets['item stuff done'] = true; }
});
});

meanwhile:
var myIntv = setInterval(function(){
if ( mySuperglobal.targets['item stuff done'] == true){
clearInterval(myIntv);
myNextOperation(mySuperglobal.data);
}
}, 200);


Does jquery Promises have anything to do with this? I feel like a shitty coder and want to improve my knowledge. It just kills me that the return value for a XHR never immediately has the responseData. I'm still getting used to async stuff. I'm used to my scripts executing one command after another, not having to plan on functions "going on ahead" and having to "come back" to something with interval loops or callbacks.
>>
File: pepe 2.jpg (18 KB, 337x368) Image search: [Google]
pepe 2.jpg
18 KB, 337x368
u not a shitty coder ^^
>>
>>53520183
>Tfw I am a decent coder 6/10
>>
>>53519522
I'm not the guy you're responding to, but I'm probably very similar to him. I've struggled with javascript for quite some time. (though I'm starting to kind of get better with it)

Since you seem pretty confident in the language (and by extension, your own skills in the language) then can you please help a bro out?
I need any pointers you can offer on the subject.

In the old days, I just used php or shell scripts (gross, I know) to render out the output directly. If I wanted something to change, I would literally just have buttons as links to the same page with a different querystring parameter, and use php logic to re-render the page with different style.

I've gotten away from that, now I do a lot more of just having php render some json output from a DB, and all page-styling / rendering happens in js

But I feel like i'm a much slower programmer now. What I used to do in 3 weeks now takes me 3 months.

There's got to be some flaw in my process. Is there any tips or tricks you can recommend?
me: >>53520113
>>
>>53520232
Oh. One more question. (sorry, don't mean to spam)

Does anyone have any experience with the paypal Express Checkout NVP API?

Namely 'SetExpressCheckout' ?
I've been able to get it to set the street address, city, state, zip, and email address.

However, I have not had success in getting it to set (autofill) the phone number or user's first name or last name.

Also, I really need more variables. If you pass like more than 200 characters, they truncate your data. But I really need to encode and send a lot of data with the transaction, then get that data back upon transaction success. If I can't do it in a single really long variable, then I need like... at least 3 or 4 ~60 character variables. But I've been up and down the api docs, and can't find any.

And yes, I really have read the docs. Many times.
https://developer.paypal.com/docs/classic/api/#ec
https://developer.paypal.com/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/
But unless I'm retarded (and that is certainly possible), the variables just aren't there. I didn't even see a 'custom' variable which at least payments standard has that. But EC doesnt?

I really need this data to be passed through the transaction though. I want to make sure that the data I work with post-transaction (whether correct or incorrect data) is the SAME as the data the transaction was based on. In short: if the user hacks with the functions/scripts, and they create a successful transaction, I want to make sure they can only download what they paid for, regardless of what was supposed to be in their cart.
>>
>>53520412
damnit, always forget the picture
>>
<!ENTITY % fontstyle
"TT | I | B | BIG | SMALL">

<!ENTITY % phrase "EM | STRONG | DFN | CODE |
SAMP | KBD | VAR | CITE | ABBR | ACRONYM" >

<!ENTITY % special
"A | IMG | OBJECT | BR | SCRIPT | MAP | Q | SUB | SUP | SPAN | BDO">

<!ENTITY % formctrl "INPUT | SELECT | TEXTAREA | LABEL | BUTTON">

<!-- %inline; covers inline or "text-level" elements -->
<!ENTITY % inline "#PCDATA | %fontstyle; | %phrase; | %special; | %formctrl;">

<!ELEMENT (%fontstyle;|%phrase;) - - (%inline;)*>
<!ATTLIST (%fontstyle;|%phrase;)
%attrs; -- %coreattrs, %i18n, %events --
>

<!ELEMENT (SUB|SUP) - - (%inline;)* -- subscript, superscript -->
<!ATTLIST (SUB|SUP)
%attrs; -- %coreattrs, %i18n, %events --
>

<!ELEMENT SPAN - - (%inline;)* -- generic language/style container -->
<!ATTLIST SPAN
%attrs; -- %coreattrs, %i18n, %events --
%reserved; -- reserved for possible future use --
>

<!ELEMENT BDO - - (%inline;)* -- I18N BiDi over-ride -->
<!ATTLIST BDO
%coreattrs; -- id, class, style, title --
lang %LanguageCode; #IMPLIED -- language code --
dir (ltr|rtl) #REQUIRED -- directionality --
>


<!ELEMENT BR - O EMPTY -- forced line break -->
<!ATTLIST BR
%coreattrs; -- id, class, style, title --
>
>>
>>53520232
>But I feel like i'm a much slower programmer now. What I used to do in 3 weeks now takes me 3 months.
>There's got to be some flaw in my process. Is there any tips or tricks you can recommend?

If you're generating json to be consumed by a front-end, aren't you using some kind of Ajax library or framework? If you're doing it from scratchbwith vanilla JavaScript, then it will take longer.
>>
>>53520588
I use jquery. Styling is done with bootstrap. Sometimes I use ExtJS for certain components. http://docs.sencha.com/extjs/6.0/6.0.0-classic/#!/api/Ext.data.Store and shit to help make turning json into pretty tables a lot quicker (though it is so costly for page-loads, that I'm beginning to wonder if it was a mistake)

Of course a lot of what I'm referring to is actually just paypal bullshit, so the requests never really "make it to the ui" if you know what I mean.
>>
>>53511168
Anyone have tips for converting an internship at Facebook into a fulltime job? Im going to be a frontend intern and I like to just stay with my team after the summer.
>>
>>53513147
parallax?
>>
I am trying to sort a set of divs that have values from an array of objects file datafile.js

           <script id="data-template" type="text/html">
<div class="box">

<h4> <%= name %> <%= id %> </h4>

</div>
</script>

<div id="wrap"> </div>



so far I have

 
<script type='text/javascript'>
$(window).load(function(){
$('.Sorting').click(function() {
var $wrapper = $('#wrap');

$wrapper.find('.box').sort(function (a, b) {
return +a.getAttribute('#datafile','id') - +b.getAttribute('#datafile','id');
})
.appendTo( $wrapper );
});
});

</script>


how can I fix it to get the id values from datafile? the function just moves the order of divs randomly now
>>
>>53520753
How about you sort the data *before* putting the divs on the page?
>>
>>53520783
well each div box has dozens of different object values so I need a sort button for each one individually
>>
File: scrooge-mcduck_197x282.jpg (34 KB, 197x282) Image search: [Google]
scrooge-mcduck_197x282.jpg
34 KB, 197x282
I'm hosting websites for my customers on a dedicated server, and so far, everything has been working great.
However, I'm tired of manually installing everything every time I get a new customer.

What's the best way to automate web hosting account creation (either by me or by an API when hosting is purchased)? Also, what's the most easy to use control panel and website management software out there that I could provide for my customers (many of them complain about how FTP is hard to use)?
>>
>>53521045
This what you're looking for? http://httpd.apache.org/docs/2.4/vhosts/mass.html

Also getting something similar to owncloud for fileuploads. Ypu can always write something yourself if you can't find one you like.
>>
Hey, I'm trying to center those two rows in this div (with the red background) but I can't seem to find a way to do it well. Could anybody throw me a hand?
>>
does anyone here have a recommendation for a CMS a la Wordpress?
I'm planning to move my personal website from one I built from scratch to a proper CMS system that I can just throw up and drop some style themes and plugins into and go
Was just gonna go with wordpress, but I then I thought there might be something more lightweight (running on a micro EC2 instance) or trimmed down that would be better
>>
>>53521181
Use the grid from skeleton.css
>>
>>53521129
Thanks for the advice.
I'm looking for something that other web hosting companies use. I need a free and open source automated software which would set up cpanels and hosting accounts for the web host users.
I don't need it to set up separate VPS for each user - only web hosting accounts, which would provide FTP, SSH, control panel and database access.
>>
>>53521608
Why would you need this if you already have a site?
>>
>>53522340
mainly because I wrote the site from scratch using a compiled language, framework and then the css/html myself, but if I want to update it like a blog it's kinda a pain in the ass and plus the front end design is pretty basic cause even with a css style framework like bootstrap it's a pain in the ass

bottom line is I'm lazy
>>
Remember when no one was a web dev/designer and if you wete you were a super nerd?

Then dreamweaver happened. Some casuals joined. Then jquery and bootstrap and codeacademy and now everyone says they are a web developer.

There are people in this thread right now that know bootstrap and jquery but can't make a page with vanilla js or css to save their life.
>>
>>53523205
I'm fairly new to web dev, but isn't a lot of jquery just wrappers around other javascript?
>>
I have no professional web development experience.

I freelanced for a little while but only had very small site edits.

How can I make my resume appealing for a dev position? I know a lot of languages and can set servers up.
>>
>>53522545
...are you updating it manually? Writing your own CMS with CRUD operations should be at least a basic skill of every dev. You're literally just manipulating data from the database. Nothing hard about that.
>>
>>53523422
Create examples of what you can do. Write some code, make it open source, have people contribute and develop it. It'll look great on a resume.

It kinda makes me wonder why the regulars in these threads haven't worked on anything as a team, we could set up a Git and make something worthwhile so we'll all have something to reference. Oh well.
>>
>>53524094
We tried but cant decide on a language.

Also my github is small. I have one neat project but it's not even in my primary language.
>>
What are some examples of simple things you could do with REST design?

I want to be able to design something that works but it isn't overly complicated and wouldn't take a great amount of time to do. Something akin to a "Hello World" tutorial which actually uses the basic components of REST would be nice.
>>
>>53524167
>We tried but cant decide on a language
Doesn't necessarily have to be one project though, we could make a few in different languages.

If you need contributors for your project then I'd be in, pretty sure others here would be too.
>>
>>53523205
No I don't remember that. I remember when web developers were fucking retards, and the browser makers competed with each other to make their browser accept shittier and shittier code, and how now 20 years later web devs are still seen as retards and 'not real programmers', despite the web being the most accessable application platform in the world.

Also who the fuck uses vanilla JS or CSS? I use fucking SASS because base CSS is dog balls shit asses. No variables, no inheritance. Its an absolute piece of shit, and so is HTML. And vanilla JS? I have access to the biggest community of developers and 3rd party libraries, you think I'm going to reinvent the wheel if I can just slam and jam a library in my project, hook it up and then go do something else? I don't write any code that I don't have to, and when I use boilerplate to save time and have have Atom plugins doing auto-complete for me.

You don't learn to be a baker by first growing your own wheat, grinding it into flour, and then building a fire-pit oven out of rocks and clay, and building a fire in it using wood that you cut using a stone axe that you made. No you use the tools that are available to you, and you produce decent results.


>>53523284
Pretty much.

The DOM (which is the API that allows you to access the browser's functionality) is the worst API ever designed. jQuery is a much better API.
>>
>>53523422
Here's an example of what I had on my resume when I got my job

http://pastebin.com/mG4zbDQz

If you can't fill in every section then start downloading and playing with that shit, also watch this guy's channel:
http://www.youtube.com/watch?v=pB0WvcxTbCA
>>
i just finished learning basic html & css on codecademy, what should i learn next, javascript or ruby?
>>
>>53524685
havascript
>>
>>53524685
practice
practice
practice

then javascript
>>
>>53524766
>>53524732
ty
>>
>>53524340

>The DOM (which is the API that allows you to access the browser's functionality)

lel

>jQuery is a much better API.

oh boy

what the fuck did i just read
>>
I have an interview at a local Cloud Computing Consultancy, as a entry level apprentice, tomorrow.

They implement Saas (Xero mainly) into Small/Medium Enterprises.

Any tips /g/?
>>
>>53524340
>I have access to the biggest community of developers and 3rd party libraries, you think I'm going to reinvent the wheel if I can just slam and jam a library in my project, hook it up and then go do something else

Typical web dev trash. Building inefficient products everyday.

Go shit on the street, pajeet
>>
>>53524672
Fun fun fun, that looks like a disaster.
>>53524332
I will post it tonight. I need to rewrite it with data- attributes instead of custom tags because people still trip if their document is invalidated.
>>
>>53524340
You become a baker by making your own cake, not using a generic cake-in-a-box loaded with all sorts of added bs. Yeah it's faster, but they all taste the same.

Theres a difference between being a web dev and being a professional web dev. One has you pumping out websites as fast as possible to increase revenue, but I know I would never go to a baker making cakes from a box just like I wouldn't go to a restaraunt using shake n bake.
>>
>>53524796
When people say they hate Javascript, its more likely that they're talking about the DOM. If you dislike jQuery more than the DOM you might actually have some kind of diagnosable disorder.

>>53524833
>using libraries is inefficient
>I can write code that is lighter and faster than any other JS developer in the world
Sure you can Pajeet...

But I get paid a salary, I don't get paid by the hour. So I don't have to take longer doing basic things that I want to do, I can just use something that exists, is tested and well supported.

But if you need to clock in the hours in order to afford to buy yourself a bowl of rice at the end of the day then I can see why you'd avoid using libraries and frameworks.
>>
>>53524986
Shitting out a Wordpress site is the 'cake in a box'. It's a pre-existing application that you configure to your likiing.

Using a web framework like Angular, Laravel, Node, Django etc, is just a set of tools and you have to do a fair amount of work to get a working application out of them.

If you don't know the difference between these things then I can only guess that you haven't actually tried using them. You've just heard of them and, naturally because you don't actually want to learn anything new, you've just decided that they're bad and that people who use them "aren't real developers".

Your shitty opinion isn't new either, assembly programmers in the 1960s complained that people who used FORTRAN weren't "real programmers" too. Same kind of faggots who were arguing that GOTO was an essential feature of a programming language, and how OOP was shit and pointless.

Technology changes quickly but people's minds change slowly, we actually have to wait for faggots like you to die before we can move on as an industry.
>>
>>53525150
Nice implying.

You're not arguing for the sake of new languages. You are defending what are basically libraries and that makes you an idiot.
>>
>>53525481
I'm arguing for the sake of abstractions that allow us to do more with less effort.
>>
Is there some website hosting which is free and not shit enough for some example projects/small web portals - at least for temporary?

What were you guys talking about github offering a free hosting?
>>
>>53525923
github pages, if you create a branch called gh-pages, it'll display whatever's in your repository as a web page at http://yourGithubUsername.github.io/yourRepoName

Just html/css/javascript of course. if you need server-side shit then get your own host. Check the OP
>>
>>53525824
They don't let you do more. That's impossible.

They let you do the same but with less effort. When it comes to bootstrap it requires the same, if not more, work to get something actually unique.

Also, is it safe to assume you work at a web dev firm? I can think of no serious online company that doesn't try their damnedest to minimize bandwidth use besides web dev firm and hosting companies.
>>
>>53522083
Anyone?
>>
>>53525993
>They don't let you do more. That's impossible
>They let you do the same but with less effort.
Which takes less time, which means you can do more. Don't be bad.

>When it comes to bootstrap it requires the same, if not more, work to get something actually unique.
Nobody uses Bootstrap to be unique. They use it because its easy, and over the last 15 years front-end has matured to the point where the most effective patterns are known. You can try to be a special snowflake if you want but you're not going to be doing anything that hasn't already been done better by someone else.

If I want something unique and Bootstrap isn't the right tool for the job, that's fine, I'll write my own. But I'm still going to use SASS or some other tool to make writing it easier and quicker. I'm probably going to use Skeleton or Pure so that I get a reliable grid system. And I'll still probably use some other CSS libraries for someother things like animations, rather than writing all that shit again myself for no reason.

>Also, is it safe to assume you work at a web dev firm?
Yes.

>I can think of no serious online company that doesn't try their damnedest to minimize bandwidth use besides web dev firm and hosting companies.
Using tools, libraries and frameworks doesn't mean that you have to have no awareness of their impact on page weight and load times. You can also use a build system like browserify or webpack to minify and repackage all of your vendor libraries into one file so that the browser doesn't have to make a ton of HTTP requests.

There's a big difference between "minimize bandwidth use" and "never use any libraries or frameworks ever because you're not a real developer if you do!"
>>
>>53526432
>Also, is it safe to assume you work at a web dev firm?
>Yes.

You can stop now.
>>
OK so I am looking for a book on full stack mobile app development. I want it to take me through how to connect and send data between the mobile app front end and the web app backend. Any suggestions?

I have made both Android apps and simble web apps with databases, but I need something to bridge this gap. Thanks senpai. :^)
>>
Who here has experience with Angular 2?
I'm thinking about writing my first blog / portfolio website from scratch, and am not sure if I should use Angular.
The alternative would be to do it with vanilla HTML
>>
File: 1366401014713.png (11 KB, 200x163) Image search: [Google]
1366401014713.png
11 KB, 200x163
>>53526746
>you're a professional web developer.
>you should stop talking about web development
>>
File: 1362215202208.jpg (10 KB, 300x400) Image search: [Google]
1362215202208.jpg
10 KB, 300x400
>>53526819
Build a backend as a REST webservice that spits out JSON.

Build an app that sends requests to your backend, gets JSON responses and does stuff with it.
>>
>>53527036
This can be done in any number of languages and frameworks. Java EE, ASP.NET Web Api 2, NodeJS with Express, Python, PHP, etc.

I'm partial to Web Api because I can take a class and then map it right to entity framework and then onto the database.
>>
man laravel is powerful. busting out a tutorial now but its a lot to take in, wish me luck. this is my first php framework
>>
Quickly. Why aren't you working on open source software?
>>
>>53527122
good luck man.

Remember to make something with it. You don't learn a framework until you make something.
>>
>>53526827
Do whatever is your pleasure really. Use vanilla or a framework
>>
>>53527036
true, but I am having a hard time doing this on my own I just get burried in errors, I need to see an example first.
>>
>>53522083
webmin?

It's like off-brand cPanel.
Except it doesn't suck as bad.
>>
Guys, I have this idea for a killer app.
Should I tell you?

It's about music. It's social. It will change everything..
>>
>>53527231
>buried in errors

Errors are supposed to be useful, so you can see what you're doing wrong so you can fix it. Read the errors. Unless you literally just copy-paste code, save it and then hope that it works.
>>
>>53527281
You might as well. Ideas are worthless until someone puts in a shitload of work to make something out of them.
>>
>>53526996
Calling yourself a professional web developer is like calling a McDonald's cook a chef. Keep slapping down those premade patties because idiots will keep buying it, but don't be surprised when you get called out by people who know better.
>>
>>53527374
I shared an idea for a very specific game on /v/ once. Someone posted it to kockstarter and get 100 grand.
>>
I'm employed, can I call myself a professional web developer?
>>
>>53527444
Yes. Don't let any faggots in here say otherwise?
>>
>>53527281
>>53527374
Ok. It's an app where people vote which PART of the song is the best.

And if they want, they can download a custom generated remix of the song that loops mainly over those parts. (Using beat detection)

lel
>>
Is $75k a year good for a >PHP position in Orlando. I'm interviewing for one at an agency tomorrow and that's what the salary starts at. What kind of technical questions have you all been asked before for positions like this?
>>
>>53527434
at least its being/had a decent chance of being made. an idea in the head of an unmotivated, lazy autist (which you probably are since you post on /v/) isn't worth a damn thing.
>>
>>53527466
plebs who download apps are only going to vote for choruses all the time.
>>
>>53527477
>75k
>PHP

heh, you'll work either with beautiful, amazing code or maintain a terrible 2003 application, no middle ground
>>
>>53527542
Yeah believe me I'm kinda surprised too, but the agency seems really cool. Seems like it'll be more or less Wordpress with some occasional MVC work that I do at the agency I'm currently at. And how can one say no to that salary in such a cheap-ass city?

However I also have an interview waiting to be scheduled with Facebook for a front-end internship. Obviously that is my Plan A.
>>
>>53527407
So you take "work at a web dev firm" to mean "shit out Wordpress sites all day". That's a whole bunch of assumptions you need to be able to invalidate my opinion.

I took it to mean "you work professionally as a web developer".

This week I've been building a stream-based templating engine for Node.js, its a fun little project while things are quiet. Last week I wrote a few libraries for integrating our products with some antiquated APIs that use fucking SOAP as an interchange format, which was pretty gay.

We don't have any 3rd party clients and I don't touch Wordpress, but I make use of various libraries and frameworks, because they save time and its stupid not to use them unless you have a really good reason.
>>
>>53527466
How would that even work? I'd have to pay attention to an app while listening to music, and then vote at the right moment.
>>
>>53527466
Then sell the best part times to mp3 selling website like beatport so they can autogenerate sample clips.
>>
how come it is so difficult to create an array in php and then iterate through it?

I have this

class coords{
public $x;
public $y
}

$coordsArray = Array();

for( $i = 0 ; etc ){
$tcoords = new coords();
$tcoords->x = 10;
$tcoords->y = 10;
$coordsArray[] = $tcoords
}


print( $coordsArray[0]->x)


but it keeps saying it is not an object on the print line. someone know why?
>>
>>53527665
Yeah, you could either hold a button during the best part while you listen to the song, or you can use a slider interface to manually set the part.

>>53527688
Good point. There is a good use case for knowing which part of the song is the best for a 30 seconds sample
>>
>>53527623
Bandwidth is the best reason.

I guess your client are no traffic losers. I am not saying anything is wrong with web dev firms, I'm just saying your whole job revolves around sending bloated but pretty bullshit out as fast as possible so I don't really care about your opinion on the matter since obviously your are going to think frameworks are the best thing ever since without then you would have far lower value.
>>
>>53527482
I learn game dev in the spare time of my spare time. It's a fun hobby if you like coding.
>>
>>53527762
Welcome to the real world man.

There is no perfect software. every non trivial software involves sending bloated bullshit as fast as possible.

Sure, you could use system programming languages to achieve better performance/design/whatever, but there is always a trade-off, most likely development time.

No option is inherently better.
>>
>>53527742

okay, nvm. I am retarded.
>>
>>53527832
>No option is inherently better.
At Google I would be fired for using bootstrap.
At a website farm I would be fired without it.

Same job title, different worlds.
>>
File: 1455855418812.jpg (8 KB, 190x200) Image search: [Google]
1455855418812.jpg
8 KB, 190x200
>>53527762
I already addressed the bandwidth reason here >>53526432
1. Have a build system to make your shit as small as possible
2. Don't be a retard.

Also you'd have to use a fucking lot of frameworks and libraries to have more of an impact on page weight than a reasonably sized image or an embedded youtube video. There's plenty of ways to bloat your page without using frameworks.

So if your argument is to never use frameworks or libraries because of page bloat, then it must follow that we should never use images or videos either. Because apparently its not possible to use things sensibly or in moderation, its all or nothing.

But of course that only applies to front-end javascript frameworks, it doesn't apply at all to the backend, because the backend is only sending text responses in the form of pre-rendered html or JSON. So I assume that backend frameworks and libraries are all okay?

Also your original argument wasn't about bandwidth, it was about:
i-if you use libraries and frameworks at all, y-you're a filthy casual and you're not a REAL web developer l-like me! Even though I'm obviously completely unemployable because I refuse to learn anything relevant.
>f-fucking normies! Get off my board!

tl;dr: you're a dumb faggot.
>>
>>53527915
You wouldn't be fired at Google for using Angular or Closure
>>
Got my first call back today lads. They're sending me a wireframe of a site they expect me to build to show off my skills, and it should have Wordpress functionality behind it. I've never used Wordpress before so I'll have about 4 days to learn it, design the front end, and test it - all while studying for mid-terms and preparing for presentations. Guess who's not sleeping anytime soon.
>>
File: 1450622266047.gif (74 KB, 782x543) Image search: [Google]
1450622266047.gif
74 KB, 782x543
>>53527976
>tfw working at twitter
>tfw fired for using twitter bootstrap
>told I should go make wordpress websites instead
>>
>>53527998
Cool story bro
>>
File: 1452353472639.jpg (26 KB, 433x380) Image search: [Google]
1452353472639.jpg
26 KB, 433x380
>>53527998
>tfw working at google
>tfw fired for using google angular
>told I should go make react websites instead
>>
File: Untitled40.png (58 KB, 1920x994) Image search: [Google]
Untitled40.png
58 KB, 1920x994
Building an LDAP admin panel for enterprise stuff.
It should become a full replacement for Active Directory on Linux.
I ditched my own design and started using AdminLTE (based on Bootstrap), because I can't into design.
It uses Flask/Python on the backend, and a LDAP ORM-like interface I built myself.
Making progress finishing the users/groups part.
After that, I'll build the user portal where every individual user can change their password, send support tickets, read network outages etc.
>>
>>53527762
>>53527915
https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css

>119kb

Does anyone have a torrent for bootstrap? I can't just download this whole thing in one go, I need to go to bed soon.
>>
>>53528034
>tfw working at facebook
>tfw fired for using facebook react
>told I should go make ember websites instead
>>
File: 1452311640110.jpg (39 KB, 374x347) Image search: [Google]
1452311640110.jpg
39 KB, 374x347
>>53528071
>tfw working at Microsoft
>tfw fired for using ASP.NET MVC framework
>told I should fuck off and work for Joomla
>>
>>53528098
>tfw working at GNU
>tfw fired for using emacs
>told I should go use vim
>>
>>53528071
>>53528098
>>53528034
>>53527998
Pls let this die.
>>
>>53528147
>>53528165
>tfw working at 4chan
>tfw fired for banning proxy
>told I should fuck off and work for reddit
>>
>>53527162
I am.
>>
>>53529095
k
>>
Everyone in my department quit. I'm going to be building my portfolio for 9 hours a day now since no one will be there!

Web dev job SOON.
>>
Web dev of 4chan, could you tell me what is the name of this website section? Is there a specific name for this thingy? I need to find the corresponding plugin for my Wordpress site. Thanks!
>>
>>53530113
If at top, header.
If at bottom, footer.

The other stuff is pulled with APIs except obviously clients and coffee and whatever other stupid shit is there
>>
>>53530201
Not the answer that I expected but definitely the answer that I need. Thanks anon.
>>
>>53530294
No problem. I found the website and took a look. There is nothing special going on in there.
>>
>>53530554
How the fuck did you even find it?
>>
>>53530590
Googled

"happy clients" "projects completed" "cups of coffee" "9999"
>>
>>53530590
>>53530661
The girl on the top right seems hot
>>
>>53530661
Ah I found it now. I don't like their use of colors and the background images don't really tie in with everything else. Just my opinion.
>>
>>53530731
I share the same opinion. That font color over that background isn't good.
>>
Best dev movies?

I really like The Social Network. It's inspiring.
>>
Playing with css filter drop shadow on transparent pngs.

https://fiddle.jshell.net/ewoucfnx/show/
>>
>>53520041
Just look on youtube for videos or google it. Bootstrap is pretty popular and isn't that complicated besides learning its' grid system.
>>
>>53531230
I watch the scene where Mark builds Facemash in 6 hours every time I want to get something done

https://www.youtube.com/watch?v=VSKoVsHs_Ko
>>
>>53531514
Same here, that's the best scene.

Deving drunk with a friend is extrmely fun.
>>
>>53511706
I like GTK. You can style it with CSS, but it looks good OOTB
>>
>>53515684
http://rawgit.com
>>
What's the most expensive, or best, online school there is in the US for CS or web dev?

I know it sounds retarded, but the more expensive it is the better.
>>
>>53532170
online school? i dunno, look at WGU.
Carnegie Mellon is the best CS school in the world though
>>
>>53527477
>What kind of technical questions have you all been asked before for positions like this?

1. Do you enjoy unpaid overtime?
2. Do you enjoy getting all the blame for mistakes of the guy you are about to replace?
3. Do you enjoy doing all the other IT stuff in the company even though that's not part of your job description for no extra pay?
>>
>>53532198
I just realized Mizzou has an online program and they are like 20 million of goal do to no one enrolling because of the protests.

I wonder if a retard like me could take advantage of this and get enrolled.
>>
>>53532221
My spelling is so fucked up tonight.
>>
If I have a multidimensional array of strings like this in PHP (for example):
$scores = array(
"John" => array(
"unit1" => 76,
"unit2" => 62,
"unit3" => 56,
"unit4" => 60,
),
"Tom" => array(
"unit1" => 62,
"unit2" => 82,
"unit3" => 56,
"unit4" => 47,
)
);


Is there a way to traverse it as an index? Currently my only way is $scores['John']['unit1'], but the minute I would try something like $scores[0][0], I get an error. Am I retarded, or is there no way I can use a numerical index?
>>
>>53533936
>but the minute I would try something like $scores[0][0], I get an error
Because the keys aren't [0][0], you set them yourself ("John" and "unit1"). If you left them out and just did scores = array(array(76, 62, 56, 60)), $scores[0][0] would be fine.
>>
>>53534119
So there's no way to treat them as an index?
>>
>>53520422
>using imgur as your CDN

Really don't. Their own guidelines warn against this, and it'll bite you when you don't expect it.
>>
hey, I got a div with an img and div in it, and I'm trying to make the child div be the same size as the img in the parent div. I might be retarded but I can't find a way to do it.
>>
>>53535950

make a css class with length and height and assign it to the img and div?
>>
>>53536454
height and width properties, I mean
>>
what is frontend developement?
what is backend develeopement?
How do I learn ruby on rails?
>>
>>53536501
Frontend is the stuff you see when you interact with a website

Backend is the stuff you don't see like the server-side software and database

You learn rails by going on the google and typing in 'ruby on rails' tutorial.
>>
>>53533936
What are you trying to accomplish by accessing the child array?
>>
>>53534540
What should he use?
>>
Who's using spacemacs here? I just tried it with javascript layer and it insanely slow in JS2 mode or whatever it called.
>>
What are the best tools for HTML5 app development atm?
Should I just use Ionic?
>>
Does anybody have any thoughts on Web Development with racket?
>>
>yet another wdg
>yet another slew of stupid questions you can easily answer by searching

how the fuck does wdg attract so many retards?
>>
>>53537023
There was something about ionic that rubbed me the wrong way, but I don't remember what it was. It may have been the fact that it isn't free and the free version doesn't give you much freedom.
I've used Phonegap before and it's pretty neat though.
>>
>>53537023
Depends on what you're trying to make. Ionic is basically a riced out version of Angular for making hybrid mobile apps, meaning you can make an ios app and an android app from the same codebase. It includes Cordova which lets you access phone hardware stuff like the camera, location, storage, etc.

If you want to make a web app (meaning it's going to be used in a browser, not installed on somebody's phone), there are gorillians of different frameworks and tools and whatnot depending on what kind of app you're trying to make and what language you want to use.
>>
Is anyone baffled at the number of hacks and fixes you still have to use in this day and age to make a site work properly on all major browsers?

Like, for example, having to use .eot versions of all the fonts in a page, just because IE refuses to load many fonts if they don't have an .eot format embedded. And there are lots and lots of other such small shitty details that you have to make sure you cover, just to be sure a basic page will render similarly across different browsers.

Who said simply using Bootstrap/jQuery will just make all these cross-browser issues disappear.. They don't.

Just discovered a few other ones this week. If you export an SVG from Illustrator into a webpage and the graphic includes fonts, they only render properly in Chrome, because Illustrator "forgets" to add a font size unit. So both Firefox and IE crap themselves trying to render the SVG embedded text in the graphic.

Also, filters. Fucking filters, why can't they fucking get their shit together for once about these simple fucking filters, at least for the basic shit. I should start a blog about shit like this still happening in 2016, kek.
>>
>>53537272
I do backend. This is mostly why.

But yeah it's shit. I hope Crockford suceeds in upgrading the web with the Seif project. Then a lot of these headaches will go away.
>>
>>53537272
I still think it's weird footers work like shit.
>>
>>53537272
I don't webdev professionally and don't care about ietards. One of the reasons I would never want this as a job, unless backend only.
>>
What is the wisest way to do deployment services? I have a node app that I want to pull the latest code from daily, and then deploy to production.

Should I just use shell scripts, upstart, init.d, or something else entirely?
>>
CSS animation ^0^
>>
I currently have a PostgreSQL function that returns data of a user with the specified ID.

Non-admin users should be able to view only their own data.

How do I implement this with PostgreSQL 9.0? I read that row-level security is only available in 9.5, but the database will run on an old piece of shit uni server with no chance of upgrades.
>>
>>53537272
You would have noticed by now that it is the older versions of IE that force you to bend over backwards. Fuck that, everything I make for front end is mostly geared towards IE10 and above, fuck everything else. I feel bad for anyone who has to support versions lower than that. What's really fucked up is that Edge isn't on older versions of Windows (to be fair, Edge does address much of the issues found in the older versions), and you still have cunts using 10 and below without upgrading.
>>
>>53538009
You don't even need to do it in Postgre. Just use the language you use to access the data to restrict access to only shit relevant to them.
i.e if a user with ID 10 is logged in, only allow him to access data for ID 10. Anyone else not logged in display nothing.
>>
Where do you buy your stock photos?
>>
>>53538079
Get the fuck out
>>
>>53538009
This has nothing to do with PostgreSQL? You should implement a user system in your application, then pull all the data with the query and filter what to show on the server side.
>>
>>53537413
>>53537484
>>53537531
>>53538051

I mean, it's not just the conditional shittery that gets loaded only in IE with <!--[if IE]>.

Let me enumerate a few:

- separate stylesheets loaded for IE fixes - these fixes include a lot and I mean a lot of shit, depending on how complex the page is -- for example, videos can have a "poster" which is displayed before the video is played, this poster has to be made to fit in the page somehow, you can't simply throw it there and let it display black margins -- those properties which control the sizing of these video posters work OK in Chrome and basically do not work in IE, you have to improvise something with jQuery to get a similar functionality

- fonts: IE sometimes does not even load TTF fonts, even though it's the most common Windows format, no, they want EOT fonts and even those are not loaded properly you have to use a hack which adds a hashtag at the end of the filename

- inconsistent vendor prefixes - at this point, I'm not sure even the browser makers know anymore if they have implemented the non-vendor CSS properties or do they still work based on the vendor ones, or both? Firefox is a nightmare in this respect, you never know when it's going to reject its own past -moz-prefixed properties

- viewport setting - seriously, why the actual fuck do you even have to set the viewport if the user agent detects a mobile/tablet/whatever-nonPC terminal? Why doesn't the browser simply detect the pixel density/resolution/aspect ratio etc etc etc and do the adjusting itself, why would you even need to include this in a page just to make sure it works properly?

- something as simple as setting a picture background combined with a liniar gradient on top of it simply does NOT work the same across all browsers - like wtf, this is just layering two things in the graphic renderer

- browser makers still enforcing default styling on lots of things like ordered lists, forms, headers and so on and so forth
>>
>>53538097
Why?
>>
>>53538051

Just finished a project that had to support IE8 and up.

Polyfills everywhere.
>>
IE 10 fonts?
>>
>>53538113
Don't tell me you pay for that shit? There are way too many free resources on the internet to be paying for stock photos.
>>
>>53538072
>>53538101

I already have that. It stores the logged in user's and runs queries based on that ID. I was just wondering if that was enough security.

Do you think a function that takes an ID and returs a table row of data corresponding to that ID is overdoing it? Would a view query with "WHERE id=specified_id" be sufficient without any security compromises?
>>
>>53538160
I haven't bought any stock photos yet. But the free sites I checked all had really bad quality compared to shutterstock or fotolia. Can you recommend any free ones then?
>>
>>53538097
You never figured out where to buy stock photos; did you?
>>
>>53538103
=continued=

OK, so some of this stuff is solved by boilerplate and Bootstrap. But there still is stuff that is not covered by boilerplate and BT.

The browser default styling shit makes you sometimes re-write the boilerplate thing, because you are supposed to make some forms and inputs look in a particular way, and guess what, the boilerplate shit didn't implement them that way. So, you have to write extra CSS just to re-re-set the forms and input elements, so you can try to control them. Not to mention that the CSS properties which control them some of them are standards, some are vendor-prefixed, you're never 100% sure if one of them is still prefixed or it's becoming standard?

Don't even try to be too specific with media queries about page breakpoints because they stop working properly. For some reasons browsers get confused about how these very specific queries are supposed to cascade, which rules are enforced when, etc. Which sometimes it made me believe this whole responsive paradigm shit is the worst idea ever, having to write extra CSS just to make sure the same page displays in particular ways across different viewports, seriously, you are almost rewriting the page for yet another device most of the times. You are writing the same site 2 or 3 times to make it work on more devices. You think you are done? Say hello to smartwatches or whatever the next hyped gadget is, you have yet another viewport to cover and re-write for.
>>
>>53538167
Yes it is sufficient. Only security recomendation I'd have for you is to use sessions rather than cookies.
>>
>>53538248

Thanks.

The logged in user's ID is stored as a PHP session variable, not as a cookie.
>>
ok^=^
>>
>>53537589
>shell scripts
This. Nothing as versatile and easy.
>>
Is there an ACTUAL implementation of OpenSSH for windows? I usually use PuTTY, but I mean is there a way to fix it so that I can use like "ssh [email protected]" in cmd with like an environment variable and all? I'd prefer to not use cygwin.
>>
>>53538536
No. Msys 2. I think git also comes with it now. You do have git installed, right?
>>
>>53538565

Yes, but what configuration should I do to be able to just use "ssh" in a command prompt?

I'm trying to use shipit with node and it acts like it expects ssh to be in PATH.

I'm assuming this, because it fails after trying:

cmd.exe /s /c "ssh [email protected] "pwd""
>>
>>53538717
Add it to PATH, maybe?
>>
>>53538536
last i checked for a implementation of openssh for windows cygwin was the only way. dont see why you are bothering wih windows in the first place though
>>
>>53538536
Use git bash

Or run a VM and vet a Linux dev environment inside of windows. Look up Vagrant for that. It's easier than trying to develop in windows
>>
File: test.png (492 KB, 991x480) Image search: [Google]
test.png
492 KB, 991x480
>>53538236
This is not even IE 6, 7 or 8. It's IE 11, which was shipped with both Windows 8.1 and 10, even though it's not the default anymore in 10.

But Microsoft seriously still ships this browser to this day. A 2 year old browser which renders like ass. Pic related.
>>
Does anyone know where I can find good html/css tutorials for creating relatively simple sites. I've been practicing on my own after the codeacademy tutorial but feel like I need some guidance.
>>
>>53539554
Maybe look into responsive design courses by Coursera or edX? Also projects just for yourself that are a little challenging, but don't really have the goal of creating something useful.

Have you ever used a framework? Maybe get familiar with Bootstrap or uikit, just to take your knowledge a little further.
>>
>>53539554

I know it's ancient, but I still do css zen garden projects to relax. It really teaches you discipline and skill when you can't touch the html or hack what you want to have with JavaScript which in turn helps your learn progressive enhancement and even a little bit of separation of concerns.

http://www.csszengarden.com/
>>
Does anyone want to build an SPA in React with me? I know JS but have little experience with the "new" frameworks.
>>
Is there anyway I can create css with javascript?

I have a neat js on github that I want to call just a .js but it currently has a stylesheet that is needed and that's ugly to require that include.
The js has to be loaded bottom of body.
>>
>>53540511
Sounds like you're being a faggot but if you really want to do that you can just create the style tag with JS.
>>
File: sweat2.jpg (15 KB, 300x300) Image search: [Google]
sweat2.jpg
15 KB, 300x300
>boss reviewing code as I left to go home today.

I'm going to have to apologise for something tomorrow morning.
>>
Changing text with onmousover on a link and back with onmouseout throws the text into an infinite loop of changing.

How can I fix this with vanilla js?
>>
>>53540511
If you style your page using Javascript after the content has loaded, you'll get a flash of unstyled content.

Just use CSS and link it in the head like you're supposed to
>>
>>53541330
Its not 2004 anymore, you can use CSS for this kind of thing, you jiggerboo
>>
>>53541412
Wtf. Can I insert divs with it too?
>>
any input on this?

>>53540729
>>
>>53541564
yeah actually.

https://developer.mozilla.org/en/docs/Web/CSS/::before
>>
>>53541757
Well fuck js then because this as a pure CSS is going to be hot shit.

Thanks.
>>
File: oc.png (13 KB, 80x160) Image search: [Google]
oc.png
13 KB, 80x160
Had to make a presentation for my communications class. have to pretend to pitch a business investment to my teacher. We got assigned a salon/spa.

http://collinoswalt.github.io/comm/invest.html

press left/right to navigate.
>>
File: trump2016.png (145 KB, 640x360) Image search: [Google]
trump2016.png
145 KB, 640x360
>>53541978
Shit that's the last slide, it should be
http://collinoswalt.github.io/comm
>>
>>53541978
>>53541990
>no option for a happy ending
You're not getting my money.
Thread replies: 255
Thread images: 23

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.