[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: 333
Thread images: 19

File: wdg.png (868KB, 822x552px) Image search: [Google]
wdg.png
868KB, 822x552px
If you're an unemployable NEET go to >>>/g/dpt/ edition

> 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/
>Crockford on Javascript
https://www.youtube.com/playlist?list=PL7664379246A246CB

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

>Backend development
https://en.m.wikipedia.org/wiki/Comparison_of_web_application_frameworks
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
> [YouTube] 2016/2017 MUST-KNOW WEB DEVELOPMENT TECH - Watch this if you want to be a web developer
https://www.youtube.com/watch?v=sBzRwzY7G-k
> [YouTube] Javascript is Easy - "JavaScript is Easy" - If you can't into programming, you probably won't find a simpler introduction to JavaScript than this.
https://www.youtube.com/watch?v=zf_cb_Nw5zY

>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
https://www.openshift.com/
https://scaleway.com/
>>
If i study webdev for 2 hours a day how long until I am proficient enough to be hired and get money?

I already know Java.
>>
I don't know why, but it always feels like when I program, I have to reinvent the wheel. I try to never use libraries, because I feel like its cheating me from doing work.

Did anyone else have this feeling? I'd like to make more things, but I always feel like shit for using something simple like Express.
>>
>>55962322
It's only cheating if you're trying to learn something, imo.
>>
>>55962322
I feel like that too sometimes and then I get deadlines and have to find shortcuts
>>
>>55962424
True. Maybe if I had deadlines, then I would feel fine using shortcuts. But since I always make stuff by myself, I just feel like I should use only one or two libraries, and everything else should be built by hand.

I know it's ridiculous since I wouldn't build a hammer from scratch if I just needed put a nail in the wall. I'm trying to get into Ruby, but I always heard Rails was too easy. Maybe I've been in an abusive relationship with PHP for too long
>>
>>55962177
6th for WE FINALLY HAVE THE OP IN ORDER GODDAMN THAT TOOK LONG ENOUGH
>>
seventh for php is best language
>inb4 real_mysqli_meme
use pdo, anything else is deprecated.
>inb4 $ for variables
literally nobody cares
>>
>>55962322
You sound just like a friend of mine. He'll rather write his own code that isn't as good rather than get code from Github with 100+ contributors.

Not is it time consuming to do it yourself, you also don't have a mini community to help you make it more secure and find bugs that you didn't even know existed when you wrote it. Don't try to be a hero.
>>
>>55962307
Anywhere from a month to two years? It's not really a factor of time, it has more to do with how quickly you pick things up, being at the right place at the right time, generally being likable and attractive, etc.

Learn the basics of HTML and CSS if you haven't already (you can easily learn it over a weekend or something) and get a decent familiarity with JavaScript. Then, since you already know Java, I would focus on Spring or another Java-based backend framework. Just having that could potentially get you a backend webdev job. If you aren't seeing a lot of Java web dev jobs in your area, try learning something like Rails. With previous programming/backend experience you should be able to grok it faster than from nothing.

There are also plenty of regular Java jobs around, and of course Android, if you just need work.
>>
>>55962543
10th for PHP is a fractal of bad design.
>>
What's the most fun thing you can do with PHP?
>>
>>55962658
just use php7 idiot

>>55962666
blog using no framework
>>
>>55962666
sql injection?

>>55962689
>php7
Moderately faster fractal of bad design.
>>
>>55962322
You're retarded.

Next time you make a sandwich you're not going to bake your own bread, and you're not going to farm the wheat for the flour that makes the flour. And you're not going to build an oven from scratch.

Everything we build rests on a framework of stuff that has come before us. I suggest you get over it.

Also sometimes the only viable option is to use a library, such as in the case of timezones:
https://www.youtube.com/watch?v=-5wpm-gesOY
>>
>>55962719
I realize that. I use libraries like Bcrypt. But for the most mundane things, I feel like having a bunch of dependencies just makes it look like I'm cheating.

But yeah, I'll have to adjust
>>
What do you guys think about ASP.NET? Companies where I live are offering a shitload of money for anyone with knowledge in that framework
>>
>tfw love Python and was enthusiastic about giving Django a chance

Can't make myself pass the second chapter of the introductory tutorial where you build poll app.

I don't know what to do anymore. Maybe I'll try some more Node again, but I guess I just can't get interested in backend. But I want to learn it because only frontend shit is useless.

I fucking hate tons of different folders and hierarchies and code all over the place. I would literally just rather have everything in few files. I know this is not how it works in the industry but it's just so painful for me to organize everything in my head that way.

But I also feel that the reason why I can't get a will to do anything web backend related is because it is just so boring. I'd like to make something cool for web, but mostly this stuff is boring as hell.

>tfw game programming would actually probably get me the most satisfaction.

I'm just not passionate enough for CRUD apps.
>>
>>55963067
Why not build a web game then, and have a backend to store data? Best of both worlds.
>>
>>55962689
>using no framework

pls don't make the same mistake i did
>>
>>55963067
Try Flask instead of Django.
>>
>>55963067
what is problem with poll app?
urls doesnt work? right?
>>
>>55963146
That is one of the only things I'd want to try. I probably should, just not sure how to approach it yet. I'd maybe use Node, but probably with some framework like Phaser. Making some online MP like Agar or those snakes would be cool. I actually have one idea...

Then again I feel like I should be learning this boring shit and make something that workplaces will actually care about, considering that there is a high chance I'll get stuck in this industry, due to my degree (if I don't switch to design department).

>>55963174
I wanted to, then heard a lot of negative shit about it here. Don't know. I'd not like to build everything from scratch either, but Django and Rails seem too bloated for my taste.

>>55963198
Oh no, it's not that I was stuck in the tutorial, I just can't bring myself to go through it, since the end result doesn't interest me almost at all.
>>
>>55963253
Start with the game, do something you find interesting. There's no point in learning it if you're going to hate it and feel burnt out.
>>
>>55962973
Please respond
>>
>>55963549
>>55962973
It's fine. If you like it, go for it.
>>
>>55963549
It overcomplicates shit in ways other languages/frameworks don't, imo.
>>
Remember to keep things aesthetic, aesthetics are just as important as functionality.

No I'm not even shitposting
>>
Why are modules are being pushed so hard for JS web environments?

It makes sense for the nodeJS faggots to use CommonJS, sure. But what does requireJS achieve for browsers? It introduces its own globals and its adding another external script to your site. AMD is beyond retarded, loading scripts when needed is going to add delay, when instead you could just throw core functionality in one JS file and have that cached for 30 days.

Seriously, what problem is this "solving"? Only retards have issues with accidentally redefining existing globals, because either they didn't properly look in to what external library they're using or they're using too many external libraries. But of course dumb fucks will say they absolutely need requireJS or different module loaders so they can load up their 1MB+ SPAs with hundreds of external modules
>>
>>55963954
In what other way would you organize projects with more than a few hundred lines? Normally you bundle all those modules in one or two files during the build process anyway, so the files will be cached
>>
I need good inspiration for designing my small business website, a lot of the ones on "website inspiration" websites are for larger companies or just not functional.

Its a tiny 1 location service industry business, how do I find similar good websites of the same ilk?
>>
>>55964036
>In what other way would you organize projects with more than a few hundred lines?
With a good IDE and a good JS transpiler, but the latter doesn't exist

>Normally you bundle all those modules in one or two files during the build process anyway, so the files will be cached
Exactly, so now what's the point of AMD?
>>
Dj-dj-django creates everything for me. I w-wouldn't know how to do any of that from scratch. Should I be worried?

