[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: 39
File: 2016-02-17 15.51.08.png (523 KB, 822x552) Image search: [Google]
2016-02-17 15.51.08.png
523 KB, 822x552
PHP is quite amazing actually edition.

OLD THREAD >>54133832
> 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.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/
https://www.leaseweb.com
>>
Just learning about password_hash in php.

Heavily prefer this.
>>
>>54160186
first
>>
How do I build up a portfolio? I don't know what to create, and much less how to show off what I created to put on a resume....
>>
>>54160246
https://projecteuler.net/archives

Have fun.

But seriously, just try to clone sites you use. Make an imageboard, a reddit clone, twitter clone, etc.

Anyway, anyone used Vue.js before? Gonna be starting a job that's using it in a few weeks.
>>
>>54160246
Create little projects and post them to github.

I have like a photo gallery, distance calculators, ui modifying scripts etc.

Dont listen to me though. No one is responding to my applications.
>>
>>54160317
Yes, but that's more of mathematical problems kind of stuff. Do I just create a git and upload a bunch of files to it in a folder named "Project Euler" ?
>>
>>54160394
https://github.com/ronaldporch

Not that mine is impressive, but I was just accepted an offer, and this is the code that I had on mine. Have a couple of PE solutions, some sample code, and some apps.
>>
>>54160158
What do web dev jobs look like? What's the demographic of people I'll be dealing with? What will their attitude be (towards me)?

How many resumes did you send out before you go your first webdev job? Interview advice?
>>
guys help I have a value displayed on a canvas but when the number changes from 2 digits to 3 the text is moving few pixels how to fix it
>>
>>54160454
>>54160451 this guy. My first job that I'm quitting in a week was pretty unfulfilling desu. Spent most of my time writing reports and making small changes to an old legacy PHP app. I honestly didn't apply to many jobs before this, maybe 20 or so before they called me back.

As I mentioned before, I just accepted another position, but I applied to more than 100 before this one.
>>
Thoughts on Sharepoint?
>>
>>54160519
What does your resume look like? Is it very generic? I feel like I'm sperging in mine too much
>>
File: 1461007310686.png (2 MB, 1280x1707) Image search: [Google]
1461007310686.png
2 MB, 1280x1707
How does /g/ feel about fixed width web pages in 2016.
>>
>>54160643
>http://ronald-porch.herokuapp.com/
I like the structure of this, the way everything is on one page. It makes it less obvious that you only have 3 projects to share. My site was also my resume (I even used an HTML/CSS to PDF converter, haha). I need to work on it though cause it's shitty.

What's your salary and what will your job involve?
>>
>>54160587
Why wouldn't you make it responsive once the size of the screen goes bellow the fixed width?
>>
>>54160809
Thanks yo. I really should do more on the side, but I've been a little burnt out at my current place.

I'm going from $47000 to $62000. New job will involve developing new features for this company's internal application. Pretty javascript heavy.
>>
>>54160882
What kind of people do you work with at your current job? Can you tell me about what your average day looked like?
>>
>>54160956
Currently there are four developers (three junior, one senior) and a project manager/CTO. We juniors are from boot camps, the senior is really old-school, and the CTO is... well, he shouldn't be employed. It's kind of lax at the moment, but previously we would grab cards from Trello and basically work on whatever the card says. So typically we'd have a new feature like "need to implement feature to email report when button is clicked". So once you own that card, you just implement it. On top of that, there are always fires to put out ("Anon, this button doesn't work!")

Not real metrics measure our work though, so you can literally sit on it for days, wait till the last minute, and do it in five minutes. YMMV though.
>>
>>54161045
Thanks for sharing man, hope things are better at your new job. Say, how old are you?
>>
>>54161163
No problem man, I wish you luck. I'm 26. Started a little late, but in this industry, it's never too late really.

And yeah, I believe things will be better. Plus I'm moving to a completely different place so I'm pretty excited.
>>
>>54160158
Everyone has been saying I need to learn to use build tools, so for some fucking reason I decided I'd try bower.

I installed npm & node. (though I really don't want to use node just yet; one thing at a time)
I ran:
npm install -g bower


See screenshot for output.
How the fuck do I fix this?

Or if bower is shit, what should I be using? I'm used to just downloading jquery/bootstrap/whatever myself, creating my own directory and placing them in there, hand-writing the markup to include the CSS/JS assets, and minifying them and gzipping them by hand.

Is there a build tool that will do most of this for me?
>>
>>54161687
You don't fix warnings in npm (since the package isn't exactly broken), you wait a year for the module to get patched or for everyone to move on to something else.

Also, bower is a great tool but slightly dated. Definitely use npm instead.

One last thing, your command was incorrect:
sudo npm install -g bower
>>
>>54161687
>bower
Everything is handled through npm these days. Some even ditch gulp and replace it with npm scripts, but I recommend sticking to gulp.
>>
>>54161831
>>54161853
OK. I'm completely clueless. How do I make use of npm? Do I need to be running node to use npm? Or can it assist me if i'm doing the old "Let's create some html/php files in a plaintext editor, and drop them in /var/www/html" method of web-development?

Basically, how do I into build tools?
I've heard the terms 'node', 'npm', 'bower', 'grunt', 'gulp', 'browserify', 'require.js', and a few other fancy things, but I know absolutely nothing about any of it.

Is this going to take like a long fucking time? Because I kinda want to get a page mock-up done for a client within the next 5 to 8 hours. So if I learning to use grunt or gulp or npm can be done in an hour or two, I'd like to learn. But if this is going to take like a week to get into, then I'd rather not.
>>
Job application coding puzzles.


Is it normal to have 3 really crazy ones with a time constraint of 30 minutes each?
>>
File: cool.png (9 KB, 600x156) Image search: [Google]
cool.png
9 KB, 600x156
Do they have any idea what they are throwing away when they require this?
>>
>>54162266
> year's
> 4 year degree required
> writing required two times
> willing to learn new technology, but use PHP

0/10 would not work at.
>>
>>54162266
>credit check
MURIKA
>>
>>54162353
It's like you're applying for a grocery store but need a degree.

No idea what the fuck they are thinking.
>>
Fuck. Guess I'm going back to school at 27 until 30 and going in debt until I'm 300.

Baby boomers pls go away with your degrees.
>>
In PHP, how do I pass which file I want to download to the secure download script?

The files will be split up into folders, like this:

program1/installer.exe
program1/readme.txt
program2/installer.exe
program2/readme.info

The database holds the program1/program2 portion of the URL and the files are listed with scandir on the download page.

I was thinking about sending the program ID to get the folder from the database and using some sort of hash (maybe bcrypt) for the file and loop through the folder contents until a match is found, but maybe there is a better solution?
>>
>>54162462
You should learn new things tour entire life.

That said, if you have to pay for it yourself it might not be worth it. It might be more profitable to just start your own business.
>>
What the fuck is this?

https://www.youtube.com/watch?v=XrpewtNlhxM
>>
>>54162584
I get paid to go to school. Like 1,400 a month. I don't even pay for books.
Based GI Bill.

Also would have enough time to finish my apps and websites to generate monies.

>tfw body dysmorphia and need to be perfect before going back.
>>
I have an app idea and Ill give 90% stake in my company to the monkey that develops it
>>
>>54162847
You did not take my advice at all.
>>
>>54162847
>90% stake
Oh man, how mad are you gonna be when this app brings in billions in profit
>>
>>54162864
pretty happy. ill be a millionaire
>>
>>54162887
How complex is it?
>>
>>54162887
the billionaire monkey is gonna make fun of you for being a loser though
>>
>>54162900
not at all
>>
>>54162847
How about I get 50% and you pay me a salary?
>>
>>54162630
I'm 30 when Im finished with my current degree. So you're not alone. In fact, half of my class is in it's 50s.

But I really dont believe in working for other people. It's that I have to to make ends meet right now.
>>
>>54162924
youre terrible at negotiating. but ya that sounds great
>>
>>54162920
Can you give a non-specific example of what it does so I know if I should bother.

Like instagram could be described as a "a social sharing based image capturing application"

That way you don't give it away but give an idea of what tech is needed.

>>54162938
He would want that salary starting day 1 of app development.
>>
>>54162956
it is a camera feature lacking in the native camera/other apps that use cameras
>>
>>54162981
and you say it's simple? Overlaying text is simple. Trying to turn the picture into some wide-angle lens looking picture is not.

Which of the two is it closer to?
>>
>>54162981
Oh, I've had a few of those ideas. I've been meaning to try to make more accurate long exposures.
>>
>>54163027
closer to the text
>>
>>54163038
I can do text in the same way kik or snapchat does it. That's about it though.
>>
I just applied for a BBQ supply company.

I wonder what they pay.
>>
and Match.com

maybe they will pay me in free memberships ;_;
>>
>>54163185
not actually looking for text overlay.
If anyone is interested leave an email and well talk further
>>
>>54161914
sudo npm install jquery boostrap

Then find jquery.min.js and bootstrap.min.css/.js in the node_modules directory that
npm install
generates.
>>
File: Screenshot_2016-04-22_03-12-04.png (76 KB, 489x968) Image search: [Google]
Screenshot_2016-04-22_03-12-04.png
76 KB, 489x968
ul {
list-style: armenian;
}
>>
>>54162847
>I have a phone app idea
>I'll take it to web dev general
kaka

>>54163225
sent :^)
>>
>>54163229
Sorry,
bootstrap
>>
>>54163237
why would you want anything armenian?
>>
>>54163289
this is where I was told to go. Where would be more appropriate?
>>
Should someone getting serious about Web Dev buy a Macbook Pro?
>>
>>54163289
He's on dpt too.
>>
I'm adding vanilla.js to my resume.

