[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: 322
Thread images: 27

File: 5.png (868KB, 822x552px) Image search: [Google]
5.png
868KB, 822x552px
>>58482814
>This season's Advent of Code:
https://adventofcode.com/2016/

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

>IRC Channel
#/g/wdg @ irc.rizon.net
Web client: https://www.rizon.net/chat

>Learning material
https://www.codecademy.com/
https://www.bento.io/
https://programming-motherfucker.com/
https://github.com/vhf/free-programming-books/blob/master/free-programming-books.md
https://www.theodinproject.com/
https://www.freecodecamp.com/
http://www.w3schools.com/
https://developer.mozilla.org/
http://www.codewars.com/

>Useful Youtube channels
derekbanas
thenewboston
learncodeacademy
funfunfunction
computerphile
codingrainbow

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

>Backend development
https://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks
https://gist.github.com/dypsilon/5819528

>Useful tools
https://pastebin.com/q5nB1Npt/
https://libraries.io/ - Discover new open source libraries, modules and frameworks and keep track of ones you depend upon.
https://developer.mozilla.org/en-US/docs/Web - Guides for HTML, CSS, JS, Web APIs & more.
http://www.programmableweb.com/ - List of public APIs

>NEET guide to web dev employment
https://pastebin.com/4YeJAUbT/

>How to get started
http://pastebin.com/pDT82mQS
http://pastebin.com/AL6j7GEE

>cheap vps hosting in most western locations
https://lowendbox.com
https://www.digitalocean.com/
https://www.linode.com/
https://www.heroku.com/
https://www.leaseweb.com
>>
First for Webpack 2 stable just got released, it's time to update you're build, bitches
>>
>>58538783
I've never had to use webpack.

What does it do? Is it like npm?
>>
>>58538878
Transpiles from TS/ES6+ to ES5, minifies, uglifies, etc.
>>
>>58538878
it's the most used module loading system, we need one before the official one gets released in about ES2023. Plus, it also works as a replacement of gulp/grunt
>>
>>58538915
what's wrong with grunt ?
i never did serious front end dev but i remember trying it out years ago
>>
sarniescafe.com

How do I make an image element that scales fullsize with the browser window until the user scrolls down for more content? Im using css and I tried height: 100vh and min-height: 100vh. The fullsize works but the image end up getting cropped instead of scaling when the browser window goes too small
>>
What are good sources of inspiration for good programming projects, potentially for a professional portfolio? Things like youtube channels, blogs, etc. I mainly work with enterprise software but anything interesting is welcome.
>>
Anybody have experience with high traffic data/event logging?

Kafka seems OK, but writing plain logs with something like Flume (or cat, for that matter) and reading using MapReduce or Spark might be much simplar at the expense of some efficiency.

>>58539004
It's pretty much personal preference. 99% of the people bitching about task runners never make it to launching a production web application, so use what works for you.
>>
>>58538783
I've never seen a project that used Webpack that wasn't 100% shit.

It's hands down the WORST thing that has ever happened to front end development.
>>
>>58539437
how about mongoDB? (full disclosure, I used it for event logging, but it wasn't really "high traffic")
>>
>>58539004
Most projects still use grunt or gulp.
>>
>>58539534
> I've never seen a project that used Webpack that wasn't 100% shit

enlighten us, what technologies/libraries are used by the most awesome projects you have seen? also include date of project start, pls
>>
>>58539546
Could be. but if you want to use ES6 and modules, you need a module loading system.

So, you have to go either:
- Grunt/Gulp + Babel + Browserify
- Grunt/Gulp + Babel + Webpack

Or, even simpler if your use case is not too demanding, use webpack as your task runner:
- Webpack + Babel
>>
>>58539125
Does your boss know you are asking for CSS advice in 4chan?

In any case, I'm traveling to singapore in 15 days, I'll help you in exchange of free burgers.
>>
>58537546

Express framework.

Also, nothing comes ready out the box. It does a whole bunch of stuff. It's not Django so don't expect it to be.
>>
File: 1484563033392.png (3MB, 1500x1132px) Image search: [Google]
1484563033392.png
3MB, 1500x1132px
>>58539546
i would not recommend that. trust me i have a degree in Computer Science.
>>
>>58539601
lightweight frameworks are quite an advantage in this client-side heavy world, I'd say.
>>
>>58539615
to be fair, shitty courses like that exist all around the world, not only pakistan
>>
>>58539537
With MongoDB and Kafka, it's not really and either/or -- you can use the two together. So, I have a firehose of data I need to deal with, and Kafka in that case would deal with write throttling, scaling, replication, etc.

At 500k req/min, queuing, storage, and fetching get hard
>>
>>58539579
You know how I know you are a React developer? Because you think everyone wants to use Babel and a module loader.

Webpack is a case of "When all you have is a hammer, everything looks like a nail".

Its dependency graph is incredibly clunky and the way it injects <style> tags into HTML makes me want to puke.

A much MUCH better approach to front end development is to have a build process that doesn't break convention.

Go take a look at Yo Angular or Yo hottowel for reference.
>>
>>58539700
This guy does a good summary: https://statusok200.wordpress.com/2016/08/04/webpack-sucks-at-least-for-now/
>>
>>58538783
>>58538878
>>58538898
>>58538915
>>58539004
>>58539534
>>58539579
/dev utils general/

>>58539700
>yeoman

>>58539619
I seriously hope you're not suggesting weighing down the client side so you can use a "lightweight framework"
>>
>>58539700
Well, you guessed right, I am a React developer, I'll give you that. But I guess Angular2 guys are also fond of modules and ES6 (even experimental stuff like decorators, btw)

I agree that style handling in webpack is questionable.
>>
>>58539726
> /dev utils general/

what would you rather talk about? Doing fizz buzz in PHP5?
>>
Vue.js master race.
>>
is there literally any point in doing stateful web programs anymore?
>>
>>58539851
>uses templates
>no onle liked templates
>they conceded and added support for JSX
>kek.js
>>
>>58539865
What do you mean by stateful?
>>
File: thrones.jpg (45KB, 300x260px) Image search: [Google]
thrones.jpg
45KB, 300x260px
>>58539878

you must only make stateful apps then
>>
>>58539891
>can't explain what he means by stateful
Speak up bro, do you mean having a backend? db? sessions? all of them?
>>
>>58539891
>assuming
After looking it up, I have only made "stateless" apps. And by that I mean "Database-onry".

Also, databases are inherently stateful.
>>
>>58539790
Actually shipping something
Infrastructure & scaling
Monetizing
Monitoring & automation
Applying webdev to traditionally nontechnical environments to do cool shit
Securing applications
Conventions/practices outside the scope of Grunt

These threads turn into a pissing contest about which build system is better, or which trendy JS framework is better. Don't get me wrong, I deal with both of those things (and more) at my day job, but there's more to all of this than that.

There's so much cool shit that can be done with webdev, and a stupid amount of money to be made. Really sad to see the conversation stop at Step 1.


>>58539865
Really depends man -- contracted with a SaaS concierge company whose core product was a stateful web app. It was easy for their small team to manage, and they didn't have any scaling problems because their product wasn't really meant to be used by thousands of people at once.
>>
>>58539936

databases are yes, but we aren't talking about databases, talking about web apps
>>
>>58539967
>web apps
Most of which are database wrappers.
>>
>>58539946

you should have practiced a stateless design anyway, pleb, git gud
>>
>>58539976

Holy shit you still aren't getting it. You don't know what stateless means I guess
>>
>>58539997
you are replying to a second person
the first person now understands you perfectly
and agrees that stateful apps are generally a poor design
especially with regards to scaling and data resiliency
>>
>Security Warning: As of January 2017, data from tens of thousands of MongoDB installations has been stolen and is being held for ransom. This appears to be because when "installed on a server with the default settings ... MongoDB allows anyone to browse the databases, download them, or even write over them and delete them." Furthermore late-coming extortionists are overwriting the demands of the original extortionists. Therefore database owners who decide to pay the ransom will make payments to people who don't have the original data, so the data is not restored even though the ransom is paid. In other instances, the original extortionist did not copy the database before deletion, so the victim will not get their data back even if they pay.

lmfao oh that sucks for all you mongoDB'ers.
>>
>>58540125
I prefer to call it MemeDB or MongoloidDB.
>>
File: 1484087463824.jpg (57KB, 480x595px) Image search: [Google]
1484087463824.jpg
57KB, 480x595px
>>58540125
I went through so much trouble securing my shit vps to make sure my rss feeds are safe from chinese bots i need to maintain a file with all the logins/autisticly long passwords i set up
I can't imagine how one would install a production database with default settings (especially if default settings means no acess control)
>>
>>58539946
>Actually shipping something
>Infrastructure & scaling
>Monetizing
>Monitoring & automation
>Applying webdev to traditionally nontechnical environments to do cool shit
>Securing applications
Post your face when I asked one of those questions you made fun of and I have done all of these beyond what you're capable of.

I want to see it.
>>
>>58540480
Node.js, or as I have taken to calling it, Meme.js encouraged JavaScript kiddies to cobble together shitty backends out of premade parts.
>>
what's wrong with JS that it gets so much hate now?
>>
>>58540731
The language designers had code in mind that fits into an HTML attribute, took most people to write their 50k LOC webapps to notice that.
>>
File: Meteor-logo.png (6KB, 600x142px) Image search: [Google]
Meteor-logo.png
6KB, 600x142px
Thoughts about Memeor, /wdg/?

Never mind if it is "dead"; never mind if it doesn't scale; what I care about is, does it really allow you to prototype faster than "big" frameworks like Rails/Django?
>>
I'm taking to trying my hand at more graphic designy stuff now that I've got a pretty good conventional foundation in programming and all that.

What I need now, is some ridiculously stylish websites or maybe some not so cluttered websites ( because my demo is mostly individuals and not so much enterprise companies ) to practice with and maybe get ideas from.

At the moment I have one major idea in web dev that I want to pull off and really I can't imaging it'll be that difficult barring finding the right restrictions on the return vector and ways to keep the return trajectory non-recursively normalized no matter where the drop occurs.

Stylish doesn't seem the right kind of idea, you know? When I was learning photoshop/illustrator my ps buddies and I used to go off trying to emulate the art of like active anime companies and the more organic figures ( to bring some life to these machines and geocities pages ). If you google Spike Spiegel wallpapers pic related comes up. I made that using the lasso tool in Photoshop. Just to give you an idea of what I mean when I say organic. Back then the styles that were most popular were the tech grunge, with nano shapes and structures ( honeycomb grids, random tube "grids", etc ) and those color dodge and color burn monstrosities with Lain bleeding into the background.

Now that I think of it, I may have been using Pen tool by the time I made that.
Still, it looks like it was recovered from my old vaio and then resharpened or something because there are some shapes I don't recognize but that is definitely my old wallpaper. I think I entered it into a wallpaper contest and got second.

Anyway, hi guys. I'm bob.

I suppose if there's not meaning in that then there's not much meaning to be had among people.
>>
File: dhFEben.jpg (93KB, 960x720px) Image search: [Google]
dhFEben.jpg
93KB, 960x720px
https://raw.githubusercontent.com/chiru-no/chiru.no/master/index.php
>>
hey wdg it's Django really worth to learn? I know some basic php crud and really want to learn something new.
>>
webpack pratik
>>
>>58538713
What is the best deal for a hosting service. It would be beginner stuff. Not much traffic. Thinking about namecheap.
>>
>>58539437
Look into CouchDB as well.
>>
Alright, so I have one shared hosting account that comes with one free domain. Let's say it's A.com. I want to be able to host 2 websites with 2 different domains with this single account. So I'll have A.com and B.com serving two completely different sites.

So basically I buy the second domain, create an addon domain via the shared hosting's cpanel and have the second domain forward all requests to the subdomain.

Is this correct or there is an easier way?
>>
>>58538713

I use two VPS providers that aren't listed (I'm in EU)

https://www.forpsi.com/virtual/
Linux
1 Core
1 GB
RAM
20 GB
SSD STORAGE
2 TB/month
transfer
from 1.00 EUR+VAT/month
Yes, it's really 1 euro ($1.10) per month.

I use this as a dev box.

https://contabo.com/?show=vps

Two cores
RAM6 GB (guaranteed)
Disk storage 500 GB
100 Mbit/s port
UNLIMITED Traffic
6.99 eur per month

I use this for email server/owncloud
>>
>>58540731
I think it is because it is so fluid it has a lot of different ways to do the same thing more than a lot of other languages.
>>
>>58541443
>does it really allow you to prototype faster than "big" frameworks like Rails/Django?
Maybe for a hackathon thing that mostly needs to look pretty and "work", but for a prototype meant to resemble a real-life crud app, rails and django are lightyears ahead of it. Plus if you proto your thing in meteor and get it the way you want, you then have to re-make it in something that's actually usable.

>>58541725
Yes, it's worth it.

>>58542059
For shared hosting, that's probably the easiest. If you have a VPS, you would just set up virtual hosting or something
>>
>>58541490
>can't imaging it'll be that difficult barring finding the right restrictions on the return vector and ways to keep the return trajectory non-recursively normalized no matter where the drop occurs.
you wat ?
>>
File: 1484583645238.jpg (27KB, 463x265px) Image search: [Google]
1484583645238.jpg
27KB, 463x265px
>>58541517
shameful display
>>
>>58542722
This looks really cheap, any gotchas or problems with your providers so far ?
>>
>>58543544

only one. They recycle their IP4 addresses and I got one once that had previously been used by a spammer and was blacklisted by Microsoft.I couldn't get them to remove it from the blacklist so I deleted the VM and spun up a new one and got a clean IP.
>>
>>58539877
Giving me the freedom to use whatever I want is kek because?
>>
>>58540587
Okay? It doesn't matter how many of those things you've personally done if you're not willing to engage in meaningful discussion around those topics as a means of helping newbies. You really epitomize the "smart people acting dumb" stereotype here
>>
>>58539865
two big points stand out:
real time applications like chat

also the fact that smelly smelly pajeets continue to insist on shoving everything to back end means we should be doing the opposite. why should a business stress their own resources when an end user has a $700 phone in their pocket that does the work for free?
>>
>>58538713
Question for the the /g/entoomen, is it possible to get into web development if you don't have CS background? I could not get into CS due to my weak maths and later due to financial reasons only managed to get a business studies degree.

I am in my 30's now and can't find a job and soon might not have a place to live. I want to be able to work freelance or join some small web development firm. I don't know if it is too late for me to learn. I have found some universities offering certifications and short courses on networking and web development, I will use my last bit of savings to do that if there is a possibility of employment in the future.

I did learn html, css and wordpress during my business degree.
>>
>>58545610
this is a terrible plan. you need to get an entry level IT job as a desktop support technician. check craigslist and monster but also local/regional temp staffing firms.

when you have money to live you can follow your passion and if your passion is web development you will eventually find your way into doing it full time. later on.
>>
>>58545659
I live in a 3rd world country where my qualifications don't mean shit. Entry level IT jobs require Bachelors in CS. I don't meet the criteria. Too much competition.
>>
>>58545680
What did you do the first 30 years of your life?
>>
I'm learning front-end at the moment using the learnCode.Academy video playlist and I feel like I've hit a wall with my learning of JavaScript, that series just jumps straight into JQuery and I don't think I'm ready for that quite yet.

Is there another good resource, video or written, that I can use to continue my JavaScript learning?
>>
>>58545610
If you know html/css/wordpress then apply today to Automattic as a 'happiness engineer'.

You can also apply here:
https://boards.greenhouse.io/customerio/jobs/274824

This pays $70k USD per year for simple support. To get this job solve the easy csv challenge. It's Unix epoch time so use date:

date -d"2014-07-22" -u +%s to find the epoch date in UTC, then just run awk:
cat sample_data.csv | awk -F, '$2 >= 1403395200 && $2 < 1405987200 { print $2 "\t" $9}' | sort -n

Now write a simple function to do the same thing in java/ruby/php or python for the test.

Also read all their documentation and tell them about it in your cover letter, and read the Zapier customer service "book" https://zapier.com/learn/customer-support/

Now pretty much every customer support job posted to weworkremotely.com you can do after that. While working there you get remote experience and you can learn webdev or whatever on the side
>>
>>58545817
Read the 'You don't know JS' book series
https://www.amazon.com/You-Dont-Know-Js-Book/dp/B01AY9P0P6

Can get them all on libgen.io

Learn everything JS first then start with those complicated libraries like ember/JQuery ect.

Also consider buying this React book:
https://www.fullstackreact.com/

There's a billion React jobs right now
>>
>>58546086
You are a star but I really have to ask is there any alternative to Libgen.io, because it is literally blocked by UK ISPs.

Fun stuff. I love you anyway. I'll look around generic websites for a download.
>>
>>58546136
Use Tor or a mirror
http://libgen.in/ http://gen.lib.rus.ec/ http://booksc.org/ http://sci-hub.org/

Can also probably find torrents of those books, or just buy them used they're a good reference to always have lying around your desk you'll constantly use the books.
>>
>>58545817
Try https://watchandcode.com/p/practical-javascript, it made object oriented programming click for me.
>>
>>58546136
Also if you click used on Amazon there's UK vendors selling these for like 78 cents each
https://www.amazon.com/gp/offer-listing/1491924462/ref=sr_1_1_olp?s=books&ie=UTF8&qid=1484761473&sr=1-1&keywords=You+Don%27t+Know+Js
>>
>>58546176
>>58546218
I'll buy some copies some time, but these mirrors worked so I have the first book now. Thanks!

>>58546190
I'll do this course too, thanks!
>>
>>58540731

It gets hate from non-JS users because they don't like change and when something faster and more powerful comes out they would rather stick to their older technologies and shit post about JS. Web programs are completely changing course and what they're capable of thanks to JS. Especially on the cloud. I hate JS syntax though.
>>
>>58539615
>Java Scripting
fucking kek holy shit
>>
File: [email protected] (321KB, 2086x1017px) Image search: [Google]
pg_mac_2.6@2x.png
321KB, 2086x1017px
What do you guys think about Pinegrow Web Editor?
>>
File: ahaha.gif (227KB, 600x600px) Image search: [Google]
ahaha.gif
227KB, 600x600px
>>58546314
>faster
>more powerful

>a single-threaded runtime with sub-par concurrency
>>
>>58546703
>caring about fucking concurrency when javascript executes on each client's computer individually
>>
>>58546703

your cpu must be shit if you can't handle async callbacks even if its on a single thread
>>
how do I architect some widget in React that has... movement between different states. So you click one button it goes to one state, then depending on which buttons you click it can go to other states or loop back to the initial state. And specific actions occur depending on which states are being transitioned between

should I use some kind of FSM library? or is there a React way to do this? is this what Redux is supposed to do?

any good examples for this kind of thing? most React examples seem to be displaying data or other very basic UI flows

I'm trying to convert some kind of flash/actionscript app to this newfangled html5
>>
>>58546873
>>58546874
I wasn't criticizing clientside JavaScript, friends.
>>
File: thumb.png (568KB, 1735x742px) Image search: [Google]
thumb.png
568KB, 1735x742px
sometimes the thumbnail does not load.

Is there a simple addition to a style or userscript I can add to render placeholder squares the size of the thumbnail to make them always clickable?

It is not blacklisted, blacklisted images have their own class.
>>
>>58547002
or maybe even make the span-object act like the actual thumbnail
>>
>>58547002
looks more like it's hidden intentionally, see display: none.
>>
>>58547086
I thought that too, but when I hover the URL in the devtool it says "Could not load the image"

though opening it (the thumbnail URL) manually loads the thumbnail.
>>
>>58547124
got an example page?
>>
>>58547141
It loads for me in Opera, though not in Firefox (regardless of whether I am logged in or not, or using the default style or not).

https://chan.sankakucomplex.com/?tags=jeanne_d%27arc_(drifters)+1girl+rating%3As

The 4th thumbnail from the top left for me.

The image on the actual page does not load either (Except when using the direct link/path to the file)
https://chan.sankakucomplex.com/post/show/5691832
>>
>>58547002
What IDE is that?
>>
>>58547357
just press F12 in firefuck, senpai
>>
>>58547384
cuck did mook add a new word filter?
>>
>>58547384

chrome dev tools are better, git gud
>>
/g/, you told me node.js is the best.

But there's litereally ZERO good REST frameworks for it. How the fuck do I generate enterprise grade, fully RESTful CRUD applications without that?

You are forcing me to repeat tons of code, and you're making me do it in FUCKING JAVASCRIPT

Python has Django REST Framework. Absolutely beautiful definition of URLS, and lets you build viewsets which represent all the crud operations of a resource. Plus it sucks your dick.

You tricked me, /g/

it doesn't even have good database support
>>
>>58547395
(nope, it was just me mistyping severely)

>>58547399
I try my best, anon.
>>
>>58547400

You posted this yesterday too. Use Express. Node doesn't do anything for you out of the box, so you'll need to learn all it can do. Git gud with async callbacks and stateless design.
>>
>>58547400
sorry you are too stupid for asynchronous design
>>
>>58547400

loopback.io

all i did was google btw node rest frameworks btw
>>
>>58547575
lacks viewsets

has bullshit like findOne
>>
>>58546899
use css animations ?
>>
computer:server user$ node server.js 
/Users/user/Desktop/Projects/server/server.js:6
var sg = require('sendgrid').SendGrid('SG.e1d-YEZCQzeA8YN7Y7_TgQ.myCYJEasdasdasdasdasdjahfksdjfhsjkdfhskjdfhskdjfhsdjfsdfsdfsdfsdfsdfsdf');
^

TypeError: require(...).SendGrid is not a function
at Object.<anonymous> (/Users/user/Desktop/Projects/server/server.js:6:30)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
at startup (node.js:139:18)
at node.js:968:3


any idea what's going on here? I have sendgrid saved in node_modules. The same server.js file is running fine on my server, just not wanting to work on my laptop
>>
File: niggers.png (111KB, 1366x979px) Image search: [Google]
niggers.png
111KB, 1366x979px
>>58547400
>not designing your own way
>>
>>58539851
me2
>>
I'm using a Node/Express backend, which I query from the frontend app with a basic AJAX library.

If I need to return an error from the server, I thought I'd be able to call
res.status(500).send('custom message');
. But, on the frontend all I'm able to get back is a generic
Internal Server Error
and not the custom error message.

How do I get the custom message back to the client?
>>
>>58547991
hmm, the way I declare it is

var sg = require('sendgrid')('secretAPIkey');
>>
>>58547400
>/g/, you told me node.js is the best.
Really? I sure didn't. Moreover, I've seen a lot of anons here who, unlike me, really, truly hate node.js, some for meme reasons and some based on their personal experience.

I think you saw consensus where there is none.
>But there's litereally ZERO good REST frameworks for it.
Loopback is pretty good, but there is still hardly any reason to prefer it over the alternatives if you aren't forced to work with node.js.
>>
I need an animation where it pulls in from the center.

Like if you were to put a tissue flat on the ground, grab the center, and pull it towards you, then it lays flat but bigger since it's closer to you.

What are my options?
>>
>>58548378
that worked, thanks. unsure why my way worked on the server
>>
>>58547400
>/g/, you told me node.js is the best
You have been memed.

Try out Go (aka Golang) when you have free time. Use a mini-framework such as Gin, or maybe Echo if you don't mind supporting pajeets.

And ignore the 'standard library only' wankers for now. After you're comfortable with the language you can explore the standard library's "net/http" to see how things operate under the hood, and you'll develop a new appreciation for the REST frameworks.
>>
how long would it take for someone with very basic knowledge of programming to build and deploy a website to take orders from customers?
>>
>>58548849
>suggesting Go

Please leave this field and never come back fucking google shill

Go is hot fucking garbage, the sooner we forget about it the better
>>
File: 1397325741268.jpg (123KB, 403x1000px) Image search: [Google]
1397325741268.jpg
123KB, 403x1000px
what do you think of asp.net vs javascript/jquery for client side?
>>
>>58548920
a month if you go 8 hours a day
>>
>>58548994
dayum. Is this assuming I start from scratch? Or even if I use something like wordpress
>>
File: gopher.jpg (40KB, 600x684px) Image search: [Google]
gopher.jpg
40KB, 600x684px
>>58548952
Please provide thoughtful criticism.
>>
>>58548849

Go is faster. but less friendly to write and manage. It's an alternative to C, which makes it not the wisest language to use for web dev. Do you really want to manage concurrency for a web app?
>>
>>58548920
Buy domain name: 10 minutes
Buy webhosting: 20 minutes
Get SSL cert: 29 minutes
Buy paypal api: 6 minutes
Write php order form: 48 minutes

Probably less than 2 hours
>>
>>58549362

You see people arguing about Golang, Java, SCALA, Rust, etc in /dpt/ because they were not built to do web dev. Using Golang for web apps is like buying a macbook pro just to check your email a few times per day. Obviously Golang is going to fibonacci faster because it's closer to the hardware. Does anyone here actually use Golang for web dev? I live in a very techy city and I see hundreds more Node jobs than Go jobs when I search on Indeed.
>>
>>58549598
>like buying a macbook pro just to check your email a few times per day
so pretty much what every mac user uses it for + facebook?
>>
>>58549362
Other languages require just as much, if not more, concurrency management. The 'worker pattern', for example, is widespread in use among languages including Node.js apps that need high performance.

>>58549598
>Does anyone actually use Golang for web dev?
I build my web projects in Go. It makes a rock-solid web API, static file server, template renderer, etc.
https://github.com/golang/go/wiki/GoUsers

Node.js has hype from investors and executives who want to hire (cheap) "full stack" front-end devs. Companies more oriented towards engineering and building web services tend to choose Go.

Java still has the big entrenched companies like Verizon, for example.
>>
>>58538713
How do I prove competency with front end? Can someone show me an example of a solid portfolio?
>>
File: 1483392335142.png (607KB, 860x1338px) Image search: [Google]
1483392335142.png
607KB, 860x1338px
>>58548427
>>58548849
>>58549806

How does node.js handle backend logic? Javascript can't even do proper floating point arithmetic, can it? Isn't it a slow language compared to python, go etc?

To be frank, I'm actually really close to switching to node. I'm doing a project in python, which has gotten along and produces traditional web pages. It has a nice REST API which can serve just about any type of data format in a predictable, safe manner.

But then I read about things like react, and improving the web page. There's web sockets, single page applications and more. Every django project I see that uses react, ends up using.... you guessed it, NPM and nodejs.

That ticks me off. I just want to use one language. I would hate to introduce yet another tool to the toolchain, it's bad enough as it is. Which is where node.js now seems attractive because you don't really need much more than npm.

Thoughts?

>>58548084
barf
>>
File: 1455563222836.jpg (181KB, 1031x965px) Image search: [Google]
1455563222836.jpg
181KB, 1031x965px
Is it a bad move to build a site on wordpress? I know html, css, and basic JS, but absolutely nothing about backend programming aside from a Java EE course I took 8 years ago. The site needs about a dozen pages with graphics and text, no interaction like a store or whatever is needed, just navigation.

Is there any reason I shouldn't use a content management system?
>>
>>58550809
>Every django project I see that uses react, ends up using.... you guessed it, NPM and nodejs.
Tightly coupling the backend and frontend is a bad idea IMO. Toolchain bloat is real.

I use Vue.js with a Go backend. Never touched npm or node.
>>
>>58550974
Yeah, precisely. Which is why javascript frontend scares the living hell out of me. What happened to just adding a js script tag in your html?

I don't know Go at all. I know Java (and it's many spinoffs like groovy), Javascript, python and virtually every other similar language. Dabbled in PHP and c a little bit, but I'm not competent about it.