I think this is why people want to do stuff from scratch. Now I feel like a monkey.
>>
git is /wdg/ so help me out here. I use sourcetree with my bitbucket account. Just now I cloned a repo from my bitbucket using mingw with nothing to do with sourctree at all and when I do a pull it doesn't ask me for password. The repo is private. How's this possible? Is the password somehow cached in the OS somewhere?
>>
>>55964241
You can always dig deep and see how shit rolls. Read up on ORM, basic database design theory and HTTP. When you have a good understanding of that you will work even better with django.
>>
>>55964425
>sourcetree
Just use gitkraken u melt
>>
>>55964613
That's not my question anon. How does git save credentials on Windows?
>>
>>55964241
Try doing the same shit with pure flask
>>
When you guys start a new website, what do you do, like total step 1?

Never made a proper website that I intend on uploading but now I need to, what is your process.
>>
>>55963891
No one wants to use an ugly website.
>>
why is asp.net core the best?
>>
anons help me decide, puthon/Django or ruby/Rails?
Which one should i learn?
>>
>>55964970
Neither. Both are 'old tech'.

Use Phoenix and Elixir.
>>
>>55964241
you chose the wrong career if you don't want to be a starbucks-tier expendable monkey
>>
>>55964931
why is it the best? its a fucking enterprisy framework which I wouldn't really use for my own projects but it's great for big companies I guess
>>
what are your projects?
>>
>>55965118
php blog from scratch :^)
>>
File: baron.jpg (79KB, 470x343px) Image search: [Google]
baron.jpg
79KB, 470x343px
>>55964915
>buy domain name
>make website
>watch youtube video on filezilla tutorials
>upload
>wew lad
>>
>>55965003
I'm more focused on design and frontend. I've learned about databases in college and had backend class but didn't use that knowledge that much so atm I don't really know it that well.
>>
File: 1432535544173.jpg (41KB, 379x329px) Image search: [Google]
1432535544173.jpg
41KB, 379x329px
>>55965139
P R O G R A M M I N G
R
O
D
I
G
Y

do you dream in code, anon?
>>
whats a good react project to make so i can get a job as a react developer? Seattle here
>>
>>55964649
Do you have ssh key authentication set up? That's probably the only way this happens.

known hosts and your keys are stores in the .ssh folder of your user directory
>>
File: 1460316467866.gif (213KB, 250x263px) Image search: [Google]
1460316467866.gif
213KB, 250x263px
>>55965182
no, anon. the code dreams of me.
>>
>>55964915
- create repo
- create composer.json/package.json
- add known dependencies
- set up deployment
- test
- start programming
>>
>>55965596
I fucking hate this shit.
>>
Am I a fucking piece of shit for using PHP. I honestly hate using it myself. Should I build dynamic websites with a different language? Should I learn Python and use that instead?
>>
>>55965668
Guess you could automate parts of it, but then again, you don't do it every day.

I wouldn't start a new project without deployment and dependency management, though. But maybe that's just me
>>
>>55965775
see post 7 in this thread
>>
>>55965139
>using FTP
Not going to make it.
>>
>>55964915
Are you asking how to begin developing something, or how to deploy a website that you've developed?
>>
File: 1362960589012.png (45KB, 159x219px) Image search: [Google]
1362960589012.png
45KB, 159x219px
>>55965177
>I'm more focused on design and frontend.
I'll have a venti skinny caramel macchiato to go.
>>
>>55965809
So, I can keep using PHP?
>>
>>55962524
you're welcome, faggot. next time try fixing the links yourself
>>
>>55965919
as long as you use php7 and follow good practices then yes.
>>
>>55965775
Use whatever you want. If you do learn Python try not to fall for the 'Pythonic' circlejerk meme.

Personally I enjoy Node.js. Using Javascript on the frontend and the backend is comfy, since there's no context switching at all.
>>
>>55965875
Great post, my friend.
>>
Can someone explain to me how a backend works and how it works with the frontend?

I need to launch a website withing a month and it needs database interaction. I have some python skills and I know HTML and CSS.

Also I don't have enough time to make the backend myself so I need to find one but I don't know how.
>>
>>55966010
Seriously though, being design focused is stupid. Web development is a programming discipline. Designers are a dime a dozen, and most optimal frontend patterns and best-practices are pretty well established these days. But decent frontend people are hard to find.

Do you know what a ServiceWorker is and how to implement one? Do you know how to layer your page so that the GPU compositor handles animations and transparency rather than having your CPU repaint the screen every time something moves? Do you know how CSS rules are interpreted by the browser so you can write the most efficient selectors?

>>>/gd/ is for designcucks.
>>
>>55965805
still, managing projects and keeping endless node_modules folders is a waste of time and space.
>>
>>55966672
It sounds like you need to pay someone to build a website for you. I'll do it for $2000.
>>
>>55966763
No one gives a shit about those technical details because projects have deadlines and you'll most definitely be using a framework instead of doing everything from scratch. And specially when it comes to animations: GSAP.

Also, it's not stupid to be "design focused" whatever that means. You definitely need knowledge from others fields nowadays. A good designer who doesn't understand code is just as useless as a good programmer who can't typography. It's not a choice. So get off your high horse retard, I hope you get a decent job.
>>
>>55966916
No I've been tasked with creating this website, it's just that I have very little experience creating a fully fledged website. I know bits here and there, and I'm just a bit rusty
>>
>>55962322
>I'm unemployable because I have an autistic need to do things the hard way and waste time
>>
>>55966763
>Designers are a dime a dozen
lol

>most optimal frontend patterns and best-practices are pretty well established
what point are you making?

>what a ServiceWorker is and how to implement one?
how does this apply to your weird dorky critique? service worker's are great but not a requirement for all projects.

Sounds like you don't have much real world experience.
>>
>>55962773
> makes it look like I'm cheating

literally autism
>>
can someone help me with rails setup?
I just installed rails with
sudo gem install rails

when i run
rails --version

i get
bash: rails: command not found

what do i do, do i need to set path?
>>
What's the best language to learn being a poorfag going into his freshman year of college. I have this year off.
>>
>>55967151
JS. don't listen to /g/
>>
>>55967151
First hmtl, then css, then php/mysql, then Javascript, then frameworks like bootstrap and a cms like Wordpress. And then you can start fucking around in whatever you want like jquery.
>>
File: bale-wut.gif (494KB, 500x259px) Image search: [Google]
bale-wut.gif
494KB, 500x259px
>>55962463
>I'm trying to get into Ruby, but I always heard Rails was too easy.

Then use Sinatra and work your way up to what Rails gives for free....
>>
>>55966763
>Web development is a programming discipline
the words of a true code monkey
>>
>>55963954
>AMD is beyond retarded, loading scripts when needed is going to add delay, when instead you could just throw core functionality in one JS file and have that cached for 30 days.

Lel. I refactored Edmodo Spotlight to use RequireJS, and we saw performance increases from literally 3-10x.
>>
>>55964239
>Exactly, so now what's the point of AMD?

He's saying you can have the benefits of dependency injection and lazy loading with the same benefits of caching and bundling...
>>
Whats your opinion on code/api/scaffold generators?
>>
So I think I got my first job. Of course it's building a fucking WordPress site.

I say "I think" because I've not filled out a W2 yet and this guy has a test for me. Basically I am building a website for a fake restaurant. Now I am under the impression of it being a test, however all of the assets that I was given, it looks like it is an actual client's website.

