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

/wdg/ - Web Development General

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

Thread replies: 311
Thread images: 31

File: 1412888553192.jpg (1MB, 1241x884px) Image search: [Google]
1412888553192.jpg
1MB, 1241x884px
last: >>57924927

>This season's Advent of Code:
https://adventofcode.com/2016/

>Discord
https://discord.gg/wdg
OR
https://discord.gg/0qLTzz5potDFXfdT
(they're the same)

>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/
https://www.freecodecamp.com/
http://www.w3schools.com/
https://developer.mozilla.org/
http://www.codewars.com/

>Useful Youtube channels
derekbanas
thenewboston
learncodeacademy
funfunfunction
computerphile
codingrainbow

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

>Backend development
https://en.m.wikipedia.org/wiki/Comparison_of_web_application_frameworks
[Gist] backendDevelopmentBookmarks.md

>Useful tools
https://pastebin.com/q5nB1Npt/
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://pastebin.com/pDT82mQS
http://pastebin.com/AL6j7GEE

>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
>>
Things I'm working on:

1.) Videogame
2.) Youtube App
3.) Morse code App
4.) Trying not to kill myself

Which one of these seems most interesting?
>>
>>57968726

>#4

same
>>
>>57968726
Hello ADD brethren.

Pick one and see it through. Keep building and reordering that idea list but finish what you're working on.

Doc is giving me Ritalin in a month. The world won't be ready for it.
>>
What types of websites today can get you some cash and from what?

I haven't even been thinking about making something by myself because I have no idea what could people even use that doesn't exist already.

I basically abandoned all hope for those kind of things after a first year of uni.

I will never be an enterpreneur. Just when I think about all those potential killer apps I could have made, and all those fairy tales my uni told me that are achieveable... Heh.

The only thing I can currently make is some kind of a blog or portal but that shit doesn't get any revenue and takes a shitton of time.
>>
>>57969667
I've got an idea but it will cost you $50
>>
>>57969667
see:
>>57969747
>>57969787
>>
I need a private repository for my current project..

BitBucket or GitLab?
>>
I hope no one minds me reposting my question at the very end of previous threads:

So what is the magic number for the number of projects needed to put in your portfolio? I was going to shoot for four but now I don't even know.

3 - sites (one multipage using foundation and one using bootstrap, and one simple single page site)

1 - simple php project

None of these are real sites though just updated student projects... Now you guys got me thinking I'm fucked. I was wanting to leave all the garbage student projects off of there if possible.
>>
So I came in last thread. I am using XMLHttpRequest to call an API to post some information. If I do it too quickly it'll lock me out. I have the API call in a function. What I do is during the loop I delay it each iteration for .5 seconds.

However it seems like it goes through the entire loop THEN sends them all off, which gets me failed results. I am very confused as to why this is. I am not experienced with javascript.
>>
https://collinoswalt.com/pics/

I added a section to my blog where I repost pictures I like. Any kind of pictures (instagram, imgur, etc) I want
>>
>>57970919

Depends on your size. The is no rule.


Just try to put yourself in your employers position and look though your portfolio as if it was someone else's. Would you hire yourself? Would you give money to that guy and bet your companies success on him?


Another good measure is simply if you really understood what you are doing. Shut down your computer and have small converstion for yourself:
"How would you implement an online version of monopoly or chess?"

Just go through it step by step and talk loudly:
What technologies would you use?
Where to put your logic?
What are the problems and how would you try to solve them?
Why is using a certain technology (i.e. React) a good/bad idea here?
What happens in your program?

If the task is too easy, try something more difficult.
If the task is to hard, start with something simpler.


This sounds ridiculous, but it teaches you a lot about your gaps. Suddenly you realize you don't really know how a certain part works or what the downsides of React are.. Good! Now go and code it. You just got smarter and have one more project to show up. If you can fast forward through such an mental exercise you are ready for an interview.
>>
>>57971380
Very good way to put it. It's very hard to know when you're ready because people constantly tell you about "imposter syndrome" and all that, as well as an employers knowing that a junior isnt going to be very helpful (maybe?)

I'm super critical about myself so I don't know if I'll ever be happy with a site I make. I do like your advice on asking yourself questions, because in an interview setting I may be stuck with a whiteboard.

Do you think someone is ready with a little bit of html, css, and javascript?
I get the feeling that this used to be the case, now it feels like employers are expecting a junior dev to have a lot more knowledge coming into the industry. I can't really tell if this is just the HR retards putting up qualifications that are outside of a realistic expectation or if the standards are actually being raised.

Also thanks for the detailed response anon.
>>
>>57970973
If you're doing a loop with a setTimeOut of 0.5 seconds, the loop will complete and the requests will all be sent 0.5 seconds from now.

What you need to do is do a setTimeOut of 500 * i, that way each call will be sent 0.5 seconds after each other.
>>
>>57969667
>I will never be an enterpreneur.
Sounds about right.

I have 2 rules and they are very good. Since rule 2 is my business model, here's rule 1.

If your website does not fit this rule, then don't make it.
>1. You don't want to write any content, at all, ever.
>>
im tryin to ue webkit-background-clip:text and it looks like ass on firefox. wtf. is there a way to fix this without the modernizer solution? like pure css
>>
>>57968726
1 easily sounds the most interesting but also the most difficult to finish.

Do number 4, you should be able to do it in two or three days tops.
>>
>>57968726
None of those seem interesting.
>>
First year Software Development student here. Things I'm working on:
1) Internally screaming my way through college
2) A shitty MUD passion project I picked up 2 months ago
3) A community website for resources and discussion for aforementioned MUD
4) Teaching myself Python because my course isn't and the MUD's codebase uses it.

Basically I like to play in the MUD. Also I'm shit at art so text-based creations are convenient.

Python is comfy af and all my first yeartards agree. I've no idea why they're teaching us the logical essentials for programming with the messy clusterfucks of Java and C# instead of Python.

I started an ERD for my site's SQL last night and I'm suck wondering if I should add all the account settings attributes to the User_Account table or if I should just attach an Account_Settings table. Other than that, any general tips for someone who wants to design good forums? I'm only planning on using SQL, PHP and HTML at the moment.
>>
Is it dumb if I make a custom PHP method to accept arguments of a table and array of columns and values to parse into a stringbuilder for SQL queries? It'd also validate and escape known column names to avoid SQL injection, and return errors for any unrecognized columns.
>>
File: gulperror.jpg (119KB, 1013x343px) Image search: [Google]
gulperror.jpg
119KB, 1013x343px
Hey team.

My Gulp keeps crashing, even if my code is good.
Is it because of my gulpfile.js set up?

Thanks!
>>
>>57973613
your mom doesn't seem interesting
>>
furst fur acbn
>>
>>57974864

oops
>>
>>57974876

what .exes are u guys making
>>
>>57974517
Uncalled for.

:^)
>>
File: mario.jpg (7KB, 460x276px) Image search: [Google]
mario.jpg
7KB, 460x276px
does anyone have any good background images to use in css?
>>
>>57975783
subtle patterns?
>>
File: pattern.png (111KB, 500x500px) Image search: [Google]
pattern.png
111KB, 500x500px
>>57975925
pretty much just looking to form a good folder of images to consider when designing. whether its basic pattern repeats or full background, its fine.
>>
File: black50.png (20KB, 960x480px) Image search: [Google]
black50.png
20KB, 960x480px
>>57976020
even these opacity .png's are fun to use sometimes
>>
2 Questions for you /wdg/ if you can answer them.