Go is an entirely new field. From what I hear it's more performant when compared to both python and javascript(node), but personally, when I look at the syntax for it, I barf a little in my mouth. Rather, it's unknown and I can see that I'll need to make an effort.

Maybe I should just make a spring boot app or try play. Java is rock solid as a language in my opinion. It's like a little safe space to develop in with build tools like gradle or maven.
>>
Alright /wdg/, this is urgent

Throw me some of your ideas for a webapp I can make to expand my portfolio.

I'm ideally looking for a project to help me learn AngularJS and Laravel, so something that could use these frameworks would be nice.

Have a CS degree and comfortable with vanilla JS and PHP.

TIA
>>
>>58550937
If it doesn't need a CMS, Don't give it one. If it's a static site with content that isn't going to change every day, it won't need a CMS.

If the client wants changes after it's live, just charge them your hourly fee.
>>
>>58551015
>What happened to just adding a js script tag in your html?
"Full-stack" Meme.js happened. You are free to write apps like this if you want. Vue, at least, allows it.

What don't you like about Go's syntax?

>build tools like gradle or maven
I'm not a user or fan of Java, but this sounds like toolchain bloat.
>>
>>58550937
No, I did it with my website. I turned my html/css website into a Wordpress theme. It works great.
>>
>>58551127
I did find the documentation of Wordpress is quite incomplete. So your google-fu needs to be up to speed. And it kickstarted my PHP learning.
>>
>>58551086

