[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: 32

File: 1504058320403.png (868KB, 822x552px) Image search: [Google]
1504058320403.png
868KB, 822x552px
>Previous Thread
>>62201222

>Getting started
Get a good understanding of HTML, CSS and JavaScript.
MDN web docs offer a good intro (independent of your browser choice)
https://developer.mozilla.org/en-US/docs/Learn

>Free online courses
https://www.codecademy.com/
https://www.freecodecamp.com/
https://www.bento.io/

>Roadmap
https://github.com/kamranahmedse/developer-roadmap

>Resources
https://developer.mozilla.org/en-US/docs/Web - General documentation for HTML, CSS & JavaScript
https://stackoverflow.com/ - Developers asking questions and helping each other
https://caniuse.com/ - Check browser support for front-end web technologies

>Youtube channels
https://www.youtube.com/user/TechGuyWeb - Traversy Media
https://www.youtube.com/channel/UC8butISFwT-Wl7EV0hUK0BQ - freeCodeCamp
https://www.youtube.com/channel/UCO1cgjhGzsSYb1rsB4bFe4Q - funfunfunction
https://www.youtube.com/learncodeacademy - codecademy
https://www.youtube.com/derekbanas

>in-depth comparison of VPS hosts
https://www.webstack.de/blog/e/cloud-hosting-provider-comparison-2017/
>>
File: 1490865812592.jpg (60KB, 580x407px) Image search: [Google]
1490865812592.jpg
60KB, 580x407px
>>62246479
I really love the Idea of creating Desktop Apps with things like electron.io

But I want to store data locally. Like a CRM or Job Manager.

Should I be writing to a basic text file or should I be using a form of offline database backend?
>>
>>62246645
NeDB according to
https://electron.atom.io/community/

maybe others are also usable like lowDB or levelDB, depending on your needs.
>>
>>62246724
>NeDB
awesome thanks!
>>
Threadly reminder not to use an ide for fucking javascript. Thank you.
>>
>>62247657
What about for PHP? NetBeans is pretty comfy for PHP.
>>
>>62248592
I don't see why you would want to for php tbqh
>>
>>62247657
Without autocompletion, refactoring, find function and find function usages, I wouldn't dare to code in Typescript.
>>
>>62248708
You don't need an ide to use fucking typescript nor those functions.
>>
>>62247657
I know people have different definitions of that, but I guess you are not talking about vsCode/Atom and the like, right?
>>
>>62248729
Also, interactive linter warnings are good way to avoid fucking Work Burnouts when coding with javascript after n years of being a developer.
>>
Whats the ultimate web app stack? Im talking languages, frameworks, app servers, backend server and DB.
>>
Is it worth learning ruby and rails for making web apps?
>>
>>62246645
I'm using Dexie.js. You could also go with node-sqlite3 for heavier stuff, but it complicates multi-platform builds.

>>62247657
What is an IDE anyway? Is VSCode an IDE? It has debugging, refactoring, and language server integration for TypeScript. It also has integrated Git support. If VSCode qualifies as an IDE then the fact is you should almost always use one, because you should be almost always programming in typed languages, unless you're writing small python utility scripts.
>>
>>62249217
Kotlin, Spring 5, Postgres
>>
>>62249217
>Whats the ultimate web app stack?
Windows, C#, .NET, IIS, MSSQL
>>
>>62249305
Might as well go with Postgres instead of MSSQL for ease of use
>>
>>62249393
>ease of use
But that is exactly what you try to avoid by using the aforementioned stack.
>>
File: guaranteed_replies.png (299B, 30x25px) Image search: [Google]
guaranteed_replies.png
299B, 30x25px
>>62249217
JS(ES6/7), Vue.js, Node, (DB depends on use case)
>>
>>62249305
swap IIS for kestrel

>>62249404
Is there an easier stack though?
>>
>>62249274
VSC isn't an IDE. Extensions incorporate some IDE features however.

>>62248746
Nope. Text editors are exempt.

>>62249236
Depends on your situation. Are they viable tools for that task? Absolutely.

>>62249217
Postgres
Elixir
Ember
Phoenix
>>
>>62249442
>Vue.js
Whats better about this than say react?
>>
>>62249517
>Depends on your situation. Are they viable tools for that task? Absolutely.
I know its good for quick deployment, but does it scale well in terms of performance and maintainability?
>>
>>62249517
>VSC isn't an IDE. Extensions incorporate some IDE features however.
why not though?
>>
>>62249520
it's hip, trendy and isn't made by a big corporation. it also takes more of a mobx-like than redux-like approach to managing state, so it's great for people who aren't aware that mobx exists
>>
>>62249520
I am much more proficient with Vue than React, so I can't give you a complete comparison.
It mostly comes down to single file components and Vues general syntax.
Doesn't mean that React is bad.
>>
Is there money to be made doing python for backend stuff?
>>
>>62249737
Integration.
>>
>>62249775
>for people who aren't aware that mobx exists
What do you mean, should I throw everything and learn mobx?
>>
>>62249775
Quick rundown on mobx?
>>
>>62250060
>>62250122
https://www.robinwieruch.de/redux-mobx-confusion/
>>
Is it true that front-end devs get significantly lower wages than their back-end counterparts?
>>
File: 1-lX6bPJ8HXZv_5xKOYlj22g.png (61KB, 765x464px) Image search: [Google]
1-lX6bPJ8HXZv_5xKOYlj22g.png
61KB, 765x464px
>>62250227
depends on region
but generally the more you take on the more you earn
>>
>>62247657
Fuck you you stupid noob. I hope you never make it in programming. We are better off without likes of you.
>>
>>62250295
always wondering what brings people into UX design. I would assume, that it's an overlap with graphic designers regarding interest for interfaces, but that doesn't always seem to be the case?

>>62249775
was kinda surprised using React for the first time, that state actually wasn't reactive as in Vue by default, until you add something like MobX to the mix
>>
>>62246479
Hello /wdg/.

So, I have these two scripts in every page of my website, the goal is to load the html and the js of the navigation menu in every page (nav.js requires jquery to work) :

- external jquery from the official website
- an inline script which loads nav.html snippet and also loads nav.js

Fact is, SOMETIMES the menu doesn't work (very weird because it loads the nav.html and all the css, but then clicking on the hamburger menu does nothing). It happens quite rarely but when it happens it's impossible to go through the pages of the website!

If you could help me, I would be very grateful.
I can post more code if needed.
Thank you.
>>
>>62250614
Oh, actually 4chan won't let me post my code (connection error), so maybe I can post a screenshot if needed.
>>
>>62250590
You were on the right track. They use the same tools as graphic designers (although now there's many other tools they can use) mainly photoshop and illustrator, but are focused on interaction with design, use cases, and general human behavior.
>>
>>62250509
>using an IDE just for javascript
>We
N E V E R
E V E R
>>
>>62249943
what does that even mean? vscode offers embedded terminal emulator, git client, task runner and debugger. seems pretty integrated to me

>>62250060
if you're doing React or considering dropping it for Vue only because you don't like Redux then sure

>>62250122
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { computed, observable } from 'mobx';
import { observer } from 'mobx-react';

// a store which holds application state
class TodoList {
// causes reaction when a todo is added/removed/changed
@observable todos = [];
// causes reaction when the number of finished todos changes
@computed get unfinishedTodoCount() {
return this.todos.filter(todo => !todo.finished).length;
}
}

// reacts (rerenders) when changes are made to any of the @observables
// or @computeds that are accessed inside the render function
// (todos and unfinishedTodoCount)
@observer
class TodoListView extends Component {
render() {
return <div>
<ul>
{this.props.todoList.todos.map(todo =>
<TodoView todo={todo} key={todo.id} />
)}
</ul>
Tasks left: {this.props.todoList.unfinishedTodoCount}
</div>
}
}

// reacts (rerenders) when changes are made to any of the @observables
// or @computeds that are accessed inside the render function
// (todo)
const TodoView = observer(({ todo }) =>
<li>
<input
type="checkbox"
checked={todo.finished}
onClick={() => todo.finished = !todo.finished}
/>{todo.title}
</li>
)

const store = new TodoList();
ReactDOM.render(<TodoListView todoList={store} />, document.getElementById('mount'));
>>
>>62250614
Any errors in the console?
Are you using jQuery to append the script tag for nav.js once jQuery is loaded? (not using jquery myself, but I think that's how it's done??)
Have you tried loading the nav script with 'defer' in the tag?
Have you simulated everything with a slow mobile connection and got different/more consistent results?
>>
>>62250149
>>62250940
Cool, thanks. I think I prefer Redux's functional approach, but MobX doesn't look too bad. Haven't dealt with Observables before, but I've heard it's a fairly useful pattern in general.
>>
File: woman.jpg (14KB, 450x300px) Image search: [Google]
woman.jpg
14KB, 450x300px
Ayyy /wdg/. I've got a domain registered with Namecheap and linked up to Digital Ocean successfully. Now how do I make the magic happen, i.e. transfer index.html and the rest onto the DO droplet to have a mothafucking website on the mothafucking internet???
>>
>>62250962
>Any errors in the console?
I just checked the firefox console, i managed to "break" the menu but there are no errors.
>Are you using jQuery to append the script tag for nav.js once jQuery is loaded?
I use two jquery functions, .load in order to load nav.html, getscript to load nav.js.
>Have you tried loading the nav script with 'defer' in the tag?
I cannot use defer with nav.js as it's contained in a getscript function which is inline (afaik, defer doesn't affect inline scripts)
>Have you simulated everything with a slow mobile connection and got different/more consistent results?
I tested it with both firefox desktop and firefox for android, the menu doesn't work in a few occasions. My father also tried to browse this website (Android stock browser), saying that it always works, never broke on him. :/
>>
How many portfolio projects do you think one needs to become "hireable"? Ideally one per skill-set I claim to have?
>>
>>62251355
At least 24, and that's if you want an unpaid intern position
>>
>>62251409
Bother, I have only 23.
>>
>>62251228
you can simulate different connection qualities in each browsers dev tools.
So your problem simply is that jQuery isn't available to the other nav script at the time it's needed? Sounds like a a problem, that would be extremely common and googleable
>>
I've made a bot that retweets tweets. All you have to do is feed it the tweet ID.
Question: how do I mass add accounts to the system? Right now I have to manually create accounts, verify them, setup developer options to get the API and secret keys, then add them to the system for each account. Is there an easier way to do this?
>>
>>62251520
Already googled that, tried different solutions, nothing werks. Also, when the menu breaks the console shows that jquery is downloaded (and executed I suppose?) before nav.js, so nothing suspicious... This shit is driving me insane.
>>
>>62251535
pay someone to do it for you
>>
>>62250752
IDEs are useful tools. Maybe less for javascript but still very useful. Saying you shouldn't use one is as stupid as saying you should not use frameworks.
>>
>>62252343
We're only talking about javascript though, did you read the original comment at all? Stop letting your emotions get the best of you.
>>
>>62251227
DO droplet comes empty meaning you have to setup everything by yourself including webserver.
>>
I would like to try out webgl because OpenGL and Canvas2D were fun, but so far every single example project I have seen had massive lag. Even if it ran soomthly, every 10 seconds or so I got a huge drop in frame rate. Why could that be? Is it even worth getting into webgl, after all?
>>
>>62251785
Damn, okay then. I thought there was a way to do it through the API. Guess I'll have to find some Indians on Fiverr or some shit
>>
I have an idea for a project but I'm not sure if it has been done before and I want to make something unique.

Here's the idea: I'm going to make a e-shop website that sells products that are extremely cheap (I'll probably make some webscraper that pulls prices from multiple websites and then have the price to be ~20% cheaper). Here's the catch though, I'm not going to actually sell any products, that way I'll save money for the cost of buying the products and the logistics involved. If the customer complains I'll just keep sending automatic mails that it's coming soon.

So has this been done before and do you think this is something I can do with 2 month experience of web development?
>>
>>62253086

Questionable legality aside, everything sounds simple except for the web scraper, which is the brunt of the work. I attempted something similar awhile back, but I'm retarded and couldn't figure out a more efficient method of looking up products aside from piggybacking off Google/eBay's APIs

Are you going to scrape the prices from a pre-selected list of sites?
>>
>>62253086
>some more insight into the mind of the low iq criminal population.
Wouldn't be 2 weeks before you'd get fucked you idiot.
God, I hope you are just shitposting.
>>
>>62252442
Ayy, true. I guess it's one more skill to add to the set.
>>
Is garbage collection instant in JS? If not, how does it work?

I'm constantly loading/reloading a table with thousands of text rows using $('#table').html(tableData), and I'm worried that the old content stays in memory
>>
>>62253598
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management

in the future if you have any questions about anything relating to js, use MDN before typing in the query
>>
*invents fantastic idea which takes off spectacularly*
and all it took was a few lines of PHP.....eh heh heh...
>>
>>62252356
Like small single file vanilla javascript? Only case this may be overkill.
>>
My employer is giving me a laptop /g/uys. XPS13 Dev Edition or Macbook Pro? Both are 13" 8ram 256ssd models.
>>
>>62254562
Take the MBP and don't post about it on /g/. XPS is unironically garbage-tier. The proper linux laptops are thinkpads, elitebooks, and latitudes.
>>
is oauth the xml of api authentication?
>>
>>62254562
mbp
>>62256046
it's the jq of auth
>>
Today i had my first ever technical interview for back-end developer (php, mysql, zend) and i sucked like, horse dick.
Interview was like 150 minutes long, i was asked to write querys, php functions and asked bunch of questions.
I felt autistic and when i started i messed up fucking insert query, wtf man
i started typing insert into table(t1,t2) values('shit','shit','shit',shit')
why is this happening to me?
does anyone have any experience like this?
fucking hell

now i need to wait if they gonna take me for 14 days testing
>>
>>62256223
Happened to me on my first technical interview. I sperged out and couldn't solve the problem (i saved the code and solved my problem within minutes at home). I'm not sure what the solution to a performance anxiety, but you'll get better at it.
>>
>>62256260
she gave like to do this:
you have form with 3 input field, fname, lname and bdate
write function which will determine how many days till your bday
it is stupid ez but like i got stuck and i dont even remember where
when i got home i did it in like 10-15 minutes

She saw that i was nervous, asked me why im i into php when i write good php oop code. I should be doing some better language.
>>
>>62256260
Very similar here, its all performance anxiety. Just gotta learn to beat it.
>>
>>62256223
>>62256260
>my first time doing x i was so nervous i actually could not do x
Write a book.
>>
>tfw writing in git bash makes you feel like a 1337 hacker
>>
>>62249442
>>62249775
>>62249797

(Unfortunately) if you want to work on mobile there is no decent alternative to React Native right now.

If there is I would actually love to hear it because we are starting work on a new app soon and want to get off the React train.
>>
File: ss (2017-09-05 at 01.21.31).png (1MB, 1105x891px) Image search: [Google]
ss (2017-09-05 at 01.21.31).png
1MB, 1105x891px
Made a dark theme for gelbooru
Any criticism?

Here's link, but I'll post another picture so you won't have to install it https://userstyles.org/styles/141949/adfree-gelbooru-w-dark-theme
>>
>>62250295
What would "Full Stack Developer" envelop on this diagram?

I'm assuming everything?
>>
File: ss (2017-09-05 at 01.23.37).webm (3MB, 1210x728px) Image search: [Google]
ss (2017-09-05 at 01.23.37).webm
3MB, 1210x728px
>>62257033
>>
File: a.png (281KB, 1324x1460px) Image search: [Google]
a.png
281KB, 1324x1460px
>>62257049
and comments.
It was originally just an ad blocker, now it's also a dark theme on top of that.
>>
>>62257138
thanks brah, should make those long fap sessions much less eye straining.
>>
>>62257217
sure, no problem. Let me know if something wrong, I'll keep the tab open for a hour or so to fix any mistakes or improvements.
>>
>>62257039
Full stack refers to the application developer side exclusively (green bubble).
However if you're working solo or in some niche situation yeah you might have to work at everything on the image.
>>
File: mistake.png (77KB, 1366x768px) Image search: [Google]
mistake.png
77KB, 1366x768px
>>62257277
this is the only thing I have noticed for now, unless it was intentionally left like that of course
>>
>>62256260
>>62256395
get comfortable teaching your family stuff
stop putting the pussy on a pedestal and use the same teaching skills in the interview
>>
>>62257366
oh yeah, I never use that site so I forgot about it, will add
>>
>>62253627
>https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management
Articles like this scare me. What if the general public could understand this? Would my job in web dev be put to risk?
How many barriers to entry is there for web dev in 2017?
>>
>>62257425
lmao go to bed singhpreet
>>
7 hours since i come back from interview
still depressed
>>
>>62257682
Interview number what / n?

If it's your first, chill. If it's > ten you either aren't learning or are aiming for jobs outside your skillset.
>>
>>62257712
1
>>
File: ss (2017-09-05 at 02.24.59).png (41KB, 832x552px) Image search: [Google]
ss (2017-09-05 at 02.24.59).png
41KB, 832x552px
>>62257366
Took me a while because I had to use base64 for the background image, but it's styled now.
>>
File: temp.jpg (47KB, 1481x543px) Image search: [Google]
temp.jpg
47KB, 1481x543px
>>62257719
I made this for you anon. 100 hours in paint etc
>>
>>62257883
i need mental fix
>>
polymeme
>>
>>62249217
LAMP
>>
>>62251227
Give me the login details and ill do it for you.
>>
>>62258003
text chats are cancer
>>
File: LainOglaf.png (44KB, 332x356px) Image search: [Google]
LainOglaf.png
44KB, 332x356px
Hey /wdg/, software engineer by trade with no web dev experience. Me and my friends miss movie night so I want to make a private website that we can log into and watch movies that we store on the site. What would I need to learn to do this? Thanks in advance.
>>
>>62258569
nginx with autoindex and basic auth.
>>
>>62258820
Thank you friend. I will get to work right away!
>>
>>62258003
kill yourself, scum
>>
>>62258569
you will need an internet connection that can support the upload speed needed for a movie. most consumer upload speeds are throttled to all hell
>>
>>62259597
Can't I just store the movie file on whatever server I am hosting my site on?
>>
What style guides do you use for HTML, CSS, and JavaScript?
Thinking of using Google's style guide purely because of their brand.
I'm open to using others though if anyone has a better alternative.
>>
>>62246645
SQLite.
>>62247657
That's right, use it for TypeScript.
>>62249217
>ultimate web app stack
Doesn't sound like a serious question. Tell us what you want to accomplish with it, the size of your team, etc.
printf 'HTTP/1.0 200 OK\r\n\r\n<h1>Hi</h1>' | nc -l 8080
>>
>>62259888
oh, thought you were wanting to host yourself. nevermind then
>>
>>62256984
Weren't the Chinks at Alibaba working for a React Native counterpart for Vue.js?
>>
I have a question. A new guy started today at the cafe I work at and claims he makes website for smaller companies. I asked him what languages does he know and he said Javascript and url.
My question is what the fuck is url.
>>
>>62260263
Ur Life
>>
>>62260263
He just pronounced "Ur" in a weird way.
http://www.impredicative.com/ur/
>>
>>62260263
why didnt you just ask him then and there to elaborate?
>>
>>62260298
it's like why work at a cafe if you are a web dev already
>>
>>62260327
I actually did this when I was starting out. I was only doing freelance websites and not having a large portfolio at that time, I wasn't charging very much. Plus freelance webdev is antisocial as fuck.
>>
>>62260323
>him

don't assume genders or I'll report you to google
>>
>>62249517
>Postgres
>Elixir
>Ember
>Phoenix


>ember
cmon now
>>
>>62260455
3 out of 4 is more than most companies and team can ever dream of. And Ember's not bad, it's just more hassle than React.
>>
My entry-level af job involves making UIs for displaying/editing XML data. I know a little bit of JS/jQuery and Bootstrap, and so far it gets the job done (but I keep hearing talk about jQuery being outdated/inefficient)

Should I bother learning a framework on top of everything else?
>>
>>62260663
Yes, but having good knowledge of javascript is paramount. JS JS JS!

Jquery is useful but I wouldn't bother learning it in depth, just remember the commands you frequently use.
>>
>>62260663
Read JavaScript: The Good Parts.
>>
I ordered a copy of Eloquent JavaScript. Did I fuck up?
>>
Does this make any difference
Promise.resolve(123).then((res)=>res+1).then(res=>console.log(res));

vs
Promise.resolve(123).then((res)=>{return Promise.resolve(res+1)}).then(res=>console.log(res));


i.e. returning promise.resolve or not
>>
>>62253375
lmao
>>
>>62263517
no
>>
>>62258569
use something like django with vuejs
>>
>>62256984
>>62260164
Weex still needs some time I think, but could be a good option in the future.
>>62263263
because you want a hard copy or because you didn't know you can read it for free?
>>
what's the point of learning laravel when 2 3rds of the internet is wordpress?? what a waste of my time
>>
>>62260263
>url
it takes usually years to understand and master url, no one can explain it to you in a post on 4chan
>>
>>62263657
kay
>>
>>62263657
because the remaining 1/3 of the internet is 300000000 websites
>>
>>62263657
Don't worry, it's not for you. It's for real developers with good projects.
>>
>>62263937
>it's not for webdevs
gotcha haha
>>
File: typical web developer.jpg (791KB, 1920x1080px) Image search: [Google]
typical web developer.jpg
791KB, 1920x1080px
>>62246479
>web "devs"
hahaha good one
>>
>>62264061
yo how'd you get that photo of me
>>
File: screenshot0017.jpg (741KB, 1920x1080px) Image search: [Google]
screenshot0017.jpg
741KB, 1920x1080px
>>62264072
That information is gonna cost you.
>>
>>62260263
>My question is what the fuck is url.
it's a secret

Honestly though, don't ask us, we aren't the retards here. Ask him
>>
>>62264061
fizz buzz outta here
>>
File: screenshot0015.jpg (671KB, 1920x1080px) Image search: [Google]
screenshot0015.jpg
671KB, 1920x1080px
>>62264395
fizz buzz yourself
>>
why are callbacks or promises necessary in javascript? what will happen if I program just like in C#?
>>
File: e3e.jpg (43KB, 680x503px) Image search: [Google]
e3e.jpg
43KB, 680x503px
>>62265200
To ensure that you will have the desired values before proceeding to the next step of the program.
>>
>>62265200
it's a form of asynchronicity.
Lets say you want to load a resource from HDD or even from another website on the internet.
You don't want to sit idle (blocking) until it finished loading. So JS will just continue with some other scheduled code and then later run your specified callback function once the resource you wanted becomes available.
>>
>>62265242
I require explanations to this meme
>>
File: wdg-user.jpg (45KB, 600x600px) Image search: [Google]
wdg-user.jpg
45KB, 600x600px
What are you learning right now, /wdg/?

I'm learning PHP.
>>
File: 1436886710897.jpg (29KB, 640x519px) Image search: [Google]
1436886710897.jpg
29KB, 640x519px
How can I automatically block duplicate uploads to my (image hosting) site, if the photo is the same or lower quality as another?
>>
>>62265544
the meme is that she's a slut who made it obvious she wanted to ride him into the abyss but he was autistically focused on his mission the entire game

>>62265200
no callbacks
no job
>>
>>62266082
I'm not sure if this is possible. People circumvent 4chan's duplication rule pretty easily. By changing the dimensions or editing it and saving it (this changes the metadata I believe) it's essentially becomes a whole new image.
>>
What is the best service for facilitating customer payments? Is PayPal acceptable?
>>
>>62266082
perhaps some kind of reverse image lookup algo?
>>
>>62266082
There's a program called DupDetector which has some similarity functions and you can set a threshold (like 95% similarity) to check for duplicates.
>>
Is there a way to ensure that a Progressive Web App remains cached permanently (on Android or desktop, no luck on iOS)? It needs to be available offline and I don't want to have to make a bloody Electron wrapper just to make it work reliably with no connection.
>>
>>62267287
yea you basically proxy requests to application domain in service worker and cache them in localstorage or indexeddb
browser will occasionally try to update app but it should still work as long as you're offline
this whole progressive app thing is great but won't work on iphones because every ios browser from apple store has to use their shit engine which does not support progressive apps apis in order to damage control apple store competition
>>
>>62266562
Paypal is fine, I've enjoyed Stripe a lot though
>>
>progressive web app
>literally a page that doesn't do shit without javaschit
>progressive
sure loving this meme
>>
>>62267560
>have to actually put in minimal amount of work to make things accessible
>WAHHHHHHH
peak /wdg/
>>
>>62267560
>literally a page that doesn't do shit without javaschit
and why is dis bad my man
>>
>>62267560
>progressive web app
>app
Of course it requires JavaScript, it's an app not a document. Just because people use it to cache their shitty floating UI doesn't mean it's a bad technology.
>>
any wordpress anon here, what is the best way to build the plugin, wp mvc or wp plugin boilerplate?
>>
>>62268074
Technically, building it from scratch.
MVC and the boilerplate act differently- MVC if you want to bake in functionality into a theme, BP if you want a standalone plugin.
>>
>>62268211
thank anon
>>
What's a good web hoster that holds a lot of storage?

I keep seeing these other hosts with myphp and website making tools and shit like that, but I don't need any of it.

Wouldn't that bring the price down?
>>
>>62268758
you would want a VPS with block storage or something like Amazon S3, not a shared hosting provider.
>>
>>62268758
dude just like get network storage and open those ports up to the public :)
>>
Can someone explain why JavaScript is failing at basic math?

-2130865429 * 39916801


Why the hell is JS returning -85057331287172620 instead of -85057331287172629? What can I do to get the correct value?
>>
>>62267700
>>62267658
Get raped and die in fire, you dumb fucking shit stains?
>>
>>62269466
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER
>>
>>62269496
Ok
but first you explain why is dis bad my man
>>
>>62269496
It's OK Chirag Patel -- I mean Steve. I'm sure you'll figure out a way to maximize bloat with PWA.
>>
What are some hip top-level domains
I feel like .io is a bit too mainstream
>>
>>62269550
.tk
>>
File: 1496118999546.png (450KB, 1000x562px) Image search: [Google]
1496118999546.png
450KB, 1000x562px
>>62269550
.moe
>>
>>62269550
.genting
.wang
.kim
.dad
.church
.cheap
.ooo
.porn
>>
File: we just cant do anything.jpg (127KB, 1280x720px) Image search: [Google]
we just cant do anything.jpg
127KB, 1280x720px
>>62269594
>tfw .moe is expensive as fuck for a domain you can't even use professionally
>>
>>62269778
weebs ruin everything as usual
>>
>>62269778
eh, only a bit more than .com and still way less than .io
Still domain pricing is often pure bullshit and a money grabbing scheme.
Don't get me started on squatters and "premium domain names".
>Figure out good name+tld
>it's registered, so check site
>blank page / parking / "send your $ offer"
fucking scum
>>
>>62254562
related question. I'm supposed to start my new job in two weeks, they say I can ask for any laptop I want. For running Linux, what's the best thing I can get? MBP or one of the newer thinkpads? Or is there anything else I should consider?
>>
>>62270652
just get a mbp
dont bother with linux distros macos has everything you need in a much better format
>>
File: amazon.png (102KB, 1223x930px) Image search: [Google]
amazon.png
102KB, 1223x930px
what are the crazies at aws doing with all these services?
>>
Is this a good pattern when you want a different this than the scope has or is it considered ugly?

function someFunc() {
var _this = this;
something.on("click", function() {
console.log(_this);
});
};
>>
>>62271863
Amazon mandated years ago that all technology development in the company had to be in the form of services which could be marketed to the public tech sector. It was actually a huge innovation for such a large company, and put them well ahead of the pack in terms of both technology and market share.
>>
>>62272344
Arrow functions automatically bind to the outer `this`:

function someFunc() {
something.on('click', () => console.log(this));
}


If you want to explicitly set `this` then you should use Function#bind:

const somethingElse = {a: 1};

function someFunc() {
something.on('click', (function() {
console.log(this);
}).bind(somethingElse));
}
>>
>>62272344
That pattern is found in the official Vue documentation so I trust it.
>>
>>62272421
Wow the official Vue documentation is retarded I guess.
>>
>>62272450
It's vue so that's a given.
>>
>>62272450
Why though? Here's an example
https://vuejs.org/v2/guide/computed.html#Watchers

var vm = this
axios.get('https://yesno.wtf/api')
.then(function (response) {
vm.answer = _.capitalize(response.data.answer)
})
>>
Ey /wdg/, collegefag here. I hate everything in CS thus far and just want to build services on top of blockchain tech for small businesses. Is this "web," stuff or not? Everything in our curriculum is enterprise desktop targeted fuckery with C# so I literally know nothing else yet, just trying to get a handle on what I should be learning in my spare time to accomplish my goals.
>>
>>62272527
you can still use c# to build those services if you're already comfortable with it
>>
>>62272527
You can do webdev and web services with C#, I think it's even one of the most employable languages.
>>
>>62272494
Why not just use an arrow function like the other guy said?
>>
>>62272564
I don't know. What do the elders of JavaScript say about it?
>>
>>62272527
they were recently hiring a web dev for the uni website and it all used c#
>>
>>62272494
Because that's an outmoded hacky pattern that was used before bind was specced way back in ES5.1. bind is supported back to IE9 so there's no excuse for not using it.

Really Vue is not wrong in choosing the theoretically most portable possible code for its documentation, there's an argument to be made for the validity of that use case (though the choice of variable name in the given example, 'vm', is particularly egregious as it fails to clearly indicate that the standard scope hack pattern is being utilized), but the real lesson here is that you should not be seeking to emulate the JS usage of Vue documentation. If you write your JS the way it's written in the Vue docs, your Vue code will work but it won't be good code.
>>
>>62272610
yes arrow functions would be useful in that axios example.
You only need normal non-arrow functions when declaring them inside your "methods" property so that "this" will properly refer to your "data" object.
>>
>>62272546
>>62272561
>>62272642
Well damn, I guess I'm in better shape than I thought. I'll have to pick up JS for the front-end of the services though, right?
>>
>>62272756
yes
>>
If I were to create a website from scratch, I currently have nodejs+expressjs for the server, what should I use for the front end?

I know I can use basic html+js+css to make the front end but is there a better framework? I've been told about Angular but that it's also very opinionated. What framework should I use for a multipage website that will also include some apps on some of the pages?

I want to use Bootstrap for the design
>>
>>62272842
The websites I have in mind are just like any other website you see out there online. What would be the best way to make the front end for any website? Nevermind the apps for now?
>>
>>62272842
react + your own css grid
>>
File: arrow.png (10KB, 595x132px) Image search: [Google]
arrow.png
10KB, 595x132px
>>62272743
>>62272610
some concrete example
methods: {
fetchData() {
axios.get(`https://api.example.org/getSpecific/${this.id}`)
.then(response => {
this.title = response.data.title || "a share with this ID does not exist"
this.content = response.data.content
this.link = location.href
})
.catch(error => {
console.log(error)
})
}
}


Vue docs are generally quite good and it's not like they are wrong there.
Guess they want to avoid people overzealously using arrow functions in the wrong places and as a consequence being unable to access the data object.

>>62272842
>what should I use for the front end?
Vue.js + Bulma :^)
>>
>>62272950
>>62272875

Should I use webpack and babel with react? Or just plain react? I'm having a hard time setting up webpack with Express if webpack is needed
>>
>>62272950
Bulma is great.
Too bad Bootstrap is not dying anytime soon.
>>
>>62272527
You want to learn JS, Node, and Go. Microshit does not belong on the glorious web my friend.
>>
>>62273028
up 2 u

>>62273032
bulmas docs are so mediocre though I wish they would focus on that this year
>>
>Go
I love it when people waste their time w/unnecessary memes.
>>
>>62273028
>I'm having a hard time setting up webpack with Express if webpack is needed
What does express have to do with bundling your project with webpack?
Or how do you think they would interact in your case?
One bundles your files the other serves them.

When developing you can either use the webpack-dev-server, without express running.
Or not use the dev-server and instead run your express server separately and serve from the folder that webpack outputs your bundle to.
>>
Redpill me on Docker /wdg/
>>
>>62273154
Big boy tool. Are you a big boy?
>>
>>62273154
like slack
nice for teams
useless for anyone else
>>
>>62273123
>memes
>not realizing go is the preferred blockchain implementation language
0/10
>>
>>62273195
>memes
>not realizing a meme is the preferred meme
Can you speak English? P o r f a v o r s e n o r
>>
>>62273195
>buzzword salad
Hello googler
>>
test
>>
Okay, I have to design a flask app with many concurrent users reading, writing and cross-modifying mysql entities every second. Which tech (i.e. async framework) should I consider to use?

Inb4
>just use django/node/angular/rubyonrails etc.
>>
>>62274234
aiohttp
>>
>>62249520
Almost everything honestly.

While similar to React it has a very easy learning curve, better syntax, faster, no JSX and can be run by just including a script on a page.
>>
>>62274343
vue is comparable to angular
vue is not comparable to react, they're only similar in vaguely accomplishing the same general goal
>>
>>62260164
Weex

It's English documentation is lacking but it basically powers most mobile shit in china now.
>>
>>62274372
This is so wrong it's painful. Vue 2.0 is very VERY similar to React.

You arent' going to see a single professional project that isn't built using .vue file extensions.

t. Vue dev
>>
>>62274438
>t. Vue dev
Were you going for the whole pretend to be retarded to false flag for laughs situation?
>>
>>62269466
JavaScript doesn't math good, in addition to everything it doesn't do good
>>
So is go a meme or not?
>>
>>62269550
.yeah

I really want to make
yeah.yeah.yeah
>>
>>62273173
I blew a big boy in the pen a while back
>>
<body>
<header>test</header>
</body>


header {
background-image: url("img/logo.png");
width: 100%;
}


Why won't this work :(
>>
>>62274862
check console, is img/logo.png giving a 404?
>>
>>62274869

Cheers, sure is.

"Failed to load resource: net::ERR_FILE_NOT_FOUND"

However

<img src="img/logo.png" />


is working
>>
>>62274893
Woops, figured it out! I was linking from my html and not relative to my css. Sorry for the silly question.
>>
>Second week of new job at silicon Valley maplesyrup edition
>have a smoke with nice pajeet, tells me about his 3 kids starting school
>go do my coding, shit was so cash
>fixed like 3 BLOCKING CRITICAL URGENT bugs related to small visual issues
>look up, no pajeet, no /v/irgin to be seen
>where they at fellow white male
>meeting for couple new guys
>shit should I be in there?
>nah anon, you don't want to be in that meeting
>fast forward to lunch, nandos Portuguese chicken, medium, saucey with the coleslaw
>come back, still no pajeet
>he's no longer with us anon, wasn't quite working out
>but but the liljeets
>look on the bright side anon, he was a position above you and Its open now
>dream of starving Indian children eating pages from a Javascript textbook, feelsbadman
>
>
>
>
>
>>
I have a question, in my coursework I've been told to use background image for logos, however I also want to include my nav in my header tags. If the logo takes up the background of my header, then my navigation will be sitting on top of my logo.

How do I avoid this / are my notes wrong?
>>
>>62275004
Doesn't really matter if you use background image but if your teacher insists use it.

Wrap your logo in a div tag or add a class to your image and set the width in it.

Use Chrome Dev tools, learn the basics of it because it helps a lot with css.
>>
>>62274343
>better syntax
How so?
>>
>>62269466
theres libraries for doing math on bigger numbers contained as strings

what else ya got?
>>
I'm playing around with Jquery animations.

If I want a link to change the content of below a header, should I fade out one div and then fade another in? Or should I change the innerhtml of one div?
>>
>>62275567
This is me.

I've got it working, I think how I like. However, the only issue I have now is hiding the divs on default.

#content {
display: none;}