>>57977133
>>57977161

Please help.
>>
i need to vent
Its for a collage project
the project is multiple years old worked on by complete idiots for multiple years.
The professors never checked the code.

Its a website for a school system, teachers can grade students and students can grade their courses. The first group decided that a framework wasn't necessary, and that courses need to be nested 5 levels deep
so you have a course that multiple courses that again has multiple courses, etc..

The second group decided to trow in their own homemade framework. No documentation

The third group made sure to put everything in separate files.

The fourth group decided to do random shit.

All previous groups worked on the project for one year.

There is no documentation. Each group consisted out of 4 people. As a result the entire code is garbage. My group added the most functionality to the project, we are already 3/4 of a year busy on it.

But now i need to reuse something from the second group that still uses the framework. We need to duplicate the 5 level course page. problem the database only saves the fucking id and names of the courses. We have no idea where they store the levels and the parents.
The databases used, 2 flat files and 1 MySQL.
Lines off code over 1.000.000 because fuck reusing stuff, lets just copy that shit

What's the garbage you put up with?
>>
>>57977312
forgot to mention, its all written in php
>>
>>57977312
sounds like you need to nuke it and start over honestly.
>>
>>57977312
>lolwebdevs
>>
>>57977391
we asked, but the professors said that you will experience shit like that in real life all the time.
So you need to just build on it...
>>
>>57977877
any reputable company is going to have better source code than the amateur shit you're working with, and if you encounter shit code in real life then rewriting the whole thing is often the sensible solution
>>
>>57977312

At least it's not written in P..

>>57977336
..oh shit!


>>57977391

This.

The complete thing doesn't sound overly complicated, you could rewrite it in 2 months.

My advice:
Take two weeks, make a small doc/spec and tell the professors to rewrite it next year.
>>
>>57974206
use grunt, gulp is shit
>>
>>57971146
I bet you saw that comment on dark backgrounds for images in the last thread. :^) Not bad. I feel even a bit darker shade of gray would be better and more elegant, and the red links in nav don't have a good enough contrast with the background though, just give them a white color and they'll be fine.
>>
Question for CSS artisans.

How would you achieve this letter "A" in the background of a text, at the beginning of an article?

http://zagrebfoodstories.com/najgora-kava-u-gradu-worst-coffee-town/#gs.6tiH1cQ
>>
File: Screenshot_3.png (256KB, 1352x743px) Image search: [Google]
Screenshot_3.png
256KB, 1352x743px
>>57978705
>>
>>57978800
Interesting. Thanks.
>>
>>57974206
Have you tried reading the error message it gives you? It literally tells you the exact problem right there. You're trying to @import a page that doesn't exist.

>>57977178
>id or name
As long as names are guaranteed unique it doesn't really matter. If multiple objects could potentially have the same name (i.e. if they're user-generated) you need to use id.

>which url
semantic urls (the ones with words in them) are considered to be better for seo if you care about that. Also you might replace the object that word represents with something else that has the same name. If you go by id and you delete that object at some point, you can't reuse that uri and you have to 404. In some situations a number might work better though, so just use whatever makes the most sense. Read up on REST.
>>
professional HTML programmer and HTML software engineer here, ask me anything
>>
>>57981155

how do i get muh CSS to werk with muh HTML's?
>>
File: 1437448881871.jpg (62KB, 640x480px) Image search: [Google]
1437448881871.jpg
62KB, 640x480px
Has there ever been a case where a website was using their visitors as computational nodes? The server could push jobs to visitors and the browser would run them in the background and return results. Like very slow distributed cryptocoin mining, or something like that.
>>
>>57980123
Thanks lad.

The purpose of the name query will be used with a search bar. So I think I'll be better covered there.

So in the instance of ID, lets say I had a API with all of my authenticated users, no method of search, they were just listed on a single page. Would it then be wise of me to list every single item on there with ID instead? That way the ID stays correlated to the URI? I don't plan on deleting any entries in my API which is the nice thing about using name as the Primary Key.
>>
Making a web scraper in node. The idea is that I have an array of objects, and each object has a link to a webpage. I want to loop through the array and make a request to each object's webpage, then update that object with info I get at that webpage. The issue seems to be that my for loop keeps going while the asynchronous request is still doing it's thing, so my data gets messed up. How should I approach this? I read one post that said to separate the request into it's own function and call that from the for loop, something about the new function having it's own scope, would this work?
>>
i finally managed to connect to mysql but i have no idea what i should write as username or password. i dont recall ever setting a username or password while installing mysql, apache, or php
>>
>>57968726
you have depression?
>>
>>57982164
A NEET trying to make it does make you depressed.

I know I was when I was in that phase. Now I have a job where I sit on ass browsing 4chan/reddit for half of my day and I'm only slightly depressed.
>>
>>57982947

are devs jobs really this boring? isnt there work to do
>>
>>57982961
There is, but the workload isn't hard if you know how to google. I learned that when you finish something, you generally wait around a bit before letting people know you're done. If you do it fast and let them know, the managers or bosses would think the work is too easy and won't appreciate the work you do.

"Oh, you designed the database tables, backend code, and front-end code all within my specifications in an hour? Why are we paying you so much for if it's that easy?" - paraphrase of one of my bosses some time ago.

I would prefer if I have something to do rather than not. The day really slows down when you're trying to find shit to look at on the Internet.
>>
>>57981922
I'm not sure. I can't think of uses for that, but I'm sure there are some.
>>
>>57981922
Sure, but when people find out you're using their system to do that, the savvy people can look at your code to corrupt the data.
>>
>>57982074
>mysqli
It's ${CURRENT_YEAR}, use PDO you mongrel
http://php.net/manual/en/book.pdo.php

And you won't have a mysql user until you create one, so do that. By convention you would usually name it the same as your application, or something similar.
>>
>>57983271
This.
PDO is the best.

Don't talk shit on the newbies though. PHP is so full of deprecated features that tutorials and book still use mysqli and some even mysql.
>>
>>57983463
>PHP is so full of deprecated features
...that no one should be learning it in the first place.

A Fractal of Bad Design, you might say.
>>
File: kaku.jpg (27KB, 500x281px) Image search: [Google]
kaku.jpg
27KB, 500x281px
>>57983236
That's true, I didn't think of that. I guess with high enough bandwidth you can do what Google does (I assume) with reCAPTCHA: they send the same thing to multiple people and then pick the most often returned result.
But that would be slowing things down even more.

>>57983175
Nothing practical, obviously, but lots of fun things.
Like a virtual CPU that executes a program and sends the assembly code of the program to visitors. I wonder how long it would take to boot a tiny Linux distro in such a way.
Seems like it could be a fun "community project", sort of like Twitch Plays Pokemon and stuff like that.
>>
>>57983079

but its NOT that easy. You're just really good and work fast. It's no min wage job we are talking about. I see your point though. I like to work at a medium pace.
>>
>>57982074

use sqlite and pdo
>>
>>57982074
I believe by default the password is root. sign in with "root" and your root password as the password. If you're going to deploy this in php, you should put the password in a separate "credentials" file with appropriate permissions and add the file to your .gitignore file if you use git on this project.
>>
>>57983271
>>57983675
>>57983758
ok i took care of these but i still get an error. i think it is because i dont have a database, but i dont know how to create one
>>
File: JUST.png (69KB, 879x442px) Image search: [Google]
JUST.png
69KB, 879x442px
>>57984110
forgot file
>>
>>57984110