I've got cpanel access and put WordPress on there, then I got sent the assets. Now it is pretty clear that this is a real client. Basically I don't want to get screwed by this guy by working for free under the guise of a test. I don't think the guy will fuck me over, but since I'm making everything on his server. He can say that I won't be a good fit and have a client's page done for free

What do? How do I not get ripped off? How do I bring up the fact that I don't work for free and still be able to do it delicately enough to where I can still get that very important first job? Am I right to be worried about this?
>>
>>55967433
upload sheel in random folder, if he fuck you up, you fuck up the site. Set the mail function to send you ip of server every day
>>
>>55966837
I don't follow. You'll install the libs either way. But without dependency management, you're maintaining and versioning stuff by hand, including keeping track of their dependencies as well.

With a package manager, you let a tool handle all that shit for you, and all it requires is a simple JSON file. How is that a waste of time?

I cannot see how it would be a waste of space either. Without, you'd be adding all files to version control in every project you have. With a package manager, you can at least gitignore your packages, so they don't end up in version control and only on dev instances. This is objectively better

It all depends on the size of your project, though. I'm not gonna push you towards npm/bower/composer for a simple static web page with a bit of jQuery and a CSS framework.
>>
>>55967499
nah I don't know if I want to do anything malicious or anything. I just don't want to get fucked over. How often do web developers have to deal with bullshit like this?
>>
>>55967644
Year ago, i was working on some php+java project and German fuck wanted to fuck me up for my last payment, so i deleted everything from server.
Fuck the scammers.
>>
>>55966993
>No one gives a shit about those technical details because projects have deadlines and you'll most definitely be using a framework instead of doing everything from scratch

t. Pajeet

>>55967112
>how does this apply to your weird dorky critique?
The point being that frontend isn't about faffing around in Photoshop and dragging and dropping widgets into your page and shitting it out onto the web without any thought for how it works or performs, unless you're literally trying to get your job outsourced overseas.
>>
>>55965304

pls respond
>>
>>55965304
>>55967757
Seriously?

http://lmgtfy.com/?q=beginner+projects+for+web+development
>>
>>55967690
Yeah I guess that's only fair if they want to fuck you over like that. I was just curious if this is a red flag or not and whether or not there was something I could do in order to safeguard my creation?
>>
>>55967433
>I think this guy is scamming me
>How do I not get scammed while also getting a job with someone I think is trying to scam me?

Walk away. Find someone else to work for.
>>
>>55967046
You're fucked. Have a good one.
>>
>>55967644
Bury a php file to rewrite the index and clear all databases with password authentication.

You need a trigger if you want to get paid.
>>
>>55967735
Nobody ever said frontend is about dragging and dropping widgets on the layout.

Anyway, you're a typical /g/ sperg, waste of time to talk with you.
>>
Does Djangomans use generic views? Going through the tutorial and everything was nice until I saw this fucking shit. That level of abstraction is now too much.
>>
>>55967735
>le pajeet meme
see >>55962322
>>
>>55968368
Do*
fug
>>
>>55968012
Thanks anon, you're so supporting. I'll show you.
>>
>>55968527
What kind of backend do you need? If it is something like a blog, use a Wordpress.
>>
>>55968536
It's a website for an organizations that host super smash bros tournaments.
Just needs to have communications with a database pretty much. Gonna script a webscraping script in Python to get player stats from challonge. HTML and CSS is probably not a problem
>>
>>55968562
First step, setup that database. Do you know anything about databases?
>>
>>55968858
I've setup several several databases before but have forgotten a lot of it. I was planning on learning how to use sqlite
>>
/wdg/, how do you come up with names for your projects? I'm terrible at naming things.
>>
>>55968884
I'd recommend starting with postgres but if you want to do sqlite thats fine. Learn about your dbms of choice then design your database. Then you can move on to the backend programming.
>>
>>55968950
Think of a word. Mispell that word.
>>
>>55968884
Sqlite doesn't play well with multiple users so you are probably better of with real database like Postgre.
>>
>>55967230
Pajeet path.
>>
>Try visual studio 2015
>It's better than any other IDE I've tried in the past, including Siblimeme
>>
>>55966672
>need to find a backend
=/
>>
>>55967433
Test work shouldn't take more than few hours of work and should include more advanced concepts instead of basic. If this is some big but basic site then this is sign of danger. Negotiate to do only part. If he refuses walk away.
>>
After falling for the meme of Node and Django for backend I decided to give C# and .NET a try and this shit is so much easier and to the point. Probably because C# is an actual, reputable programming language and not used by hipsters and millennials unlike JavaScript and Phyton.
>>
>>55969717
I don't want to use Pajeet meme, but isn't this really a Pajeet tier though? Microshaft and all that.
>>
>>55969769
To be honest it is but I don't live in the US. My country doesn't have/hire Pajeets so I don't have to worry about that.
>>
>>55962342
Sometimes its better to let the 'experts' handle those aspects of your program. Saves time and money at work.

Re inventing the wheel is good for learning concepts and eventually designing your own tools for reuse
>>
>>55969717
>used by hipsters and millennials
Fun fact: Python is 25 years old. JS is 21 years old. There are people employed as Python/JS devs that are younger than that.
>>
So... any recommendations for learning Django?
Either I wasn't paying much attention or the official tutorial with the polls app doesn't explain things very well.
Unless [spoiler]I'm stupid.[/spoiler]
>>
Anybody has experience with web based vidya development? Can you recommend something?
>>
>>55970078
Phaser is pretty good, depending on what kind of game you're making.
>>
I have a question, can I make a google extension that can grab data from the links on a page and what should I look at to do that?
>>
>>55970121
I've heard making a realtime mp games like Agar and Slither.io is still quite complex, huh? Is that true? I think Slither was made with Node, Agar's backend is C++ though.
>>
>>55970064
Abandon meme technology.
Join the PHP brotherhood.
>>
Gibu di opinions bout dis

https://bootstrapstudio.io/

Yes, it is a drag&drop maymay, but the code looks fine. I'm not actually sure why shit like this is not used more often, considering that most of the sites of those types have generic layouts anyway.
>>
>>55970240
Your tummy hurts now...
You g-gotta go...
>>
File: MarlboroPepes.jpg (89KB, 906x799px) Image search: [Google]
MarlboroPepes.jpg
89KB, 906x799px
As of right now I am gearing up to be taking a webdev bootcamp in October and I want to be as prepared as possible. Learned a great amount of HTML&CSS to give me a good foundation to build upon, am currently building a site that will give me a decent understanding of javascript and am currently dipping my feet in php&mysql writing basic stuff so far. In the book i am using, I am doing everything in apache. However I want to know more about running a server just so I have a deeper understanding as i am using an apache along with routing etc. Anybody have any good suggestions? As of right now I have no understanding of TCP/IP whatsoever. Idk even know the proper name of what I need to learn. TCP/IP? Networking. Pls help
>>
>>55970275
Say what now?
>>
>>55970173
Websockets, bruh.

>>55970268
dreamweaver-tier garbage. Bootstrap is the simplest shit ever. If you can't handle writing code, find a new profession.
>>
>>55970298
Loo is w-waiting....
For u....
Hisssss... It callsss....
Just like a snek.....
>>
>>55970322
Are you having a stroke mate? Should we call an ambulance or something?

Or can't you just handle the fact that PHP > memeJS/pyMeme?
>>
Does anyone have this course? How is it?