won't work. I'm using Jquery's fadeOut() and fadeIn() to hide and show my divs and the divs won't show upon link click with this option.

Here is my JS:

$(document).ready(function (e){
$('#show_home').click(function (e) {
e.preventDefault();
$('#contact').fadeOut(1000);
$('#servies').fadeOut(1000);
$('#home').fadeIn(1000);
})

$('#show_services').click(function (e){
e.preventDefault();
$('#home').fadeOut(1000);
$('#contact').fadeOut(1000);
$('#services').fadeIn(1000);
})

$('show_contact').click(function (e){
e.preventDefault();
$('#home').fadeOut(1000);
$('#services').fadeOut(1000)''
$('#contact').fadeIn(1000);
})
})
>>
Gonna try and get something off the ground with Scala and Play. Past months I've so been fixated on languages/new frameworks that I didnt make anything. Disappointed in myself..
>>
>>62276350
spotted the typo nevermind
>>
>>62275567
>>62276350
>jquery animations
>when css animations exist
it's time to move on, anon.
>>
>>62276503
are css3 animations supported cross browser
>>
>>62276529
https://www.w3schools.com/css/css3_animations.asp
>>
>>62276545
also look at css transitions for the simple things.
>>
>>62274966
That's one of the longer shitposts I have seen today.
>>
File: 1458783585834.gif (549KB, 720x534px) Image search: [Google]
1458783585834.gif
549KB, 720x534px
>>62276545
>w3schools