i grabbed a sports data base full of teams players coaches numbers position etc all kind of stats where the user could CRUD the shit out of it. Stuff like that is good to show off, but make sure it's asynchronous.
>>
>>58551107
>I'm not a user or fan of Java, but this sounds like toolchain bloat.
It's pretty neat.

There's tons of java libraries. You add them to a project file, and then you write e.g gradle build or mvn clean install, it downloads everything and compiles up your stuff. It's super simple. Setting up your own repositories is easy too, if you work for a company.

Reminder that Java does need to be compiled.
>>
>>58551148
Ah, I see. Thanks for the explanation. I was under the impression Java developers relied on their IDEs for this stuff.

>downloads everything and compiles your stuff
This is built in to Go.

go get && go build
>>
>>58551237
Yeah, it looks like a neat feature. In Java, the IDE often uses a given build tool depending on how the project is set up. But by default it'll use the java compiler, javac.
>>
>>58551145
I don't like sport ;_;

>>58551086
any other ideas?
>>
>>58551435
psychedelic aesthetic html5 video game purely drawn with canvas and midi audio
>>
Is your cpu ready? https://jsfiddle.net/4355k86n/1/
>>
>>58551435

what are the chances you'll like every single project you do when youre on the job? stop being an ass or go bag groceries
>>
Gotta say, I'm new to websockets but just from a stomach feeling, django's implementation doesn't look too bad.

