[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/wdg/ - Web Development General
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 255
Thread images: 31
File: 1466772797380.png (868 KB, 822x552) Image search: [Google]
1466772797380.png
868 KB, 822x552
'i'm too lazy to think of a new edition' edition.

> Discord
last thread: >>55236763
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/
https://www.freecodecamp.com/
http://www.w3schools.com/
https://developer.mozilla.org/
http://www.codewars.com/
https://www.youtube.com/watch?v=JxAXlJEmNMg&feature=youtu.be&list=PL7664379246A246CB [Embed] lecture series.

>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
https://www.youtube.com/watch?v=pB0WvcxTbCA [Embed] - "WATCH THIS IF YOU WANT TO BECOME A WEB DEVELOPER! - Web Development Career advice"
https://www.youtube.com/watch?v=zf_cb_Nw5zY) [Embed] - "JavaScript is Easy" - If you can't into programming, you probably won't find a simpler introduction to JavaScript than this.


>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/
>NEW!
https://scaleway.com/
>>
File: jsf-rewrite.png (61 KB, 1070x768) Image search: [Google]
jsf-rewrite.png
61 KB, 1070x768
Having got the URL rewriting to work, I think I'm done with JavaServer Faces. Probably time to move onto ASP.NET
>>
File: cWJDqFi.png (61 KB, 500x366) Image search: [Google]
cWJDqFi.png
61 KB, 500x366
anyone here making passive income off their development? any tips?

I can program full stack but fuck me if I can think of a good idea.
>>
>>55276085
Yes.

Why can't you think of any ideas? There are millions of them.
>>
File: 4lJdHU0.png (298 KB, 415x402) Image search: [Google]
4lJdHU0.png
298 KB, 415x402
>>55276306

>why can't you just {do thing}?

come on man, i know you're trying to jangle me up but you can do better than that.
>>
Anyone see something wrong with this request?

It's not throwing an error, it just doesn't return anything

  getThread(board_id: number) {
return this.getThreads()
.then(threads => threads.filter(thread => thread.board_id === board_id)[0]);
}
>>
anyone have experience with OVH? 2.4GB memory VPS server for 4.49/month
>>
>>55275813
>not using Spring
>2016
>>
>>55276350
I just wrote out a good response, but I clicked the side button on my mouse. It made me go back a page, losing everything.

Find something that pisses you off about a website and do it better.
>>
What's a good project to do in five days? I know PHP, JS, some Python and Angular.
>>
>>55276085
i trade SEO for goods and services never money

more money=more student loan payment so fuck that instead i do SEO for my landlord and others
>>
Learned a big lesson today while scraping

you have to be very sure when you are sending your requests to not misspell your data (I sent a message with 'openclass=N' rather than 'openclasses=N') in one program and wondered why it kept fucking up and I spent a lot of time and debugging tracking it down.

The other website I was having trouble with (this one is still confusing to me why it didn't work) I was sending my POST information to the wrong address. github.com/login doesn't accept the login data, it is github.com/session
it's just wierd because that isn't evident at all in the html, I guess it must be something in the javascript or css. The only way I could figure it out was by looking into the network tab.

Oh well
>>
>>55277372
Why does your landlord need search engine optimization?
>>
What's the best way to create a permanent PHP session?
>>
>>55278223
You don't. Use cookies if you want information to persist over a long period of time.
>>
>>55278132
SEO is pretty handy for many companies in getting exposure on the internet when someone searches Google or Yahoo.

SEO is also easy to market to people. The difference between a site without it (plebtier) and one with it is thousands of dollars
>>
>>55277118
Make a blackjack or poker game that calculates the chance of winning. Store card objects with images/name/number value etc on a sql server and have the deck deal them straight off the server.
>>
File: laravel.png (4 KB, 358x65) Image search: [Google]
laravel.png
4 KB, 358x65
I asked this the other day but didn't get a response.
I'm learning Laravel and I realize it's much easier to bypass Controllers and carry out certain tasks directly when the route is called. Is this totally unacceptable?
I know the whole MVC workflow should involve all three angles, but this is just easier.
>>
>>55278363
I understand that. I guess what I actually should have asked is do you only focus on SEO?
Secondly, if you're not servicing your student loan debt won't that fuck you over in the long run?
>>
>>55278446
Im not the original guy lol. But no I dont only focus on SEO, I build complete websites for restaurants, lawyers, etc. Trying to land a big fish tech company right now for a 25k contract. SEO is a HUGE selling point, along with data mining kek, even though the companies' marketing depts. probably dont do shit with it, as most marketing depts. are retarded
>>
>>55276491
uses typescript, kill yourself
>>
>>55278497
It's Angular 2 so I don't have a fucking choice
>>
How do i make my websites look good?

Where do i find pre-styled forms, buttons and everything?

I just don't want to spend time styling my website.
>>
File: JudgeFeel.jpg (8 KB, 208x250) Image search: [Google]
JudgeFeel.jpg
8 KB, 208x250
>>55279058
look up css libraries anon
>>
Why is THIS so confusing?
>>
Does it make sense to add a CDN to a low visitor website?
>>
>>55279129
no
>>
>>55279194
even when the webserver is frequently likely to go down?
>>
>>55279245
if your webserver is "frequently likely to go down", you're doing something wrong and a CDN won't fix it
>>
When does the suffering end /g/? Guess I'm just not passionate like I should be for this career, but this is all so boring to me. Maybe it's just the cubicle life. Anyone actually work for themselves here?
>>
>>55279252
idk i can't figure it out ;_;
i do everything that the docs say but apache just chokes itself for no apparent reason at all
>>
>>55279058
Lazy retards like you are contributing to the generic cancer that modern websites have become. http://everyfuckingwebsite.com
>>
Finally perfected my running script for notepad++

Shortcut Command (best set to ctrl+d, I find):
F:\Programs\Python\Running Script\run.bat "$(CURRENT_DIRECTORY)"


Code for Batch File:
@echo off
ECHO.
SET _DIR=%1
SET _DIR=%_DIR:~1,2%
%_DIR%
cd %1
python main.py
pause


this gets around the need to include a batch file with every python project and with just one hotkey you can run any open project you might have
>>
>javascript

What do you think? It's evolving some really neat features, but the entire ecosystem still turns me off.
>>
>>55277980
>it's just wierd because that isn't evident at all in the html, I guess it must be something in the javascript or css
>reverse engineers a website login form
>doesn't look at the other linked assets
>doesn't even visualize network activity

Use a headless browser. That's more up your alley.
>>
>>55275813
>JavaServer Faces
>ASP.NET
go neck urself pajeet
>>
>>55279486
Good christ this raised my BP

Reintroducing sanity

http://motherfuckingwebsite.com/
http://bettermotherfuckingwebsite.com/
>>
>>55281265
It's fine if you ignore the ecosystem. Use minimal and only time-tested libraries and write your own code as much as possible.
>>
File: Capture.png (11 KB, 499x110) Image search: [Google]
Capture.png
11 KB, 499x110
>>55281284
Oh I did 'visualize it' it was just I just didn't verify the url the POST data was being sent to

see most sites I've forged logins for accept POST data from their login screen while google and github do not
obviously I'm not logging in here but the url area is the same
>>
>>55281348
It's what I was doing with private git repo NPM packages. It's just... I keep hitting bottlenecks that remind me constantly of how unfinished the whole thing is.

I think I should just switch to Python or something...
>>
>>55281391
Oh, you mean for backend? I honestly recommend Go. It is not much harder to learn or write than Python. Very opinionated, but that leads to readable and maintainable code. I can not imagine looking at the source code of a random JS on Python lib and instantly deciphering what is going on. And performance is pretty good, but there is a new compiler backend coming out in 1.7, which should make it faster as more optimisations are written.
>>
>>55281458
When I looked at Go, the libs I needed simply weren't there man. HTML parsers, libgit2 bindings, uhh all sorts of stuff I've needed. At some point I got crazy and thought "oh hell I'll just make those libs and maintain them myself" and then reality came back to me and I also realized if I was willing to do this I'd probably be writing in standard Scheme.

Right now I'm sitting on top of a lot of ad-hoc tools built on a lot of languages and the code generally doesn't talk to each other or integrates well. So I thought "hey, any serious library with bindings is written in C due to its god tier ABI. I should write in C" and then I started rewriting it all in C, but when I wanted to link all my stuff I ended up essentially writing an entire build system on top of Make -- a lifetime of work on its own

I just don't know what to do with all this crap anymore, I feel pretty depressed, /dpt/ wouldn't help
>>
File: 1463260865856.jpg (74 KB, 707x682) Image search: [Google]
1463260865856.jpg
74 KB, 707x682
>html video offers loop out of the box
>the loop has a 0,5s-1s delay with every browser on every device
bravo.
>>
>>55281489
Oh and by "weren't there" I mean there were like 3-5 concurrent projects every time I searched providing the same thing and I hadn't the least inclination to find out which one was the most stable, because of course none are stable. You know, the kind of thing that Lisp had going since decades ago. Not nearly mature enough

I'm tempted to try Haskell but every single time I go to the stupid package manager pages it's the same bullshit, lots of unfinished packages, I can't count on anything being good or living up to their promises.

The most productive platform I ever invested time on was actually the JVM... .NET CLR is probably on the better side also. But they're so inconvenient.
>>
>>55281489
The library scene for Go has matured greatly in the previous years. An HTML parser is now part of the standard library and there are libgit2 bindings available. Binding to C has become a lot easier since 1.6 in general. You can now with some restrictions easily pass Go memory to C and vice versa.

/shill

But if you need supreme maturity, then C# definitely sounds like the best choice.

>>55281502
Looped fine for me, when I tried it. I think that's a fault of your specific video. I remember reading it had something to do with keyframes, so reencoding properly should solve the problem.
>>
>>55281566
Only thing I found in regards to looping and keyframes is that it helps to encode every frame as a keyframe.
top kek.
>>
>>55281566
Hmm. When I checked it out I remember it could barely talk to native ABI libraries due to the compiler and its runtime. Must've been quite some time ago, I don't remember the exact version.

I should give it another go. What do I need to become productive in Windows 8 right now? Since you're a Go fan, I have some questions.

The VCS-based imports were always confusing for me because its decentralized. What URL am I supposed to put in there anyway? My code is hosted in multiple places, I often have a public github repo and a private bitbucket one. What if the dev puts up mirrors? It feels like a completely irrelevant implementation detail was sucked into the language, making me make useless decisions. I would have appreciated a more symbolic approach that lets me import libgit2 rather than github.com/libgit2/libgit2. Why was it done this way

How do Go libraries work? Back then I couldn't figure out why. Everything seemed to end up as a binary blob running on top of Go's runtime. I love making tons and tons of libraries so I need to understand how it works. How does Go link its stuff together?

Do goroutines support actual concurrency or are they just coroutines? I remember asking myself that back then. I read about the runtime's allocation of code to threads or something of the sort, but never reached a conclusion.

They have a "rune" type. How good is the Unicode support anyway? "Strings are byte arrays" good? "We know the difference between UTF-8 and codepoints" good? "Our functions take locale into account" good? ICU good?

If I daemonize a Go process, can I expect it not to shit itself randomly and unfixably as is the case with unreliable bullshit such as Node.js

>C#

Yeah it's a really neat language that left Java & the rest of enterprise quality behind ages ago. It's just I'm not sure how to write open source software on top of it, nor how to make Unix software using it. Not really interested in Windows development
>>
How much AngularJS is written in bigger business applications? How hard is it to do that job?
>>
>>55281708
>What do I need to become productive in Windows 8 right now?
Most editors have some kind of Go plugin. https://github.com/golang/go/wiki/IDEsAndTextEditorPlugins You will likely want automatic formating on save and a linter.
Or, if you want a dedicated IDE, try https://github.com/visualfc/liteide

>What URL am I supposed to put in there anyway?
The URL of the website and repository. `github.com/libgit2/git2go` as an example.
>What if the dev puts up mirrors?
https://blog.gopheracademy.com/advent-2015/vendor-folder/
>Why was it done this way
To prevent naming conflicts. Any site that implements the meta info for go get to parse can be used directly with go get. This makes all repository URLs absolute and allows to easily refactor directory structure.

>How does Go link its stuff together?
Compiling a library produces an intermediary binary, which is stored in $GOPATH/pgk. This binary includes all of it's dependencies in it. When you link against this library, the compiler extracts the parts, which the dependant needs, and includes them in the dependant's binary. But my knowledge on the actual workings of the compiler is really basic.

>Do goroutines support actual concurrency or are they just coroutines?
There is a distinction between goroutines, coroutines and green threads, so a new term was coined to avoid confusion. http://stackoverflow.com/a/18061564/2420900 should clarify that. The runtime multiplexes goroutines onto OS threads by running them until they reach a communication breakpoint, such as a channel communication or mutex. Then it runs some other goroutine on the thread.

>They have a "rune" type
Yes, it's just a convenience for using UTF-8 characters. Internally a rune is equivalent to a byte aka uint8 of that specific value.
>How good is the Unicode support anyway?
UTF-8 is native to the language. Strings are UTF-8 and you can write code in Japanese.

>make Unix software
Yeah, not exactly something C# is fit for at the moment.
>>
>tfw get a low paying work at home gig
>tfw after few days don't feel like working anymore
i thought it was going to be good /wdg/
>>
how can I make a canvas content to resize with screen size? I used just css now and it only resizes the canvas window along with the div but not the content
>>
is javascript stackless?
>>
>>55283433
is your mum stackless? cause i'd like to pop her stack if you know what i mean
>>
>>55283433
No.
>>
Is hosting and securing a site hard? I've only ever screwed around with front end stuff but I'm thinking about building a personal site.
>>
Why should I use the event object instead of 'this'?
>>
>>55284147
No.
>>55284783
Had habit, which can lead to bugs at times.
>>
>>55284983
Which is the bad habit? This or the event object?
>>
>>55284998
this
>>
>>55285015
which one??
>>
>>55285099
that
>>
>>55285015
For real? I assumed using this is much easier and efficient than using literal notation all the time.
>>
>>55285188
I'm reading that if you pass parameters to the function, the this doesn't work like it's supposed to, so you have to rely on the target property of the event object.
>>
http://practicaltypography.com/
>>
>>55283433
Do you even know what a stack is
>>
>>55285433
lol what an asshurt idiot. not only he's whining because hosting "isn't cheap" (it's a fucking static webpage with no images whatsoever) but he even takes the time to shame the user for being cheap bastards and not wanting to pay something that's freely available.
>>
>>55281502
small videos loop just fine (imgur mp4s, etc), no delays or lag, at least on firefox
what is your setup? some 1gb video on a android phone? the os/browser might be swaping the start of the video to disk and it takes a few milliseconds to reload it again to ram for replay
>>
I've built a search API in express. Every time a search is made, it logs the search term and the time the search was made to a mongo database.

I want to show the 25 most recent searches upon request.

The pseudocode in my head looks like this:
- make request for most recent searches (i've got this sorted out)
- arrange searches in descending order of most recent to oldest
- remove any entries in the database past the 25th most recent entry
- present the list

So, the database could have built up say, 30 stored entries since it was last queried for recent searches. At the moment it is queried, it is arranged from most recent to oldest, and anything past entry 25 is removed from the database before the entire entry list is presented.

Is this possible? How would I go about doing this?
>>
>>55283292
No one wants to work a low paying job.
>>
>>55286346
use
.limit(25)
on the query
>https://docs.mongodb.com/manual/reference/method/cursor.limit/

also
>mongoloidDB
vomitchan.gif
>>
>>55286733
>>mongoloidDB
>vomitchan.gif

What's the problemo famalam?
>>
File: 1431556249623.gif (2 MB, 250x188) Image search: [Google]
1431556249623.gif
2 MB, 250x188
>have one of those days where you feel like you're finally starting to see the matrix and getting shit that you never thought you would
>follow that up with a day where you're completely lost and it makes you feel like you know nothing at all
>>
>>55286768
Mongo is famous for corrupting data in all kinds of ways. Only hipster meme sniffers use it in production.
>>
Anybody here used electron? did you like it?
>>
>>55286836
https://www.youtube.com/watch?v=I8piMHsOya4
>>
I'm looking at the intro stuff for webdev and can't help but feel that it doesn't actually explain why something should be done a certain way, what good web code looks like or which solutions are preferable for which problems.

Should I just start forcing myself through Code Academy despite my misgivings about the material or is one of the other Learning Material links particularly superior in your guys view?
>>
>>55288176
codecademy is the only shit i can get through without wanting to lay down and take a nap tbqh
>>
>>55288176
Just use the mozilla and w3schools link and start building.
Doing stupid assignments from codeacademy takes way too long. Learning by trial and error is better.
>>
>>55288195
>>55288417

If you want to be a novice who builds things by throwing sand on a pile, then just learn the syntax and hack shit together.

If you want to be a software engineer, you should learn computer science fundamentals.

Khan Academy is a good start for beginners.
>>
what's a good book similar to clean code specifically for javascript?

I swear to god I try to write good code but in javascript it always looks like shit to me
>>
The handlebars implementation I use doesn't support referring to a parent element when inside an element (e.g. in a loop).
I want to setup a block of links to browse through pages, so I have
{{#payload.pages}}
<a href="/{{payload.this_page}}/{{.}}">{{.}}</a>
{{/payload.pages}}


Is there any way to either refer to the current page in html (similar to setting <base> but without doing so, as it would mess up other links), force the parser to yield the correct entity, or to insert a "safe" string that I can manually modify after the render pass?
>>
Was hoping to buy a cheap server that I could use for node dev and misc web server stuff. What would you guys recommend?
>>
>>55289726
https://www.heroku.com/
they also have a free tier, but you have to have 6 hours of downtime a day.
>>
What's wrong with this:

imgCollection.find({}, _id: 0).sort({when: -1}).limit(25)

mongo shell is telling me there's a syntax error;
"SyntaxError: missing ) after argument list"
>>
>>55290215
Nevermind I've got it sorted
>>
how can I make a link or div as button from css?
>>
>>55290384
Wouldn't recomend that. Use the <button> tag then style it accordingly.
>>
>>55290456
why not? I have a link created from js and the function wont work if I make it button from js
>>
So let's say I want to ditch PHP but there's no readymade shared hosting for the stacks I want (vert.x on a JVM for example)
I then bill a VPS, deploy the app in a container and let it be

A PHP app on a shared hosting will never crash, but my Docker JVM app will most certainly crash at some time : what if I don't want to cope with this ? I can't play the sysadmin for dozens of clients
>inb4 write good apps they won't crash
>>
>>55290482
You'll be doing unnecessary work, and its not good for SEO.
If you have to choose between making a div or a link a button though, do it with links. Styling a div as a button is too fucky.
https://jsfiddle.net/3ea9swm7/
>>
>>55289619
'Javascript: The Good Parts'

>http://bdcampbell.net/javascript/book/javascript_the_good_parts.pdf
>>
>>55290578
Very good book senpai. I recommend it.
Made me less pleb.
>>
http://codepen.io/anon/pen/BzWzQw

Learning JS with Eloquent JS and some videos. Rate my checker exercise.
>>
>>55290492
monit and and stop being pajeet
>>
>>55290951
>monit
yeah but then I gotta bill a monitoring
what happens when I bury myself under 20 websites or more
>pajeet
nodejs is pajeeter than vert.x famalam
>>
>>55291033
>yeah but then I gotta bill a monitoring
What?
>what happens when I bury myself under 20 websites or more
Nothing.
>nodejs is pajeeter than vert.x famalam
Who the fuck even mentioned Node, Pajeet?
>>
>>55291078
>Who the fuck even mentioned Node
what do I use for async / multithreaded shit then ?
fucking Erlang ?
>>
What languages to use server-side without OOP, and don't need something like slowcgi?

If webdev == OOP I might as well be a PHP pajeet.
>>
>>55291128
clojure on JVM
>>
>>55291124
Go, Elixir or Erlang. Node is only good for writing light JSON APIs.
>>55291128
Go, Elixir or Erlang.
>>
File: 1417735371097.jpg (63 KB, 392x398) Image search: [Google]
1417735371097.jpg
63 KB, 392x398
>>55291150
>Erlang
>>
How long after leaving college should I wait before contemplating suicide because I can't get an IT related job?
>>
>>55291972
Make projects/portfolios and go freelance.
Don't be a sperg and talk to people around you to advertise yourself.
>>
>>55292022
I'm trying to do that now. Its been a few months since I left. I've always heard people say how easy it is to get jobs when you have a degree, but I'm finding it incredibly difficult.
I didn't graduate with honors, in fact my GPA is a slightly above average 3.0 on a 4.0 scale. Maybe that's my problem - I have no honors or extra curricular activities to put on there. I'm depressed because my life is pretty shitty and I'm typing this from a fucked up Compaq laptop with a fan that sounds like an engine, 3 missing keys, broken hinges, and plastic that crumbles if I try to move it.
When people would say they're depressed I didn't think much of it, now I know what it feels like and I can't handle it. Sorry for the rant i dont really have anyone else to say this to.
College was my way out, I just expected more by now.
>>
>>55292211
Don't be ashamed to work at mcdonalds or walmart just to support yourself a little bit.
Its tiring but yeah thats life.
>>
>>55290384
Use onclick
>>
>>55285111
and the other thing
>>
I have a table that contains information about threads, including the thread title. I have a table that contains information about posts, including when they're made (cdate) and the thread they belong to (tid, references threads.uid). I want to perform a query that returns the list of threads in bump order using postgresql, so the following limitations apply:
-all select entities must be in group by
-all having entities must be in group by
-all distinct on entities must be in the exact same order as in the order by clause
-all order by elements must be in select
How do I do that? A simple join doesn't work because obviously I get duplicate rows, I can't select distinct on the thread's uid (i.e. post's tid) because then the order by restriction breaks, etc.

I don't want to go with
SELECT tid, cdate FROM posts AS a WHERE cdate = (SELECT max(cdate) FROM posts as b where a.tid = b.tid) ORDER BY cdate DESC;

because it's slow as fuck.

Suggestions?
>>
>>55292522
>(SELECT max(cdate) FROM posts as b where a.tid = b.tid)
is cdate a date? if so, wouldn't it be ordered already? then you don't really need max(cdate), no?
>>
>>55292522
just add a "last bumped" column to the threads table and update it when a post is made. makes it easier to implement saging too, and prevents a thread from magically dropping lower on the board if a post is deleted.
>>
>>55292661
>is cdate a date?
Yes.
>if so, wouldn't it be ordered already?
That's not how sql works.
>then you don't really need max(cdate)
Max(cdate) is group-wise, where groups are emulated along tid by the a.tid = bid constraint.

>>55292694
That's a good point actually.
For exercise's sake, I came up with
select t, m from (select tid as t, max(cdate) as m from posts where bump = 't' group by tid) as a order by m DESC;

which I think would be slightly faster.

I think I'll just go with a "last bumped" column though.
>>
What does /g/ think of Coffeescript?
>>
>>55292972
Dated. That train already left the station
>>
Any good advanced videos for javascript or php?
I tried watching some of this guys stuff, but his way of doing things is very confusing and annoying.
https://www.youtube.com/watch?v=riDVvXZ_Kb4
>>
Okay, here's a little poll to see if every one this thread is full of shit and giving people false hope

Who here as has actually landed a job in web development with no prior experience or a computer science degree?

Location:
Field (Backend/Frontend/etc):
Experience:
Pay:
>>
>>55293429
>false hope

We just had a guy land a job in the last thread. People are getting interviews all the time including myself (recently).

This isn't really a college degree field. Same as photograph; a portfolio is more important.
>>
File: 1441328284770.jpg (25 KB, 236x236) Image search: [Google]
1441328284770.jpg
25 KB, 236x236
I just sat down and learned HTML5, CSS, and JavaScript over the last two weeks or so. I have a website up, and I have figured out how to use CGI to run compiled programs on my server.

My question to you guys is what would be the next step in learning about website. Database stuff like SQL? For a small site that seems like overkill, but running my cgi-bin example visitor counter, it's apparent simply file-locking probably isn't the most sophisticated way to store data lots of people can get at simultaneously.

Also, why are PHP, Perl, and Ruby so popular? They seem like horrible languages. Why don't more people do server-side scripting with compiled languages like C?
>>
>>55293646
>My question to you guys is what would be the next step in learning about website.

Naturally I'd tell you to learn SQL, but you're not into that. Since you already know JS pick a front-end framework and learn it. Angular, React, etc.

>Also, why are PHP, Perl, and Ruby so popular? They seem like horrible languages.
Fuck Perl, nobody worth their weight in salt uses that anymore. It was somewhat popular once but not anymore. PHP is as simple as it gets - very easy to learn and use but also easy to write horrendous code without much oversight. I'm not too sure about Ruby, I only have rudimentary experience with it.
Pick NodeJS for your back-end, I think you'd like it.
>>
>>55293646
>They seem like horrible languages.
and your two weeks of experience gives you this impression of languages you don't know how?
>>
>>55281303
>http
How is this still a thing?
>>
so i've got an array which is in json format and i've got a few questions

>if it's in json format (verified this by putting it through a few different json viewers online and all of them being able to read it) do i still need to convert it so a json? because trying to print out the array values by e.g. array[category] is not work.
>if i do need to convert it how would i do that? considering json_encode(string) accepts a string when i have an array
>>
>>55293646
Ruby is god-tier. The reason it gets a bad rap is because its most common usage is for the clusterfuck that is Rails.
>>
I *think* I finally understood the meme about RoR """"programmers"""" and """"hackers""""...
RoR seems to be thought and made for people that don't really know much about programming, but can "code" a "webapp" from the command line and make an html5 "program", without caring much about the backend

is this correct, /wdg/?
>>
>>55294805
Why not try it yourself?
But to answer your question, you have to decode it to put it back into a usable array format.
>>
>>55295005
yes but the problem is to decode it it needs to be a stirng as mine is an array
>>
(717) 572-8155
>>
Is taking that HarvardX CS50 worth it? or is it better to start on some of these other sites?
>>
File: juLtjDo.gif (2 MB, 387x409) Image search: [Google]
juLtjDo.gif
2 MB, 387x409
>>55294458
Well, at least I see the point in database stuff due to the unique issues that go along with concurrent access of files by an unknown amount of people at any time. And I am interested in dynamic webpages using server-side scripting. Perhaps SQL really is the next step.

Can you tell me why I would be interested in a framework? It seems like I can do anything I want pretty easily having figured out how to pass data to the server, process it with some C, and return a resulting HTML document to be rendered by the browser. I don't see any need for more complexity. Same thing with a backend, why would I want to use NodeJS?

>>55294732
Hit a nerve I see. Keyword 'seem'. And fyi I have 0 weeks experience with these languages, but reading about their paradigms, quirks, and communities gives me a bad feeling, and I see no advantages, just a lot scripting languages. The only thing I see notable about something like PHP is that you can embed it into an HTML document that I assume you can have your server automatically process and serve the result.

I come from the low-level computer science crowd and have a lot of experience with statically-typed C/C++. More recently I have been working in a lab that only speaks dynamically-typed Matlab, and have developed the software that runs our demanding experiments and simulations. I've learned a lot about myself in the past few years.

The short of it is I detest dynamically typed languages because I have discovered I rely heavily on declarative, statically-typed languages for their self-documenting nature, type-checking, and compiler errors for writing reliable code. For this reason (and others), I find JavaScript saddening, but I'm willing to deal with it if it is THE standard in browsers. However I see no reason to use scripting languages outside of the browser. I am willing to write more lengthy programs if it helps me write more correct programs, scripting languages be damned.
>>
>>55295014
Then it's not proper json. Some things can be read as json, but not actually be json.
>>
>>55295260
You didn't hit anything, it's stupid to assume things with just 2 weeks worth of knowledge.
>>
>>55295750
Didn't read past the first sentence I see.

Tell me what's so great about them.
>>
>>55291972
it's been 3 years for me and i've been contemplating it since last 2. Still haven't done it though. I've even given up on learning at this point. Idk why i come here.
>>
How should one communicate with their webdesign customers?

If someone orders a website from you (say, via freelance), can you communicate with them only via email? I'm too shy to communicate with complete strangers over chat/phone, because I'm afraid of saying something stupid when I communicate spontaneously, whereas I have enough time to think about what I'm saying when I'm writing an email.
Can I still freelance and make websites for others if I just communicate via email about the website?

What are currently the expectations of communication in freelance? Does somebody like me stand a chance at all?
>>
>>55296065
Consider making a list with all possible questions and answers. Having rehearsed answers makes life a lot easier.
>>
>>55296226
But can I only communicate with them via email?
>>
>>55296256
It's a choice you have to make. It's a service that clients appreciate. But technically you can manage your business however you want.

It also depends on who your clients are. Big clients expect a sales representative to come over. Small clients might just want good value for their money. So it depends on your audience.
>>
>>55279309
Check your log files.
>>
>>55296065
Join toastmasters you fucking faggot.


Grow a little.
>>
Which is the best language for real time applications? Or at least one that does a decent job and isnt shit
>>
>>55295879
Nobody here feels any need to defend the established standards of the web to a sophomore CS major who thinks he's hot shit.

If you want to write web apps in assembly, off you go, but I hope you're not planning to ever work in the industry.
>>
>make female profile on github
>fork a ruby beginner exercises repo and do the hello world one
>1 week later

"Hi Xenia,

We have analyzed your open source contributions on Github and we think that you could be a good fit for the position as Backend Engineer at FindHotel (http://company.findhotel.net).

...The salary ranges between €50.000 and €70.000, depending on your experience and skills and, if needed, they will sponsor your Visa.."

My real profile has 2 decent rails applications and I've never had a recruiter contact me. What the fuck seriously
>>
File: duane.gif (2 MB, 195x130) Image search: [Google]
duane.gif
2 MB, 195x130
>when you are stuck for days and see the solution in your dream
>>
>>55297380
How realtime are we talking about?
Fast paced game server tier: C++/Erlang
2-10 ms pauses are fine tier: Go
Minimal processing chat tier: Node

>>55297591
Welcome to the matriarchy.
>>
>>55297674
Sort of custom "matchmaking" for games like LoL etc. It doesnt have a lot of data, mainly just moving users in arrays around and of course the chat.
>>
>>55276491

Since when can you have a statement execute inside a functional block that has already returned a value..

If this is typescript, then I want nothing to do with it.
>>
>>55278392

Depends, logic should only be loaded into your controller if it's part of the MVC life cycle. If you are just populating fields once a route has been called, then there's no reason you can't just run a one off process.

Probably not best practice but not unacceptable.
>>
>>55281502

Trick is to overlap your last 5 seconds with your first 5 and fade the video in and out.
>>
>>55297696
Then Go or Node with Babel for async/await. I also highly recommend RethinkDB for anything that needs update feeds.
>>
Are there any learning resources for web application event logging? I'm talking about logging what users do, like when they change their passwords, when they delete resources, etc. Most of the things I come across just talk about error logging, which I already have a grasp on and am using tools for.
>>
>>55297748
Thanks, ill look into a good mvc framework for node
>>
>>55296028
iktf
>tfw being alive is less expensive and less painful to your family and friends than the alternative
>mfw there is still no deneuralizer available so i could just "go" like i've never been here
guess that's enough depression for the day, back to the text editor

>>55297591
oh god, plz be a joke
>>
File: 1464433025973.jpg (13 KB, 395x395) Image search: [Google]
1464433025973.jpg
13 KB, 395x395
>>55278534
Angular 2 makes me want to kill myself
Use it for my job
>>
>>55276491
isnt that just returning an empty promisse?
try encapsulating the stuff inside the then() in an anon function
>>
File: 2831598_king_bugs_bunny.jpg (26 KB, 529x399) Image search: [Google]
2831598_king_bugs_bunny.jpg
26 KB, 529x399
>>55293429
Was in cs for 3 years, landed internship and was a god so I got full-time big money job without having to graduate.

As long as you can produce business value to someone will pay you.
>>
>>55297591
It's 2016, shitlord! Check your white cis male privileges!
>>
>>55297591
I'm a black web/software dev, can I cash in on this minority bubble too?
>>
>>55299288

dress like a hipster and put a photo wearing thick rimmed glasses on your resume
>>
File: ron-paul-its-happening-animated.gif (960 KB, 312x213) Image search: [Google]
ron-paul-its-happening-animated.gif
960 KB, 312x213
>>55275569
>https://blogs.msdn.microsoft.com/webdev/2016/06/27/announcing-asp-net-core-1-0/
>>
>>55297380
Rust.
>>
File: pDp8BEP.png (409 KB, 1000x3392) Image search: [Google]
pDp8BEP.png
409 KB, 1000x3392
Current state of web development in a picture
>>
>>55299620
.net core 1.0 is absolutely unusable. Maybe in 2 decades it will finally be usable - but only on M$ platforms.
>>
How do I write a proposal for a website-redesign? This company is looking to revamp their site and asked me for a proposal.
>>
>>55295260
lmfao. go write it in c then
>>
>>55300357
It strongly depends on the company. You can probably write "plz change i dun liek it" on a napkin while drunk in a lot of companies. In others, you'd have to produce a document backed by some amount of research and citations.
>>
>>55295260
Just use rust already.
>>
>>55300357
Take screenshots of their current website. Point out which parts suck. Use articles and statistics to prove why they suck. E.g. this slider is bad for conversion or this menu is bad for mobile navigation because of x or y. Then lay out your ideas for the problems and give a brief introduction of how they would solve said problems.
>>
>>55300178
Problem: JS.
Solution: Elm, clojurescript and friends.
>>
Bruhs,

How do you style your react components?
>>
>>55300548
>solution: compile a better language to javascript
>problem: async is still a nightmare
>problem: machine generated output is more difficult to debug
>problem: grunt.
>problem: javascript still doesn't do everything
>problem: ballooning project size and complexity
>problem: output runs very slowly on mobile devices
>>
>>55297414
> Bad community [X]
You aren't waylaying my concerns. I have no intention of developing websites for a living. I graduated and moved on from CS years ago and use a computer as a tool in my research, not a means unto itself. I'm just interested in making a personal site.

The established standards are a hodgepodge. For instance, I don't think anyone could seriously defend JavaScript beyond saying that its a browser standard that a lot of code has been written for and a lot of people use, those being features of the community and not the language. Even W3 admits it's riddled with bad design choices, as any language developed and implemented in 10 days would be.

That being said, I am willing to try other languages if I feel they offer something genuinely different, but am extremely skeptical of adopting things just because they are standards, my JavaScript example being a case in point.
>>
File: cljs-breakpoint.png (24 KB, 647x275) Image search: [Google]
cljs-breakpoint.png
24 KB, 647x275
>>55300588
>>solution: compile a better language to javascript
>>problem: async is still a nightmare
core.async (which callbacks?)
>>problem: machine generated output is more difficult to debug
I have no idea how the fuck they do it, but I can actually set breakpoints in cljs code in browser. Freaking magic.
>>problem: grunt.
What grunt?
>>problem: javascript still doesn't do everything
Huh?
>>problem: ballooning project size and complexity
Google closure compiler.
>>problem: output runs very slowly on mobile devices
No idea, honestly, but [citation needed]
>>
>here's how you do literal notation
ok
>here's dot notation
ok
>here's bracket notation
why
>>
How important is it to setup If-Modified-Since support on my server? Can I get away with just having a caching layer running between the requests and server?
>>
>>55300446
>>55300471
Thanks, I'm almost done. How should I present the cost estimate? Should I break it down in any way?
>>
Probably going to get shit for this but I'll ask anyways.

I'm just a high school senior trying to build some websites (for fun). I'm learning HTML, CSS, and JavaScript for now. I just feel overwhelmed though, how do I make all of this tie in? Of course, I'm not done learning them all yet but I feel as if I'm not sure where I'll start afterwards.
>>
>>55300577
https://github.com/JedWatson/classnames
>>
>>55300178
how much does the govrnment of india pay you to come on here and imply that php/python are less problematic than javascript?
>>
>>55300548
>Elm

>>55300588
>>55300178

Those
>>
>>55301313
You can start small. HTML is basicly the most simple construct of your website. Buttons, text, lists etc.
Start small and try to build a simple website with that.
CSS is basicly the design of your html website. After you have something solid in HTML, make css file and include it and then try to do something with it. Change colors, then format some stuff around, try to add borders to your navigation etc.
JavaScript is basicly client side manipulation, take a look at stuff like jQuery and for what its used after that
>>
>>55300178
I fucking hate this shit.

You niggers would want a perfect language that does let app = makeMeAnApp();
app();

That wouldnt be too complicated for you
>>
>>55301655
I'll write my own scripting language, it's gonna be great, it'll be the best. We are gonna make web devolpment great again!
>>
Im too fucking sperg to call recruiters back.
>>
>>55301310
Yes.
>>
>>55301655
Or maybe we want a non-shit language like oh, I dunno, literally any other language ever invented.
>>
>>55302041
Then invent it you fucking cuck Bernie supporter.
>>
File: standards.png (24 KB, 500x283) Image search: [Google]
standards.png
24 KB, 500x283
>>55302238
>>
>>55301655
No. We I want to write vanilla and all these memeworks as requirements fucking suck.

It took me 15 minutes to post this because some CP nigger got every sprint IP banned somefuckinghow
>>
>>55302238
>invent a language that's already invented
How high are you?
>>
>>55297591
I think you are on to something here...

if the tutorials arent highly questionable uncommented spaghetti messes and thats what gets you jobs.....

you aren't cut out for the workforce! Kill yourself!
>>
>>55302301
>one easy to read line of code is too hard
>i want to write vanilla
We need this stickied. PHP/Python tards are not memes these fuckers are real.
>>
Building a web app for my master's dissertation relating to financial forecasting.
Rate my Stack:
React.js
Flask-Restful

Yes it's that simple: stop fucking around! build your stack to high, and it will become unstable!
>>
>>55298012
Can I ask a question all memes aside why is forcing strict types so important?

Its never come up for me at my job but what do I know I didn't go to college.
>>
>>55302350
> he doesnt realize how fast frameworks die

I found the no-dev, everyone!

The "in" framework dies every few years and is replaced. Vanilla never dies, just gets covered by the bodies of dead frameworks.
>>
>>55302375
Because about 50% of bugs in practice are related to unenforced typing. Instead of tripling or more your program size and spending over ten times as long tracking down all bugs, you could simply use a type-checked language. Which would YOU rather do?
>>
>>55302315
hes alt-right he literally cant do anything but spout buzzphrases like cuck
>>
>>55281265
JS is nice, but you lose out on accessibility and all the people running with Javascript turned off.
>>
>>55302411
How complex does a web app have to get to bring about these issues?

Are we talking most single page apps or only people who are trying to write 3D games in js?
>>
>>55302462
>How complex does a web app have to get to bring about these issues?
Anything beyond about 500 slocs should start displaying such issues. Anything beyond 2k slocs should make these issues omnipresent.
>>
>>55289916
Google firebase, Redhat OpenShift, and amazon aws, all have free tier. If you have a .edu email aws has an insane free plan you should check out.
>>
>>55302417
> not being alt-right

It's like you hate having fun.

You can stick with Castrating Clinton or Berlin Slanders if you wanna.

Hipster devs suck ass.
>>
>If an array is created using a literal in a top-level script, JavaScript interprets the array each time it evaluates the expression containing the array literal. In addition, a literal used in a function is created each time the function is called.

Can someone explain this to me in simpler english?
>>
>>55302616
what is fun about literally thinking you are smarter than every black person ever

It just makes you into an embarrassing failure that drags down the whites who arent italian jewish slavic hybrid shit tier retards
>>
What the fuck is going on itt?
>>
>>55302718
Translation: JavaScript retarded
>>
>>55302925
Stormy Weather :^)
>>
>>55302805
>what is fun about literally thinking you are smarter than every black person ever

No one cares about black people. The alt-right is no exception. This statement was never made by me nor have I heard it anywhere related to alt-right. We are fed up with your annoying shit though. You have all the welfare and college programs and can get jobs based on diversity quotas and us white folk have nothing. Yet you bitch for more and more.
>>
>>55302718
You construct a new array with the bracket notation such as
[1,2,3]
each time the function is called, if it is not in the global scope. And it should not be 99.99% of the time.

This however matters little in modern JS engines as that shit is inlined as constants.

>>55302932
Name a language that caches non-top-level constructed objects.
>>
>>55302997
>if it is not in the global scope. And it should not be 99.99% of the time.
What? Weren't we supposed to avoid declaring shit in the global scope?
>>
>>55303016
Exactly.
>>
So the only catch with openshift is that your app idles after 24 hours? No need to insert private information to signup or anything? No account expiry or max hours per month?
>>
>>55302997
>Name a language that caches non-top-level constructed objects.
Rust.
>>
>>55303065
On the language and not implementation level?
>>
>>55303088
Variables with static lifetimes are actually put in .text at compile-time, so if you have
pub fn dicks() {
let x: &'static str = "suck 'em";
}

dicks();
dicks();
dicks();

The string is actually constructed a grand total of 0 times, since it doesn't even live in the program segment.
>>
>>55303153
A string is a primitive. It's hard to find a language that does not optimise those somehow. But what about constructed objects?
>>
>>55300178
>Problem: Javascript won't run outside the browser
That's weird, my problem is that customer's $browser won't run anything that isn't javascript.
>>
I can't understand how promises work.
>>
>>55303699
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise

To play around with it
>>
File: Screenshot_2016-06-28-15-02-46.png (205 KB, 1080x1920) Image search: [Google]
Screenshot_2016-06-28-15-02-46.png
205 KB, 1080x1920
> only requires nosql experience

Average household income in that area is 55k.
>>
should I use buttons or divs for menus? is there even a difference other than styling?
>>
>>55304172
So apply
>>
>>55304214
You should use <a> tags.
>>
So im working with php... how do i keep html separated from php code

niggers
>>
>>55304172
Should I apply if I have no sql experience?
>>
>>55304218
I only know mysql.

I love Roanoke TX too. Great town.

Does anyone have resources to learn NoSQL?

Does nosql have query builders and stuff like that?
>>
>>55304292
Probably.
Roanoke is just down the road from the richest city in Texas (southlake)

This isnt a bad area to live by. I've seen SQL jobs for 85 an hour before.
>>
>>55304282
Use a template processor or include templates and only print variables there.

pajeet
>>
>>55304282
install codeigniter
>>
>>55304282
'Require' your HTML.
>>
>>55297674
>>2-10 ms pauses are fine tier: Go
Go is usually the most performant and the one with less latency.
>>
File: 1398522714522.png (35 KB, 531x604) Image search: [Google]
1398522714522.png
35 KB, 531x604
Building a client-server using ES6.

This what my server structure looks like:

/src
/build
/test
/data
/client *empty*
package.json
.gitignore
gulpfile.babel.js
*etc*


On heroku I have it setup to run my build task on postinstall and start /build/index.js.

Now I want to use ES6 + React for my client, can I call npm init in /client and use it like a separate node directory with its own package.json and dependencies? Having a structure similar to the server with its own /src and /build folders (building with webpack), then serving the /client/build directory?

If not how do I go about compiling my client side code?
>>
> include templates and only print variables there

sounds good, thanks

faggot
>>
>>55304341
>>55304366
Cool, ill look into it
>>
>>55304282
Use Twig
>>
>>55304231
how about <a> tags inside buttons?
>>
>>55300178
nice

>>55304172
what the fuck?

>>55304311
just google it
>>
>>55304575
Why?
>>
>>55304282
>what is MVC
>>
>>55292211
What degree? do you list and describe coding projects you did for courses? Do you make them sound interesting and describe the technologies used?

Post your resume with private junk redacted.
>>
>>55304498
Technically that would be C++, but C++ is C++. And my concern for latency is from GC pauses, which Erlang should still be better at. Hope the upcoming transactional GC can fix that.
>>
Is prototypical inheritance really that bad? JavaScript is the only programming language I know but I honestly don't see anything wrong with it, I don't even know how languages with classes work, though.
>>
File: 1452291234709.jpg (48 KB, 500x352) Image search: [Google]
1452291234709.jpg
48 KB, 500x352
>>55304516
Anyone?
>>
>>55304661
Prototypical and compositional OOP are both superior to classical in every way. It only gets shat on for being different by Java babies.
>>
>>55293429
We hired a guy at work for a Web Dev position 4 months ago. He had no degree or programming work experience and was self instructed. But he demonstrated knowledge of the materual and his prtfolio was decent. Granted we only pay him $48k but he has plenty of room to grow if he proves himself.
>>
>>55293646
>PHP is only still used due to momentum
>Pearl is absolute trash and people are actively divesting from it everywhere
>Ruby/Ruby on Rails is a decent framework with a very easy to use base language.
>>
>>55294986
This, if you aren't using c you are a try hard that doesn't understand how things work.
>>
>>55304809
>Ruby/Ruby on Rails is only used because of hipsters wanting to be different
>>
How do I ignore pathnames?

Let's say I want to make a link redirect website.

example.com/13af

This would try to go to a 13af directory instead of the page to redirect.

How do I fix this?

I would rather not have to do example.com/r?=13af and grab the GET.
>>
>>55304756
For $48k a year I'd throw in free massages and foot rubs. Fuck I'm desperate.
>>
Is it at all worth it to make a profile on elance and try and get clients for my PHP/Mysql abilities? I know I'll be competing against the most pajeet of the pajeets but I hope there's at least a chance of making some money. Shit, I'm even open to going as low as $10/hr until my account starts getting the cred required to bump my rates up. Maybe I can offer work at a really cheap rate to build up my portfolio? What I can offer over pajeet is higher quality coding and I know english well enough to work better with clients.
>>
File: 1467146088250.jpg (315 KB, 1242x1507) Image search: [Google]
1467146088250.jpg
315 KB, 1242x1507
>>55302365
lovely stack, flask-restful is nice af
>>
>>55304498
Everything from C to C++ to rust to D to haskell performs better.
>>
I'd love to start learning other languages after I'm done with JS. Should I go with C#, C++ or Phyton? I also want to get into game dev as a hobby.
>>
File: go-gc.jpg (55 KB, 1024x577) Image search: [Google]
go-gc.jpg
55 KB, 1024x577
>>55304654
ah, you mean pic related, I thought you meant something else.

>>55304841
>This, if you aren't using c
why the hell would you use C these days? you learn C to understand how things work, then simply use something else.
>>
>>55304654
GC is a dead end anyway. Type-system-enforced type safety is where it's at.
>>
>>55304968
You are better off building your portfolio by helping out local businesses for like 15 an hour.

Competing against pajeet is almost impossible online.
>>
>>55305060
memory-safety*
Thread replies: 255
Thread images: 31

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.