caniuse.com/css animation
>>
>>62276876
the point of interest is the "Browser Support" div
>>
>>62276923
The point of interest is that you don't have w3schools filtered.
>>
>>62276943
point of interest being there is nothing wrong with using w3schools as a reference
>>
>>62276964
>objectively worse resource than mdn
>supports shitty business practices
>huge red flag to peers and potential employers
Okay.
>>
>>62277041
>mdn somehow has an objectively superior "supported by x browsers" section, and describes what the same things does objectively better.
>caring about business practices that are completely irrelevant
>huge red flag to autists and pretentious faggots
I bet your a linux-exclusivefag too, right?
>>
File: 1470486988363.jpg (165KB, 354x642px) Image search: [Google]
1470486988363.jpg
165KB, 354x642px
>>62277117
>defending a web development documentation resource company that has and always has had a poorly constructed website representing a multitude of bad practices
>using a documentation resource which is necessarily less up to date, less complete, and less accurate than resources compiled by the people on the relevant working groups
>>
>>62269550
for being professional:
.graphics, .design, .productions, .software, .cc

for fun:
.ninja, .dog, .horse, .moe, .wtf, .party, .co.ck

Also Google applied for the .meme TLD, but I have no idea when that will be available.

>>62274506
I hate to break it to you anon, but that's not a read TLD.
>>
File: 1498865828306.png (146KB, 341x341px) Image search: [Google]
1498865828306.png
146KB, 341x341px
>>62277162
tell me exactly how the mdn css animations page is "objectively better" than the w3schools page, and I will vocaroo a sincere apology.
>>
>>62277194
How many reasons do you want?