Thoughts, /g/?

https://www.youtube.com/watch?v=HzC_pUhoW0I
https://github.com/linuxlewis/channels-api

It's probably slower, but you can easily set up a "rest like" API with minimal code.
>>
>>58540731
Low barrier of entry makes it to where you can do quite a lot with it without actually understanding JS on a deeper level, let alone programming.

And without understanding JS and programming on a non-superficial level it causes a shit load of sketti code from wannabes and gives the entire language a bad name.

Also responsible for all the hipsters shilling the meme framework of the week.
>>
>>58551935
not him but
>Low barrier of entry makes it to where you can do quite a lot with it without actually understanding JS on a deeper level, let alone programming.

I don't find this to be a bad thing. Some languages pretty much let you write english, and few newly educated programmers today actually understand anything that's going on in the first place. It's the price we pay to make things easier.

Just like your dad or grandpa complain that our generation have never really known a full days work, work it took to get us here.

Personally I don't like the syntax. It's like a worse and pointless version Java that's also slow. In recent times I've come to accept that syntax means a lot.
>>
>>58545680
Fuck you. I live in the 3rd world country, without a degree, but that didn't stop me. Now I steal jobs from gringos all day long charging $60/hour.

Good IT jobs (even 3rd world country one) will value your ability to deliver over anything else.
>>
>>58548750
best description ever
>>
>>58550809
>How does node.js handle backend logic?
Node's whole approach to concurrency with callbacks/promises/generators is an antipattern IMO. It's like manual memory management and makes about as much sense for a web applications. Go's goroutines or Elixir processes are a far better alternative.
>Javascript can't even do proper floating point arithmetic, can it?
No, it can only do floating point arithmetic; it has no integers.
>Isn't it a slow language compared to python, go etc?
For purely computational tasks like calculating the value of π, it's faster than Python, Ruby and Elixir (Google poured a lot of money into V8) but slower than statically typed compiled languages like Go, Java or Crystal.
>To be frank, I'm actually really close to switching to node.
I'd suggest you learn Node because it's useful to know, but don't "switch" to it. Django is more sensible than anything the Node world can offer. If you want async everything and more speed, learn Elixir and Phoenix.
>I just want to use one language.
That's a fine thing to want (though I decided for myself that it wasn't worth it), but what you don't want is for that language to be JavaScript. Look at Dart and Clojure today (https://github.com/omcljs/om is impressive) or wait for WebAssembly to mature.
>>
>>58550937
>Is there any reason I shouldn't use a content management system?
- Security
- Page load speed
- You data will be stored in a database instead of text files
You can avoid that last one with a modern flat file CMS like https://github.com/getgrav/grav, but why not just use a static site generator?
>>
>>58552381
Why would you not persist your data in a database?
>>
do you use any app to test your webapp security
>>
>>58551015
>spring boot
For APIs Dropwizard is simpler.
>>
>>58551237
>>58551148
Just FYI, vanilla Go is lightyears behind Maven in terms of dependency management. Read https://blog.gopheracademy.com/advent-2016/saga-go-dependency-management/ and do some research on it before you commit to the language.
>>
>>58552442
>In an ecosystem structured around go get, the most obvious problem was reproducibility: because go get fetches the latest code for any packages not already on disk, it’s impossible to guarantee that your users - or your teammates, or build system - will have the same versions of your software’s dependencies that you do.