yeah so install sqlite, and manage your data through the command line
>>
>>57984110
log in to mysql via the command line like:

mysql -u USERNAME -p

where username is whatever account has access to mysql

type in your password when it prompts you

Then, type "create database [name]"

and you've created a database.

You should pick up a book on MySQL
>>
Is it just me or does php never fucking works?
>>
>>57984375

def just you m8

git gud
>>
/wdg/ I want to simply update text on a web page as it is updated on the server without polling. Is SSE the option I want or is there anything else I should pick over it? I know I can do it with SSE but I'm not sure if there's a better standard instead.
>>
>>57984416
Didn't work. Any other advice?
>>
>>57984427
I'd just do websockets.
>>
>>57984416
It's hard to git gud when even the code from online tutorials don't work.
>>
>>57984433

lel
>>
>>57984464

read the actual docs instead of muh online tutorials
>>
>>57984427
SSE doesn't work on Internet Explorer, so I would not recommend until enough people get off of that shit.

Websockets works with everything.
>>
>>57984481
Mhm well the library I'm using only has these stupid tutorials so I'm completely fucked
>>
>>57984450
>>57984488
Thanks, this seems better for my needs as well after reading about it. With SSE I was going to have to go from 1 machine to another over TCP anyway and then have the second machine act as the SSE server, with websockets, it seems like I can cut out the middleman as long as I can access machine 1 through a TCP connection which I can.
>>
>>57984488

IE has been dead for years. 10% share currently. It's done. People are already off that shit. M$ is a disgrace.
>>
>>57984488
I don't develop for internet explorer, period. Just like I don't develop programs for compatibility with 16 bit processors. People need to stop using IE, so hopefully not including it in my projects will add further incentive to install Chrome or Firefox or upgrade to Windows 10 with Edge
>>
>>57984544

>Edge

no, just no. Still doesn't support SSE. Pretty much IE with a slightly better UI. Ditch it all.

M$2Edgy4me
>>
>>57984582
Really? I don't have any windows PCs so I didn't know, but I had heard that edge fixed all the shit that made IE terrible. Wow, Microsoft, SAD
>>
>>57984597
They say they're working on it, but once again they're grossly behind the competition.
>>
>>57984610

they completely missed the browser and mobile market. they'll never catch up either.
>>
dont use SSE
>>
>>57969667
>Find something that you can sell for more than you buy it for
>Make a website that sells it
>Try to automate the process as much as you can

I've done this a few times and it works, but you won't make enough money to live on unless you live somewhere with a really low cost of living. It brings in a few hundred extra dollars a month and doesn't require much time once you've got them up and running. I try to ride trends, for example, drones, vape accessories, vr accessories, etc. It works much better if you have some money from a day job and can buy some bulk product to sell, since it's a lot cheaper that way.
>>
PHP is so weird. At work I created a function that reads all url parameters. It was literally just foreach ($_GET) or something like that.
Everytime I ran it, our entire server crashed and all sites were down for 20 minutes.
>>
HUE!! Pajeets are the best tutorial teachers. how can the rest of the world even compete. i watched 10 american videos, one pajeet tought me fast as fuck how to build a complete web page.
>>
>>57983675
>>57984173
SQLite doesn't support connection pooling and isn't suitable for use in web applications.
>>
>>57986130

what are the specs on the server at your work? i would really look into why it was crashing the server like that, might learn a few things well. heck i'd even like to know what was going on. Is there somewhere on your server you can go to see the memory/cpu usage at the time you ran the script?

>>57986288

