[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
Web dev general /wdg/
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: 24
Thread images: 3
File: 1461602465135.png (863 KB, 822x552) Image search: [Google]
1461602465135.png
863 KB, 822x552
OLD THREAD >>54247122
> 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 [Embed] [Embed]
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
>>
How do I make a search bar that instantly processes results on the bottom? I don't mean like a drop down, I mean that actual content on the bottom gets changed without refreshing the whole page.

>inb4 ajax
>inb4 angular
I need more information than just this, can't find any tutorials online
>>
there already is a /wdg/

it doesn't have /wdg/ in the subject though so i guess you must've missed it

>>54247122
>>
>>54291465
If you read the OP, you'd know it wasn't missed because it links to the old one. But the old one is reaching the bump limit, it's at 268 replies so the new thread was created. But yeah, it also doesn't have the subject so people who filter don't see it.
>>
>>54291272
Ajax
>>
File: IMG_1077.png (201 KB, 426x427) Image search: [Google]
IMG_1077.png
201 KB, 426x427
>>54291898
Thanks Pajeet, you sure memed me good!
>>
>learning ruby
>ruby-lang page makes big deal out of blocks
>think so fucking what?
>see this code
user = User.new do |u|
u.name = "David"
u.occupation = "Code Artist"
end

>which should be the same as this code in JS
var user = (function(u){
u.name = "David";
u.occupation = "Code Artist";
return u;
})(new User());

except the ruby code is an ORM meaning I get database functionality for "free" (thanks ror framework!), fuckin' sweet
>>
>>54293099
oh ook, I ' have to write 5 characters less for same ammount of code.. i'm so cool
>>
>>54293255
>not understanding what orm is
anon are you from 1990?
>>
>>54293255
it's not about the fact that the ruby example is 1 line shorter. I could probably use an es7 feature to turn both of the assignments in the javascript example into 1 line, like this:
[u.name, u.occupation] = ["David", "Code Artist"];

although on second thought, would this just be returning an anonymous array and not actually modifying u? someone please test i don't have an es7 environment accessible atm
>>
>>54293543
on 2nd thought im pretty sure ruby can do this too, maybe like this?
u.name, u.occupation = ["David", "Code Artist"]

so it's a moot point. either way, it's not as clear/readable as the simple
var = value;
var2 = value2;
// etc...
>>
So I have 3 computers(all wangblows), 1 doesn't have admin rights and I have access to a VPS. So I am wondering is there anyway I can sync my dev environment between these 3. I know about vagrant but don't know how I can use it on a VPS and then access it from multiple computers. Thanks
>>
I need an elegant solution.
My users are allowed to use specific functions. These functions are usually added to groups, and the groups to the users. Not being logged in is associated with user 0, who can have a group too.
What's the most elegant way to define a startpage for a user/usergroup? For example user 0 should end up at the login screen, while user 1 (being therefore logged in) should end up at his dashboard.
I thought about defining some functionality as default for a group, but as some users have several groups and therefore several defaults, that wouldn't be a nice solution.
>>
File: rorormwhere.png (1 MB, 1920x1028) Image search: [Google]
rorormwhere.png
1 MB, 1920x1028
was there a better way to do this?
>>
>>54293945
>>>/v/
>>
what's the best way to combine webpack watch and gulp watch? currently doing
gulp.run('webpack:watch');
in my gulp watch task but apparently it's deprecated...
>>
is the freecodecamp shit ?
just did the html course for practice and there are 15 fucking lessons about hex and rgb colors, but not a single one about float or positioning or tables or <head> or some APIs

are the other courses better, the js challanges look fine
>>
>>54295548
I think it's always best to use a variety of sources.
>>
>>54291272
Ajax?
I mean, what exactly do you need? Someone to write the damn thing for you? I'm sure there are plenty of examples online.

Upon input change you send XMLHttpRequest request to backend, read the result and change client's DOM to display results. The whole thing is criminally easy with jquery and could probably be written in minutes, assuming you have backend stuff ready.
>>
>>54293285
ORM will bite you in the ass sooner or later. Especially if you don't understand how it works under the hood.

Sure it's cool that you get it "for free", but it might just turn out to be a liability once you're expecienced enough to do that kind of stuff yourself
>>
>>54291272
You may want to have a look at
https://select2.github.io/examples.html#data-ajax

There is a dropdown in that example, but other example show that select2 can be used as a simple search input just as well.

You still need back-end code to put together a response, noone wil really be able to help you with that. And as others have said, the front-end code can be pretty trivial if you keep things easy
>>
I FUCKING GIVE UP
>>
>tfw being fully backed by unit tests
>tfw inflating new projects with a composer-based boilerplate
>tfw running your deployment the same way
>tfw debugging in your IDE
>>
>tfw you finally get it
Just make shit work. Now I understand why there are so many hacks/tricks. You just fucking do it and don't worry about if its really the best way. If it works, it works. Fuck it. Now I can even see things like this on "good" websites.
Thread replies: 24
Thread images: 3

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.