Wow. Baffling.
>>
>>58552394
For static data that only you, the developer, edit it's a useless dependency. Text files are easier to manage, to migrate from one host to another, etc.
>>
>>58552471
Oh, and let's not forget you can version them with plain old Git.
>>
>>58551435
Fortune cookie website.
>>
>>58552050
Oh I'm not complaining at all, but that's the reason it get's a bad name is all I was trying to explain.
>>
>>58546899
var Widget = React.createClass({
getInitialState: function() {
return {value: ''};
},

render: function() {

//dragons be here
}
},
//this is an example of how we "react" to state change. get it???
handleInputChange: function(ev) {
this.setState({value: ev.target.value});
}
});

React.render(<Widget />, document.body);
>>
Hello anons I was wondering if one of y'all could tell me how to set up my homepage with this html file: https://github.com/wallace-aph/html/blob/master/startpage-japanese.html
>>
>>58553708
save it, open it, go to settings, looking for the homepage thing 'on startup', look for link that says "set pages" , select the page from the list, done.
>>
>>58553708
pls close this html tag
>>
>>58554962
html?>

right?
>>
>>58555045
</html>
>>
>>58538713
Just started web development, how would I store a hash value and an array of variable length in a mySQL database?
>>
>>58555583
CHAR(32) and you just guess whatever the array length max will be and use VARCHAR(whatever)
>>
>>58555610
or use text like tinytext.
>>
>>58555610
You're saying I would just store an array like [255, 3, 10] as '[255, 3, 10]' like a string? Is there a more space efficient way to do this?
>>
Phone interview coming up for entry-level position, how should I prepare?
>>
>>58555764
put sharpie in pooper and relax
>>
>>58555731
I'm no MySQL expert, but I believe you can either serialize it as a string or make another table (key, value) to store your array datasets.

>(1, 255)
>(1, 3)
>(1, 10)
>>
Where do I read about compressing images
I'm making an app that stores a lot of images of forms and I have no idea how big they need to be.
>>
File: unnamed.png (25KB, 454x319px) Image search: [Google]
unnamed.png
25KB, 454x319px
anyone here doing shady shit to make money online?
>>
What does the / stand for in an HTTP request?
So for instance
GET / HTTP/1.1

The first / after GET.
>>
Can anyone recommend any good resources for learning React? So far only watched the series of videos on thenewboston, still haven't touched Redux though because I'd like to get more comfy with React.
>>
Why did people invent Meteor if it doesn't work outside your own machine?
>>
somebody redp:// me on node.js
>>
>>58556925
Root directory

>>58557399
Just don't.
>>
>>58556925
The root of the server's public directory.

>>58557245
The official tutorial is pretty good.

>>58557382
People invent a lot of stupid things nobody uses.

>>58557399
Basically like Python or Ruby, but instead of writing scripts with Python or Ruby, you write it with JS. Good at realtime stuff, but single threaded only. Relatively common for making REST APIs. Massive 3rd party library (Maybe too massive). Express is comfy.
>>
I remeber there was a link of a couple of videos about what should I learn in 2017, can I have the links again please?

I would like to learn web development since the only thing I know is Java and Android, and progressive apps are getitng me without job
>>
>>58558033
Should be the first link in the first pastebin under "how to get started" in the OP. No idea why it's an unlabeled youtu.be link in an unlabeled pastebin instead of directly linked and labeled in the OP, but there you go.
>>
File: 3fcb9b4724394bd98aa6b0d618d2c624.jpg (387KB, 1536x1536px) Image search: [Google]
3fcb9b4724394bd98aa6b0d618d2c624.jpg
387KB, 1536x1536px
What's the secret to getting a junior developer job that teaches me, and pays a respectable wage that I can live off of and pay back my debts?
>>
>>58557245
Mindspace series on youtube
>>
I don't know how much it differs by region, but what would you wear to an entry level web dev job in London?