>>54163307
Only if you need an accurate ios emulator.
>>
>>54163329
that's the only reason? Why are all these memers onm quora telling all aspiring web devs to buy macs
>>
>>54163342
Because it's general advice. It's not tailored to a single person. The person could be anybody. In that case I would suggest a MBP or air, depending on workload. I would still recommend a mac for you, just because I don't know your experience or workload. You are on /g/ so you can stick with any laptop if you'd like.
>>
>>54163304
To the loo, Pajeet
>>
>>54163342
Just use ubuntu and learn the few specific mac terminal commands that ubuntu can't do.
>>
Guys, for the last 6 months I've been doing Java, OOP, JavaScript and C# tutorials, from beginners to advanced level.

And I went to an "online bootcamp" at udemy, coached by Colt Steele, I finished that 2 months ago, made 3 projects, 2 blog apps and 1 kind of like yelp.com, but supper simplified and about outdoor camping. So it was basically front end + back end with node.js express and mongodb.

And I want ot apply for a low paid, junior front end position, where I want to learn the basics of this job and probably after half an year or even year move to other position or other company.

And I do not have any CS degree or anything, Never worked as anything related even, I am basically making "a career change" so my resume and portfolio is pretty wack.

Should I include all the online courses etc in it ? Is this professional, is it critical, will employees take it seriously as real experience ?