https://www.udemy.com/the-complete-aspnet-mvc-5-course/
>>
>>55970316
Eww, I don't like any CSS frameworks at all. Of course I can write it by hand lmao. But then again, I thought maybe if you want to do something quick, this could be even faster than bootstrap, idk. Honestly, I've never used Dreamweaver, I'm not even sure what things it does, and how much bloat does it actually bring.
>>
>>55970283
'Computer Networking' should get you what you want. And learn how to use linux also.

>>55970349
>paying for shit
>>
https://www.youtube.com/watch?v=YSu_U1hV1kg

Holy shit 8 hours a day, for at least 6 months to learn PHP. Is this true?
>>
If you apply for a programming or webdev job and you can't Hello World then you should go to jail or be kicked hard in the genitals.

Dindus see the pay and apply en masse even though they can't write a basic function. Your resume gets buried under stacks of mcdonald's experience.
>>
>>55970283
Age?
>>
>>55970541
# prints a cute greeting :P
console.print("Hello, world!)
>>
>>55970385
thanks m80m8 I appreciate it. Sorry for my scrubbery.
>>
>>55970552
22. Pls no bully.
>>
>>55970565
>console.print
TRIGGERED
>>
>>55970424
If you're a complete beginner in programming, probably yes.
But I found that most of my learning comes from experience.

So I don't know about how many hours a day, I just know you should practice a lot with different projects that will challenge you and make you learn new concepts.
>>
>>55970588
Was wondering because I'm 27 and considering it too.

My portfolio isnt opening doors.
>>
What should I learn/master?
- visual-studio + c#6 + asp.net.core
- webstorm + e2015 + express
- phpstorm + php5.6/php7 + laravel
- intellij + java8 + spring-boot
>>
File: Screenshot (4).png (430KB, 2966x900px) Image search: [Google]
Screenshot (4).png
430KB, 2966x900px
>>55970689
What does your portfolio contain so far?
I got a blackjack program and working on DOM shit like sliders, modals, when you scroll down the screen the page will load 18 more content panels. This is a page im working on rn, ignore the pepes Im gonna replace em with a nice font demonstrating each little design trick I can do with javascript (clicking on one that says "modal" will make a modal, clicking on one that says "accordian" will open up an accordian tab", slider will open up a slider etc etc.), Im loading all images from a json file currently but once my knowledge of php/sql is better ill load em from a database.
>>
>>55970756
'Mastering' IDEs isn't a thing. If you're getting into this industry you'll eventually have to learn and be proficient in all of those. But going the Javascript/Node route is easier if you come from a front end background.
>>
>>55970787
Also dont worry familia thats from awhile ago, the js is always doin something. Also I dont use dreamweaver to actually produce anything, I just like to use to code because it autofills and looks comfy. Ill take a new screenshot when its done
>>
>>55970791
>'Mastering' IDEs isn't a thing
Unless its specific flavors of autism, such as Vim or Emacs
>>
>>55962177
>https://www.vultr.com/
anyone used this?
>>
>>55971217
Digital ocean ripoff.
>>
>>55971232
what about ms azure?
I think I got it for free because of uni account.
>>
what's the best way to make money working part-time?

should i offer hosting? i've considered just offering single page web apps for cheap and i host it myself.
>>
>>55971357

Unless you know what you're doing, don't do freelance. Just go get a McJob or something till you're qualified to get a real job.

Don't offer hosting unless you want tech-illiterate retards calling you up at 3 in the morning bitcing at you because their site is down when really they just can't operate a browser.
>>
>>55971217
Yes, they work pretty good.
>>
How similar is Typescript syntax to C#?
>>
>>55970340
PHP is physically repulsive and laughably limited. A PHP developer today is a welfare recipient tomorrow.
>>
>>55971562
thing is I have a day job so this can only be part time and Im extremely knowledgable about web shit Im just sick of getting low-balled by my clients that i attract mostly via referrals from other cheap ass idiot business owners/brokers/sales douches
>>
>>55971809
set an asking price instead of taking offers and being all stuck up about it
>>
>>55971847
thing is i find that most people get really excited and offer me money and we work out a timeline and payment plan and then i ask them to give me an account or their password for their shit and then it all falls apart and a month later they sheepishly explain they dont own their domain and they called up the last person they worked with who told them to go fuck themselves. like 3 times in the last 3 weeks this has happened and i am feeling the pain of my extra income evaporating.
>>
>>55971847
This. It might seem counterintuitive, but the more you charge, the better your clients.
>>
>>55971914
Make sure they walk out of your initial meeting knowing they need to have that info before moving forward. After that, don't waste any more time on them until you have all the pieces you need.

If they are genuinely completely locked out of their old site with no hope of getting it back, make sure they know you can make them a new website from scratch.

And no matter what, for all of our sake, when you're done with a client, and receive final payment, give them a nice little folder with all relevant information on their site that they can give to whomever works on the site next. Don't be an asshole and horde it, that just wastes everyones' time. Unless they try to weasel out of paying, then they can fuck off. And if they do that, make sure you tell the next dev when they come to you looking for the info so they can concentrate on paying clients.
>>
File: a1.png (349KB, 748x986px) Image search: [Google]
a1.png
349KB, 748x986px
tl;dr: In terms of username suggestion implementation, is there any tips on how to go about doing this? Or is this humanly impossible to do given what you have and the restrictions?


Long version:

I was given this coding problem the other day and I wasn't able to pass the username suggestion portion. The problem has still been bugging me because there doesn't seem to be a way of accomplishing this within its restrictions and given resource. It felt like a trap to me but I still want to see if was possible to do in the first place.

If you can't touch the server and all you're given is just a method of finding out which usernames are registered already, isn't that sufficient proof that there isn't a reasonable way of determining which names are not registered yet?
>>
>>55971767
How long have people like you been saying this and what do you use other than your megaphone declaring your stupidity of course.
>>
>>55972235
generate a username; if it's already been taken, repeat
>>
>>55972284
But that's what I'm not getting. Is there a way to generate usernames in terms of words rather than random characters? If so, how do you detect words then?

In my implementation, it suggests usernames by inserting symbols in between each character string (so A123 can come out with A-123, A1-23, A12-3, etc.). It sends them all to the server and the ones that don't come back are available names. But there were so many flaws with it.
>>
>>55972407
you have a list of words, like on gfycat.com, it puts together random shit like RichSpiffyDanishswedishfarmdog and ClutteredNervousBluefish
>>
>>55962177
Noob in /wdg/ here..
>If you're an unemployable NEET go to >>>/g/dpt/ edition
What do you mean by this?
That /dpt/ anons will never find a job?
>>
>>55962973
basic MVC/Razor is VERY easy to learn but it is still powerful enough to cover most of client's needs if they don't mind rather simple looking UI

it also helps that it is all basic HTML and web requests -- no js needed.

I taught a guy with barely any web-dev experience MVC/Entity Framework in few hours.
>>
>>55972755
He means you have to get past HR if you want a /wdg/ job, and be able to program in more that 256 colors.

/dpt/ jobs are more likely to hire people that can be kept in a cubicle next to the server room.
>>
>>55972755
Yes because of their culture. You can get a non-webdev programming job, but /dpt/ cant
>>
>>55972755
the types of languages recommended and practiced there won't find you a job (Haskell, O'Caml really?)

it's a den of students and hobbyists with elitist attitude and language/console wars mentality who have to make up programming tasks for themselves
>>
>>55972889
>O'Caml

Fucking hell.
>>
>>55972889
>>55972836
>>55972834
I already am learning java, making a course that I really want to finish ..
After learning java can I easily start learning web developer languages in order to get a freelance job?
>>
>>55972930
>After learning java can I easily start learning web developer languages
yes
>>
>>55972970
Cool! :D
>>
Sorry anons im the noob here..
I really tired I go to sleep, see you tomorrow
>>
>>55972930
web dev is more like managing stacks of technologies rather than just knowledge of programming languages -- which are nowadays ultimately are so generically similar to each other

It's more like HTML, CSS, JS, C#, ASP.Net, MVC, MVVM, Autofac, Kendo/Telerik, Bootstrap UI, ORM/Entity, AngularJS, React/Flux, SingalR,

Also note, that at least 5 of these i had to learn on a live project within the last 5 months. This how fast things move in here.
>>
>>55973025
Waaaaa thanks for your help I will bookmark this thread and reaf you comment well tomorrow!
My brain is retarded right now because I didt sleep so well.. I go to sleep now..
See you soon anoon :DDDDDD
>>
In PHP, is this secure even if I didn't use bindParam()?

$notify = $connection->prepare("INSERT INTO notifications (user_id, class) VALUES (?, ?)");
$notify->execute(array($userId, '1'));
>>
>>55970787
A dating website and something like an anonymous twitter.

I probably have some jewish heritage because I hate giving away code on github. Everything I make is for the shekels.
>>
>>55970787
Also that's a nice project.
>>
File: image.jpg (107KB, 600x612px) Image search: [Google]
image.jpg
107KB, 600x612px
>>55972284

I hate the idea of doing this but I can't think of any other way.
>>
>>55972235
That sounds fun.

Take their wanted username and append random numbers to it.
>>
>>55974905
The spec states you can't infinity add numbers.
>>
>>55964649
git for windows can be setup to use credential manager to store usernames/passwords.
>>
>>55967344
1.6MB for that pile of shit.

Bravo.
>>
>>55975017
if all variations of numbers are taken, change the username

sorry but this should be really obvious
>>
I'm curious about how quickly one can learn javascript if they push themselves to learn it. This Chris Minnick says someone can learn HTML CSS and Javascript in 5 days. I understand learning HTML and CSS in an afternoon, but I'm unclear on Javascript
https://www.quora.com/How-many-days-will-it-take-to-learn-HTML-CSS-and-Javascript-starting-from-scratch
Also are any of the answers in that thread legit?
>>
>>55975017
Just read it.

Use a list of adjectives and put it before the username.

DazzlingDickbutt
If taken then add 2 random digits to the end.
>>
>>55975103
>>55975162
It sounds obvious but I'm not getting it. That means brute forcing is the only option and I don't understand how you would do it without doing some unknown number of server requests.

In the implementation I had, I had to compare two arrays (the suggested names generated and the registered names return from the server) then filter out the difference which give the available names. That seems completely illogical but I don't know of any way better to do it.
>>
>>55975244
Not brute forcing.

These files should all be colocated, so it's not like you're ddosing with your requests.
>>
>>55975244
webshit doesn't care about efficiency and theoretical performance, in the real world you're not going to have enough users for collisions to be likely, and no matter how you do it the server is still going to have to look through the database one way or another
>>
>>55975273
The resource takes a comma-separated list so I already know the usernames should be grouped together before submitting.

But that's what I can't wrap my mind around. That means if the first name fails, then you'll need to generate a set of usernames (by prepending all adjectives - since at least one suggestion needs to be non-numerical) and make a second request, then find one of those that is available, then (assuming all the other adjectives don't work) check the amount of digits already in the username, then try to generate the name with numbers appended without exceeding the limit in the specs.