Most of the places don't seem like suit and tie places, but then again its a job interview.
>>
>>58559551
ill look into it, thanks anon
>>
I have my portfolio website and all the projects I have there are just a /xxxxxx off the domain. How should I upload these all to github organization-wise? Should it just be one upload with my server.js and public folder and all that, or should each individual /xxxxxx be it's own git repository?
>>
>>58555731
>Is there a more space efficient way to do this?
No.
>>
>>58559450
Portfolio, and being pretty decent at HTML, CSS, JavaScript and SASS/LESS. Also having a good understanding of GIT, PHP, Gulp/Grunt, Node, Bower and NPM all help.

Literally landed my job rn as a junior dev by doing a front end coding challenge and I only had experience with HTML, CSS, and SASS and dabbled in JS. They've pretty much taught me PHP and JS as well as learning my self (on the job).
>>
>>58559450
Aside from having intermediate-level skill in their tech? Be a person that people like.

That's it.

That's it.
>>
File: structure.png (45KB, 1329x1566px) Image search: [Google]
structure.png
45KB, 1329x1566px
>>58560859
Each individually. You can then git clone then as and when you need. This will also save time when git cloning your portfolio or any project to make changes, you'll only have to clone that thing rather than a whole bunch of stuff.

Pic related, should be what you're aiming for.
>>
>>58546434
Don't use crap like that.
>>
do i have to learn a framework and back end shit to make a site? what's the purpose of this shit i thought html, css, and javascript was good enough
>>
>>58561817
>do i have to learn a framework and back end shit to make a site
Only if you want to make your own dynamic, database-oriented website or some kind of web application.
>>
>>58561551
ty
>>
>>58557539
>>58557649
>Root directory
So, because a URI/URL (I don't know which) is not explicitly specified, it looks for a homepage in the root directory of the host?
>>
>>58556481
This just replies to people who post with those hashtags?

I make those kind of bots.
>>
>>58562294
The web root, in other words the directory that the webserver is configured to serve e.g. /var/www/ by default for apache. Specifically, it will (by default) look for and serve up a text file called "index" (index.html, index.txt; if it's a .php file (and you have php + the requisite modules) it will run the php script and serve the resulting file). If that isn't found, it will (by default) dynamically create a page that lists the contents of the directory.
>>
Haven't done web dev in a while. I am a pretty proficient programmer. I need to write a website for a company to extract data from a DB, calculate quotes and just a general interface for them aswell. I was thinking just a basic PHP site would do?

Also any good Web Dev IDE's around? Was thinking Eclipse, as I am used to the UI, but I heard Aptana is god?
>>
>>58549881
>make a few nice looking websites
>make those websites responsive and look good on phones/tablets
>make another site to show off those sites w/ your contact info and brag about what you know and can do
>done

Quit procrastinating and go make shit.
>>
>>58550937
Just look up how to use partials to make your header and footer 1 file each - so if you change your nav/footer you don't have to change it a dozen times.

No need for a CMS if it's only a handful of pages.
>>
>>58551107
>"Full-stack" Meme.js happened.

No. Single page apps happened.
>>
People need to console.log more. Every problem can be solved with the right number of console logs.

Christ, even my father was a console log.
>>
>>58562954
I'm stuck in the 90's. I window.alert everything during testing.
>>
So I've been programming in C for a good bit and I'm looking into kore for the backend which seems good; however, I'm totally lost on how to configure and deploy a web app or website. Is there a good guide for what I need?
>>
eating sushi and watching dev videos :3
>>
<body>
<div class="map"></div>
<div class="container-fluid stylish">
<div class="row">
<div class="col-lg-4 col-lg-offset-4 text-center boxstyle">
<h1>Weather App.</h1><br><br>
<div class = "csbox">
<input type="text" id="csinput" class="csinput">
<button class="csbutton glyphicon glyphicon-search"></button>
</div>
<h3 class="weather"></h3>
<i class="weathericon"></i><br><br>
<span class="degC"></span>
<span class="degF"></span>
</div>
</div>
</div>
</body>


so if I click anywhere outside of .row, my input does not deselect. what could be going on with .stylish outward that doesn't register the click event?
>>
>>58563107
>C for the backend
You're an idiot.
>>
File: 1445474358303.jpg (58KB, 498x482px) Image search: [Google]
1445474358303.jpg
58KB, 498x482px
>>58563483
I'm sorry you're too retarded to understand pointers, anon
>>
>>58561490
>Be a person that people like
fug, I don't even like myself
>>
whats the best way to take down a live db, run some updates on it, and then put it back live without missing any data that might be pushed into it by customers? im assuming i should do this in the middle of the night or something.....
>>
>>58563878
what sort of updates are we talking about?
>>
>>58564059

adding some columns, and entering data into them mainly
>>
>>58564158
I mean, if they're new columns and customers can't push data to them yet, you should be good to do it any time.
>>
lets say i wanted to store today's date in a field, how would i prevent that date from changing each new day? i'm using the date() function in PHP and basically i want it to never change after the user generates it
>>
>>58564468
save it in a table...
>>
>>58564536

thats what im doing now. I store the return value of the date function into a variable and store that variable into the field
>>
>>58564578
Well what's the problem? are you asking how to stop them generating it twice?

If so then just add a boolean to the table that changes to true when they generate the date time. Then just add an if statement on the generation to check if the bool is true or nah and if it is then don't generate it.
>>
>>58564655

i want to prevent that date from ever changing as soon as the date gets generated with the date function. But the date function obviously changes each day. And there's no static variables in PHP....
>>
>>58564694
well yeah, if it's in the table it shouldn't change or update unless you're letting the user generate it twice... Give me some context man
>>
>>58564719

if user selects a certain option, todays date gets put in the status date field. Though when each time the form is loaded it would read that condition again to check if said option is selected (which it is) and, it would update the date, but i want it to stay the date it was FIRST set to. Hard to explain...
>>
>>58564824
as I said before dude, on the first run through of the condition add make a boolean in the table true.

Then on the condition, add an if statement to read the bool from the table, check if true, if true don't run the condition.

How do you not get this anon?
>>
>>58564824
You need to persist data somewhere you imbecile
>>
Is there a law against creating toxic links to your competition to harm their SEO and thus boost your own?
>>
>>58564852

i didnt need to do all that, thanks anyway. I just made a button that generates todays date, and the only way it would ever change is if the user clicked it again
>>
Trying to made a div % based width with the same height in px. Is this possible with just CSS?
>>
Need to listen to one audio stream and restream it to multiple users

What I want to achieve is to hide the original streamer behind some kind of backend.

Ideas to achieve this ? Any off the shelf solutions ?
>>
>finallly convinced myself to switch my project over to node js, as it is far better for web
>realize Go is a better language, and is faster
>now looking into Go

IT KEEPS HAPPENING

IT IS AN EVIL CYCLE AND I CANNOT ESCAPE

BEFORE SOON I'LL BE TRYING HASKELL OR ELIXIR

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
>>
>>58565483
stick with java or c#

fast enough, strong typing, jobs
>>
>>58565520
Java is my go to language, my steady and loving wife who puts up with me.

But I want mistresses, lots of them, young, submissive and ready to be explored.
>>
what goes in the success part of an ajax call? i dont get what i need to pass through the function

    $.ajax({
type: "POST",
url: 'whatever.php',
data:{action:'some_action_name'},
success:function(WHAT_GOES_HERE) {
WHAT_GOES_HERE
}
});
>>
>>58565584

simple answer
function testAjax() {
$.ajax({
url: "whatever.php",
success: function(data) {
return data;
}
});
}


or do it async

function testAjax() {
return $.ajax({
url: "whatever.php"
});
}


//get promise
var promise = testAjax();


//promise is fulfilled
promise.success(function (data) {
alert(data);
});
>>
>>58539125
If I'm understanding correctly, what you're asking for is the exact opposite of what parallax does. I haven't fixed with this yet, but maybe you can use jquery to figure out if the browser window is being resized, and after a certain point, remove the parallax, have a static, responsive image.
>>
>>58565738

whats the point in using non async ajax? i thought that was the whole point?
>>
>>58565738
wait, the first one isn't "async"?
does that mean it will block the entire javascript runtime until the request succeeds or fails?
>>
>>58565830
ajax is async so the promise lets javascript keep working while you wait for the data to arrive
>>
>>58565892
I am reading this as:
>both are ajax
>ajax is async
>therefore both are async and therefore non-blocking
>>
I've downloaded the Reddit enhancement suite and am trying to load it as an unpacked extension in Chrome.

Does anyone know the easiest way to accomplish this? It's not as simple as just loading the folder since it's complaining about scoping issues.

"name": "{{prop?title!../package.json}}",
"version": "{{prop?version!../package.json}}",
"manifest_version": 2,
"minimum_chrome_version": "54",
"description": "{{prop?description!../package.json}}",
"background": {
"scripts": [
"{{./background.entry.js}}"
]
},
>>
>>58565941

Woops, forgot I included a snippet of the manifest file. It's reading the "version" as a literal string instead of following the specified path.
>>
>>58565926
hes obviously a php developer who has no idea what async even is
>>
Please tell me there's an easier way to generate the current date in Javascript

var d = new Date();
var month = d.getMonth()+1;
var todayDate = "" + month + "/" + d.getDate() + "/" + d.getFullYear() + "";


wtf man
>>
>>58566202
That's pretty much the best way in vanilla js if you want to customize the format of your string.

There are some more terse, but non-customizable examples at https://stackoverflow.com/questions/1531093/how-do-i-get-the-current-date-in-javascript
>>
>>58566288

yes im going balls to the wall with vanilla js

yes im already pissed off at it

yes i fell for the js meme

i never want to use PHP again if possible
>>
>>58565289
please respond
>>
>>58566304
Have you looked at Go?

After you've imported "time"...

t := time.Now()
str := t.Format("01/02/2006")


or if you like 1-liners,

str := time.Now().Format("01/02/2006")
>>
>>58565770
>>58565830
>>58565892
>>58565926
Anon is a mental handicapped. Both answers are equally correct, and both run asynchronously. In fact, the compiled machine code is probably nearly identical.

If you give the $.ajax options object a method called 'success', it automatically calls that method when it gets the response successfully. $.ajax also returns a promise, so you can do it the second way if you prefer. Use #1 if you prefer a more OOP style or #2 if you prefer a more procedural/functional style.
>>
>>58566304
If you truly fell you the js meme you should be using npm + webpack + gulp

Then you can just require some random library and use that.
>>
>>58565584
read the jquery api, pajeet.
there are separate function slots for ajax error, ajax start, ajax stop, ajax complete that you could insert whatever. in your scenario success function() {
// insert whatever result = items[i].value here
}
>>
File: pyramid.jpg (543KB, 1280x837px) Image search: [Google]
pyramid.jpg
543KB, 1280x837px
Is your web framework this awesome, /wdg/?
>>
What's the best way to send real-time information from the back end server to the front end? Currently using websockets in a Node.js server to send data to clients.
Does something like Falcor also accomplish this? Or would it be better to have a framework like Angular that lets you replicate a service client-side to directly update models through data bindings?
>>
>reading a thing on reddit about a freelance android dev going from no job to 126k after 1 year.

literally shaking/.
>>
>>58547400
>what is Express
>>
>>58549598
this is literally wrong though
Go is actually designed first and foremost for building web servers. It comes with excellent and simple REST support. Even in the book "The Go Programming Language," building a web server is the first thing they show you how to do.
>>
>>58569363
What does it do?

Is it supposed to be an alternative to like apache and nginx, or just a server-side language like PHP?
>>
>>58570180
It is a server-side language like Node. It is unlike PHP in that it does not rely on a web server, so your app's single executable can serve content on its own.
>>
>>58570180
Like Express, Django, or Spring or any other framework that lets you easily set up routes & REST calls
>>
What's the difference between a URI and a URL? They seem to be used interchangeably but I don't know if there are specific uses for each.
>>
>>58571808
https://danielmiessler.com/study/url-uri/#gs.l2vsI7E
>>
>>58548920
just use squarespace.

static websites with shopping carts have been completely automated at this point
>>
>>58566202
dateFns.format(new Date.now(), "MM/DD//YYYY")
>>
Got my first interview for a Junior Rails Dev position lads how should i prepare?
>>
So I've done goofed and installed some malicious software on my windows desktop pc.

Removed most of the crap but this fecking site keeps poping up on from time to time on chrome even after I've reinstalled it, deleted the chrome folder, used the chrome cleanup tool and malwarebytes cleanup.

The only thing that's keeping me from being redirected to the site is malwarebytes web protection but I'd like to keep it from popping up altogether. Any suggestions on how to fix this /wdg/ would be greatly appreciated.
>>
Hey guys.

Is it possible to convert an existing Angular 2 project to a cordova app or does it have to be built as one from the start?
>>
>>58572483
nvm, it was a popular virus from wonderlandads so got it sorted.
>>
>>58540703
This.
NodeJS is for autistic kids with ADD.
>>
>>58572483
Download hijackthis. With that tool you can ensure things dont start with your browser.
When you do control alt delete you can also disable shit that starts up with your computer.

This ensures 90% of the malware becomes ineffective after a reboot.
>>
>>58573972
Oh I forgot one thing: you also have to kill the process of course.
>>
>>58573972
thing is this is a pretty persistent type of malware called wonderads. Fucking around all day deleting random crap files that it spewed up in the windows registry so sadly it's not that simple to get rid of it :(
>>
>>58574235
wonderlandads* fucking tired and feel pretty unproductive
>>
>>58569042
>What's the best way to send real-time information from the back end server to the front end?
websockets bestsockets

>Does something like Falcor also accomplish this?
Falcor (assuming you're talking about the netflix falcor and not some other thing) basically makes all of your backend data model available at one endpoint, so your frontend can get all the data it needs with just one request instead of several, kind of like graphql. It doesn't do anything in real time by itself, but you could of course use it over websockets or something if you wanted.

>Or would it be better to have a framework like Angular that lets you replicate a service client-side to directly update models through data bindings?
You could do it that way if you want, but personally I would stay far, far away from angular since I don't partcularly want to rewrite my frontend every 2 months to deal with all the breaking changes on the roadmap.
>>
>>58572881
iirc cordova works with any html/css/js so you should be fine. Last I heard, it was kind of slow and buggy though, so good luck with that.
>>
>>58572483
Nuke it from orbit. It's the only way to be sure:
1. Back your shit up in cloud-based file storage service like dropbox, etc. (you could use an external hard drive, but there's more risk that malware could sneak onboard)
2. Reinstall the OS. Double check everything in the backup before you move it to the clean OS.
3. Change your passwords to everything (use a password manager (keepass is best, lastpass is fine too if you don't mind the botnet having access to your passwords)
4. Back your shit up properly so it's less painful if it happens again
6. Keep a close eye on all your financial shit. Identity theft is no joke.
7. Don't download malware, dumbass

>>58572223
Go over common interview q's. "Tell me about a time when you solved a problem", etc.
Brush up on Ruby, HTML, CSS, and JS. Mostly Ruby. Do a few exercises on codewars or something the day of the interview as a warmup to get your brain thinking about code

Also, since it's a Rails job, tell them you're a trans-woman and talk about how important """diversity""" is to you.
>>
Is LaunchCodebro here?

I got accepted through them.


It's funny. First test I did PHP, passed. They changed their process shortly after and I missed the email so they cancelled it.

Second test, Javascript. Did good and failed somehow.

Third test, PHP just cause. Only did one answer and bitched heavily about the hackerrank process in the comments. Passed.

Like they literally asked "Why would you make a good candidate" and I said "I want to be the very best like no one ever was"

So what's the interview like?
>>
I just feel weird doing back end with javascript. I think the meme might be real.
>>
File: golang.png (19KB, 200x199px) Image search: [Google]
golang.png
19KB, 200x199px
>>58575354
Salvation awaits.
>>
>>58575433

im not good at that low level of programming yet im just a web dev fag
>>
What would you guys recommend for building a small website where I can store some simple statistics on games like wins and losses and display them? I was thinking of doing it with Django and and SQLite backend since it's only gonna have like 5 users.
Is Django the right thing or should I just use php to communicate with the db? How would you guys do it?
>>
>>58575501

for something that simple just use PHP and sqlite. A large framework for this would be dumb. Use PDO to do all your data handling. Don't write old PHP. You can easily do this in 2 hours.
>>
>>58575501
i would use google forms and a google sheet
>>
File: lol.png (1010KB, 999x825px) Image search: [Google]
lol.png
1010KB, 999x825px
>>58565289
>>58566562
This is literally halting all my progress, I can't find a way. Please respond /wdg/ I am at your mercy
>>
>>58575593

why do you need to do this....? i dont even
>>
>>58575602
I have a div shaped like a circle in a responsive website. I'm so autistic I don't want to do anything until I solve this problem.
>>
>>58575593
Flexbox
>>
>>58575617
$(document).ready(function()
{
$("div").css("border-radius", "50%");
});


div
{
/*border-radius: 50%;*/
width: 50%;
height: auto;
padding-top: 50%;
background: #ef8913;
}
>>
Best tutorials or advice for being able to create stuff with CSS like its second nature?

I'm still at that stage where I'm constantly thinking "WHY THE FUCK ARE YOU DOING THAT?!" and blindly using huge margins/padding, float and clear to try and solve all my problems
>>
>>58575714
Why are you using JavaScript to set a border radius? Just set it in CSS.

height: auto is the inherit value, so nothing changes from the default state.

Padding-top is going to completely fuck up your height allocation. Don't you want margin-top? I'm at a loss for what exactly you want this to look like?

I'll give you a quick and dirty hint.

CSS calc();

Research it.
>>
>>58575761
learn a grid system
>>
>>58575761
Lynda.com video tutorials
>>
>>58575676
This looks like a grid stylesheet that uses JavaScript. I don't get it anon
>>
File: 1347820768174.jpg (67KB, 426x341px) Image search: [Google]
1347820768174.jpg
67KB, 426x341px
>Writing a single page application
>Halfway through realize it's leaking memory like a firehose

Motherfucking ass bitch.
>>
>>58575956
What kind of application?
>>
my app when tested locally spikes the CPU up to around 12-15% each request/response the user does to the server... i-is that good or bad?
>>
>>58575845
Only uses CSS. Pure CSS.
>>
is there a javascript function that lowers the quality of images i can run on my app? i only have very large high res images but they want them the size of thumbnails so i have no choice but to resize them with CSS, and of course that slows things down since the original size of them is large
>>
>>58576161
Oh, but it's a grid stylesheet. Is there a CSS property in this stylesheet that does what I'm trying to accomplish? Which class?
>>
>>58576201
no
there is probably a library for image manipulations

by the way, why the fuck you want to scale down images on client
they already transferred through network in all their size, you wont benefit from that
>>
>>58576201
Need more information.
>>
>>58576267
make thumbnails either in photoshop or using npn's thumbnail

js cannot go back in time and undo your past transgressions we're 3 or 4 meme frameworks away from godlike omniscience
>>
>>58576014
quite boring business software
>>
>>58576201
preprocessors anon. Webpack has bunch of thumbnail generators for all i know.
>>
>>58576318
Wot?
>>
>>58576341

your browser still has to read the high rez photos to begin with before javascript or CSS resizes them. They need to actually be resized into thumbnails first.
>>
>>58576098
Bad. Your app can handle ~8 requests at a time per #cores it's using. What language is it?
>>
>>58576341
sorry i meant npm not npn.

typo.
>>
Trying to learn node.js, since everyone recommended I got the "async" package, one thing though is that I mainly need it for queueing so I'm doing

class.prototype.handlerequest = async.queue(function (_taskinfo, _taskcb) {
var self = this;
[...]
self.visit(_taskinfo.id);
[...]
});

class.handlerequest({id: 1}, function() {
//done
});


Obviously self.visit throws an error because "this" is the async shit, so how would I do this properly?
Should I just pass the class as an argument? doesn't it fuck things up? I'm talking about doing:


class.prototype.handlerequest = async.queue(function (_taskinfo, _taskcb) {
var self = _taskinfo.self;
[...]
self.visit(_taskinfo.id);
[...]
});

class.handlerequest({self: class,id: 1}, function() {
//done
});



send help
>>
>>58576761
Protip, if you use the fat arrow syntax e.g. (arg1, arg2) => {doStuff(arg1); console.log(arg2); } you don't have to do the var self = this.
>>
>>58576761
You should also look up JavaScript's bind method which can pass the context to other functions. Same goes for call and apply. https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_objects/Function/bind
>>
What is the best stack and why is it JASP? (Javascript/AJAX, Apache, SQL, PHP)
>>
what's the best resource to learn php?
>>
>>58576953
Ok now you're just grasping for a 4-letter acronym.
>>
I'm trying to do an image viewer with an overlay on the background, and there's something I can't seem to get right.

Basically I want both the image div and the overlay div to be set to display:none upon clicking on any of them, but what I came up with doesn't seem to work when clicking on the inner div.

Got any solution? Here's a MWE of what I did. Clicking the grey square doesn't make them disappear like I would like them to.
https://jsfiddle.net/ckqocvy5/

I'm shit with js btw
>>
>>58565738
The first can't possibly work. What are you talking about?
>>
>>58577206

i made it up, yeah. It's a bretty good one.
>>
>>58577365
link your project and we can help you out
>>
>>58576422
Im not that fucking guy. I was telling him we need more infi
>>
guys do you like anime
>>
>>58578692
Yes.
>>
>>58578994
would you like new anime thread
>>
File: confused.png (1MB, 1280x720px) Image search: [Google]
confused.png
1MB, 1280x720px
>no server side scripting like PHP
>contact us form
>don't want opening outlook
What do?
>>
>>58579188

u wot m8
>>
I'm looking for a partner for an online game. I need a programmer who's experienced with HTML5/JS/SocketIO and hopefully phaser.io. I can invest $1000 of my own money into the game, we'd code it together and split the profit 50/50. We can discuss the details of the game together, or I'm open to your own game ideas and we'll collaborate together. Email: [email protected] if you're interested.
>>
>>58579289
Basically
>can't use PHP
>have a form that is supposed to send an email
>don't want to open any software to send the email
PHP has email() but I can't use PHP. If I use mailto:[email protected] then it opens up Oulook for me, since it's the default mailto: program for Windows.
>>
>>58579188
>not having $5 to pay for a shitty vps
>2016
>>
>>58579359

why can't you use php on your server......?
>>
>>58579408
>>58579367
I'm using my University's free service and I can't use PHP. Or at least when I <?php echo "shit" ?> it doesn't work
>>
>>58579359
>>58579440
Use a cloud email service like Sendgrid.
>>
>>58579454
sendgrid may require including your secret key in your javascript,
so maybe 123contactform.
Thread posts: 322
Thread images: 27


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