Any tricks & tips on that situation ? Anyone done it ?
>>
>>54163450
3 words: BUILD A PORTFOLIO

Get mad doing projects, get all the code in a github account and then get a cheap ass VPS and run them there.
>>
File: 1460511342297.jpg (963 KB, 1280x1280) Image search: [Google]
1460511342297.jpg
963 KB, 1280x1280
>>54163342
Mac's are nice development environment. You get a UNIX terminal and a non-shit desktop. Everything "just werks".

Work provides our macbooks, but if you just want something for yourself and you have the patience for a hobby OS, then Linux is fine. In fact even windows with the new built-in ubuntu/bash should be okay
>>
>>54161914
>build tools
>grunt
>gulp
i.e. make in Javascript with so much functionality missing that it's basically equivalent to shell scripting, only with more lines of code.
>>
How can I split a section or div like this?
>>
>>54160557
Uninteresting but jobs for it are available.
>>
File: cfanalytics.png (37 KB, 972x620) Image search: [Google]
cfanalytics.png
37 KB, 972x620
Tried advertising my site by reposting the amd stock thread from g to reddit, in r/amd and got 12k uniques in less than a day with only 300 upvotes.
Since cf analytics is 7 hours delayed its probably much more at this point. Just pointing out in case anyone is looking for a nice place to do advertising.
>>
>>54163342
because homebrew is the best package manager for *nix apps, there is no stupid issues that you get with distro fragmentation and screwy drivers
>>
>>54164574
What do you mean by "split"?
There's probably an element with a background image set, having two children

>children floating on the left, taking half of the parent width

>parent using the flexbox layout and having its children flex property set to 1

Those are ways to do it, and there's probably more
>>
I have this section here in this bootply

http://www.bootply.com/qtruGhaNS3

Lets say I make another couple of almost identical ones, how easy is it to make it so that they are hidden off screen (But there is no side scroll bar to view them) and when I click "Next project" one of the different project pages slides in instead.

Bonus if it doesn't need JS, but I understand if it needs to.
>>
>>54164861
I have never done it, but when I think of the menu of my own site:
I put the entire site in a wrapper (div). And I use css to move the entire site (everything in that wrapper) to the left if I wish to show my menu.
>>
>>54164861
Maybe you should take a look at bootstrap's Tabs:
>http://getbootstrap.com/javascript/#tabs
But instead of tabs you have your two links.
>>
Has anyone had any experience with PHP-PM? It looks pretty interesting and since my project is based on PSR7 arch it should work with it in theory.
>>
>>54160158
a friend of mine who is a programmer told me that web and mobile development is the future. I want to learn how to program. should I start by learning php?
>>
>>54165049
PHP has a problem in that it is a little backwards in some aspects, and it really shouldn't be a first language for someone. It's gotten better in recent years, especially with the release of PHP7, but it still has some ugly kinks from the 90s at the core that have never been replaced.

I would say try building something with Python and Flask, since it's pretty fun and easy. Avoid Django, it's shit.

http://flask.pocoo.org/
>>
>>54165049
No one here will tell you to learn PHP.
But if you want to be a professional web dev, you gotta know PHP at least a little. There are better language though. But you sure can use the most used language in web dev for starters.
If you don't know HTML and CSS yet, maybe you should learn them and choose JavaScript instead of PHP for the beginning of your journey in web dev.
>>
>>54165099
what about C? I've heard C is pretty useful and not that hard to get into. plus I've already downloaded visual studio. should I?
>>
>>54160186
>>54160211

In 20 years PHP might even get Argon2 support.
>>
>>54165119
C is not something you develop web applications in, period.

You can try, but you'll be spending more time understanding how the HTTP protocol works, which is probably more interesting.
>>
hey guys

old school dev here, my last serious project was with PHP and a sprinkling of ajax.

I'm looking to get into front end dev again (in fact I HAVE to, I have a legacy web app that urgently needs modernising).

But this modern stuff is fucking confusing. I've briefly tried AngularJS and I hated it, the way I have to follow Google's horribly over engineered way of structuring an app.

I experimented with React JS and while I like that I can structure my app how I like, the whole component thing seems strange and painful and weird. And having to find separate libraries to do things like provide a state machine.

I've looked at things for UI design like Bootstrap and Foundation and Google Material too, and the sheer amount of choice in all areas of this is utterly confusing.

What do? What would be the simplest, least painful, framework type thing for me? Is there some single monolithic thing with excellent tutorials that provides all the app/Javascript stuff along with nice UI widgets I can use without thinking about it?

>inb4 just use PHP, I do need to move to client side JS stuff for this project, the current version is heavily Flash Player dependent and I need the fancy new HTML5 media functions
>>
How do you guys usually structure your web project folders?
>>
File: 12954063.png (29 KB, 310x326) Image search: [Google]
12954063.png
29 KB, 310x326
Just got a promotion from intern to junior full time, went from 40k to 70k. Plus were switching our code base to angular2 from angular1

Life's gud guys :)
>>
What best book about responsive css/html or media queries?
>>
Coming from C/C++ background, as far as popular scripting languages are concerned, I'd take PHP over Python/Ruby/JS any fucking time. Sure, it has a lot of cruft and warts that you need to be aware of, but I'd much rather tolerate these + a few inconsistencies in function names/arguments order than, say, Python's ridiculous scoping rules, lack of type hinting, lack of proper encapsulation, ___underscores_everywhere___, fucking spaces everywhere, "threading" with global interpreter lock, being slow as hell etc.