Let's start with just the compatibility table: w3schools lists browser support only for chrome, ie, firefox, safari, and opera while mdn lists for all of those plus edge, android, mobile firefox, mobile ie, mobile edge, mobile opera, and mobile safari. Not only that, it has plenty of footnotes for its compatibility table listing any eccentricities in different browsers including links to sources.
>>
>>62251355
3-4 good ones are better than loads of shitty ones
>>
>>62274966
damn
sorry to hear all this
>>
>>62276876
>doesn't work without javashit
>>
>>62251409
Has anybody ever been an unpaid intern in web "dev"?
>>
File: panicroom.jpg (8KB, 150x212px) Image search: [Google]
panicroom.jpg
8KB, 150x212px
What do you think of JSX anons?

:^)
>>
Is there anyone using Windows host with RDP to another PC / VM for web development?
Well, pretty much this thread >>62279547

What do you recommend?
>>
>>62279793
>RDP
Remote desktop is garbage. Ditch the IDE and use a light editor like sublime or vim. Also you should probably just buy a work laptop and run linux on it directly. Windows desktop, linux main laptop with dual boot or windows VM. You can even get a docking station for the laptop and then easily use it as your sole development machine.
>>
>>62261707
>>62263263

Should I bother reading any of these? Or is codeacademy more than enough?
>>
>>62279878
Yeah, I really would like to get either laptop or mini-PC. Basically, I run 2 Vagrant instances at the same time and two loaded projects in IDEA. Lots of RAM consumed ;)