lol you dont even need a video in the first place to learn how to create a web page. you dumb as hell, son.
>>
>>57986406
>SQLite works great as the database engine for most low to medium traffic websites (which is to say, most websites). The amount of web traffic that SQLite can handle depends on how heavily the website uses its database. Generally speaking, any site that gets fewer than 100K hits/day should work fine with SQLite. The 100K hits/day figure is a conservative estimate, not a hard upper bound. SQLite has been demonstrated to work with 10 times that amount of traffic.
>The SQLite website (https://www.sqlite.org/) uses SQLite itself, of course, and as of this writing (2015) it handles about 400K to 500K HTTP requests per day, about 15-20% of which are dynamic pages touching the database. Dynamic content uses about 200 SQL statements per webpage. This setup runs on a single VM that shares a physical server with 23 others and yet still keeps the load average below 0.1 most of the time.

https://sqlite.org/whentouse.html
>>
>>57986416
ouch... also why does everyone here hates wordpress?
>>
>>57986444
Why bother though?

Why not just use something that can handle lots of traffic?
>>
>>57986616
it doesn't require a sql server instance.
>>
>>57986406

it's definitely suitable for web apps....pretty sure the guy i responded to isn't handling twitter or facebook amount of requests on his app. i've done a few projects for companies with it and works fine

http://charlesleifer.com/blog/five-reasons-you-should-use-sqlite-in-2016/
>>
>>57986130

post the code pls
>>
>>57986130
>testing on a production server
>>
>>57983595
>pic
but that's wrong. where did you even get the pic from?
>>
>>57986416
I think it was this server from a german hosting company.

I don't work there anymore, so I don't remember the exact code but it was really simple. I tested it a couple of times and the server always crashed. Weirdly enough it worked in a local dev environment, that's why I pushed it to production.

We never found the cause for the problem. So strange that one line of basic PHP crashes a 300Euro/month high end server.
>>
>>57986484
why wouldn't you hate wordpress? it's bloated lazy shit
>>
>>57987260

hmm weird.. Yeah i'd really like to know what was going on...if anyone has any idea? current project im working on will go live next week. Crossing my fingers
>>
>>57987339
In the logs we saw a spike cpu usage and then everything went down. The hosting company couldn't tell us what was going on either. Definitely the strangest bug I've ever seen.
I ended up removing the foreach and putting in all parameters manually.
>>
>>57987422

do you know the Big O of the algorithm?
>>
So how many of you faggots use mbp?
>>
>>57987470
No, the parameters didn't come from our code. It was from an external tracking script. We only needed 5 or 6 parameters but maybe the tracking script hat a bug that kept appending stuff. But that should have been visible in the requests.

I don't really know any more details, this was a while ago. It bugs me that we never found an answer though. Nobody believed that this simple line of code could crash our whole server. Every time we told another developer, he wanted to see it for himself. Our sites were down for like two hours that day because we kept trying. Not much actual work was done.
>>
File: 1458942024464.png (335KB, 1280x720px) Image search: [Google]
1458942024464.png
335KB, 1280x720px
>>57986130
>>
>>57987685

definitely most likely was the external script then
>>
>>57987339
Don't cross your fingers. Launch and move on to the next one.
>>
>>57974067
The only dumb part is use PHP.
Also, the database conection should only be accesible from the backend.
Use an ORM or use your own validations
>>
Why do I feel like I'm not learning anything. Will everything just click eventually and I'll stop looking up syntax every other line?
>>
http://info.cern.ch/hypertext/WWW/TheProject.html

r8 my site
>>
>>57989391
1997/10
>>
>>57989474
>1997
you little babby
>>
(posting this in a couple of threads)

Anyone ever use the 3Taps API to get Craigslist results?

Their signup page is completely broken (as in, resource cannot be found), and there's no actual information on using the part of the API that doesn't require signup.
>>
>>57978304
L M F A O 5/7 M8
>>
>>57969667
>what type of website
something that pays you regardless of clicks, visits, etc. Look for employment under a local business - coffee shops, restaurants, that bike shop that plays host to the fuckin retards who think that roads too dangerous too pass on are appropriate bike routes, etc.
>>
File: 000067.png (2MB, 1136x979px) Image search: [Google]
000067.png
2MB, 1136x979px
JUST
>>
>>57991347
kek
>>
>>57991347
Let's play: Spot the numale
>>
>>57991347
I would smash both of those females. Are they as ugly as the dudes? I can't tell anymore.
>>
I still don't understand how to do SEO. I don't know if I'm over thinking it or something, but how the fuck do you do it?
>>
>>57981155
Do you need to know js to become a web developer?
>>
>>57981155
Will I make it?
>>
File: a horn.jpg (10KB, 193x196px) Image search: [Google]
a horn.jpg
10KB, 193x196px
>>57987253
How can you tell it's wrong?
>>
>>57991833

it would certainty help

>>57991929

if you do what it takes
>>
so a project im using XAMPP on my local for testing but when i move to the live server (which is just another internal server), what should i use?
>>
>>57991749
There's no trick to it, really. Google tries very hard to keep anyone from gaming the system.

In general:
- Regularly produce quality content, if applicable for your site (indicates that you're a "fresh" source of content
- Make sure your site loads reasonably quickly
- Don't have links that 404 (indicates that you're not a "fresh" source of content)
- Have popular sites link to yours (think of it like a celebrity endorsement)
- Link to your (active) social media (indicates authenticity)
- (for brick & mortar businesses) Have the physical address on the site somewhere (indicates authenticity)
- have a niche and be the best provider of info related to that niche
- Don't seem like you're trying to game the system (packing tons of keywords into every page, ridiculous amounts of links to random popular shit, etc)
- Use semantic url slugs instead of generic ids (i.e. "/blog/why-I-like-dogs/" instead of "/posts/123456")
- Use semantic html elements (<nav>, <article>, <footer>, etc. Helps the spiders parse your pages better)
- robots.txt set up properly
- sitemap, terms&conds, privacy policy exist
- Fill out all your meta tags and whatnot properly

There are some niche techniques of questionable usefulness, but that's pretty much the gist of it. Just don't make a shitty website and use common sense and you're most of the way there. It doesn't even need to be perfect desu.
>>
>>57992330
>(which is just another internal server)
What do you mean? You already have a server ready to go?
>>
>>57992532

yeah i'll be moving the project to a different server, but i dont think it has a php server?
>>
if i use perl for my backends, are people going to make fun of me?
>>
>Asked boss to let me work at home for more peaceful / focused surrounding
>boss thumbs up okayed!
>feelsgoodman.jpg.targa.tiff

>be at home
>trying to fix javascript bugs
>wife bitching, nagging, moaning, stupifying,
>kid crying, throwing things
>wife PMS'ing, angry at kid crying, all that distracting insanity-inducing disturbance I that I start shock-absorbing

>boss please take me back to office workteam plsplspls

Fuck this homeSweetHome bullshit! I'd rather sleep in the streets/ work in office! I never thought about this!

</rant>
>>
>update Wordpress site
>update times out
>cant update again because the former update is busy
Thank doge for backups. Pretty odd that Wordpress doesn't work properly within default server limits of most hosts.
>>
>>57994711
I have the same experience desu. Working from home is impossible.

When I work "from home" I instead go sit at a university library.
>>
>>57994293

Probably. It's not as hip as node or go..

So what??
Frameworks like Catalyst are still great, go for it! :)
>>
>>57991411
>Both.
>tfw there are 3 of them. Kek.
>>
Has anyone here worked for those wordpress mills? There are a couple near me and as a neet I figured they were the easiest/fastest thing to learn to get to working.

Just curious if anyone here has any experience with them
>>
File: rip.png (293KB, 633x758px) Image search: [Google]
rip.png
293KB, 633x758px
>mfw fell for the linux meme
>mfw fell for the webdev meme
>mfw i cant even get SQL to work with php

just fuck my shit up tbhfam.
>>
File: 3203736-cute-girl-wallpapers.jpg (308KB, 1920x1200px) Image search: [Google]
3203736-cute-girl-wallpapers.jpg
308KB, 1920x1200px
I plan on making a site to put on my business card to help sell to potential clients. It's just going to be a pretty single page with a contact form at the bottom. Ideally when someone enters their shit into the form I get an email and they get an email, maybe they go on a list somewhere.

Am I best off coding this from scratch or is there some kind of cms/crm that makes this really easy?
>>
>>57997014
Just uploading some static pages is lower maintenance.
>>
Is there a way to make a div scroll up/down if the mouse is currently in its top/bottom padding area? Or maybe just near the top bottom borders of the div? It has to work with draggables (Dragging an element using interact.js).
>>
>>57974006

SQL has decent joins so going with the latter should be fine.

Letting users upload pix is a good idea, as is letting them vote on stuff (think reddit).

as for the choice of teaching logical essentials in Java and C# - these languages are forcing you to do more work yourself, therefore teaching you how shit works in the background of the likes of Python.

I despise them even tho [spoiler] I would like to study CS in uni one day [/spoiler]
>>
File: 2015-08-20-08.00.38-trimmed.jpg (69KB, 913x663px) Image search: [Google]
2015-08-20-08.00.38-trimmed.jpg
69KB, 913x663px
guys. i have ubuntu, and i want to learn PHP.
can someone tell me what combination of installations i need so i could just follow w3schools instructions and learn?

last time i tried i just couldn't connect to my database (mysql, mysqli, PDO...)

please please i beg you just tell what combination works.
>>
>>57997473

install LAMP meme

https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu
>>
>>57997555
nice 2012 google result m8. it tells me to install php5 and it wont let me.

i already tried LAMP with php7 and everything works except access to an sql database

i think i should just give up on webdev jesus fucking christ fuck me in the ass please
>>
>>57991347
>this is what americans actually look like
>>
>>57992687
Depends on what you have. If it's a shared server, it should have everything you need already on it, you just need to ftp the files to the server and you're pretty much good to go. If it's a VPN, you need to SSH into it and install the software you need. (Apache, MySQL, PHP, etc.) You'll need to be familiar with basic Linux administration, and I suggest you practice with a VM or something before trying it on a live server.

>>57994293
Yes.

>>57997473
Did you set up MySQL properly this time and is it running? If so, can you run queries from the terminal?
>>
>>57997802
apparently i just wasn't writing the fucking port. fuck everything ever
>>
>>57994293
>if i use perl for my backends, are people going to make fun of me?
Who cares what other web devs think? Neither do web dev have a proper reference for quality nor does other peoples experience matter. Disregard their worthless opinion.
>>
>>57997802

yeah its shared. it's just another server here that only internal staff use. i'll find out if i need to install apache or anything
>>
File: 1480521889448.jpg (103KB, 745x655px) Image search: [Google]
1480521889448.jpg
103KB, 745x655px
Currently using the width:auto;height:auto;max-width:100%;max-height:100% way to scale images according to the div they are contained in.

However this seemingly only works when the image width > image height.

Do I have to use something else for pictures which are higher than wider? It works perfectly for all width > height images but on height > width images nothing happens and the image is placed arbitrarily ripping the whole layout apart.
>>
The firefox sdk is literal cancer. How do people commit to this full time
>>
>>57998384