And for the record: I do think share nothing architecture in the web context is a good thing.

PHP owns its shit reputation to its popularity (huge amounts of terrible code written and put in production by people with no idea what they're doing) but it seems to me Python is getting there too, as it's now taken over as #1 pick for babby's first language.
>>
>>54165614

Depends on the project.

For something small, it might look something like:

www/
|_ resources/
|_ images/
|_ your_mom_tijuana_trip_2015.jpg
|_ <videos, etc.>
|_ styles/
|_ main.css
|_ js/
|_ app.js
|_ someLibrary.js
|_ index.html
|_ favicon.ico


For any non-trivial projects, it really depends on what you're trying to do. You generally just want to keep things as organized as possible.
>>
>>54165614
This is for angular apps in particular, but it's a good starting point to get you thinking along the right path for organizing your stuff.

https://scotch.io/tutorials/angularjs-best-practices-directory-structure

>>54165981
google/MDN
>>
>be me
>advised to take over "out of date PHP application"
>web interface looks like basic CRUD
>oh, look, code for a READ
>"why is it building XML out of the read query?"
>"why is it calling fopen and writing an xml file with a hardcoded name?"
>"why is it running system('/app filename.xml')"
>now it calls fopen again and reads back a different XML file
>builds display out of that
>apparently.. this is how it communicates with the COBOL backend
>>
>>54165121
7.1 will have it as an extension
>>
File: 1425518969809.gif (1010 KB, 450x402) Image search: [Google]
1425518969809.gif
1010 KB, 450x402
>>54166361
>COBOL backend
>>
File: 7VgliD5.png (278 KB, 600x400) Image search: [Google]
7VgliD5.png
278 KB, 600x400
Does anyone use LWIP here? Ever since I installed it into my MEAN app, I have to npm rebuild everytime I pull from my team's repo.

it's not really a big deal, it's just minorly concerning because it feels like something is hella botched
>>
>>54166265
>>54166294
Ah, OK. I'm learning about the MVC structure. And right now, it looks like this:

app/
---controllers/
---models/
---views/
---core/ (for all other classes I made, like User, Router, Database, etc)
---autoloader.php
public/
---css/
---js/
---index.php (html skeleton that includes views)
index.php (script start)


OK or not OK (beside that I'm using php)?
>>
Am I retarded if I don't understand a word from the Requirejs documentation?
>>
>>54167110
Looks fine to me.
>>
>>54167110
Check this as an example

https://github.com/panique/mini
>>
>>54167976
Interesting, almost like what I'm doing. Thanks for the link, I'll read it all later.
>>
>>54166361
I had a COBOL backend job for a few years till the company fully migrated to more modern solutions. The pay was damn good.
>>
File: 1459702589670.jpg (31 KB, 600x337) Image search: [Google]
1459702589670.jpg
31 KB, 600x337
how do I redirect a subdomain to a page on my wordpress site?

www.[mydomain].com goes to the main page as it should.

www.[subdomain].[domain].com doesnt do jackshit even though the entry *.[mydomain].com is set in the dns settings and technically it should just go to the main page.
>>
>>54168470
Should it not be
[subdomain].[domain].com
?
>>
>>54165614
This is from my current Angular project
webapp/
|_ images/
|_ image.jpg
|_ styles
|_ main.css
|_ scripts
|_ home
|_ home.html
|_ homeCtrl.js
...
|_ profile
|_ profile.html
|_ profileCtrl.js
...
|_ app.js
|_ index.html
>>
>>54168500
doesnt matter if or without www. nothing works and I just get redirected to a error page

>Due to a configuration error the site you are requesting is not available.
>>
>>54165418
>Python + Django
>>
>>54168570
Need more details, are you hosting it yourself? if so what are you using for the server?
>>
File: 1387252109976.png (117 KB, 448x539) Image search: [Google]
1387252109976.png
117 KB, 448x539
>>54168531
>>
File: 1452367354985.png (258 KB, 493x324) Image search: [Google]
1452367354985.png
258 KB, 493x324
>>54168604
it's really simple:

I have my website www.heerbann.com/ hosted by a professional host. just a simple webpack.

on it is my wordpress page and everything works. but now I want is on entering cloppenburg19.heerbann.com the user is automatically redirected to a page on my wordpress page.

in my dns the wildcard is set and as I understand it the request should be redirected to the main entry point and then I can redirect to my page by a plugin.
>>
File: 1325229703684.png (121 KB, 500x500) Image search: [Google]
1325229703684.png
121 KB, 500x500
>>54168722
typo: cloppenburg1939.heerbann.com and not 19
>>
>>54168722
>>54168774
>informations
>>
File: stupid_box.jpg (84 KB, 1920x1053) Image search: [Google]
stupid_box.jpg
84 KB, 1920x1053
Can anyone tell me why when I use

<a class="right carousel-control" href="#" role="button" data-slide="next"> <span class="glphicon glyphicon-arrow-right"> </span> </a>


the functionality is there but the arrow icon is not appearing?

Sorry for dumb question I just don't want to lose marks over this stupid ◄ arrow and right now I can't even tell if its an error on my side or something to do with bootstrap/glyphicon.

Pic related, the shadow is clickable and works to shift the carousel, just a dumb box instead of the arrow icon.
>>
>>54169381
There's a typo in your code: glyphicon*
>>
>>54169502
omg fuck. thank you and sorry for wasting ur time.
>>
>>54169527
Does it work now?
>>
>>54169548
Yes that was the only mistake. thanks again
>>
Hey, I have a course assignment in web usability where I have to interview someone currently working in web development. Would anyone be willing to answer some questions about usability?

https://docs.google.com/forms/d/1kti6yBwZ_hgUy4NL_5YUoaDWcuQYXX67n5yFKeC04JQ/viewform

some questions are a bit more lengthy than others but i don't think it should take more than 15-30 minutes to anwer
>>
File: enough.jpg (21 KB, 396x385) Image search: [Google]
enough.jpg
21 KB, 396x385
>>54170690

ur a cheeky cunt ain't ya m8?
>>
>>54170965
why's that?
>>
>>54160158
What do you think about directly commenting your html in your template/layouts?

I think is a bad practice in terms of security. But waht's your opinion or do you have any resources?
>>
>>54171213
I put html notes everywhere. At the very top of all.php files I load I've put a html note saying which document it is. It makes debugging easier. I can just look in my browser and see which files are loaded. Instead of an error message I load a document with a different html note.

Notes that serve as documentation are between php tags. So they shouldn't be visible.

If they can use these notes to hack my site then that would mean my site is insecure to begin with. But I highly doubt it would help them much.
>>
>>54171431
Additionally, I keep a separate document with proper documentation.
>>
>>54170690
>Name *
>E-mail *
>Job title *

How about fucking no.
>>
>>54162353
>hiring jamal
>ever
>>
>>54170690
Take this to
>>>/r/webdev
No one here will give you their personal information.
>>
>>54171857
already did m8
>>
>>54171922
Hello Renmyra
>>
I gotta make a small game in javascript.
What libraries i use?
>>
Is getting contracted bad? I want real work but no one will hire me unless as contract.
>>
>>54170690

What the fuck are those questions?

"Is responsive design important?"
"Is usability important?"

Why are you asking questions from which the answer has NO FUCKING MERIT?
>>
>>54172476
Would you rather I ask why? Do you have any better examples of questions?
>>
>>54172476
Also I'm not looking for an exact answer, I'm just looking for your opinions on the topic.
>>
>>54172186
small? Then don't use any. Make a roguelike... hidden in the console.

>>54172544
I'd rather you went away and actually thought about what you're asking, and what you hope to get out of it? Because right now, you're asking questions that will only amount to a 3rd class degree.
>>
Just started using Visual Studio instead of Liclipse for django development. Holy fuck it is so much better. The hardest part of starting with any new language is getting all your shit set up.
>>
No one will hire me.
I have an hour a day to work on my portfolio because of my job.
I just want to web dev.
>>
>>54172641
>3rd class degree.
I had to google this. It's a pass or fail assignment. My course grade is based solely on a project with an oral presentation and a written report.

I'm just hoping to gain some insight into this topic which I until recently didn't even know existed.
>>
I just made a ridiculous mechanism to obfuscate my email on my website. With two javascript codes turning the letters around. With css and noscript in between the scripts. The @ replaced with symbols and letters in html numbers.

I feel kind of silly using it. But at least one of the methods should work. And I dont have to use an image.
>>
>>54173105
Just store email as bin and do bin2hex in the mailer.
>>
where do i even begin if I want to make a website and also host it myself?
>>
>>54160158
hi anons. i am learning about wordpress multi network? I understand its a tool i can activate.
>http://codex.wordpress.org/Create_A_Network
pros and cons of multi network?
>>
>>54173215
That does sound smarter than what I'm doing.
>>
>>54172931
are you a foreigner?
>>
>>54173279
First post has numerous links to learn web dev
>>
>>54173312
>foreigner
I'm not from USA if that's what you're asking.
>>
>>54173600
I figured.
>>
So my pages don't have much space for text so I have tooltips everywhere but I read that google and other search engines don't index any of the hidden divs how true is this? Is there a way I can bypass this because I really prefer the design with tooltips instead of filling the page with text
>>
>>54165614
static/
--img/
--css/
--js/
--lib/
-- --js/
-- --css/
-- --font/

>>
Has anyone here worked with Koa?

I'm an old LAMP guy getting into modern web dev. Seems like Koa is the newest shit on the block but there isn't as much information aimed at beginners out there.

What is the overall workflow in a Koa application?
>>
Anyone have good resources for Javascript interview questions?
>>
File: Koa_logo.png (4 KB, 124x150) Image search: [Google]
Koa_logo.png
4 KB, 124x150
>>54174848
I haven't used it, but it's basically a redo of express using es2015, isn't it? I would guess your workflow would be very similar to express but with more =>s and lets and probably less 3rd party stuff available.

If you're a beginner I would probably mess around with express first.
>>
>>54174862
https://www.google.com/?q=javascript+interview+questions
>>
>>54175098
Wow what a great internet page, I will put it in my favorites :^)
>>
>>54175855
It's not an internet page, you dip. It's an interpreted DOM.
>>
would you guys rate my css?

https://jagger.me

does that gltich headline work in your browser if not which browser do you use?
>>
>>54176429
Thanks, Doc.
>>
>>54175079
Thanks anon. I'll take a look at express then.
>>
>>54176429
>does that gltich headline work in your browser if not which browser do you use?
Works on mine, chromium on linux.
>>
>>54176429

Glitch headline works, FF on win7.

I get the look you're going for, but desu it could use some work.

- The text is difficult to read and doesn't flow well.

- Site isn't responsive at all.

- Your html formatting is awful. Stop using <br>s and fix your links. Running the code through an html validator would also be a good idea.

- Lern 2 into grammar.

- You should set your background-color to black so the default white background doesn't burn out people's retinas before the image loads.

There's probably a ton of other stuff, but that should be plenty to get you started.
>>
Anyone have a good resource for creating a simple PHP API?

Im Googling but not finding a good stepbystep with detailed instructions, just a lot of code blocks with "there it is!"
>>
>>54177573
I should add that I only need to return rows as json.

Dont need to do nothing else.
>>
>>54177104
>- You should set your background-color to black so the default white background doesn't burn out people's retinas before the image loads.
I agree with this.

>- The text is difficult to read and doesn't flow well.
I agree with this too.
I thought it was cool that you used a monospace typeface and I can see that you're going for a terminal kind of look so maybe just try playing with the colors. Maybe look at text editor themes like Monokai for inspiration. Also, I'm not really a design person. A design person might actually suggest not using a monospace typeface as your main typeface, I don't know.
>>
Recently started learning web dev, going pretty well but my laptop is a shit. I'm using some HP that's 3 years old but already broken in so many ways. Very slow, won't work unless connected to charger, charms keep popping up at side. I hate Windows now.

I've been thinking of getting a small Mac laptop. Are those good for programming?
>>
>>54179060
I have an old netbook. A lenovo S205. It's a piece of shit. I installed ubuntu.

It's what I use.

I also have a G73SW running ubuntu and a desktop with a 980 and 4790k running windows 8.1, but those aren't for web dev. They are for shitposting.

Moral of this blog is that your laptop is fine. Skills make the dev, not the computer.
>>
Is namecheap fine or to be avoided or anything? .88/year for shitty .cricket .space .party domains seems cheap enough to offset how ultimately pointless it is, but not if they're problematic.
>>
>>54179396
namecheap is fine and/or good. godaddy is the only really objectionable choice for domain registrars.
>>
>>54166387
>PHP 7.1 will have an optional extension that no shared host will install, and since every open source application is tailored to such hosts, this extension will never get used outside of a few in house applications.
>>
>>54179408
Not the guy you responded to, but besides SOPA, why is godaddy bad?

I used them years ago and I remember hating them but I don't remember why anymore.
>>
>>54179396
If all you're doing is registering a domain, it pretty much doesn't matter. As long as they take your money and give you the domain, pretty much every complaint against every registrar is about their hosting service.
>>
>>54179914
Because they charge more than twice what namecheap charges.

I also bet they charge a ton for whois protection.
>>
>>54179974
Also they sell your info to identity things.

You know those tax questionnaires or bank things that ask you identifying stuff? The ONE domain I bought from godaddy was listed on those as "What business were you associated with?" and it had that .com I bought it over 10 years ago and it's still there.
>>
File: 1458392459571.jpg (71 KB, 750x724) Image search: [Google]
1458392459571.jpg
71 KB, 750x724
So I have my first interview as a PhP Dev this Monday and wanted to know what to expect. The job sounds good with some of the requirements being PhP, Drupal, HTML/CSS JS ect...
I have never used Drupal in my life but I'm going to read up on it and try making some stuff tomorrow and Sunday. Am i fucked or do I have a shot at landing this job?
>>
>>54180512
Why are you writing php likes it's a degree or something?
>>
>>54180731
honestly don't know that's how I've always whiten it.
>>
>PHP is quite amazing actually edition.

No, it isn't.
>>
>>54160158
>PHP is quite amazing actually edition.

>I'm a retard who only used PHP or [spoiler]Java[/spoiler] before edition.
>>
File: Website Done.png (4 KB, 113x157) Image search: [Google]
Website Done.png
4 KB, 113x157
>>54160158
Okay, /wdg/, my website's done. Now what's the cheapest web host available? My site is mobile compatible, do I to make sure the web host is mobile compatible as well?
>>
>>54182189

Well github or gitlab could do the trick
>>
eulerproject.net
good way to get better in js as a beginner ?
>>
>>54179897
Language of the web, man ;)
>>
>>54182696
timus.ru
spoj.com