If that is how it is supposed to work, I am going to bang my head on the wall because that just sounds so ridiculous.


>>55975399
In the real world, that is. Unfortunately, in this theoretical world where this problem presides where I am actually penalized if the user waits too long for suggestions (which would be the case considering all the checks involved), I don't have much of a choice in the saying.
>>
>>55975533
just an idea, you could reserve all usernames with a certain format which normal users are unlikely to pick, and then you can suggest one of the reserved usernames, and you could have some sort of scheme to not require checking them, like generate a long sequence of variations so they won't repeat
>>
>>55975611
Possibly, but that is risky. Keep in mind in this theoretical world that they already have the usernames generated in the DB and that includes a bunch of obscure ones (you won't believe how obscure they can get - it was annoying).

If anything, I'm pretty certain I failed because they tried submitting a bunch of random names using their own generator and my implementation failed to generate suggestions on some of them.
>>
Which is more efficient?
SELECT COUNT() as 4 subqueries on 1 table or as JOINS across 4 tables?

It'd be better integrity for what I'm looking for if I do a single table, but I'm looking at the efficiency as well.
You can only do ONE of like 4 things (like, dislike, favorite, maybe something else like a LOL or something).
So, I'd rather NOT push the processing off to the Application logic, because that'd mean the application server has to keep track of 4 separate tables and make sure a record only exists in 1.
However, how much of a performance hit would be taken on 3 or 4 subquery COUNTs on the same table looking for different things?

Assuming thousands or millions of users?
Just say, like 10 million.

On the other hand, it'd definitely be more efficient to update a single row in one table if they change their mind, rather than deleting a row from one and adding one to another.
Right?
>>
What the fuck. I just fixed this:

$raw_results = $wpdb->get_results("SELECT * FROM bookings);
$total_results = count($raw_results);


That page suddenly started failing. No one had touched the code. This was fucking hard to fix. I had to look for it in spaghetti code.

Some do the CS graduate shit please.
>>
>>55975961

you didn't close the quotes.
>>
>>55976011
No, that was my mistake pasting the code here.
>>
>>55975961
Isn't that because get_results returns an object by default and the count function doesn't work on objects?
Have you tried setting the output_type param?

https://codex.wordpress.org/Class_Reference/wpdb#SELECT_Generic_Results
>>
>>55976011
>>55975961

In case you don't know what's going on there: line 1 runs a query that fetches all the rows in the bookings table which are in thousands. Once that expensive query is run, in the next line count() is used to return the size of the fetched array.

The correct way to do that is:

$total_results = $wpdb->get_var("SELECT COUNT(*) FROM bookings);
>>
>>55976036

get_results returns an array of objects, however on an error itll return a non array, which that code isnt accounting for.
>>
>>55976036
No, it was working until recently when the bookings increased. PHP was using maximum memory.
>>
>>55976051

Who knows what they is doing with the results after the count though.
>>
>>55971232

wow they're not even trying to hide it, the design and ui is the exact same

even the fucking color scheme lol
>>
I was hired to maintain a clusterfuck of a "webapp" written in PHP. One of the things it does is some heavy processing of user-submitted images with external ImageMagick scripts executed in shell (through exec()) by www-data user.

IM obviously has a shit security record as it was never designed to handle maliciously crafted files. Unfortunately, it is not feasible to replace it at this point, so my question is:

how do I sandbox ImageMagick so that if it shits itself it doesn't compromise and/or take down the entire system with it?
>>
I have already done this to some extent in PHP, but PHP sucks, so is there a better language for a multiplayer browser game? Nothing with real-time action, mostly text/2D based.
>>
Any way to do A/B testing without paying at least $50 a month? Unbounce and optimizely are too expensive.
>>
>>55976066
I read the whole file. This is the only use for it. And why the fuck would you ever query a table with thousands of rows using "SELECT *".
>>
>>55968972
>>55969518
I'll take a look at postgre, thanks.
>>
>>55969591
Correction: A framework of a backend, or something similar.
>>
>>55976702
>>55976775
Who the fuck said that /dpt/ was unemployable ?
>>
I'm at uni studying information tech majoring in apps and programming.... the apps shit is interesting but most of it was watching videos of a teacher which I felt like I could of just watch some random off youtube

programming I can't even understand the teacher because it's some asian bitch

I want to make my own social media site, including ios and android apps, should I just bail out and do shit on my own.... less debt, more time...

how's finding employment without a degree (ausfag)
surely making your own shit and showing potential employees is better than showing them a piece of paper

what do you guys think? I have the motivation now to learn on my own and most of the stuff I want to do is about websites or apps
>>
I have some javascript functions in a file

I want to load them so I can use them in a webpage on the internet to get some information.

How? I'm not entirely sure how to google this, but it seems simple, probably no more than a line.
>>
Anyone here think it's viable to support IE7?
>>
>>55977010
depends on demographic
>old cunts, yes.
>younger cunts, no.
>>
>>55977010
It's barely even viable to support ie9
>>
>>55976956
?

<script type="text/javascript" src="site.com/file.js"></script>
>>
>>55976798
>why the fuck would you ever query a table with thousands of rows using "SELECT *"

did you mean without using a WHERE? Because SELECT * is pretty useful if all the columns of a table are to be displayed.
>>
>>55977182
Of course. One should never fetch all the records in a table unless you know what you are doing.
>>
>>55976897
Finish your degree. At the same time, develop something for your portfolio. Don't give up on your education. Yes, it might just be an alternative to toilet paper, but having a degree raises the bar of minimum employment safety.
>>
>>55976956
If it's YOUR webpage, just use the code the other anon posted in reply to your post. Otherwise, no way Jose.
>>
I'm interested in learning javascript, and i already know python. All the tutorials ive tried have been for beginners and moved very slowly. Is there something a bit faster?
>>
>>55977211
>>55977161
i think phantomjs will do, i just want to ask the page for a couple of elements by tag and load look at that information, but no browser and automated

i just asked poorly i believe
>>
File: oooooooo.jpg (47KB, 720x720px) Image search: [Google]
oooooooo.jpg
47KB, 720x720px
I'm trying to create my own Imageboard script using Sinatra, and I have a few questions:

1. How would I go about designing a database for this matter? Should I automate a table for each board, or maybe just have one table for all posts? (which seems like the better option if I'm going to implement an overboard)

2. Should I ever treat both OPs and replies as posts, and have them appear on the same table?

3. What would be the best way to store images? Is setting up an CDN even worth it?

4. I'm going to want to add an option for multiple locals to my Imageboard system, but I fucking hate gettext, which as far as I'm concerned is the go-to for template engines like Jinja.
What would be a good, alternate way to implement multiple translations to my system?
>>
>>55977535
1. There's no reason to store all boards in one table. Added bonus: independent post numbers
2.Treat first thread post as OP. No reason for distinguishing in any other way.
3.CDN's are worth it if you want your board to be equally fast for everyone.

That's just my opinion.
>>
>>55977535
creating a table for each board is retarded

two "tables":

POSTS (ALL posts across ALL boards):
id -- internal post id, NOT the same as post number
number -- post number, to save your dubs
text -- message body
image -- some kind of link to image


BOARDS
name -- name of the board be it "v", "g", "sci" or any sequence of strings
number -- last post number in the board

When post is created number of that board is incremented and that number is assigned to new post
>>
>>55977660
forgot about threads

POSTS table should also have
threadId -- nullable id to thread this post belongs to, if it is null -- this is OP in a new thread
>>
>>55977717
>nullable id to thread this post belongs to, if it is null -- this is OP in a new thread
"no"
>>
>>55977660
Why the separate internal and external post ids?

And I came up with the idea for board tables because I thought that in the theoretical scenario where my imageboard would actually be active, dumping every single post from every board into the same table would make it way too large for queries to operate quickly enough.
>>
>>55977594
>There's no reason to store all boards in one table.
Yes there is, it's called third normal form. You're not going to add a table to the data model every time you want to add a board, just to end up with dozens of reduntant tables (and having to keep track of their names in your queries). Relational databases are called "relational" because they're damn fucking good with relations. Using a one-to-many board-post relationship is what a normal human being would do.
>>
I installed Laravel, but when i type
laravel new blog

i get
bash: laravel: command not found
what do i do?
>>
>>55977977
install laravel globally, or look for a package for your appropriate distro
>>
>>55978003
i installed it with
composer global require "laravel/installer"
>>
>>55978019
try sudo.
>>55978019
>>
File: Selection_006.png (10KB, 833x112px) Image search: [Google]
Selection_006.png
10KB, 833x112px
>>55978039
>>
>>55978066
Oh snap lol
Is composer in your PATH?
Also, is /usr/local/bin/composer executable?
>>
>>55978480
no composer in /bin/
>>
>>55978480
it is in
composer: /usr/bin/composer
>>
>>55978659
It's different in my machine for some reason.
Anyway, add it to path then and post results.
>>
>>55977817
>>55977963
Okay, I'll do that then.
But what about locales?
Will I actually have to use gettext?
>>
>>55978749
composer is working, it installs laravel,
but later laravel is unknown
>>
>>55978772
Try following:
http://stackoverflow.com/questions/26376516/laravel-php-command-not-found
>>
>>55978844
>http://stackoverflow.com/questions/26376516/laravel-php-command-not-found
already tried that, not working
>>
>>55978886
did export PATH="~/.composer/vendor/bin:$PATH" seriously not work?
try using it with sudo or restarting the terminal.
>>
>>55979189
i did all of that, hm but i have
 
export PATH=$PATH:$ANDROID_HOME/bin


in basrc could that be a problem?
>>
>>55979229
yes.
>>
Is there a cheat sheet kind of shit for SQL that covers all the shit everyone will ever need in their SQL lifetime?
>>
when I call a php code from javascript and get the result, for some reason it adds  at the beginning of the string, but hidden when displayed on the page, but using alert() I can see %EF%BB%BF at the start of the string.

It certainly have to do with the encoding, but all my pages are UTF-8 without bom.

I noticed that when I upload the files to the servers with the right encoding and download them back, my text editor tells me the file has changed and asks me if I want to reload it.

any ideas of what's happening ?
>>
>>55979483
Configure your ftp client for binary transfers not text.
>>
Can you recommend me some free API for language translation? I just want to make myself a small web app for language learning and want to translate a couple of hundreds of given words and save them in a database.

Google Translate is apparently exclusively a paid service and now I wanted to use Yandex but niggers want too much personal information which they can use freely so I don't know about that.
>>
>>55979692
it was already in binary transfer.

And my code works fine in localhost. So it have to come from the server or the ftp client. But I probably tried every settings on the FTP client. So I'm a bit confused.
>>
REEEEEEEEEEEEEE why do web dev jobs demand knowledge of huge bloated frameworks?

I can't even call a REST service with requests library in django, that poll tutorial was worthless, I still have no idea how to tape together anything. I fucking HATE abstractions so much.
>>
>>55980200
I have been using django for a few months now and man the shit I have learned. I almost feel jealous about sharing it with other people. It's mostly "shit I knew when I started with django".

How do I share this knowledge with others?
>>
>>55980226
At least gib some learning resources or even better, what did you work on to practice this shit since I'm a literal idiot.

Just to expand my last post, learning PHP in my college class was the single worst thing I could have done. We didn't use any frameworks, HTML was echoed and spaghetti'd with the other PHP code and the shit we did was basic as fuck.

I feel like I'm at a worse position for learning backend than somebody with 0 experience in programming.

I don't even know how to make routes anymore, after all these Rails, Django, Node and Angular tutorials. Everything is a big mess in my head and I'm completely lost.
>>
>>55980200
>17.2kb
>bloated
>modern frameworks are too difficult
how do you dress yourself?
>>
>>55979483
>>55979949
Okay here's an update.

Now my files are sent correctly, the ftp client don't modify the encoding. They are sent as utf-8 without bom files and yet I still get this studpid 

Everything works fine in local.
can it comes from the server ?
>>
File: sqlcheatsheet.jpg (564KB, 2550x1711px) Image search: [Google]
sqlcheatsheet.jpg
564KB, 2550x1711px
>>55979348
mayyyyybe
>>
Is there a cheat sheet on how to make myself not fall asleep while trying to learn backend webdev?

Seriously, I tried so many times and I just can't make myself do it. I'm sick of googling and reading stack overflow which is apparently the main thing software/web devs do on a daily basis, in my experience.
>>
>>55980704
if you're falling asleep because it's too easy and boring, do real programming instead
>>
>>55975533
It's not ridiculous though. You need to think through problems a step at a time instead of all at once or you will get overwhelmed and you will never start.

This is important for any project you do. People see a website as the end result, but it is really a giant melted blob of features that you make one at a time.

I might make a video on this. This is a relatively common issue.
>>
>>55980573
It's an UTF byte order mark. It's extremely, and I mean _extremely_ unlikely that it gets added by the server, so there are two possibilities:

1. You're saving the files with BOM after all. Just because you don't see it locally, doesn't mean it's not there. Get a non-shit editor.
2. The files are, in fact, BOM-less, but get included from within a script saved with BOM.
>>
>>55980847
In the end I managed to fix it. It came from the code on one of my .php file. For some reason it didn't wanted a specific line of code that works in my machine in localhost but not in the server.
>>
Redpill me on Typescript. Why should I use it now that classes syntax are available in ES2015?
>>
>>55981197
because it's not real classes and does no type checking.
>>
>>55981342
>Because it's not real classes

TypeScript compiles to JavaScript, making its classes also not real classes.

>no type checking

=== and typeof are more than enough.
>>
>>55981363
>=== and typeof are more than enough.
type checking at compile time, not run time.

>TypeScript compiles to JavaScript, making its classes also not real classes.
of course they are not real classes, but you write them like they are.

Typescript helps you get more structure into your code, if you don't care about that then don't use it.
>>
If I want to be able to write web apps, blogs, news portals, realtime chats and web games, would Node actually be a better all-rounder than Python (with Django) to focus on?

I already "wasted" my time on Rails basic tutorials and on Django's tutorial on their page, but oh well.
>>
>>55981197
Pajeets cant deal with dynamic typing

They always pass invalid data to the variables. Dont ask me how lol!!!!
>>
>>55981480
Also, are there any "big" frameworks for node like Rails or Django?
>>
How large of a portfolio do employers want to see in applicants who don't have a degree?
>>
>>55981669
3 or 4 sites or projects are enough.
>>
em or px?

I'm making a navbar for mobile.
>>
>>55962973
pretty easy. currently doing my first programming internship and it's ASP.net MVC

pretty good
>>
>>55982376
Use Sass/Scss to make a function that transforms rems and ems to px. Newer browsers and mobiles will support r/ems and older ones will use px. Don't forget to set your document font size to 10 instead of 12 so it's easier to work with.
>>
>>55981480
>If I want to be able to write web apps, blogs, news portals, realtime chats and web games, would Node actually be a better all-rounder than Python (with Django) to focus on?

Yes, probably. If you can learn to program asynchronously, since that's where Node's power comes from.

Asynchronous programming is where you get your CPU to do something, and then when you have to wait for I/O such as a disk read or a database query, you tell that particular task to fuck off to the event loop and come back when its ready for more processing, instead of basically sitting there with your CPU doing nothing while waiting for a network request to resolve. So your CPU is always busy with stuff it can actually do rather than waiting for anything.

This model is very efficient for I/O heavy tasks such as internet shit. But its really bad for computation-heavy shit.

You can implement an event loop system in any language, but Node comes with it out of the box, and Javascript in the browser also runs on the same principal. Libuv (https://github.com/libuv/libuv) is the library that Node uses for its event looping, there are python bindings for that library in the form of pyuv if you really wanted to implement an event loop in Python.

>>55981511
>Also, are there any "big" frameworks for node like Rails or Django?

I think the word you're looking for is "opinionated".

I tend to find Express is more than sufficient for the things I need to do, but that's very minimalistic and nothing like Django and Rails. Maybe try Sails.js, but I haven't tried it. Meteor is highly opinionated but is really fucking weird in the way it works, and it ties you to MongoDB which is the memeiest piece of shit database on the internet right now.
>>
>>55981669
I had a MEAN stack todo list example application, and a jQuery widget on my Github when I got my job earlier this year.

Really depends on the employer. All I'll say is just apply for jobs and see what you get, don't delay yourself thinking you're not ready because you don't have enough crap on your github. Put enough up there to demonstrate that you know what the fuck an array is and put the link on your resume.
>>
>>55982438
Ok, thanks. Good idea.
>>
File: 1.png (7KB, 652x74px) Image search: [Google]
1.png
7KB, 652x74px
So I'm testing out Oauth for my site, and it works fine in my browser.

But I prefer to use Postman to test my API. But when I try to authorize myself using postman, I get to pic related, but it never redirects. I even try to click the button to continue, but it seems like postman doesn't do redirects very well.

Did someone else have this problem? Is there a way around it? Because I would prefer to use postman rather than the browser to test everything.
>>
>>55969581
who are you quoting
>>
>>55964970
If you know either language, learn the framework. If you don't know anything, the world's your oyster. JS-based frameworks are hotness right now, but in a few years thy'll end up like Ruby on Rails, I'm not saying they're bad, far from it, but people will move on; be sceptical of the current "badass rockstar tech". Most frameworks have a tutorial of sorts, start with that, go through 2 or 3 and settle.
Ex: https://docs.djangoproject.com/en/1.10/intro/tutorial01/
>>
>>55983709
It's a good idea to learn the new memes when they come out because jobs will still use them years later.

Don't be like me just learning jquery way too late.
>>
>>55976775
I really don't want to be an ass, anon. I know it's used in the real world, but A/B testing is meme-tier statistics. That being said, if you can't serve different layouts and log relevant data in a db, and do the test in SPSS, R, python, excel (yes, excel) you're shit out of luck.
>>
>>55964970 see >>55983748
Anon, you do raise a good point, I stand corrected.
>>
File: tits.jpg (19KB, 305x400px) Image search: [Google]
tits.jpg
19KB, 305x400px
>>55963067
Anon, stop being a little bitch. If you don't wanna reinvent the wheel you'll have a framework with a bajillion 5-line files, if you wanna go light, you're gonna eventually write a shitty implemetation of a web framework.
That being said, Django can go light, just don't use their auto-tools for creating projects and read pic related. The first app is 1 (one) python file.
>>
>>55977535
>>55977594
>>55977660
>>55977717

Jesus god. Posts in a thread will have an order yes ? Even if in a tree, they must have an order.

So, first post is OP. Simple
>>
With Millennials like all you shit posting, I know my job security will be maintained for at least the next decade and beyond.

Keep being horrible and whining about making no money with next to zero social skills that get you the jobs, lol...
>>
Say there is a website that has a feature that I want to copy and edit (Navbar), what is the best way of figuring out how it works, is there a better way to view it other than source or inspect element?
>>
>>55984076
rofl, er hat lol gesagt
>>
>>55984076
Get out with that bait, boomer.
>>
>>55963253
Can also recommend Flask. When you know the basics of Django, you can adopt what made sense to you, but avoid the unnecessary bloat and stay flexible. I tried Django again after using Flask for a while, but although they have some sane defaults it is too much paradigm for me. Flask is the same libs without that paradigm, and tons of guides how to make them play together nicely.
>>
I'm trying to find a good starting point for learning node but am lost because youtube tutorials usually suck, codeacademy type of websites are also horrible.

The best way I could learn is by following some tutorial which builds something small but interesting. E.g. I enjoyed "Automate Boring Stuff with Python" and learned a lot from it. If there were something like that for Node (and Express) that would be great.

I've seen some poll app tutorial on youtube, but it's a full mean stack and I don't want to touch Mongo and Angular anymore.

I only have a small real-time chat app with Node and Socket.io I've made by following a tutorial and that kind of shit is great.
>>
>>55964970

>python/Django or ruby/Rails

It doesn't even matter, because they are similar.
Django more explicit and Ruby with moer stuff hidden under the hood.

But if you get good in one of them you have a good understanding of web framework architecture and can pick up the other one pretty fast. Most guys that switch from Rails to Django or vice versa have get in it pretty fast.
>>
>>55984310
help
>>
>>55962322
Hey Travis.
How's it going? When are we going to meetup again?
;_; I miss you.
>>
>>55984442
pardon me
>>
>>55962322

Bro I have the same fucking problem some kind of toxic perfectionism, also have a huge problem with just restarting an entire project because I feel it starts becoming all over the place and not organized or if my code isn't as efficient as it could be.
>>
>>55984461
y-you don't remember? ;_;
>>
>>55984596
I'm sorry friend, you must have me mixed up with someone else
>>
How to write a custom UI widget in the browser?
>>
>>55979872
Bing
>>
>>55979872
>Google Translate is apparently exclusively a paid service
google is gonna rape us all, they already have a shitload of power over us, and it's only going to get worse, they're investing a shit ton into artificial intelligence and robotics, fucking scary shit when you think about it
>>
>>55980200
Maybe because you are beginner who does not have enough experience to understand why writing project from zero is stupid?
>>
even with these fucking captchas on 4chan, we're providing invaluable training data for their computer vision shit, and we're doing it for free, we're essentially slaves without even realizing it
>>
Damn would I like to be an Illuminati Jew Reptilian at the top of the Alphabet corporation now.
>>
File: 1366300524911.png (5KB, 255x209px) Image search: [Google]
1366300524911.png
5KB, 255x209px
>>55985130
Hmm. How about using Javascript?
>>
>>55985382

You're either born into to it or you're a disposable possible soon to be killed gentile to them.
>>
Do i need to place a value in upload_tmp_dir in php in order to have a such thing as a
 $_FILES["blah"]["tmp_name"]; 
?
>>
>>55976897
>ausfag
Design a few sites and deploy them based off what ever the fuck you think, use them as a small portfolio, go around to the local businesses in the area and ask if they want a site made for cheap. Learn from there anon.
>>
>>55980840
I asked how to go about the problem not because I couldn't start it, but because I was skeptic over the steps that it would take to derive to the solution.

Why I said it was ridiculous is not because I believe the suggested way to go about it sounds insane, but because the steps suggested are what I was trying to avoid this entire time, believing there had to be another way other than just "generate 'random' username (patterns), test, check, repeat until 3 is found". On paper, that sounds like a naive approach but when mapping out the steps, every approach seems to do exactly that. This skeptism was what was bugging me this entire time because I really did feel there must have a been "better" way of going about it other than trial-and-error (or hit-or-miss) approaches.

The posts' suggestions have relieved much of my confusion so I do appreciate the tips given. If there is truly no other way, then I have to accept as fact that generating usernames with a trial-and-error approach is the only way to go about these type of problems (immensely useful for me to take note of).
>>
Is it okay to use Socket.io? Why yes/why not?
Some tutorials I'm going through use it so yeah.
>>
>>55986344
Socket.io is fine from what I know.

You can create a lot with it, and its pretty straight forward
>>
Is there a mobile navbar that doesn't suck?

Everything stacks or looks ugly as shit (looking at you, JQM). I can force bootstrap not to stack on mobile, but that breaks dropdowns.

I'm going to try putting a JQM panel where my bootstrap dropdown was and see if that helps.

Anyone have mobile navbars that don't look ugly? Apps have great navbars these days but, from what I can see, web devs don't.
>>
>>55986479
Copy the navbars that apps are using, and use them on a mobile navbar.
>>
someoen make a new thread
>>
>all node tutorials use mongo

Kill me. Actually no. They should kill themselves.
>>
>>55986702
>hurr mongo is bad

Just use another database then.
>>
>>55986752
Yeah, I'm not that smart yet to be able to figure out how to plug in another database while learning node. :^(

Nvm, I found one tutorial where MySQL is used, so after I learn that I'll go back to Mongoloid node tutorials and put MySQL nawledge to practice.

Btw, honestly I have practically no experience with Mango except using it in one tutorial. I just constantly hear how shit it is ("Snapchat for databases" and all that shit).
>>
>>55986805
gibe link pls
>>
>>55986805
4chan will pretty much shit on everything.

Node? shit. PHP? shit. Python and Ruby? I've heard the languages being called shit as well.

It's honestly not a big deal which database you use, unless you are making a very large application, or have something specific in mind. Every database has its ups and downs. Try using Mongoose with Mongo and you might even enjoy it
>>
>>55986832
Just finished the first two projects.

https://www.youtube.com/channel/UC8LSNmhsiy8MCHm4zK8fEnw/videos

(A big playlist with 10 projects)

He doesn't have many views but I think he's pretty good and projects are not bad.
>>
>>55986866
Btw, that project with MySQL is the portfolio one (starts here: https://www.youtube.com/watch?v=vMvU6JzSHV8&list=PLO-hrPk0zuI18xlF_480s6UiaGD7hBqJa&index=66)

>>55986856
I might give it a try then. I have more experience with MySQL though, but yeah.
>>
>>55986866
>>55986895
Why are his videos in such a clusterfuck order?
>>
>>55986968
What do you mean? They are not. Just go from the beginning then. There is always a project intro video before every project and projects scale by complexity (I guess).
>>
What do you think about Microsoft SQL?
>>
>>55986993
Oh never mind, for some reason when I loaded it the first time YT ordered the videos randomly.
>>
>>55987000
We used that in my databases class. Idk, it seemed fine by me. Honestly, I can't tell the difference between it and MySQL (at least with basic queries I use in projects).
>>
Do I put in my resume that I know SQL or a specific flavor of it like PostgreSQL? I haven't really touched any other database system but I hear they're all pretty much the same aside from a few gotchas, if I know one I basically know them all? Same with non relational databases?
>>
>>55987098
Put SQL and then put the flavors in brackets if you know more than one.
You're right about SQL though, if you master one you can learn the others easily. If you want to make yourself seem more employable, list a few variations.
>>
>>55986479
Design and code your own you fucking retard. There is nothing even remotely difficult about a responsive navigation. Don't rely on bloat like Bootstrap unless you're a backend pajeet bulding your first reddit-clone.
>>
>>55987587
I bet you suffer from hypertension.
>>
>>55987587
Packaged with Cordova. Doesnt matter what memes I use. They are ran locally.

Also not autistic so I won't be making stuff I don't need to make.
>>
having fun with php. just set up an upload feature to my hosting comp. feels good mang
Thread posts: 333
Thread images: 19


[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.