can you make a js fiddle of it so we can see if we can fix it
>>
Working on a website for university which uses the Foundation 6 framework. However I cant for the love of fuck figure out how to use custom CSS to change the colour scheme of the site instead of the default white and blue. I've linked the .css file to the main page but no matter what i write in it then it doesn't do anything.
>>
>>57996940
>>mfw fell for the linux meme
>>mfw fell for the webdev meme
>>mfw i cant even get SQL to work with php
you fell for no meme, you're incompetent, fuck off
>>
>>57998673

lel, yeah wtf. If you simply can't get SQL to work then you dun fucked it up. Stick with HTML i guess.
>>
LaunchCode update:

Went in and showed off my updated code, they liked it, now they want me to update my resume the way they like and said as soon as they receive it they'll start looking for an apprenticeship for me!

They're also scheduling mock interviews for me to help with that, as I've never done a technical interview and suck at interviews in general.

All in all pretty happy with the process so far. They seem to be doing exactly what they say they do. Will update again when more things happen
>>
>>57998978
Have they mentioned or implied that you have to move to St. Louis to do the apprenticeship thing?
>>
>>57998978

what have they taught you? im usually against "coding schools" because i only here about very few people actually "making it" big league
>>
>>57999067
I live in St. Louis, but they actually offered to search for jobs in other regions if I was interested in relocating. Right now I'm not

>>57999076
This spring they had a CS50X class that I took, had a professor from one of the local colleges come out and give lectures, David Malan and the whole Harvard CS50 team came out for a hackathon as well.

They're more job placement than code camp though.
>>
>>57999115

>tfw if you were to go to a hackathon you wouldn't actually hack anything just watch other people do shit

how do i git gud at hacking?
>>
>>57997660
you should if you cant figure out how to install an application by yourself. you should switch to a job that doesnt require computers
>>
>>57995700
Catalyst is pretty awesome, mostly working with Dancer now though.
>>
>>57999294
There's plenty to do at hackathons besides write code. Design, project management, presenting, talking to normies, etc.

>how do i git gud at hacking?
install gentoo
>>
Are video backgrounds a /wdg/ sin?

I'm designing a real estate website and I kind of want to have a video of smooth sweeping landscape shots of the properties on autoplay, but I'm not sure if that would be too tacky/annoying?

I'm thinking if I have the video play once, fade to black and then carousel through some pictures of the properties it would be less obnoxious.
>>
File: 23636572.jpg (5KB, 112x118px) Image search: [Google]
23636572.jpg
5KB, 112x118px
Daily reminder: If you keep talking shit about PHP in $currentYear you suck at web development and don't know what you're talking about. Enjoy your node faggots
>>
>>57999419
autoplaying media is a great way to make me never visit your site again.
>>
>>57999419

you have to watch for performance big league, look at bevyup's site. I'd say do it like that...nothing more
>>
>>57998978
You the st louis guy?

I'm the one who let the test expire. I just redid it day before last with a willingness to move.
>>
>>57999496
video background without sound on frontpage is fine by my standards

ex:
http://www.bienvillecapital.com/
>>
>>57999541
Holy shit that burger sidebar sucks
>>
>>57999477
ES5 node is just as bad as PHP but PHP is shit and that's a fact

Django for me, but there's even better (Java + Groovy + Clojure on JVM, vert.x, spring...)
>>
>>57999657

>php is shit and thats a fact

no man. Just because you use a python framework doesnt mean something else is shit. PHP is fine if you know what youre doing. Django is cool though because of ORM.
>>
>>57999698
PHP has fine ORMs too. Also fine frameworks, I used Zend years ago, switched to Laravel and then stopped torturing myself with endless debuggings caused by the language's flaws
>>
>>57999541
What an annoying site
- Video doesn't work on mobile
- Very low information density
- Website has a clock on it
- Burger button
- /approach has some kind of weird vertical split. Annoying to scroll through and inconsistent with rest of site
- Reminds me of some kind of men's fashion magazine. Actually a men's fashion magazine would be an improvement because I might actually learn something about expensive watches.

Overall, terrible UX, waste of time. Reeks of something made to impress some rich motherfuck client with no design sense, not provide any actual value.
>>
>>57999698

doesnt facebook use php? im no fan of facebook but it runs pretty well.
>>
>>57999741
didn't say the site was good m8
>>
>>57999789
https://semitwist.com/articles/article/view/facebook-is-not-written-in-php
>>
File: feel.png (242KB, 1024x1024px) Image search: [Google]
feel.png
242KB, 1024x1024px
tfw not inteligence enough to understand how to use websockets
>>
>>57999856

php is better now than it was in 2013 anyway. Also that is some elitists blog. Who cares. I know people that would bash anyone not using C++. Engaging in elitist wars is pointless. Git gud at one language then adventure off into others. Thats my advice for beginners.
>>
>>57999496
Duly noted

>>57999511
Thanks for that example anon, I think you've convinced me on the performance hit, especially with my potential clients.
>>
>>57999789
The first versions used PHP because that's what (((Zuck))) knew. Now they use a lot of different things internally (as with any other massive organization). The site is written with Hack, a dialect that fixes most of the retarded shit Zend PHP does.
>>
>>57999913

if i completely shaved my head and eyebrows i would look like that

>tfw

i've never tried messed around with web sockets. im gonna one day tho
>>
>>57999913
It's just a socket senpai
>>
professional HTML software engineer here, ask me anything
>>
how worth it is it to go to tech meet ups like on the site meetups? especially for anyone that lives in nyc like I
>>
>>57999913
It's not super hard.

If you're doing c#, signalR is basically plug and play.
>>
i have some JS that opens a new window when a button is clicked but if you click it again it doesnt "focus" the window, it actually refreshes it a long with focusing it. How can i get it to just focus?
>>
>>58000443
post code pls
>>
>>58000418
Depends on what you're trying to do.

If you're going to learn tech, then no.

If you're going to network, then yes.

If you're going to pick up chicks, then no. It's a sausagefest, and the women who are there are only there because their boyfriends are there.
>>
>>58000450

this is in my button element

onClick="window.open('file_name', 'target_name', 'height=850, width=840'); return false;"
>>
>>58000582

i tried that but then they wont even open on first click
>>
>>58000608

nvm i'll just create a function that checks if it open or not and then just focus if it is open, im retarded
>>
File: bootstrap.png (81KB, 500x400px) Image search: [Google]
bootstrap.png
81KB, 500x400px
Ok guys, I'm developing a website with little experience, I've used bootstrap some years ago, but I'm not sure if it is as good as foundation.

I really want to use some off-canvas features, that seems more difficult to do in Boostrap...

I'd really like to make custom buttons and stuff...

Which one render pages faster?

So, which one do you think is better for custom buttons and off-canvas? Thanks.
>>
>>58000628
>its part of the spec
>it won't behave well
>>
>>58000000
>>57999999
>>
>>57970862
GitLab all the way.
>>
>>57981922
This is called React.
>>
>>58000673
I use materialize css most of the time and I'm pretty happy with it
>>
Guys, how do you tweak your CSS? With tweaking I mean fine-tuning colors with rgb-mixers, adjusting div sizes, etc, with realtime updating.