euler is meme shit only good for mathematicians.
>>
>>54182696
It's https://projecteuler.net/ (pronounced OIL-er, btw) and it's mostly focused on doing math problems. If you want to get better at doing math using JS, go for it. If you want to get better at practical webdev shit, you need to practice doing practical webdev shit i.e. making things.
>>
>>54183121
yes will do web things, but just to get used to the language it seems to be a good practice now
>>
I'd like my users to include pictures in their posts, but I'm very afraid of exploits (such as linking to a 1px x 1 px image while gathering user infos when the image is requested by the browser. Things like that.)

What kind of exploits can be done via the img tag? How do I make sure the provided external image URLs are safe? Maybe I should keep all images, so I can make sure they are images and they don't point out to anywhere else?
>>
What sort of code puzzles are people applying for webdev positions usually asked to complete?

Also

Ruby/ror or Python/Django
Tried ruby and it seems nice, but I've heard that python might be the better option due to it being more modern with more of a job market.

Thanks in advance
>>
>>54183179
Also there seems to be a buttload of options when it comes to getting comfortable with web dev and was wondering what to prioritise learning out of

Angular
Node
Ember

And so on. It seems as though it would be best to at least be familiar with all of these options, but it's hard as a beginner to know which path to take first.
>>
Making a digital flashcard type site to help people study for exams. Might make an Android app for it too with something like Phonegap in the end.
>>
>>54183147
you can't. so don't do it.