I'm not sure I would ever need a lot of CPU for this. I don't need a graphic card or anything that increases heat and weight significantly. The problem with laptops is that you cannot really customize them and you have to pay for OS/screen/integrated peripherals. Sure it's really nice solution when you have to travel a lot, but I would either have a small box and SSH/RDP to it than have a 15" device sitting near my already bloated table.

Not sure where should I ask, I'm not really visiting 4chan too often. Where can I ask to suggest some good laptops for devs?
>>
>>62279998
stop being such a fucking nitpick
holy shit, nobody fucking cares
>>
>>62276529
Can become unreadable unless you split your views into a 1000 of components placed in separate files, but I still prefer it to angular/vue-like templates with logic inside html attributes

>>62279960
depends. some people like learning from books, but you can do perfectly fine without them nowadays. the only one I've ever read from start to end was "php 4 bible" like 15 year ago and yet I'm doing well now as a java/typescript fullstack dev
>>
I'm a professional web developer working in silicon valley, ama
>>
>>62280073
how often do you consider suicide?
>>
>>62280073
Have 4 years experience (mainly PHP/JS), at the moment making $38,000/year (I'm not in the USA btw) before taxes (about 10% after PayPal fees and conversions).

Do you know about these topics: https://github.com/jwasham/coding-interview-university ?
If I try to learn it under a year, could solve algorithm-related tasks then can I expect offers for $70,000 or more?
>>
>>62260663
>Should I bother learning a framework on top of everything else?
The answer to all questions of the form "should I learn X?" is yes, but you have to prioritize. If you're shaky with vanilla no-library JS then focus on that. Then move on to flavor of the month frameworks.

>but I keep hearing talk about jQuery being outdated/inefficient
jQ is very efficient, much more than angular/react/vue/whatever. The programmer experience is more "low-level" (although jQ itself is already a fairly abstract library on top of an interpreted high level language, all things are relative) so if someone says it's "inefficient" they're probably talking about programmer time rather than any technical point.
>>
Are you guys well-versed in computer science as well as training in web dev? I'm looking to embark on this massive pathway:

https://github.com/open-source-society/computer-science#introduction-to-computer-science

It lists two of the popular edx courses that everyone takes. But I would like your view on whether it would enhance my learning as a web developer or whether it would complicate things. I may want to make software in the future but my heart is in web dev. At the same time, knowledge of computer science concepts can work out very well. What would you do /wdg/?
>>
>>62279793
>>62279998
what's wrong with dual booting.
Or consider bash for windows (wsl) as another option. I usually run vsCode normally in windows and then run everything else (bundling, testing, building) with bash.

that thread you linked
>I don't want to dual boot because sometimes I do non-windows things
what? that's exactly when you dual boot, I don't understand...

>>62280158
>jQ is very efficient, much more than angular/react/vue/whatever.
Don't think it's fair to make a comparison like that.
jQuery is arguably 'simpler', when you only want to make some small individual changes on a site and it's 'efficient' since it covers various areas, (animation, DOM, ajax, etc.)
For building a proper application I can't think of a situation though, where I would find jQuery more 'efficient' overall than one of the proper frameworks/libraries you mentioned.
>>
>>62280117
A couple times a week. The absurdity of my existence gets to me a lot, but the pay is too good to justify finding meaningful work when I can just slog it out and retire early.

>>62280143
Everything up to the "papers" section, probably only read like a third of those. I like algorithms and datastructures stuff though, most my coworkers probably know one sort and one search algorithm, BSTs, and the non-formal notion of big-O. Most working american programmers have never read an academic paper. It's a good study guide though.

It's hard to talk about salaries outside of the US, all I know is here and New Zealand. Here, if you could do the stuff up to the "even more knowledge" plus recursion you'd be doing better than most people I've interviewed and OK'd for 100k+ positions. Silicon valley does have inflated salaries, but you could get 70k positions almost anywhere here in the states. Lop of 10k and that's what you'd make in NZD in new zealand roughly.
>>
>>62280284
>Don't think it's fair to make a comparison like that.
>jQuery is arguably 'simpler', when you only want to make some small individual changes on a site and it's 'efficient' since it covers various areas, (animation, DOM, ajax, etc.)

It is definitely an apples/oranges kind of comparison

>For building a proper application I can't think of a situation though, where I would find jQuery more 'efficient' overall than one of the proper frameworks/libraries you mentioned.

Well if we're talking about CPU cycles, at least for react, for every change you have to do this gnarly tree diff before you can even touch DOM, and then when you do a collection of operations like "move thing from parent X to parent Y" invoke a full rebuild of the subtrees in question. Maybe highly efficient in programmer time, but it will never be faster than a good implementation with jQ's pretty thin wrapping around the raw DOM manipulation API.
>>
>>62280284
>I don't want to dual boot because sometimes I do non-windows things
No, I mean I use non-windows and windows things at the same time.

For example:
1. I have Reaper with VST that outputs the sound from my dynamic microphone (attached to USB sound card) to virtual cable so I can use it with Google Hangouts, Discord, etc
2. I never close VMWare so I can work without waiting on loading OS, IDE, separate Chrome for dev-only tabs (documentation, local dev site, email, redmine, etc)
3. I run games when I want to have a break from the job. But I still keeping VMWare opened just in case something urgent happens.

If I do dual-booting then every time I would have to switch between Windows and Linux when I want to do X, not to mention loading times. That is how I use PC every day. That is why I have 32GB RAM and 8 core CPU.

I would never ever use windows to install packages I need for web development because it is a pain in the ass. I wouldn't even try bash for windows. Just try to compile Vue.js project with npm on NTFS filesystem with mount share (so you could use PHPStorm to edit code) using Vagrant box. It is impossible unless you symlink your node_modules to ext3 filesystem on Vagrant. Then try to use php-cs-fixer. Have to google how to install PHP on windows and then sometimes enable modules by hand, not to mention Composer. On Ubuntu it is super easy, like few commands in terminal and everything works.
>>
File: devs.jpg (44KB, 700x675px) Image search: [Google]
devs.jpg
44KB, 700x675px
I'm about to upload my first "bigger" site for a customer next few days and I'm pretty excited. I had to chose Rails here because reasons, but now I'm a little bit concerned about security.

So I have two questions:

-What is the purpose of using "Dokku"? Is it really easier for Rails deployment? Are there other advantages?

-How do you people secure your site? For a DigitalOcean droplet, do I need things like Fail2Ban or other measures?


Thanks in advance..
>>
File: comparison.png (39KB, 352x664px) Image search: [Google]
comparison.png
39KB, 352x664px
>>62280378
isn't jQuery known to be pretty slow compared to vanilla JS? Over time these frameworks made incredible efforts to become as efficient as possible.
I couldn't find a benchmark, that would test these 3 against equivalent jQuery code, but I can hardly imagine jQ being faster for DOM manipulation.
>>
>>62279998
Okay let me give you a few real options.

First of all, RDP is out. Trying to actual dev work over RDP is a non-starter.

1. Headless dev box running sshd and ports forwarded for your development server. Shell in, interact with code and infrastructure purely via bash and vim, use your local browser to run the dev site.

Cons:
- Have to learn vim.
- Anything that requires a desktop environment with access to your working directory is out (notifications for automated tests, automatic livereload stuff [you could probably get this working seeing as it usually interacts with a remote debugging protocol port or something], etc.) unless it can be reasonably run over X11 forwarding, which is not much
- Some administrative work, setup auto DNS server stuff, NAT config, etc.
- Development files are big and will now be served to your browser over the network, which will be slower

Pros:
- Get to learn vim.
- Actually writing the code and interacting with your files is as fast as possible.
- Using your local browser won't suck because there won't be a ton of latency in the UI

2. Basically the same as above except with an sshfs mount. This will allow you to interact with your working directory as if it were on your local filesystem. All bash-y stuff still happens over SSH, but you use your local text editor / IDE.

Cons:
- You don't have to learn vim.
- Latency in your disk IO operations in your IDE. Some editors deal with this fine, others do not. Your mileage may vary.
- Might be confusing.

Pros:
- You can use your local editor as you normally would.
- All the other stuff from above probably.

3. Get a laptop.

Cons:
- Have to use a laptop.

Pros:
- None of this logistical nonsense.
>>
>>62280762
>I couldn't find a benchmark, that would test these 3 against equivalent jQuery code
This is the important part of your statement. You couldn't find those comparisons because they don't even make sense. It's truly apples and oranges. React/Vue and jQuery fit into totally different spaces in the toolchain. They have orthogonal domains of purpose.
>>
>>62280762
no
>>
>>62280762
>isn't jQuery known to be pretty slow compared to vanilla JS?
jQ is a littler slower than vanilla, generally owing to some checks to support older browsers (although these days it's usually just the check as opposed to slowpathing which was the case early in the 1.x line). If you're worried about the performance of jQ it's almost always because it's size and corresponding impact on time to load. If you look at file sizes it's considerably smaller than any popular MVVM framework. It will also be closer to vanilla than any MVVM for runtime perf.
>>
>>62280795
I've used sshfs and I can do administrative work, so it's not really troublesome.
The problem is that I need to run IDE on Linux as well because things like ESLint needs nodejs installed, so I have to install it on my Windows then, no way.

Vim is out of the question because I don't think I would be productive using that at any time soon. I don't fear SSH, configuration, etc but I do need text editor to be able navigate to classes, run auto-formatiing, ESLint, have macros, easy git operations (branching, stashing, pushing, etc), ability to connect to databases. I don't think Vim is able to do all of that out of the box ;)

So I guess my only option is to buy a laptop. Anyway, thank you for your efforts!
>>
>>62280928
>navigate to classes
You can't do this better than lexically in dynamic languages, which vim will handle fine

>run auto-formatiing, ESLint, have macros, easy git operations (branching, stashing, pushing, etc), ability to connect to databases
Besides macros (vim has macros) these are not things you need from your editor. Especially git operations. Putting that in your editor is retarded, learn to use the command line like an adult. Also if you insist on frankensteining your editor to do things editors are not meant to do there's a huge plugin system and I promise you whatever terrible things you think your editor needs to do, someone's written a plugin to do it.
>>
>>62280989
Yeah, I think you are actually right. Putting everything into a single editor is not a *nix-style way.

Let's see what can I replace editor features with.

Well, I think I can run one ESLint in a separate terminal. Could it be run as a daemon? Something like in `vue-cli` template, where it would show you the errors/warning after you have edited the line.
For databases I'm just using Adminer at the moment to navigate on tables and see structures.
For git I agree, the command line should be good, but here is the thing. I often find myself using "Git > Show History for Selection" and "Annotate" (puts latest changes with author and dates for every line of code). Do you think Vim or Sublime can do that? Also, often I find myself using checkboxes to commit only some of the files. Wouldn't that be tough using only command line?
For navigation, I'm using search by the string in the project and search by path. I guess Vim/Sublime does that pretty nice?
>>
How many months would be a good amount to learn Javascript and PHP from scratch? I feel like I am rushing through them a little as I started with JS back in early June and have now paused it to commence PHP study. Is it too early to start with PHP after three months of JS from scratch /wdg/?
>>
>>62281976
have you built anything with js?
if not, you haven't learned anything about it
>>
>>62282000
Ooh, this brings me on to a new question. I have built a number of things with JS so I am confident about how a lot of it works. But the knowledge I have about JS comes from challenge sites (FCC, Codecademy etc), along with bits of information from books, reference sites and YouTube videos. Is this style of learning better or worse than structured academic study /wdg/?
>>
>>62281976
I would say, it is impossible to say how many months is a good amount. If you are getting paid for the job you've done using these languages -- you are doing pretty good. If you are getting paid several months in a row -- you know them pretty well for the job you are doing. If you are not satisfied with the knowledge, read more books, create something difficult, try to find a more demanding job.

It is completely irrelevant how many months you've spent learning JS/PHP/anything. The only relevant thing is how much you've been paid for that knowledge and for how long. That is my opinion.

Basically, you don't need to know anything to start coding and earn some bucks as a freelance developer. But if you want to have a huge paycheck you have to show that you know your stuff, and that could take ages. But the thing is, you don't actually learn programming languages alone. You have to know how HTTPS works, what is load balancing, how to scale, system design, working in a team, code navigation efficiency.

Basically, you can use this competency matrix to see how good you are: http://sijinjoseph.com/programmer-competency-matrix/
>>
>>62282065
Just ask yourself, whether you wouldbe able to build something by your own from scratch, without the structure or step-by-step instructions from one of those sites.
Learning by figuring things out for yourself in your own projects is vastly superior imo, since you are much more likely to retain new information and know how to apply it in a real practical situation
>>
>AJAX skills
>>
File: 1236818.jpg (113KB, 960x720px) Image search: [Google]
1236818.jpg
113KB, 960x720px
Is graphQL actually good or is it another back-end meme which will die in a few weeks?
>>
>>62283047
It's pretty solid and the back end hasn't gotten a fun meme in a long time. winwin
>>
>>62282071
so I'm looking at the chart and the first column is literally '1st week at school' but then there's the "Professional Experience: 1years" in the same column
really now, where do you even find this shit
>>
Anyone familiar with asp.net core?

public Startup(IConfiguration configuration)
{
Configuration = configuration;
}


I know what an IConfiguration is and how to use it. I know that it's being dependency injected into the startup file. I just don't understand how I'm intended to use it? It seems to be empty by default. Am I supposed to load a configuration file into it in the Startup constructor? It'd be kind of pointless to be DI'd in that case. If I'm supposed to load a configuration into it, how do I even access it before Startup is built? Something buried in the WebHostBuilder?
>>
>>62283809
If you can do all that is written in the first column then you can basically get a coding job for $5-8/h on Upwork.
The second column would give you $10-15/h on Upwork.
The third column is actually something like salary-based job from $70,000 a year (USA)
The fourth column is impossible to master in a reasonable time. You are making around 200,000 at this point or probably much more.

The point in this matrix is not about school-related knowledge vs CS degree but the complexity of being a software developer. It is not simply knowledge of programming languages and/or data structures/algorithms. No one would just hire top ACM coders if they lack domain knowledge, testing, communication, code readability, etc.
>>
>>62283950
Okay, apparently you are supposed to set it in the extremely elegantly named "ConfigureAppConfiguration" method of the webhost builder.
>>
Noob here.

can someone tell me why with this jquery snippet when I scroll back up my header doesn't reappear? Racking my head against the wall.

$(window).scroll(function() {
if ($(document).scrollTop() > 150) {
$('#main').addClass('appear');
$('.appear').fadeIn(1000);
}
else{
$('.appear').fadeOut(1000, function(){ $('#main').removeClass('appear'); });
}

});


sorry I don't know how to add the code properly to this site. Here is a jsfiddle

http://jsfiddle.net/pu1yLe4u/38/

Any help is appreciated. Trying to learn so don't want a completely different workaround, unless my code is completely fucked
>>
>>62284301
am I seeing a script insider the header element??
anyway,
style="display: none;"
remains on the #main element, probably as a result of the fadeout.
Try doing it with a transition property inside the CSS class instead.
>>
>>62284449
Shouldn't there be a way to erase that with a callback or something? Also I used fadeout to target appear and not #main so why is it still targeting main?

Also that script won't work unless it's in the header for some reason.
>>
I need to make a website with really retardfriendly cms and custom design, any advice? Customer says that he finds wordpress "a little bit too hard".
>>
>>62284551
>Customer says that he finds wordpress "a little bit too hard".
lmao good luck
>>
>>62284301
[coade][/coade]
>>
>>62284584
Yeah
He wants something like Weebly, Wix or Tilda I assume. I don't know if they support custom designs tho
>>
>>62284542
it's still the same element.
Are you trying to do a sticky header?
If so, just have it fixed right from the start ontop of some invisible spacer div with the same height or something.
>>
>>62284301
reappear? am I supposed to see something vanish?
>>
>>62284603
try ghost i guess
>>
>>62284677
nvm had some js blcoks
>>
>>62284635
Well the whole point is to learn something new. trying to figure out what's wrong with my code.

>>62284677
the top header disappears and the fixed one appears when you scroll down.
>>
>>62284770
well I can add display:block !important to my #main to make it appear. I feel like that's just ducktaping the problem though.
>>
>>62284845
I'm guessing removing the elemnt from the top fucks with
$(document).scrollTop() > 15
>>
>>62284301
your logic is fucked
else{
$('.appear').fadeOut(1000, function(){ $('#main').removeClass('appear'); });
}

you have just faded out the header and expect it to appear in the top?

try adding
  $('#main').fadeIn(1000);
or smtn
>>
>>62284845
really the fadeIn fadeOut thing is the wrong approach.
The only thing you would want is to toggle a class on #main, that applies modifications when you are scrolled.
Once back at the top the class is removed and the element is back to it's initial state all automatically, without the need to call any extra function.
>>
File: happiness.gif (6KB, 200x200px) Image search: [Google]
happiness.gif
6KB, 200x200px
>>62258569
That actually sounds pretty cool, how far did you come yet?
>>
>>62281407
>ESLint
Actually a linter is one of the few plugins I do use. Syntastic is nice because it's idea of code checker is a CLI program it runs periodically so it's usable with most static analysis tools with a very light adaptor layer, the ESLint one is out of the box.

>databases
I a believer in just using a DB shell. You should know SQL so there's no additional tooling you really need for administration. You learn to live without a visual schema pretty quick and your "from the hip" SQL gets better.

>I often find myself using "Git > Show History for Selection"
git log takes an optional filename which will make it show only commits that touched that file

>"Annotate" (puts latest changes with author and dates for every line of code).
git blame does this, Both these are builtin parts of the git CLI.

>Do you think Vim or Sublime can do that?
I for for a fact extensions exist for both if you really want to do it in-editor. I usually do it in a terminal window next to the editor but I can see the appeal of having it on the file itself instead of having to sync two scrollbars

>Also, often I find myself using checkboxes to commit only some of the files. Wouldn't that be tough using only command line?
I've never had issues with it, a well maintained .gitignore means I'm usually committing my whole tree most commits. When I do need to pick out individual files they're usually all in some subdirectory with no files I want to exclude in that dir, so I just add that

>navigation
Sublime created the popular ctrl+p fuzzy path search interface, there's a vim plugin that copies it. Both can do directory file contents search. That said I use `find` and `grep -r`. It takes a little more time to type out the commands (reduced by some simple aliases) but they're considerably more flexible (especially find which you could probably prove to be TC)
>>
Is there any way I can do webdev online anonymously for money?

Like turn people's PSD files into Wordpress Themes in exchange for bitcoin?
>>
>>62283047
Came across and interesting paper that found graphDBs generally fail to outperform a traditional RMDBS even on graph operations: https://event.cwi.nl/grades/2017/12-Apaci.pdf

So the value proposition of graphQL is in greater expressive power rather than DB perf. Whether or not it makes sense for you to use it depends on if you feel you need to express graph operations more naturally in your DB interface, I think in most cases the answer will be "no" but there will be counterexamples.
>>
>>62285954
Fiverr and similar sites might allow you to be basically anonymous, but I think you need Paypal or something like that rather than Bitcoin.
>>
Is it a waste of time to use older JavaScript frameworks or will it help learn new ones?

I'm current doing a short stint in a job as part of my degree and I've been assigned to an AngularJS project. Is becoming familiar with AngularJS going to give me any skills that might help in future frameworks or are the things you learn very compartmentalized? I'm concerned I won't take away much from it since I have no interest in using Angular 1 in my spare time.
>>
>>62285954
For bitcoin? No. There are lots of freelance sites for web devs but the pay is usually pretty shitty and they collect your tax info, although you could probably conceal your identity from your clients.

If you really want to work for bitcoin you could try offering your services in creating/hosting hidden services but you'd almost certainly be doing illegal work, probably a lot of CP stuff.
>>
>>62257033
>>62257049
I don't know if you're still here, but you'll most likely appreciate this buddy
https://github.com/friendlyanon/GelbooruEnhancement
>>
>>62286022
>older JavaScript frameworks
Angular is like 5 years old bro. Contrast Spring is 14. COBOL, which still has a pretty good job market attached to it, is nearly 60. Tech lives longer than you think it does.
>>
>>62285954
You could try posting on Craigslist or something, and say you'll take jobs for BTC.

I assume you're not interested in hosting the sites as well, since that would require ongoing contact with them. In that case you might want to help them get set up on a hosting platform and have them fill in their own payment details on there.
>>
Got my 1st interview boyz

Hi Anon,

We like what we've seen and would love to meet with you in person to discuss the position further.

Please send me a couple times that may work for you in the next few days. I'll find what works and send you more details of where, when, and with whom.

We look forward to meeting you, Anon.

Regards,


So English is not my native but this line
Please send me a couple times that may work for you in the next few days

sounds really stupid to me, am i wrong?
>>
File: 7ef.jpg (29KB, 600x600px) Image search: [Google]
7ef.jpg
29KB, 600x600px
>>62286022
>>62286057
>Tech lives longer than you think it does.
With AngularJS though it didn't really have that of a long time to establish itself, before Angular2/4 came around.
Businesses are still using it, but I wouldn't think that it will be the choice for new projects.
JS is notorious for rapidly changing frameworks and things that "are in" anyway, so it's probably good to know how to deal with the variety. Don't jump on the newest shit just because it's new, but also don't stick to outdated legacy frameworks, when obviously better options come around.

>>62286190
>>62286190
>>
>>62286296
Because it sounds like it could have a different meaning.
Still obvious what the person wants in that context.
Just send him some possible dates and time that work for you.
>>
>>62286336
is this a good answer anon
I am available next week at any day, any time. 
>>
>>62286346
yeah sure,
unless you wan't to "appear busy" and make the impression, that you are also doing something "for them", by reserving some of your "valuable time" for the interview.
In that case it might be worth it to at least limit the possible options somewhat.
Basically telling them, that certain days or times would work better for you or that you are unavailable at other times unless absolutely nothing else would work for them.
Seem eager, but not desperate.

I am really talking out of my ass though. Good luck anyway.

lying is bad
>>
>>62285914
>Sublime created the popular ctrl+p fuzzy path search interface
Pretty sure Textmate did. Sublime is basically a clone of Textmate, the only big "feature" they added was the retarded source minimap. Also multiple platform support, because Textmate was OSX only.
Thread posts: 322
Thread images: 32


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