Or do you all just edit in the main editor, save, and refresh the page? Sounds like a bitch of you don't hit on the first try.
>>
>>58002708
Second one, because I'm autistic and hate my life. I trained myself to do ctrl+s - alt+tab - f5 with a record speed though.
>>
>>58002708
if on chrome ctrl+shift+I. There you can select an element and add/change its styles.
>>
>>58002860
F12 is objectively superior.
>>
File: Screenshot (1310).png (811KB, 1920x1080px) Image search: [Google]
Screenshot (1310).png
811KB, 1920x1080px
I'm not sure what would be the best way to implement this...

This sidebar on the left can be opened and closed when a user clicks on one of the icons on the far left.

Now - do I make it so that when you press on the same icon again, it closes? I don't know if the users will understand that.

Since I want it to be able to stay opened while you browse, I'd rather not make it close when you press outside of it. Maybe make a hamburger button which opens and closes it, while the icons just load the content?
>>
>>58003210
open*
>>
>>58003122
Agreed. Guess I had a brain fart :-))
>>
File: Screenshot (1327).png (253KB, 1920x1080px) Image search: [Google]
Screenshot (1327).png
253KB, 1920x1080px
I played a bit in dev tools and stumbled upon this look. What do you think of a dark theme? It looks kinda really dope at the moment.

If I continue I'll develop a severe autism I fear...
>>
>>57977336
lost it
>>
>>58003666
Buraz batali taj okrugli meni div, bode oci na los nacin tj odvratno izgleda u poredjenju sa ostatkom sajta.
>>
>>58003666
The author info seems kinda out of place.
The text could be more readable(bigger with better font).

On the overall it looks good.
>>
Post shitty client stories

>front-end dev working for the client runs a major update on production a day before launch
>parts of our code break because the update changed parts of the API
>this is somehow our fault.
>They cannot roll back because of db changes and need immediate help
>I get to work overtime debugging the weird new behaviour
>front-end dev smugly announces that he "fixed" our code by practically removing the offending parts, while I was still knee-deep in the framework.
>We'll probably not even get paid for our emergency service because it took us a bit longer to fix the problem while they were already happy with putting a blanket over it.
>That fucker may have been badmouthing us for weeks so the client will probably no longer work with us anyway.
>>
>>58002860
>>58003122
>not right-clicking->inspect element on the parts you want to style
>>
File: smh.gif (3MB, 320x240px) Image search: [Google]
smh.gif
3MB, 320x240px
>>58003666
>floating action button in the bottom right
>even on desktop-sized layout
>falling for the material design meme
>still not getting it right

At least its not a fucking hamburger menu.

But are the contents of that menu worth being under your thumb at all times when viewing on mobile? Probably not if its an article site. Probably best putting it somewhere else.
>>
>>58003666

10/10 would steal
>>
>>58004758
>the client will probably no longer work with us
You can get clients like that any day, every where.
Nobody else wants them, that's why they are easy to get.
If you're smart, you'll look elsewhere.
Also, always ask what your client's Multiple Supplier Policy is. If they have no Policy but do have multiplre suppliers, it's a bad sign.
>>
>>58004072
Složit ću se da na CRNOJ pozadini izgleda loše, ali ne i na bijeloj. :^) Ali hvala na feedbacku, ionako postoji mogućnost da ću ga maknuti.

>>58004387
See, it's same like here.

http://www.hugeinc.com/ideas/perspective/read-this-before-you-build-that-chatbot

Btw, I don't care about them at all, it's just to show I've seen similar things before.

But yeah, I kiiinda like it, but at the same time it never made too much sense. Honestly, it was more because I needed something there in order to make the article always appear centered on the page when the sidebar was fixed. But now I'll possibly remove that too. Or maybe make it stay, but just reposition the author info under the title.

>>58004822
That's not a material design, senpai.
I agree about the button, I'll remove the menu and make it a normal scroll-to-top though. And it would probably be nice to have since the articles are loaded by ajax so the page would get long.

But yeah, I'm not sure about the mobile. I think it could be better than having a hamburger on top, and people would maybe use it more since the usage of the menu on mobile is already shit.

>>58004836
I can't tell if serious or not though.

Appreciate the feedback guys, I'd rather not bother you with design, but /gd/ is pretty much completely useless.
>>
>>58004843
>Also, always ask what your client's Multiple Supplier Policy is. If they have no Policy but do have multiplre suppliers, it's a bad sign.

I don't know what this is and what I found does not obviously relate to webdev.

Care explaining please?
>>
>>58004758
What API was a frontend dev able to fuck up?

I do mostly backend, I'm the one who should be breaking APIs.
>>
>>58004953
It probably was front-end driven dev and they didn't communicate the need for new functions, they simply changed the way the client interacted with the api and expected the back-end to catch up.
>>
>>58001673

Why is it better?


>>58004758

Sorry, I don't understand that.
I'd never let some fucker do a major update one day before launch. If (and that's a big if) I would work with a customer who want to add the code I'm providing I would make very clear rules about what to provide and when right at the start. Also if he brakes it he has to fix it, it's that simple.
>>
>>58004876
>That's not a material design, senpai.
Its a pattern seen in material design.

>But yeah, I'm not sure about the mobile

Mobile should be your primary focus. Mobile has been a bigger web browsing platform than desktop for a long time. People read articles while travelling, that shit needs to fucking work and be good on mobile.

https://www.youtube.com/watch?v=4bZvq3nodf4

Watch that shit, and everything else from that conference.
>>
>>58004953
He ran the WordPress 4.7 update on production (containing the REST API merge into core, along with subtle changes).

That guy did not even understand why we were so furious about that shit.
>>
>>58003210
make a hamburger icon that transforms into an x after you've clicked it
>>
>>58005047
What pattern?

I know the mobile is focus, man. I also had to read a shitton of UI books for uni. And I'm making sure it works well on mobile. I'm just not sure what would be the best way to implement the navigation. The hamburger is the usual way and I could do it if I wanted and be done with it.

>>58005119
I will think about something like that. Not sure how it would work now and where I would place it. I want the icons to be visible and it would be logical that the sidebar opens when you press one of them. Now, I could make a button just to close the sidebar, but that would be 2 different controls for opening/closing and wouldn't make sense.

But yeah, if I wanted to hide both the icons and the related posts, the hamburger would be an easy solution. Actually, I did just that - but for mobile.
>>
>>58005005
>I'd never let some fucker do a major update one day before launch
Absolutely. Usually this would not even be possible because we are the ones providing deployment to stage and production systems, but this time, we were just contracted to provide a specific functionality with a plugin, while they owned the stage and production systems as well as the deployment process.

In this emergency, the only option was to fix their shit and talk about payment later. My boss was really pissed.
>>
grr can't figure this out. I have 4 buttons on my page that open up a new pop up window with javascript, but if you click the button again it refreshes that window a long with focusing it. I want it to just focus. I asked earlier about this and i did find a solution but it only works if theres only 1 pop up window. I have multiple. Any ideas?
>>
I want to make an "app" which primarily runs over the web, but I'd like to make sure I don't have to deal with package management hell every time I need to deploy it (i.e. needing to download a shit ton of packages with various versions which tend to break).

Apart basing stuff on go, is there anything else I can use with a simplified deployment strategy?
>>
>>58005435
Why don't you just setup proper version constraints? Or why do your packages break when deploying?
>>
>>58005250

OK, makes sense.

Let me also share a short customer story:

>build tool from the scratch
>customers decides to "enhace it" inhouse
>customer asks for new features
>turns out he expects me to fix the shit his inhouse developer broke
>also I have to build my new features on top of that pile of crap functionality they added


That was no fun..
>>
>>58005496
Usually when I setup strict version constraints, it comes to bite me in the ass when someone decides to make a new version of a library but make it incompatible with the previous release thus forcing everything else to be updated, assuming everything else even works with the new version without breaking horribly. And on top of that sometimes an update to the system library breaks shit.

Of course, my main beef is not that stuff breaks during every deploy (excluding when there's not an internet connection), it's that I have to play the package juggling game every time something needs to be updated.
>>
>>57984433
Fuck me for actually laughing out loud at this.
>>
>>58005529
This is one of my nightmares that I luckily did not experience in real life yet.

With the client I talked about earlier, I'm actually not quite sure how things will turn out. I am quite sure they would like to take over our project and maintain it themselves. The problem is that their main dev completely lacks the skill to do it. My guess is he's giving us a bad rap because of greenhorn bias..... we're producing "needlessly complicated code" that's "hard to maintain" while the exact opposite is true. But that's just a guess.


So I could imagine them absolutely raping the shit out our work in the coming months, should they actually choose to continue on their own.
>>
>>58005695
>>57984433

https://github.com/nvbn/thefuck
>>
>>57991411
Top left is alreet, middle left is not, but hiding behind hipster specs.

I'm assuming you missed the top middle one, which is understandable, since she looks like a man.
>>
>>58005718
Oh man, I love silly, yet clever shit like this.
>>
>>58005632
>it comes to bite me in the ass when someone decides to make a new version of a library but make it incompatible with the previous release

Have you looked into lockfiles/shrinkwrap? You can have lax constraints but still ensure only a tried and tested versions get deployed. At least with composer and npm.
>>
File: 35235235235.gif (480KB, 500x281px) Image search: [Google]
35235235235.gif
480KB, 500x281px
>>58005881
I'd rather go streaking at a web development conference than be subjected to the torture of node.js and php again.
>>
>>58005958
Then I hope the concept of lockfiles exists in whatever package management your MEME stack uses. Because it seems to be the thing you're lacking
>>
>>58005999
Sure I use Lockfiles, but they don't always help, especially with conflicting updates and unmaintained packages.
>>
>>58005999
Nice trips.
>>
>>58005958
>doesnt like node or php
who's your backendfu?
>>
Anyone
>React
here?

Trying to figure something out
I have a parent container <Form /> which acts as a form.
I've got some custom components as childs like <Email /> input

I want all input values from the child components to be available in the parent container and vice versa
Do I need Redux for this? Or is it a better idea to use callbacks?
>>
I'm bored and wanna play around in p5.js a bit, but don't know what to make. Anyone has a neat idea for some fun stuff?
>>
Whats the 3D javascript thing?
>>
>>58006025
>but they don't always help, especially with conflicting updates and unmaintained packages.

But that's exactly what they do. If there's any sort of conflict, you can ensure only a safe environment is pulled despite potential updates in your version constraints.

>>58005435
>needing to download a shit ton of packages with various versions which tend to break

This cannot happen with a lockfile. Are you two the same poster?
>>
>>58006198
webgl / three.js
>>
>>58006198
>implying there's only one "3D javascript thing".
>>
If I have a site filled with guides and do not wish to have my content stolen. Is it worth it to block all countries outside of North America and Europe? Or does Google handle copied content fairly well?
>>
>>58006595
If you don't want it to be copied, don't put it on the internet.
>>
>>58006595
if from web scrapers, put noscript. if from users via copy-paste, disable the shortcut keys, from selecting the content, right-click, etc. Google will take care of the rest.
>>
>>58006912
>implying any of that helps
The only way to be safe is either not putting it online altogether or, sueing the shit out of people who steal it.
>>
>>58006962
Trying to sue someone from a third world country seems a bit like a hopeless endeavour.
>>
>>58006982
As is content protection in the first place.
>>
>>58006246
Three.js

I think that's it.
>>
how do I get an internship at snapchat?
I'm a third year computer engineering student with 3 apps in the app store
>>
>>58007285
Ask.
>>
File: autistic screeching.webm (3MB, 732x550px) Image search: [Google]
autistic screeching.webm
3MB, 732x550px
Reading this thread made me realise that most of the people here cant even develope a startpage for a localhost not to speak of a real website or service

>/g/ quality
>>
>>57996940
It's ok to be frustrated child. Practice patience and really study hard. You can do it :)
>>
>>58007465
There are a lot of learners and hobbyists that browse /wdg/. I know there are a few professionals out there, myself included. Also, nothing wrong with hobbyists or beginners :)
>>
Reddit founders had no previous experience, they had made nothing before, they had no connections and they were able to receive 200k in funding for reddit.

Reddit wasn't even their idea, the guy that gave them money gave them the idea.

What the fuck?

Some twitch admin even said 90% of tech startups are funded the same way.


How do they know who is full of shit and who isn't? How do I get my projects funded instead of only being able to work on them an hour a day after work?
>>
>>57999419
Depends on the clients you are going for. Most people browse via smartphones and tablets and what you ask about will take more than 3 seconds to load on those devices. Sounds alright for desktop as long as there isn't any sound. But it doesn't seem attractive in the order you described. How about the images first then the clips taking over?
>>
Is there a show where founders talk about starting up their companies?

I always get motivated hearing the stories about staying up until 7am fixing the server after being publicized or how they had to live off ramen and borrow money for rent.
>>
Ruby/Rails dev here.

Anyone have any general thoughts on the community and anything it's missing?

Always open to new OSS projects, but before I embark on something huge I want it to be at least somewhat original...
>>
>>58009242
Listen to the audio book The Millionaire Fastlane from MJ DeMarco. It only takes two evenings or a couple car trips.

It really motivated me when I started my business. Its from the owner of limos.com I believe.
>>
>>58006962
just enough that google can recognize who's the original copyright of that content and they can sue others for stealing your content.
>>
>>58007976
they have a nose for business
>>
>>58006595
anything that's publicly available on the internet can easily be "stolen"
>>
Hi guys I have a little question about php:

I'm trying to make a windows service that starts a php process, which start a winword.exe process.
The problem is when I stop the service. It can send a WM_CLOSE signal to the php process and I would like to use it to kill the winword process before exiting.
So how can I catch the WM_CLOSE signal and use it to execute instructions ?
Thanks
>>
>>58009365

Especially the ruby ecosystem is full of brilliant gems.

Instead of reinventing the wheel the fifth time I'd rather search for an existing Gem and try to bugfix and maintain it or make it better..

Try:
>https://www.codetriage.com/?language=Ruby
>>
>>58010657

Also I'd rather try to imporve something that you use by yourself (or would use). It's better when you can relate to something and as a aside-effect you might solve your own "future problems".
>>
Anywhere I can get a decently cheap unmetered vps with 100GB+ diskspace? Need a temporary throwaway box for like the next two weeks
>>
How do you build big apps with huge frameworks like Rails and Django?

What percentage of it are gems written by other people? Can you make something awesome just by taping things together?
>>
>>58010984


I'm currently making a bigger rails project..

For the "don't-mess-this-shit-up" parts I use readymade gems, i.e. passwords, file uploading, payment and so on.

For some parts I look at gems to get "inspiration", but try to re-build and customize it myself. A lot of stuff is very opinionated and it's sometimes easier to rewrite it than to bend it until it does what you want it to do.