either upload them to your own host or not use images at all.
>>
>>54183147

https://en.wikipedia.org/wiki/Web_beacon


>What kind of exploits can be done via the img tag?

If you allow badGuy to add externally hosted images to your site, he could potentially add one with a src that links to his domain, which means he could log the GET request info for anyone viewing the image. There's no reason why the image would need to be 1x1 px for that to work though.

BadGuy could also potentially base64 encode any arbitrary data (virus, cp, etc) and get it onto someone's computer, but there would have to be a way to decode it when it gets there.

>How do I make sure the provided external image URLs are safe?

Host them on your own domain, a trusted CDN. Don't let users add images straight from the url of unknown sites.

Maybe I should keep all images, so I can make sure they are images and they don't point out to anywhere else?

Yes. You could also use a CDN.
>>
File: Capture.jpg (37 KB, 537x483) Image search: [Google]
Capture.jpg
37 KB, 537x483
How do I upload my website from Dreamweaver to Openshift?
>>
>>54183304
>>54183348
OK, thanks!
>>
File: 1460901951842.jpg (15 KB, 235x212) Image search: [Google]
1460901951842.jpg
15 KB, 235x212
>>54183351
>>
>>54169381
You should use button tag for this control btw.
>>
>>54183388
Can I get an explanation please?
>>
Is it bad practice inside a class to have a mix of public and static methods? For example:

myObject = new myClass
myObject has now many useful properties and methods to work with that object.
But at the same time, this object also has useless (for the object) static methods that I declared in that class because it's themed-related but not to the object.

How bad is that? Should I make two classes, one for the object, the other for the static calls?
>>
>>54183494
Using dreamweaver 10 years after everyone should have stopped using it.
>>
>>54183540
>How bad is that?
Pretty. You should seperate that stuff.

>Should I make two classes, one for the object, the other for the static calls?
Yes.
>>
>>54183701
Any idea what kind of naming convention I should use? Because in my head, they really should have the same name. I thought of NAME_SUFFIX, or maybe one could be singular, the other plural. I really don't know.
>>
>>54183746
I can't really help you there because I don't know what exactly you are writing there. But here's what my classes look like:

"topicInterface" as interface between client and manager
"topicManager" full with functions that actually do something related to topic (for example userManager has a function login)
"topic" itself as class to load it from the database out of the table "topic"

First two contain only static functions, no need to instanciate. "topic" is a normal class with normal methods doing "topic" related stuff like "generateUserID" (while that one can also go into the manager, I'm not that strict)

These are just examples though.
>>
>>54183810
OK, I see. Thanks for your reply.
>>
>>54183494
Use FileZilla
>>
wow slow thread
>>
File: Screenshot 2016-04-23 16.57.34.png (190 KB, 2646x1024) Image search: [Google]
Screenshot 2016-04-23 16.57.34.png
190 KB, 2646x1024
r8 my slideshow
learned js for few days and wanted to get some practice, I have no idea the real slideshow codes look like
>>
>>54185118
2/10
very beginnerish
>>
>>54185166
didnt care about the design
>>
>>54185189
I didn't rate the design, there is none.
>>
>>54185118
so heres things for you to improve.
make it reusable, you currently rely on the elements existing.
you create global variables instead of scoped ones, if any other script overwrites "pictures" you're fucked.
don't use onclick attributes. use event listeners to separate code from markup.

so what you want to do is: make a class out of it which you give an array of images and maybe an element container to put your navigation elements in. create the elements you need in your class.
>>
Alright lads. How do I make JS work by relatively targeting a parent ID (idk how to ask this).
I have a few questions that'll be output from the database along with the answer, which won't be visible until the user clicks. So far I have this, which from the WEBM you'll see what my problem is.

https://jsfiddle.net/gj0vvk3v/
>>
why does webstorm have such shit autocomplete and such shit support for react?
>>
>>54185394

$(".unit").on('click', function(event){
$(this).children(".answer").toggleClass("show");
});
>>
>>54185394
https://jsfiddle.net/pcghf6L3/
>>
File: IMG_0004.jpg (93 KB, 576x576) Image search: [Google]
IMG_0004.jpg
93 KB, 576x576
>>54160330
this is actually the way to go. just write apps that scratch an itch you have. something you want to automate, or just try to copy an app you like - but in a different technology. you won't mind spending time on them (because you're doing something for yourself) and you will learn a lot.
>>
>>54185457
>>54185494
Thanks! I appreciate it.
>>
>>54185540
Can be done with pure CSS by :checked on a chekbox
>>
>>54185600
Interesting. I should probably try this out too.
>>
File: 1461344606175.webm (462 KB, 250x250) Image search: [Google]
1461344606175.webm
462 KB, 250x250
Hi,

I just finished writing a small web app for a friend's shitty startup. The notable parts is that I used only: Ruby, Sinatra and sinatra-websocket and all that on OS X.

When it came to deployment I learned this:
>Apache does not support Rack-based websocket implementations.
>There is no way to make Apache on OS X (both built-in and brew 2.4) use the correct Ruby version from rbenv and not the system one.
>Rack fcgi adapter does not work properly with Apache (blocks on reading from STDIN).
>Passenger segfaults on OS X Apache (both built-in and brew 2.4).

I understand I will get a lot of shit for using Ruby and not researching all these issues beforehand and I acknowledge my mistake.

Long story short I have to rewrite everything either in Ruby using different libraries or use a different dev environment setup.

TL;DR: What is the correct choice/combination of software for web development?

pls respond