But wether you can just "tape things together" or build it yourself depends on the task. A big and highly customized site requires better design, a simple site with "everyday functions" is just a matter of knowing your framework and the right gems.


Of course there's always the frontend part.
>>
File: fit.png (218KB, 500x416px) Image search: [Google]
fit.png
218KB, 500x416px
Hey guys I have a question.

How do you do this image upload thing.

Where you can move a image and resize it live and have it hide the image over the designated area.

like this.

http://www.snapmade.com/design/95___x_8___rectangular_mousepad-140612031808-1

Just need to know what is it called or the general idea. Maybe a tutorial if you know one.
>>
How much could I realistically charge for a smartphone quiz webapp with a custom built cms? The whole thing took me about two months to build because I'm still fairly new to webdev.
Adjusting the styling and hosting it for a new customer would probably take me about a week now.
It's for museums, sort of as an interactive guide. Most museums don't have a lot of money so I was thinking about 2k Euro. Does that seem reasonable?
>>
>>58007976
Have you.. never heard of investors? They don't just give you money for free, they buy stake in your company. They get a portion of all future profits and sometimes get a seat on the board of directors depending on company structure.

Y Combinator is a tech startup matchmaking firm. They help startups refine their ideas and match them to investors that would be interested in the product, and also invest sometimes themselves. YC was the first major investor in Reddit iirc.

>Reddit wasn't even their idea
No shit, Digg and several other sites before them did the same thing. They just did it better.

>How do they know who is full of shit and who isn't?
They don't, they just know how to read people and make educated guesses based on how well you handle yourself and how much you seem to know your shit. 200k is not a lot of money in the business world. If your business is reasonably successful at all, they'll make that back and more in a few years. They don't have to get a hit every time, the wins more than make up for it. Keep in mind they have decades of experience doing this and also bought the rights to partially make business decisions for the company, so they're also actively working to help make it a success.

>How do I get my projects funded instead of only being able to work on them an hour a day after work?
Weekends? Usually you have to make a minimum viable product on your own before any investors will listen to you. There's no secret to it, you just have to grind until you get somewhere.

>>58007976
>>58009242
I highly recommend Stanford's "How To Start A Startup" series on youtube if you want to know more. It's by the main YC guy and is packed with good info.
>>
>>58011423
I would use canvas. I almost worked on a freelance project to do this but the money fell through and it was half done
>>
Why is transform: translate CSS propery choppy? I have a good PC, it still feels off. Not smooth enough.
>>
>>58013248
Or maybe because I have a 60Hz monitor??

I knew I had to fall for the 144Hz meme.
>>
is FreeCodeCamp any good ? im trying to get into front end dev. i know c# and im ok with javascript. i just need to get used to creating pages. im about to finish css in codecademy, and i was thinking about getting into FCC.
>>
>>58013248
because web dev is terrible
>>
>>58013248
do you have an example ?
>>
>>58013721
Not atm, it's on my localhost, but just a basic slide animation of one div, achieved by transform: translateX(...px). It opens and closes on the press of a button by adding a class to an element. It's not that bad, but not really smooth.
>>
Is the featured content on top like here a meme or not?

https://www.buzzfeed.com/

(Yes, a buzzfeed, but other sites use it too.)

Kinda looks nice, like a single colored line and makes the page look fuller.

Should I implement this??
>>
>>58013784
browsers are just shit in the way they handle rendering, you'll have to work around it by avoiding animations or making the transformations smaller like instead of sliding 100px you slide 10px for example
>>
>>58013784
>>58014025
slide 100x1px boxes instead much better performance
>>
should i use netbeans or sts/eclipse for spring?

Everything i've found for learning spring used eclipse
>>
React seems to be gaining ground
Is it worthwhile to learn it or is it gonna become another quickly forgotten meme?
>>
>>58014189
eclipse all the way

eclipse neon is so fucking good
>>
>>58014210
everything will fall and in the ashes php will arise to save the day
>>
professional HTML programmer here, specializing in HTML data structures and algorithms, ask me anything
>>
>>58010324
PHP on Windows is an atrocious mess.
For unix, there are ways to register signal handlers (https://secure.php.net/manual/en/function.pcntl-signal.php), but on Windows, you're out of luck.

Actually, I take that first sentence back.
PHP is a mess in general.
>>
>>58013784
try adding
will-change: transform;

or a 3d translation instead of the 2d translation to the element.
This can have a dramatic effect.

In general, transformations and opacity changes are the most efficient animations there can be.
To animate larger elements efficiently, you need to create a GPU layer for the element your want to move, which is generally done with will-change: transform; or a 3d transform. Or -webkit-backface-visibility:hidden; on some older browsers.

On IE, you're out of luck. But I guess the cucks who actually use that piece of shit are used to choppy, 10FPS animations and websites that don't look or work properly.
>>
>>58012278
Awesome. Thanks for the information.
>>
>>58013248
I heard about a year ago that translate can put it on a half pixel which messes things up, especially text.

I haven't noticed the problem in forever though and I use translate -50 on both x and y all the time.
>>
>>58013248

ugh, don't use CSS to do transforms or animations, even fade in and fade outs. Javascript will be faster, but still, dont go too crazy with front end animations.
>>
Like 90% of Chinese places just have a menu as their website, but still offer call-in delivery.

I've been trying to think of an idea on how to make money from this considering they could easily just put in their menu options on EAT24.
>>
File: 1479298706159.jpg (56KB, 720x480px) Image search: [Google]
1479298706159.jpg
56KB, 720x480px
>trying to run Codeception tests locally with Selenium
>at work (Kubuntu) everything installs and runs smoothly
>at home (macOS) i run into one error after the other
fuck this gay OS, why must I stretch my ass every time I try to do something slightly different than web browsing
fuck fuck fuck
I'm downloading Kubuntu
>>
What is the fastest MVC I can learn for Javascript?

I need to get a good understanding within a day. I'm expert level vanilla JS, know some jquery and some React.

I got a fucking "We need someone IMMEDIATELY please come in" email.
>>
>>58015517
>manages to fuck up using a Mac
How are you an IT professional?
>>
>>58015786
MVC isn't the only way to do things. Try redux since you already know react
>>
>>58015360
>DOM repaints are faster than gpu-accelerated animations.
What the hell are you smoking?
>>
>>58015945
Nobody taught me how to do this stuff. They just gave me a test task, I've completed it, and I was made an automation tester.
I was only a manual tester before, don't call me an "IT professional".
>>
>>58016019
Do you have homebrew installed?

If you were windows I'd understand, but Mac is a gud dev environment
>>
>>58016007

whenever i use javascript instead of CSS to do front end effects/animations, the framerate is smoother. Why is that?
>>
>>58016207
Clearly because you don't know what you're doing.
>>
All webdev discussion belongs on /dpt/ now.
>>
>>58016411
No. Says who?
>>
>>58016254

>edgy front end sjw detected

Do a page with tons of css animations, then do the same thing with another page but use javascript instead of css. Compare the performance then get back at me.
>>
>>58016411
fuck off
>>
>>58016801
>>58016801
>>58016801
NEW THREAD
>>58016801
>>58016801
>>
>>58015786
try vue but it's officially a mvvm framework. it really doesn't make a difference though. the definitions are very vague
Thread posts: 311
Thread images: 31


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

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


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