Thanks in advance
>>
>>54183635
So what do you use to create a website exactly?
>>
>>54160158
>TL;DR: What is the correct choice/combination of software for web development?
the ones that fucking work
>>
>>54186130
If you even have to ask that, the way you create a website is to hire a web developer to make it for you.
>>
>>54186169
Which aaare?
>>
>>54186018
Try nginx instead fampai
http://recipes.sinatrarb.com/p/deployment/nginx_proxied_to_unicorn
>>
>>54186130
People here just use fancy text editors.

I use Notepad++ (for Windows) and Atom (multiplat).
Others use sublime, vim, emacs, gedit etc.
When you want to see what happens in a file you open it in your browser.

I started with Dreamweaver as well, but the tools make it very easy to give you bad habits as you can click a button, some element is changed and you dont see what you are doing. It actually hinders your learning and can result in less control. But of course it depends on how you use it. It's no problem to just use it for coding.

In my case I only really started learning how to make websites after I did away with dreamweaver. And it really paid off directly as I finished my project much faster at with more precision in my first project after it, which I did with a css tutorial on screen.
>>
>>54186293
But that implies I would have 2 servers running at the same time. I was hoping I could just have Apache or nginx and not have Unicorn or thin in the background.
>>
>>54186304
>as I finished my project much faster at with more precision in my first project after it
as I finished my first project after it much faster and with more precision
>>
>>54186326
>But that implies I would have 2 servers running at the same time.
what's the big deal m8?
>>
>>54186593
Is that normal in webdev?

To have 2 processes when there should be one?
>>
>>54186631
having nginx serve static files and act as a reverse proxy to your app's server isn't anything out of the ordinary desu
>>
>>54186631
>>54186593
>>54186654
That post was not meant ironically or passively aggressive - I'm really wondering whether that's expected behaviour.
>>
>>54186593
I have like 8 servers running asp.net pages in mono which get proxied by nginx.
>>
>>54186682
>>54186654
But the servers shipped with Ruby and Mono are total shit doesn't that create a massive bottleneck?
>>
>>54186700
for asp.net, maybe, but it's already running out of its normal environment.

if you look at asp.net 5 and its kestrel server each application will run in its own instance too.
>>
>>54186727
Is there no other way to do webdev with scripting languages? I thought that once you move some application to apache/fcgi you get rid of the "bad" server used during development.

Wow

That just seems like an objectively bad decision. And unfortunately I can't think of any alternative except for writing webapps straight into the Apache source code.
>>
Can someone ELI5 this:


try { ablurt(“An exception will occur”); } catch(exception) { alert(“Exception occurred”); } finally { alert(“Whatever happens this line will execute”); }


>>
>>54186803
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/try...catch
>>
>>54186671
Nginx as a reverse proxy is very common. It also serves static files very quickly. If there is a bottleneck then you just launch another instance of your second server and nginx can proxy to both of them.

I don't know anything about rails Nginx/Gunicorn is the most common setup for django on production servers.
>>
how much money is falcon making with logical increments?

how do i make a better clone and get it posted on the sidebar of reddit's /r/buildapc?
>>
>>54187633
Why would anyone tell you instead of making it themselves?
>>
File: 1445998433188.jpg (30 KB, 696x785) Image search: [Google]
1445998433188.jpg
30 KB, 696x785
>>54186018
Ruby is fine honestly. People just hate it because they associate it with Rails. I like it far more than whatever else is popular in webdev currenty, like Python and PHP.
>>
>>54187901
I like Ruby too but this was the first thing I ever made in a scripting language that was supposed to go to production and once I learned how that is done I am just confused.
>>
Before I start searching, does anyone have experience with a good instagram plugin.

I want the gallery section for the website I am building to integrate with the company’s instagram so it is always up to date.

Was just wondering if any of you had good experiences with one.
>>
>>54187901

How about you puts a dick in your mouth and gets the hell out of here.
>>
File: 1447887633660.jpg (69 KB, 595x575) Image search: [Google]
1447887633660.jpg
69 KB, 595x575
>>54187986
There are no dicks in my vicinity sadly.
>>
What's the point in all these js frameworks like angular ember react etc? Why not just use raw JavaScript? Do I really have to know these libs to get a job?
>>
>>54187966
Why not just curl the front page? Would take like 2 seconds to populate some sqlite db and then 2 seconds to show them on your site.

Or did you mean something like a JS plugin that does it in realtime?
>>
>>54188495

I am going to level with you, I have literally no idea what you meant with the first sentence.

The second is what I am going for though, a plugin that does it all for me.

I should point out I am very new to this and just doing this as a one time thing for my company.
>>
>>54188438
just started js and even I know that you will need this stuff
>>
>>54188590
Just wanted to say that you could do it on your server's end no worries doe
>>
File: 1.jpg (62 KB, 567x505) Image search: [Google]
1.jpg
62 KB, 567x505
I need help uploading my website to OpenShift. I'm connected to my OpenShift PHP 5.4 website. Now how the fuck do I get the damn thing in there? Or what directory do I upload my website files to?
>>
>>54183351
>Dreamweaver
>>
>>54188608

Pls explain
>>
>>54188718
Refer to Php catrtidge tutorial on Openshift
>>
>>54188642

Is that difficult to set up, I would prefer to be in full control of it myself as I will be maintaining the site.
>>
>>54189066
thank you. I'm going through it now. Does it matter if I use PHP 5.3 or 5.4?
>>
How much does it cost to run a website from home?
>>
File: Fuck Me.jpg (35 KB, 871x281) Image search: [Google]
Fuck Me.jpg
35 KB, 871x281
>>54189066
I'm stuck here. There's no prompt on cmd ffs.
Thread replies: 255
Thread images: 39

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.