[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vr / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / asp / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / qst / sci / soc / sp / tg / toy / trv / tv / vp / wsg / wsr / x] [Settings] [Home]
Board
Settings Home
/g/ - Technology



Thread archived.
You cannot reply anymore.



File: 1518024122109.jpg (51 KB, 700x700)
51 KB
51 KB JPG
Core edition

>Last thread
>>64636565

>IRC
#/g/wdg irc.rizon.net/6697
https://www.rizon.net/chat/

>Getting started
https://github.com/kamranahmedse/developer-roadmap/
https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list
http://ocw.mit.edu/courses/civil-and-environmental-engineering/1-00-introduction-to-computers-and-engineering-problem-solving-spring-2012/
>Languages
https://docs.python.org/
https://www.ruby-lang.org/en/
https://golang.org/
https://docs.oracle.com/javase/9/
https://docs.microsoft.com/en-us/dotnet/csharp/
http://php.net/manual/en/
>Frameworks
https://www.djangoproject.com/
http://rubyonrails.org/
http://flask.pocoo.org/
https://www.scala-lang.org/
https://laravel.com/
https://www.playframework.com/
>Databases
https://memcached.org/
https://redis.io/
https://www.mysql.com/
https://www.postgresql.org/
https://www.mongodb.com/
>Servers
https://www.nginx.com/
https://www.apache.org/
https://aws.amazon.com/
>Useful
https://pylonsproject.org/
https://jquery.com/
https://github.com/asciidisco/web-conferences-2018
>python coding challenges from three companies
https://spit.mixtape.moe/view/raw/a6f6ec1c
>>
Does anyone have any recommendations on a good guide to WebGL? I see a bunch of options for getting started, just wanted to see if anyone has experience/opinions.
>>
Why does no one use Yii anymore?
>>
Man, installing Visual Studio just for learning ASP.Net is a pain.
>>
I have all these cool apps I've built, but I don't know how the fuck to deploy them.

For instance, I've almost completed one that I actually want people to use(and they might), with mongodb and node, but I've no clue how the fuck to do this.

I've deployed just node apps before to heroku, but introducing a DB is confusing as fuck. It's probably easy as shit, but the guides i've followed are garbage.
just here to vent
>>
What's wrong with this, http://www.cityvibe.com/losangeles/PremiumEscorts/yubi-new-gorgeous-sexy/403320, webpage?
>>
>>64700020
>escorts
i'mnotclickingthatshit.jpg
>>
>>64700032
It won't bite. Unless, of course, you want it to.
>>
>>64700012
Look into the digitalocean guides. Often you're just better using nginx as a reverse proxy
>>
Outside of Bootstrap, what other UI frameworks are worth learning? I'm using Angular if it matters. Basically, something that helps with layouts.
>>
File: picard.jpg (36 KB, 600x461)
36 KB
36 KB JPG
Thinking about coding a blog, half for fun and half to learn something new (like a static site gen or Vue/React).

Do I really need to have "traditional" blog components like tags, categories, etc that all link to each other? And do you really need to use a static site gen to build the site and use a CMS or Markdown to write posts? Like, for best practices and stuff?

I mean, I kind of just want to hand-code each post with Vue (or React), along with the whole site and whatnot. Is that a cool way to do it, or is that not really best-practice when it comes to blogs or whatever?
>>
>>64700264
It's 2018, there's no need to learn a CSS framework anymore when you can use Flexbox and CSS grid.

Unless you have to support older browsers, you want a bunch of premade styles that make your site look like a template, you want bloated HTML, and you don't actually want to learn CSS.
>>
>>64698619
Are you learning web dev on your own? Do you have any programming experience? If so, then I wouldn't recommend you start with asp.net and C#. The boilerplate will kill you. It'll distract you and keep you from focusing on the important stuff. I'd recommend starting with one of the simpler scripting languages (python, ruby, PHP) or even Go, but to start teaching yourself how to program with Java or C# is a waste of time, imo.
>>
how do I start my own Imageboard? I fucking hate this place Ive never used php or sql before but I know html and I cant figure out how to load kusaba x

FUCKKKK
>>
>>64700354
Go to github, clone some OSS, and get that shit up and running, fag.
>>
>>64700386
yeh but how do I do that idk how to load/run php or sql scrips how do I learn how too do that
>>
>>64700393
I don't know m8. Read the guides/docs, I'm sure they tell you what you need installed/how to get it up and running
>>
File: 1518026298074.jpg (68 KB, 1280x720)
68 KB
68 KB JPG
What are you working on anons?
>>
>>64700443
Making an imageboard in pure PHP, reading about Django to stop being a scrub.
>>
>>64700443
I start work next week so I'm trying to learn as much Django Rest Framework as I can. Also, guides for advanced django features? Thx
>>
>>64700455
why don't you use laravel? or lume that lighter.
>>
>>64700443
At home? Reading Code Complete and SICP.
At my new job? Unfucking an Angular 2+ app. These people think I am a prodigy. Jokes on them, they're just retarded.
>>
>>64700497
>Code Complete
Would you say the book still has something to teach today? Are the concepts there still relevant? I've heard about this book, but don't wanna waste my time.
>>
>>64700282
Do what works best for you man, just make it easy to update and manage
>>
>>64700455
I too am making an image board in php. I have it mostly complete already and the last big system to finish is the moderation system. I have a cool idea that should reduce abuse.

I guess I should make an admin page for myself as well. I learned so much by coding it from scratch, I’ve never used laravel or symphony and they don’t seem really good for actually learning the language
>>
>>64700590
I dunno man. I can see why a lot of people think its either a wasteful rehash of beginner concepts or an outdated C++ circle jerk. A lot of perennial wisdom is stuck to "back in my day" chaff. Like how SICP schooled me on recursion and streams, but all the Scheme and math just feel in the way.

I'm too stubborn to quit now, I'm just going to check it off the list and move on with my life.
>>
>>64700443
Prototyping tool in Vue and nodejs.
>>
>>64700692
source please
>>
Why do dickheads like Jon Blow and Casey Muratori bitch about web dev so much on Twitter.

Is it because they are bad at it so blame the tech?
>>
How do i handle autologin? I could just save a password has into a cookie but that way anyone on that computer can steal the cookie and login with it elsewhere
>>
File: wdg-logo-1024.png (319 KB, 1024x1024)
319 KB
319 KB PNG
https://discord.gg/wdg

Daily source of web dev discussions, free learning materials and bants.
>>
>>64700835
Look into token based authentication. If your using .net I know there’s a great tut using oauth. Essentially you generate a token that’s assigned to a user account and pass this back with each subsequent request.
>>
>>64700835
Do it by saving a session when the user logs in. This session is tied to the user id in the backend, and it expires after a period of time. That way even if it's stolen it's only useful for x amount of time you specify.
>>
File: fetch-api-1050x360.jpg (16 KB, 1050x360)
16 KB
16 KB JPG
Currently learning Fetch, how do I handle file upload in the backside? So far I understand that it is required to parse the php://input manually before input can be processed in PHP, but how about files?
>>
>>64700482
Cause I was dumb and didn't bother to learn the framework
>>
>>64700907
Session is useless because it gets reset when the user restarts the browser, the point of autologin is to bypass exactly this

>>64700904
what is the difference between saving a token and using an encrypted password hash as a token? it's the same thing basically
>>
How large should my portfolio be before I start to apply for jobs?
>>
>>64701050
I applied with a shitty portfolio, full of half-finished projects. Start applying now, seriously. It won't take you that much time (1hr to apply to 15-20 companies?) and you have nothing to lose. You can learn so much just from failing a bunch of interviews, so you might as well do it now. Also, from my experience, a lot of companies don't even look at your port, they just send you a coding challenge and judge you based on that.
>>
>>64701109
was your portfolio diverse?
>>
>>64701153
>diverse
wtf do you mean? I had two half-finished websites, a lot of online tutorials completed, but those weren't really my code, and one pull request to some open source project.
>>
>>64701209
I guess what I mean is what kind of skills did it show.
did you use lots of libraries?
Backend, frontend?
I guess i'd likeyou to go more in depth
>>
>>64701050
when i applied for a web dev job it was right out of school and i had no portfolio at all and my boss never even asked, he saw i was willing to work for less that was the average going rate and that was what he cared about
they don't really give a shit, they will watch you work for a month or so and if they don't like it they can just fire you inside of the 3 month safety period
>>
>>64701237
sure, no prob.
I'm a python backend dev, I work mostly with django. I completed a few O'reilly books and put all the exercises in repos, books in topics like Tornado, TDD, Redis, Basic networking stuff, building restful apis. Though that doesn't show that I can actually code, I think it does show that I can learn on my own and that I have the motivation to do so, because finishing a book cover to cover is not something a lot of idiots do.

Then for my projects I had one that was an API using django rest framework, consuming other api's and serving out my own. I added some javascript in there for graphs (d3.js) and basic CSS, but I mostly just ignored frontend as much as I could.

Another project was a tinder rip-off with the same basic functionality, although aesthetically far worse.

I deployed some projects on shitty sites like pythonanywhere, but one of them I did get up on a digital ocean vps, so that was fun.

I didn't use a whole bunch of crazy libraries, just the basic django libs, python standard libs, some api clients.
>>
>>64701034
Yeah I agree but I’m sure there’s more to it than my brief overview from memory.

Token based auth is the security mechanism used when account pairing Amazon Alexa skills - granted this is different to browser based security.

I’m not saying this is the right way to do what was asked, was just the first thing that came to my head when I read the question
>>
File: nervous.jpg (164 KB, 960x1231)
164 KB
164 KB JPG
Nobody here knows regular expressions inside and out, do they? You all use Google when encountering regex, right...?
>>
>>64701715
I studied them in college but fuck it, can't remember all that shit
>>
>>64701715
Nobody knows everything of anything. That said you should be able to write basic regex without using Google. Then again IMHO regex is one of those things that must "click" in your head.
>>
>>64701777
>>64701797
I understand regexes, all the syntax and stuff, but I can't remember the rules, so I just look them up whenever I need to. But yeah, I get how they work.
>>
>>64701715
it's not that hard to remember

i found regex101.com helpful when learning it
>>
I'll never do anything with it though. Just a fun little project.
>>
I wanted to get into learning Sass. But reading up on it, I see a lot of people talking about moving away from Sass to PostCSS. What do you guys think about this? Is Sass obsolete now? Is there no longer any point in learning/using it?
>>
>>64702403
SASS is fine, when something gets too popular snowflakes switch to something else and will sell it like it's the best thing ever

Use SCSS with BEM methodology and a 7-1 structure and you can ignore the bearded microdicked snowflakes switching to postcss
>>
When did responsive design 'clicked' for you?

I'm kinda overwhelmed at the moment with bootstrap and hardly understand how it works, I'm just copying whatever layout I need not knowing shit about the fundamentals.

Is Bootstrap even necessary these days? Any tips/links will be extremely helpful.
>>
With regards to webdev specifically, how should I use Node.js/npm? I want to learn to use it because the name crops up a lot but I'm struggling to understand what I should use the tool for.
>>
Recap : Javascript and php
learning: Ruby ,TypeScript and node.js
>>
>>64702403
PostCSS isn’t a replacement for sass. It just runs plugins over your styling. You can use both. Afaik the PostCSS website explains this
>>
>>64702657
You use it mostly as a console to run commands

Basically you have it open 100% of the time you're coding, mostly you use it to use things like git, webpack, gulp etc.

I mostly use it like this

Open cmd -> cd into project folder -> run my watch task
Then I open a second one but on that I watch my CSS changes so now every time I make any changes it automatically refreshes the browser.

When I need to install packages I cancel the watch task, install a package and run it again.

You also use it for build tasks to compile everything into minified versions.

It's not very difficult, just requires a bit of setup to understand what's going on but most tutorials will explain it if you just search for webpack or gulp
>>
>>64702573
i would rather write an own css grid and layout for the start. more and more people are moving away from bootstrap and it's okay if you just copy needed parts from it if anything.
>>
>>64703107
Bootstrap is still very good to know as it keeps design easy, if you know what you want before you start then bootstrap is useless and annoying but if you're just adding stuff as you go bootstrap is great.

It's like the best tool for making things when your primary focus is on something else, especially when learning
>>
>>64702573
The grid u just need to remember that your columns need to add up to 12. So 3 equal columns would be 3 ‘4’ columns and if you add another column understand that it’s gonna jump to a new row as it’s exceeded 12
>>
>>64702573
>>64703154
The rest of the framework just carry on as you are. Copy and paste an example from the site and adapt it to fit your needs. Over time you’ll start to follow it more. I’ve been using it for years and still need to hit the examples every time for the base stuff then adapt.
>>
File: aurelia.jpg (12 KB, 540x279)
12 KB
12 KB JPG
>angular
can load views from external template, but can't even use regex for routing

>vue
have dynamic routing, but templating is inherently react crap

>aurelia
can do both
why isn't people talking about this?
>>
I start my first job as a programmer and web dev in one week. Give me any advice for managing the first 3 months pls. Office politics, programming stuff, being the new guy, whatever. Office is about 50 people (half devs, half other staff), less than 10% women, they all look like bros. This is in Germany btw.
>>
>>64703817
Give head.
>>
Why should I hire you for my project when I can hire a pajeet for $2/hour who will do just a good and just as fast job as you?
>>
>>64703873
>pajeet
>good
>fast

Sure, buddy. Go on and hire Pajeet if you want to. But please, do come back and tell us how it went once the project is done.
>>
File: jquery-tutorial[1].jpg (10 KB, 200x150)
10 KB
10 KB JPG
>>64703817
Try to get along with your fellow devs. Ask alot and try to learn as much as you can. Developers appreciate when you have initiative to try and solve any given problem on your own, but sometimes, its quicker and more optimal to ask for guidance to another dev.

Also, dont bother devs with headphones on.

Source: Lead dev from small company that struggles to hire competent devs.

CHANGE OF TOPIC

Whats /g/ opinion on Jquery? I find myself using it every time i need to do something with "Vanilla javascript". Its easier to maniplate DOM with than using pure JS and weights a few KBs to even say that it bloats the site.
>>
do you have to make a component for every page in angular or is it really just for parts of a page?
>>
>>64703873
Sorry Sir My Project Can Not Be delivered On Time, My Street has Lost Power for a Week. I will respond Back To you Soon.
Thankigs you very muchly,
-- Pajeet
(who you never hear back from after 2 months of "employment" and you're left with a half finished piece of shit nobody knows what to do with because it's all a fucking mess)
>>
Any Perl developers here?
>>
I want to switch from PHP to Go. Where do I start?
>>
>>64703905
I think it is a crutch. The few things worth using for are never actually utilized by the developers who use it (Promise polyfill, browser support, event delegation). If you took the time to learn the actual APIs that it uses, you'd be far more productive.

Use document.querySelectorAll, CSS animations, and the Fetch API, and you've covered about 95% of what people end up using jQuery for.
>>
>>64704216
Start at the Tour of Go on the Golang website. It will take you over most features of the language and explain how they work.
>>
>>64703905
You need to write less stuff so it's good.
>>
>>64703905
I tried using vanilla in my latest project but quickly went back to JQuery. Yeah vanilla can do everything but difference in amount of code gets depressing in anything bigger.
>>
Thoughts on FaaS? Does anybody have any experience with it? For us trying to host an amateur project, it seems like it would be even cheaper that getting our own server through Digital Ocean or whatever.

>https://martinfowler.com/articles/serverless.html
>>
>>64700309
True when it comes to webdev, but
>teaching yourself how to program with Java or C# is a waste of time, imo
Is false imo.
>>
>>64705792
I'm not saying people shouldn't study Java or C#, I'm just saying that in the context of the average /wdg/er (NEETs trying to teach themselves webdev to get a job as quick as posible), Java/C# are bad choices, since there's other languages that are just as employable and much, much easier to pick up.
>>
>>64703905
jQuery is good because it's convenient and you're old, but then again it's 2018
>>
>>64705861
Languages aren't easier to pick up. Libraries are.
>>
File: why.jpg (107 KB, 1053x597)
107 KB
107 KB JPG
Is this guy fucking serious how is this one of the top google results
>>
>>64698307
>https://spit.mixtape.moe/view/raw/a6f6ec1c
These are pretty cool challenges. I especially like the Mouse vs Mouse one because it's open-ended. Has anyone here done them?
>>
>>64704911
>I tried using vanilla in my latest project but quickly went back to JQuery.
>>64704332
>You need to write less stuff so it's good.
http://umbrellajs.com/
>>
>>64706182
a few threads ago i posted the solution to the first

python 3
a = int(input())
lst = []
for i in range(a):
lst.append(float(input()))
lst.sort()
lst_len = len(lst)
if lst_len % 2 == 0:
b = lst[int(lst_len/2)]
c = lst[int(lst_len/2)-1]
print (float((b+c)/2.0))
else:
b = lst[int(lst_len/2.0)]
print (float(b))
>>
File: 1500512474025.jpg (44 KB, 569x506)
44 KB
44 KB JPG
>>64698307

If I have carpal tunnel right now, should I completely forget about any programming career?

What are some programming careers that do the least amount of typing and more thinking?
>>
>>64706360
You could optimize to not sort the list each time. Look at insertion sort for inspiration.
>>
>>64706383
>carpal tunnel
Not RSI?
>>
Why are they defending PHP that much?

https://www.reddit.com/r/webdev/comments/7wvqr6/web_development_technologies_you_can_learn_in/
>>
>>64706384
yeah i know but can't be arsed

for python there's this package

https://docs.python.org/2/library/bisect.html

>This module provides support for maintaining a list in sorted order without having to sort the list after each insertion.
>>
What was the last thing you created that made you say "wow, neat" out loud?

http://jsbin.com/xuzayudemo/edit?js,output
>>
>>64706383
Doesn't carpel tunnel heal over time?
>>
>>64706483
I created one hot mess of sticky cum all over my gf's vagene

I just wish she was a 3DPD sometimes
>>
>>64706490

Yes but you have to stop putting repetitive strain on your hands - aka not typing.

>>64706399

Same shit. In the hands.
>>
>>64706483
setInterval(() => {
document.getElementById('cool').innerHTML =
Math.floor(Math.random() * 101);
}, 300)
>>
>>64706542
Nice, you refactored my neat thing but why use innerHTML over textContent?
>>
>>64706529
>Same shit.
No, it isn't. Carpal tunnel means you can fix it with surgery; RSI means surgery isn't effective and you need a complex treatment program. You have this problem that is threatening your career, but you haven't done much research on it at all, have you?
>>
Hey /g/, should I stop using php frameworks like symfony and start using js stuff?
>>
>>64706605
>Carpal tunnel means you can fix it with surgery

That's not even remotely true. Your research is clearly faulty and you don't understand how CTS works. There is no permanent fix for CTS.
>>
>>64706611
hmmst've'd've'st....

..........

.......
...........

.......no
>>
File: roadmap.jpg (325 KB, 1213x1497)
325 KB
325 KB JPG
I've been at it for like 2/3 months and this is my roadmap

I just don't get javascript very well though, I feel like 80% of the things freecodecamp or codewars wants me to make is literally pointless at the "algorithm scripting" parts.

Like, you want me to take 2 arrays and then add each number in them together and make a new array with those numbers in a specific order.

When will that ever come in handy in web dev, ever? I can't imagine even one possibility when that might happen.

I also feel like if I can't make a solid site that looks absolutely perfect in every way from a "UX" standpoint why the hell would I begin learning how to do ridiculous shit trying to jump through a thousand hoops to do something I can't even imagine ever needing.

Yes I am shit at maths
>>
>>64706677
Learn at your own pace anon, don't follow some arbitrary roadmap
>>
>>64706596
because textContent was not working on firefox so i had to change to innerHTML
>>
>>64706710
But I'm using Firefox myself dude, what version you on? Version 1 or something?
>>
File: 1515933421031.png (44 KB, 658x662)
44 KB
44 KB PNG
I want to focus on back-end dev,
Should I learn PHP or Ruby?
>>
>>64706770
learn java my man
all memes aside it's really comfy
>>
>>64706677
hey anon, that roadmap is pretty great in terms of orienting you in the field of frontend, you're doing the right thing, check one thing off at a time. Keep at it!
As for the pointless algorithm scripting, I think you need all that to learn how the language actually works. But you should also look for tutorials that give you more of what you want, which is web dev itself. Look up colt steele's udemy courses, they're awesome.
And just so you know, about 50% of the interviews you'll end up doing will test you on that algorithmic stuff, so you better learn it.
>>
>>64706677
>When will that ever come in handy in web dev, ever?
It will help you actually understand programming.
>>
>>64706770
Both.
>>
>>64706677
Mostly waste of time.
I have been working as a web dev for almost a decade and i don't use any of those meme frameworks and module managers. Pure css and javascript if perfectly sufficient and any more is just needless bloat, needles complication and pointless waste of time.
Tools like that would be justified only under some specific circumstances like huge, huge projects with many devs, but for small to medium sized web dev it's useless.
>>
>>64706874
I already know C#, I am not huge fan of java I prefer.net
>>64707073
At the same time?
>>
>>64707241
once you have a job it's easy to say "Fuck all these stupid frameworks", but if you're out there trying to land your first gig, you better list as many meme frameworks and buzzwords as you can, otherwise dumb HR will not even bother replying to you.
>>
>>64707241
What do you even make in just pure css/js?

I'm also trying to get a decent job straight away as my situation is a bit weird and minimum/learn-on-the-job wage won't cut it, knowing frameworks like React almost doubles the pay in all the listings I can find.
>>
>>64707444
It's not just those two obviously, the html is implied. For the backend I use PHP and for some tools running on the server C#
If you want to get into web dev as a job (i cannot recommend, after couple of years when the drive fades you will start being bored as fuck) you have to be willing to work for beans to get into the door. When i started out i was working for minimum wage in order for the company to give me a chance. You would have to be very lucky to get a high paying spot with no portfolio or experience
>>
>>64700443
https://4stats.io/
wondering if I should switch out Bulma for some other micro css framework.
Or maybe try Vuetify... not quite sure.
UI design is fucking hard, if you otherwise aren't really into it.
>>
>>64707482
I need to make around £18-20k a year for it to be worth getting a job as in UK not having a job is unironically better than being on minimum wage or near it because they pay your rent and obviously you don't have to work.

I'd be happy with 20k+ but most react jobs start at 40k for juniors which is way more than I'd expect to ever get.
>>
>>64698408
easiest to just use something like unity
>>
>>64707550
this might be one of the best projects in this threads

Also, /pol/ is shill central
>>
>>64700443
My portfolio, again.
>>
>>64707550
NODE_ENV is: production 
Enforced client version is 21
>>
>>64700443
I'm building a CMS from scratch for an artist freind's website. It will double as a portfolio website for the both of us
>>
>>64707768
>40k for juniors just for knowing a front end framework
where are these magic jobs? even a quick search on a job website for "react js junior" shows that 99% of them are in the 20k range
>>
>>64707964
you won't let me have 2 debug messages?
>>
>>64707768
The only way to get a starting pay like that as a junior is to be at least a 8/10 grill and wear belt sized miniskirt with no panties to the interview and let them know that the slash between your tags doesn't mean it's closed
>>
File: scrot.png (16 KB, 533x409)
16 KB
16 KB PNG
>>64708179
not the same guy, but here's an example
>>
>>64708345
>Senior Backend
not really the same thing though
>>
>>64708345
>senior
>back end dev
>L O N D O N
>>
a lil composer question:
let's say I have a mid sized REST API built up and I'm using the composerino to manage my deps,
lets say one of them is the massive Google API, which I only need for one teeny tiny simple endpoint,
and for the sake of argument let's say I'm using AWS or GCS and I have to pay for server time (which I don't but whatever)

is there any way to load the Google API only for that endpoint that uses it?

since I added the Google API to the project it takes my slow ass VPS >2s to just process every request as it has to have PHP parse the whole of their api

there has to be a better way
>>
>>64708395
could have it as a separate application just for that one endpoint
>>
>>64708288
>>64708179
Most of the ones I saw were between 25 and 50 but you can't use the tag "junior" when searching but sometimes they put "mid level" or something like that as being junior and knowing react are pretty opposite ends of the stick.

I just assume if they don't want 3+ years and specifically put senior in the title that means 'junior' as jobs always like to filter out weak willed people with absurd requirements anyway.
>>
I want to learn to program but I don't know where to start. I'm a complete newbie
>>
Can anyone recommend me good tools to check how my sites SEO is?
>>
>>64708395
I don't know much about PHP.
It's that how it works?
Does the server get a request and then has to parse all the modules, as if it was starting up for the first time??

If that would be the normal way, then I can't imagine any medium size site even be remotely performant.
>>
>>64702444
What's BEM and 7-1 structure?
>>
>>64709316
"Google lighthouse" in chrome Dev tools.
(For better or worse)
>>64709141
Pure programming or webdev?
For general programming python is probably a good choice.
For webdev you can check out the intro on MDN and start with HTML+CSS+JS as usual.
>>
Anyone know the responsive breakpoints for Youtube?
>>
>>64709521
My parents are saying I should learn both but I'm skeptical on web dev. I eventually want to get into making games and all that stuff
>>
File: uguygu.jpg (17 KB, 504x182)
17 KB
17 KB JPG
How is this "not a function"

I am using firebase and rebase and it simply does not work.

I'm doing the reactforbegginers course (it's shit and outdated btw) and this is not working help

I've looked at the finished code and copy pasted it, I've tried everything and nothing works. I don't get it.
>>
>>64709951
POST THE ERROR
>>
>>64698307
I don't want to burn myself out of lo-fi hiphop. What are some good devving playlists online? Currently listening to https://www.youtube.com/watch?v=NyfL9LC1DC4
>>
>>64710056
Same thing happens here

I did this earlier and it worked fine with firebase

componentDidMount(props) {
this.ref = base.syncState(`${this.props.match.params.storeId}/fishes`,{
context: this,
state: 'fishes'
});
>>
>>64703934
Components are all of the views on a single page.
>>
File: p.gif (97 KB, 280x300)
97 KB
97 KB GIF
>>64710199
I got it working, turns out the guy's method in his video is so outdated that not only is his method for using firebase outdated but also the functions are outdated so I had to pull my base folder in different pieces and use them individually which I wasn't doing before, and then use completely different functions too.

I can't believe people pay money for this outdated shit, it's so bad plz don't buy wes bos shit..unless it was released recently I guess
>>
>>64702573

See this: >>64700297
>>
>>64703873
As someone who has to work with a few pajeets at my company, I can tell you 100% that they may be cheap, but the quality is utter complete SHIT
>>
File: 1296162835515.png (13 KB, 679x427)
13 KB
13 KB PNG
>>64707241
>>64707482
>uses pure css

Holy shit dude at least use SCSS to modularize your css and make use of things like variables and nesting styles. Like holy shit I'd never want to work with vanilla css these days lol wtf
>>
>>64703873
>good and just as fast

They could claim "faster and better" anytime they want. Web Dev is not about being "faster and better". It's about quality and meeting the client's requirements. No matter how "fast and better" they work if they don't get what the client wanted its all back to square one:
Wasted production time: The price you pay for "faster and better" dipshits
>>
File: gettyimages-518433454.jpg (157 KB, 1500x1001)
157 KB
157 KB JPG
>>64707241
>i don't use any of those meme frameworks and module managers
>Pure css and javascript if perfectly sufficient and any more is just needless bloat
I have seen into your future, anon. Yours is the fate of many. By your fifth or so medium-sized project you will realize you've built your own framework and will go "oh fuck!"
>>
>>64698408
Three.js
>>
how do you get users if you start an imageboard/reddit clone?
>>
What's the best way to learn a framework?
>>
>>64711025
You are probably never going to benefit from any of those features though
>>
>>64711570
Creating something in it is the only way
>>
File: 1305614321214.png (200 KB, 480x480)
200 KB
200 KB PNG
>>64711709
Lol have you even tries SCSS before? If you had, you would realize how incredibly useful those things are. Nesting, especially.
Are you a pajeet or something?
>>
>>64711789
Not him, but how does nesting help?
>>
>>64711789
Yeah, I've used it at previous jobs quite often. It cost us a lot more time getting it to fit in with our build process than it did save us time by letting us reference or tweak a color or two at some point down the line. It's one of those things that most projects simply aren't going to need.
>>
File: sass-nesting.jpg (37 KB, 666x358)
37 KB
37 KB JPG
>>64711941
>>64712109

Here. This is why. And this is just the tip of the iceberg.
If you're not using SCSS or some kind of CSS preprocessor, you're writing way more code than you need to and making your life harder. Try it at least. I guarantee you won't go back to vanilla css.
New web technologies are a good thing sometimes, they're not all soyboy memes.
>>
File: sass-nesting-2.jpg (38 KB, 666x358)
38 KB
38 KB JPG
>>64711941
>>64712109
>>64712209
Oops wrong img, sorry
>>
File: 1504658498918.jpg (143 KB, 1280x720)
143 KB
143 KB JPG
>Front end developer job
>Must know html5, css3, javascript, es6, php, c# (?), Asp.Net/Asp.Net Core, SQL, Typescript, WebGL
>Yeah, throw in Wordpress or some other shit too
>Front end developer
Bro?
>>
File: 1515734752504.jpg (159 KB, 1300x866)
159 KB
159 KB JPG
>>64712209
>>64712220
>nesting selectors instead of using BEM
>styling by ID

kys
>>
>>64712367
Apply for it. You'll probably be one of the best candidates they get because you'll be one of the only candidates they get. Companies suck at job postings.
>>
File: 1296189255977.png (208 KB, 412x352)
208 KB
208 KB PNG
>>64712755
.lol_i--dont-style--by_ID_-itwas--just--an__example {
also--you--can--do__both__BEM--and-nest;
BEM__is--not--a_pre-processor
and__enjoy--your--reallly__long--BEM--class-names__dude--lol
}
>>
File: bem-scss.jpg (34 KB, 718x468)
34 KB
34 KB JPG
>>64712755
>>64713027

example.
>>
I'm looking for an alternative to Google's Firebase (database/hosting/storage). Firebase is good but I don't want to be stuck with Google.
>>
File: 366482.jpg (50 KB, 640x480)
50 KB
50 KB JPG
>>64713072
This guy gets it.
>>
When I search for my companies website on google, lower down the results the old site design is being hosted on the person who made it's portfolio, I have no issue with him hosting it on his but how do I get it to not show up on search engines, or what do I tell him to do?
>>
>>64712209
Only retards find css hard, sorry anon I’m not retarded
>>
>>64700443
I am doing my first html page !
YAY !
It looks like vomit and the code gives you free cancer !

https://pastebin.com/W73zicd7
>>
>>64701244
Same here. Then they gave me a raise after the 3 months. If your working alongside a senior it's more about your attitude and willingness to learn.
>>
I have just done a big update on my site, links have all changed and such, so I want to keep it on the currant domain while google indexes it for a bit, I also have 4 other domains for the same site that will be redirects.

Long term I want one of the 4 inactive domains to be the main one, so am I right in thinking this makes sense.

Current domain hosts the site
Inactive domain that I want to be the main in about a month or so 302 redirects to current domain
The 3 inactive that will not be the main domain 301 redirect to the one that is inactive but will be the main in a month or so?
>>
Want to make a simple webapp that lets users quickly create small rooms where they can chat.

It's been years since I did any coding, that was writing all the PHP and JS from the grounds up with a text editor. None of this framework and git stuff.
Do I have learn all that first?

Been looking at some links in the OP and things have drastically changed. I was looking for some simple libraries and they were talking about installation and downloading through git.
Anyways, rediscovering all this shit is really fun but I feel I would understand it more if I came to this completely new rather with my old knowledge of it.
>>
In CSS, how do i select all inputs that aren't checkboxes?
>>
>>64714193
>>64714193
there's just much more to choose from now. if you're used to PHP and JS that's great, and you can pick up right there and build your webapp from scratch with only HTML/CSS + JS + PHP + MySQL in an text editor.
all the new frameworks are afaik just for ease, efficiency, maintanence, deployment and scalability reasons.
if you don't wanna learn them just yet i'd recommend you at least to learn the underlying design patterns and methodologies those new frameworks follow, e.g. http://www.phptherightway.com/pages/Design-Patterns.html
though i'd learn at least one of the popular clientside and serverside frameworks sooner or later.
>>
>>64714856
input:not([type='checkbox']) would be one way
>>
File: screenshot-1.png (1.43 MB, 1497x944)
1.43 MB
1.43 MB PNG
>>64698307
trying to get from shit at sass to OK at sass.

is this ugly? I can't tell.
>>
>>64698307
>#/g/wdg
Won't let me in without login.
>>
>>64714193
If you're not across the languages on their own, don't get too distracted by frameworks.

git is cool though.
>>
>>64715001
you have been banned for being trip friend :(
>>
>>64715001
fixed
>>
>>64715021
;_;
>>
>>64715024
Thank you.
>>
File: neocities cat.png (8 KB, 130x107)
8 KB
8 KB PNG
Hello /g/
I want to deploy a static personal website on neocities

Since it can only host plain html, css, and javascript, it became immediately apparent that I'd have to do a lot of html boilerplate duplication.
What's a good way for people to do html templating without a server-side language?
>>
>>64709848
>I eventually want to get into making games and all that stuff
>>>/vg/agdg has a sticky.
>>
>>64715573
>sticky.
Err, I mean a guide in the OP.
>>
>>64711383
Samefagging.
>>
>>64715586
>post it on reddit
>post it on hackernews
>post it on slashdot

if it is good, users are going to recommed to another users and so on

>ads
>>
>>64715379
>What's a good way for people to do html templating without a server-side language?
A static site generator.
>>
>>64714982
sidebar is ok, though 'admin' doesn't need to be publicly visible.
The white text on the images needs some kind of shadow, or the brightness of the images itself has to be lowered a tiny bit. Text should be super-easily readable and nice on the eyes.
Text in the top row should be vertically centered or give some room around it on all sides
What are those 3 things in the top right?
>>
>>64703873
I started working with one recently. I spent so much time babysitting him, might as well did all the stuff myself. Also, the code quality is utter shit.
>>
File: evanyou.jpg (69 KB, 500x500)
69 KB
69 KB JPG
Hello
>>
>>64716706
who dat
>>
>>64716766
it's you
>>
File: evanyouu.jpg (59 KB, 500x500)
59 KB
59 KB JPG
>>64716766
Have you tried Vue.js ?
>>
>>64716706
Hey there, will you end up integrating Vue with WP Core?
>>
>>64716869
would have been interesting, if Vue would have been the framework to be integrated, instead of React, now that they backed down with their license.
Maybe someone will, but in any case, Vue will have to struggle again.

Think it would have resulted in an explosion of Vue jobs otherwise?
>>
>>64716476
Excuse me , Sir?
>>
File: evan-photo.png (1.13 MB, 1000x1000)
1.13 MB
1.13 MB PNG
>>64717132
why is his face so funny?
>>
File: evanyouuu.jpg (46 KB, 500x500)
46 KB
46 KB JPG
>>64717364
Everything is fine.
Show me your package.json
>>
>>64717364
>why is his face so funny?
>>
>>64703873
My company did hire a remote pajeet team a couple of years ago. They did a shitty job and the company's team had to fix most stuff the delivered. I am not saying pajeets are bad in general, but from personal experience and from many friends, they do a mediocre/shit job.
>>
>>64703896
>implying he'll finish the project in the first place
The problem is their english is pretty basic and they have problems communicating how the project is going.
>>
>>64700443
Playing around with the javascript IPFS.
>>
File: 1508517367555.jpg (95 KB, 682x1024)
95 KB
95 KB JPG
>>64717836
The project is going gud, very gud my friend. Look at it!
>mouse button has brown stains and smells like shit
>>
I have my CV in a form of HTML document. Nothing fancy, just text, picture of my ugly face and some icons. Is there any way to convert it to PDF for free? All "free" online converters are bullshit and add ads and all "free" software I have found is full of chinese malware.
>>
>>64717991
just write the PDF yourself

What you have 30 pages CV?

It's probably just one page so do it yourself
>>
File: lolwut.jpg (38 KB, 796x596)
38 KB
38 KB JPG
>>64717785
Remote pajeets are the worst. When they fuck up so much they can't lie their way out it they just stop replying at all and you're left with a fuckton of undocumented spaghetti code.
>>
>>64718011
Ah, fuck it. I'll just recreate it in Photoshop and save as PDF. Fuck this shitty format.
>>
>>64717991
https://www.pdfforge.org/pdfcreator
>>
>>64718012
They literally closed their company and stopped contacting us. They project was a totl mess and the whole dev team had to start the project from scratch. Two months wasted because of them.
>>
>>64714193
You don't need git. Everything on github can be downloaded as zip file.
>>
>>64718067
>hurr durr two months wasted

why did you hide pajeets in the first place?

every time
>>
>>64718122
I blame the guy who was in charge. ME and part of the dev team opposed to the idea of hiring them.
>>
>>64718122
Don't blame devs for project managers shitty decisions.
>>
>>64718213
>project managers that ignore the opinion of developers
>nice company to work at

you can't pick both
>>
>>64718213
speaking of PM shitheads

>PM calls a meeting
>he says that he noticed that all "big and respected" websites have modals asking to sign up for a newsletter popping up when you visit their site
>tell him that it's annoying as fuck and lots of people close the tab immediately when they see shit like this
>nobody even reads newsletters, they always end up in spam folder anyway
>we don't even have a newsletter in the first place
>I DON'T CARE I WANT THAT MODAL AND ONE OF YOU WILL START WRITING WEEKLY NEWSLETTER DO IT OR I WILL TELL YOUR BOSS
>our boss is his uncle or cousin or something, we never figured it out

it was my first web dev job, so i stayed a for a few more month to gain experience, but holy shit, sometimes i felt like curb stomping this retard at least once a month
>>
When you're a junior what are you even expected to do and how long do you have to do it?

Like do you work on small parts of a site or make entire ones over a large amount of time?
>>
>>64718295
when you're a junior, you're expected to re-write the entire infrastructure in a more optimized way and in a different language from the original
>>
>>64718246
I'd rather pick none to be completely honest. I don't wanna work at a "nice" place, I'm not there to have fun or make friends, I'm there to be productive. I want to be pressured so I am forced to leave my comfort zone. And project managers who listen to the opinions of developers are idiots, developers are overpaid lazy assholes who always want more time.
>>
>>64718311
No
>>
File: (You).jpg (56 KB, 390x292)
56 KB
56 KB JPG
>>64718362
>I want to be pressured so I am forced to leave my comfort zone. And project managers who listen to the opinions of developers are idiots, developers are overpaid lazy assholes who always want more time.
>>
help me /wdg/.

I have built a web app with Node + Express as a backend, by exposing a RESTful API, but I'm having trouble deciding the best way to secure it. From what I understand, if I keep user sessions in the backend then that would mean the app isn't really 'RESTful', which means maybe I should handle security through the use of tokens like JWT; However some sources say JWT is essentially just a meme, for example this one: http://cryto.net/~joepie91/blog/2016/06/13/stop-using-jwt-for-sessions/

A true RESTful implementation would require that user credentials be sent along each request, however that doesn't sound too optimal.
Is JWT really no good as a security mechanism? Is there an alternative or a way to use it that allows me to keep the app stateless?
>>
File: 1508639809368.png (394 KB, 680x699)
394 KB
394 KB PNG
>>64718362
>I'm not there to have fun or make friends, I'm there to be productive.

>look for job
>weekly shared company cooking and lunch
>monthly company 'fun' events
>yearly company gathering abroad

every time
>>
One or two tab spaces?
>>
>>64718437
tab converted to 4 spaces
>>
>>64718406
>A true RESTful implementation would require that user credentials be sent along each request
like cookies are?

>Stateless JWT tokens cannot be invalidated or updated
this is the real nuisance afaik
how do you deal with removing permissions from single users?
It's like handing out a thousand keys and the only fix is to change the lock and redistribute 999 new keys

>>64718437
>One or two tab spaces?
who is insane enough to use 2 tab indentation?
Most logical one is to use 1 tab and convert that to your desired amount of spaces if you absolutely want to.
>>
>>64718460
2 tabs, got it.

>>64718473
> who is insane enough to use 2 tab indentation?

I've seen it plenty in use, that's why I'm asking.
>>
File: 1518178253624.jpg (7 KB, 250x230)
7 KB
7 KB JPG
>>64698307
is multipart only allowed in requests or can servers respond with 200 + multipart data?
>>
Why do people consider knowing node.js a "thing"?

Like why would anyone ever type into cmd rather than simply make the file and type into it in a text editor, I don't understand.
>>
>>64719392
can you explain what you think Node.js is used for?
>>
>>64717991
Dude just print to PDF from the browser. There should be an option to save as PDF in the print dialog when you do ctrl+P or File>Print or whatever.

>>64719392
What do you mean? Are you talking about Node's REPL?

That's not what Node.js is. I'd consider "knowing Node.js" comprising of knowing the Node ecosystem and builtin libraries (http, fs, etc.), as well as knowledge on the various 3rd party packages available and how to integrate them. Plus you need to know how async works in JavaScript, since that's basically what Node.js is founded in.
>>
In HTAccess I can't seem to redirect links that have .shtml at the end, Is there something special I need to do.

 Redirect 301 /cars mydomain/car.html 


That redirects both /cars and /cars/ but not anything with either .html or .shtml
>>
>>64719698
I use it for managing my app I make, I just cd into a folder and then I create my app, install things with NPM and then run tasks like localhost server and css reloading , git etc.

I see people unironically saying they use node for all sorts of weird shit like actually coding in the command prompt and I can't understand why someone would do that.
>>
File: 1515283542500.jpg (15 KB, 500x373)
15 KB
15 KB JPG
>>64719901
noone is coding in the command prompt or even using it for that matter, except maybe for learning purposes.
>use node for all sorts of weird shit
yeah because you can.
It's a JavaScript runtime after all.
The same runtime, that runs your tooling also runs any code server-side, as you would normally do with any other language.

It's not just some random commands you can run through node/npm, that set up your projects.
You can execute any JS file, which can serve as your whole backend, handle HTTP requests, interact with databases, and everything else.
>>
>>64718494
>I've seen it plenty in use, that's why I'm asking.
Do you mean a tab size that is equivalent to 8 whitespace characters? Outside of linux kernel contributors who are afraid of muh 3+ level indentation or people literally coding in Notepad I don't think anyone actually uses that.
>>
>>64718992
You mean like a 206 response? Yeah, I'm pretty sure that's allowed. You assume that in absence of a "range" header in the request, it has the value "bytes=0-", for an open-ended request.

>>64719901
Sounds like you're mostly just using NPM. Node.js is a whole JavaScript runtime that can be used for different things, like running JavaScript programs outside the browser (many NPM scripts are written in JS and run in the Node runtime). It's also used for running JavaScript on the server. You can write a pretty basic server using Node's "http" module.
>>
>>64719998
Makes sense, I don't do any backend stuff so I never really use it for much other than displaying my preview of what's going on.

When I tried backend stuff I had to keep the console open constantly to be moving things in/out of the database and it drove me crazy having to stop/restart the server all the time too, especially on c9 where you have to run the file over and over and over.

I'll stick to being a node pleb I guess
>>
>>64719998
Don't forget about nwjs which is used to make 'Teaching Feelings - Life With a slave'
>>
So, I need to plot a mathematical function and when the enter some business related data it shows a dot in the function plot. What's the easiest way to do this?
>>
>>64720529
Try D3, there probably an example somewhere you can copy-paste and adapt for your use case
>>
Just developed my first full-stack website. I fucking love it. Its' target audience is niche, there could be potentially thousands of users.

How can I make money off of it? I thought about a "Buy me a coffee" link for donations, do these actually work? I don't want to ads because they're completely shit, and would probably scare users away. Affiliate?? Pls help
>>
>>64719901
>actually coding in the command prompt
First, stop saying "coding", you sound like a 50 year old who doesn't know shit.
Second, do you know what Vim is?
>>
>>64720675
bump
>>
File: biz.gif (11 KB, 468x60)
11 KB
11 KB GIF
>>64720675
really interesting question.
ads are obviously shit. I don't want to see them anywhere and neither would I want to shove them in other peoples faces.
That donation thing you mentioned might be good, but I also often see people dropping their crypto addresses on their sites more often.
But even with that it feels like walking a tightrope... it's a real tricky thing to get right.
>>64720853
so impatient
sometimes people don't get replies for hours
sometimes they ask and get nothing, like >>64714122

>>64714122
is your rank that critical?
301's to the new domain probably, but I think there may also be extra things you can do in googles search console interface for redirecting the results in some way iirc.
>>
I'm new to web dev and just started with javascript. What does it mean when you make a method static? When would you use a static method inside a class?
>>
>>64720450
>Teaching Feelings - Life With a slave
my nigga. how do I make her stop asking for the D?
>>
File: a9e.png (102 KB, 282x376)
102 KB
102 KB PNG
>>64721269
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/static

but given that, I have used JS for ~2 years now and never used or had the need for static methods.
>>
>>64721422
Thanks. I just wanted to know some real world examples when someone would use static methods.
>>
File: laptop.jpg (67 KB, 425x628)
67 KB
67 KB JPG
guys is this laptop gonna be good enough for dev work and heavy photoshop and illustrator and premire pro work? im a graphic designer too so i need one with a good display

so any good laptops >1k that i should check out?
>>
>>64721467
JavaScript itself has a few I think; Array.from and String.fromCharCode. Both of those construct an instance of that thing using the argument. That's sort of the usage of static methods; something related to that class, but an existing instance of the class isn't required to use it.

They could just as easily be regular functions, but bundling them with the class is good for organization.
>>
>>64721632
Oh I see now! Basically, it's just an additional functionality that's good to have there just in case.
>>
>>64721632
yeah this pretty much

what I meant with >>64721422
was, that I never somehow had the need to write any, but they are still handy in everyday use.
>>
>>64718406
>>64718473
>how do you deal with removing permissions from single users?
i'm handling this by having a blacklist of tokens being a {PK: tokenID, FK: userID}. A quick check against the list will return an error and the client will be forced to relog.
>>
>>64721654
Thanks senpai. All is clear to me now.
>>
got an interview and 99% sure landing the job for a serious company doing asp.net development

whats a smart question to ask about their coding practices? I'm a literal college babby and just know how to make simple websites and the basics of Using
>>
>>64721759
start by finishing your thoughts, senpai
>>
>>64721811
using(), disposable objects
>>
>>64717364
He Is everywhere . Gaereon sleeping
>>
Is there any reason to hide your email on a portfolio if you have one specifically for webdev ""business"" anyway?

I'd like it to not be spammed by chink bots but at the same time I wouldn't care too much anyway
>>
File: evanyouuuu.jpg (18 KB, 500x500)
18 KB
18 KB JPG
>>64721910
I can see (You)
>>
>>64721759
what kind of version control system do they use? git subversion etc?
>>
>>64722022
>we subvert people to use git
>>
If I have a website that started as a personal project, then grew to have thousands of users, do I gain the title "professional developer"? Or is that still just separate from actual work? Does it matter?
>>
>>64722059
post link
>>
>>64718295
>be me
>co-op intern for school in small marketing startup
>"ANON this weekly push notification for big client has to go out in an hour, so and so is away so we need you to do it!"
>spaghetti code
>no interface to set push notification
>literally copy paste the notification text from database field and replace string in code according to notes from other developer
>send sketchy notification to all users of the app with accounts person standing behind my back pressuring me to get it out ASAP
>After it goes out other developer phones boss and tells him that the wrong message was sent and throws me under the bus
>condescending "how could you screw up something so simple!!"
>turns out he forgot to update the message in the database
>month later tell my school about incident during checkup report and get a completed internship without having to do the rest

anything can happen
>>
>>64722059
If you've managed to maintain it, scale it, and not get hacked then I'd say you've done well.
>>
I'm trying to implement a search feature on my site.

$('#search-button').on('click', function(event) {
let search = $('#search-bar').val();
$.ajax({
url: `http://localhost:3300/images/${search}`,
type: 'GET',
success: function(data) {
console.log('success', data);
},
error: function(XMLHttpRequest, textStatus, error) {
console.log('error', error);
}
});
});


I took most of that from stackoverflow. In my mongoDB, I have images stored, with things such as "title", and I'm trying to search the DB for titles which match what is searched for in the input field.

That url is probably butchered. How do I search the DB?
>>
File: 1479396066300.jpg (43 KB, 535x225)
43 KB
43 KB JPG
>>64707332
this is the fucking truth.

>Do you know Angular anon?
>Do you use Angular?
>Well...ummm..no..but we are looking for someone with more experience

mfw
>>
>>64698307
Why does the OP have C++ in there? Who the fuck is using C++ in webdev?
>>
File: >mfw.jpg (11 KB, 480x360)
11 KB
11 KB JPG
>>64723531
https://cutelyst.org/
>>
File: 8w0u3.jpg (20 KB, 475x365)
20 KB
20 KB JPG
>>64723617
T-This is a popular thing though?!
>>
Is there a third party software I could use for email subscriptions?
>>
>>64700282
Im doing my site in a python script that parses markdown files for metadata, and invokes pandoc to spit out web pages according to a template.
>>
File: vienna.jpg (1.66 MB, 3827x2505)
1.66 MB
1.66 MB JPG
>>64698307

Help a React nub gtfo out of Angular. My components are rendering with an auto-generated `<div>` tag wrapping each instance, how do I style this parent element?
>>
>>64721759
Ask about their stack and culture
>>
>>64721998
I've had my official e-mail public on my portfolio site for a few years now and never had any problems with spam.
>>
>>64723276
You need your back end to handle this route and return search result, you can't communicate between browser and database directly.
>>
File: 69398381-352-k978637.jpg (26 KB, 352x550)
26 KB
26 KB JPG
Crystal lang is the beez kneez guys
>>
>>64725009
What do you mean? That doesn't happen for me.
>>
What's the logic behind animating components between routes, for example, a list of thumbnail items, you click on one and it takes you to the detail page of said item, but the thumbnail gets animated in some way, example:

https://tympanus.net/Development/ImageGridEffects/

This is all done in one route, what I'm wondering is how one would make it in any normal list->detail route transition as in example.com/items/ to example.com/items/item1, I know this can only be done in SPAs, but how? Just looking for a general explanation, there doesn't seem to be that many tutorials about front end UI animations and transitions.
>>
In relational databases, I have a bunch of tables that need contact info and address info, like 12-14, is it safe to put all of them in one table for contact and one for address? Even if they're not related? Like students and police officers, just as an example. Or should I make a table for student addresses and another table for police officer addresses?
>>
>>64725241
Yeah, I've realized that. I'm a little confused on how to do this though.

In my controllers folder, for images.js, I've added:

 search: function(req, res) {
Models.Image.findOne({ filename: { $regex: res.body.title } }, function(
err,
search
) {
if (!err && search) {
return search;
}
if (err) res.json(err);
else res.json({ search: image.title });
});
}


But I'm stuck right now, I'm trying to figure it out, though. Oh shit, I didn't add it to my fucking routes. Brb
>>
>>64725527
Also, I know that code is butchered/fucked, no h8 pls

also, the
function(
err,
search
) { ...

Is due to the prettier extension, which is nice af, I never have to worry about formatting, but it produces ugly shit sometimes like above
>>
>>64725395
the "relational" way, would be to have an address/contact table and then reference that from your students and police officers table with a foreign key. unless I'm not understanding correctly.
>>
What is the best resource online for learning ES6 features of JavaScript, /wdg/?
>>
>>64725373
only have an example with Vue, but part of your route would be dynamic parameter
https://router.vuejs.org/en/essentials/dynamic-matching.html

"example.com/items/" would load a specific component
"item1" parameter would specify which item should be highlighted on that component
>>
What does wdg think of Bulma CSS?
>>
>>64726478
Mdn probably
>>
>>64726540
it's really nice.
The only odd thing is their mobile/tablet breakpoint being off by 1px for whatever reason.
>>
I'm following this course on Udemy and the guy is using all sorts of JS and CSS frameworks. How do I shake off this nasty feeling that I'm turning into a casual by doing what he is doing and using shit like jQuery?
>>
>>64703817
Was für Tätigkeiten hast du? Dein Gehalt?
>>
>>64723333
Who is interviewing who here?
>>
>>64701715
I'm familiar with the basics but :? :< and other shit is 2deep2me. Use a regex website when "designing" your pattern. It helps a lot.
>>
>>64726817
pretty dickish to write in german, when you could just as well have asked in english.
Looks like spam to anyone who doesn't know the language.
>>64726478
http://es6-features.org
or
https://babeljs.io/learn-es2015/
aren't bad
>>
>>64725373
You'd basically set up another component to link to, then you'd make a function to fire off when you click the thumbnail but it would need a delay of like 300ms. Just enough so that when the effect fills the screen you will route to the next page.

All you do after that is set up the second component to look exactly like the end result of your animation.
React router is so fast you won't even know it changed, and it's basically the same as not changing the URL at all but it kind of does.

Would be a lot easier to just not do that though and keep it all in one component as you'd end up with a fuckload of stuff to copy and paste and it would be a mess to manage.
>>
One of my top 5 keywords is Vapour, but some here spell it Vapor, and the term for this service also uses the word Wet or aqua. For SEO purposes this is a bit of a pain, is there anyway to have the term appear on the page, but every time it's used I can specify what it is sometimes known as?
>>
When I use bulma it fucks up my animations wtf
>>
>>64723276
The result from the database (sent from the URL) will be stored in the data value. Depending on the return type, all you have to do is access or iterate through the values returned in data (provided that the result was successfully delivered).
>>
>>64727435
nvm i forgot to run css watch again

this is what happens when ur a retard AND tired at the same time
>>
People are completely insane.
Why do I need to deal with so much bullshit for the sole purpose of writing a decent javascript app
The moment you try to get outside of vanilla JS and see what other people came up with, you fall into a well of complete utter bullshit that urges me to kill people. And I mean actually kill,
it makes me completely crazy and hysterical, I can't believe people spends weeks typing this shit and after all that they went "Hmm, yes, this is completely fine".

Imagine for a second a completely blank app, like a GUI hello world. Imagine how would you write that in your language of choice. With vanilla JS on Electron, It'd take a few lines, but then you need to do something a bit prettier and without spending too much time reinventing the wheel. Does that sound reasonable to you? Well let's take a look at how other """"people"""" aren't.

4 nested directories, 6 (six) configuration files writtend in 3 different languages, 15 dependencies, 2 (TWO) FUCKING COMPILERS, 5 (FIVE) SCRIPTS TO BUILD THE PROJECT, command lines longer than 80 characters, 3 (THREE) package manager.

What the fuck is wrong with you people, do you like it? Are you OK with it?
I swear a lot of people give shit to christians who held back progress during the dark ages, but I assure you this is LITTERALY NOTHING next to the damage javascript "devs" have been doing to the web for the last decade with their copy/paste culture.
>>
>>64727614
>t. brainlet
it's literally 0 lines to build a webpack JS bundle now
>>
>>64727614
>4 nested directories, 6 (six) configuration files
is that Angular?

Overall I agree.
It's not all bad, but there has to be a limit.
Babel loader, minification and compiling your Vue or React render functions are simply useful.

What really grinds my gears are those gigantic app boilerplates.
>Views
>Controllers
>Pages
>Templates
>Config
>Build
>Models
>Store
>Static
>Tests

I am not writing some internal managing software at google, but just a simple single-page-app
>>
>>64727614
That is the main reason why I use react honestly.

It does everything for you automatically,I can just hop in and make an app with create react app instantly, add in sass, some other stuff like my choice of css framework or whatever I might need and I'm good to go and react will do all the setting up for me behind the scenes.

Takes like 3 minutes and I'm good, I can get everything set up before it even finishes installing because it's so simple.

npm run deploy and my site is on github pages, feels good man.
>>
Anyone got a list of websites that they read weekly to keep up on web tech, even the meme ones?
>>
How can i use composer with 2 different php versions on windows? I made 2 instances of apache, one with php 5.6 on port 80, another with a php 7.2 on port 8080. Sure, i can path to php.exe to the PATH, but only for one of them. I don't really think taht just renaming one of them to php5 or php7 will work without any problems.
>>
What could be missing when page doesn't load php code on apache ?
I have tried all kinds of tutorials and still can't get php to work.
>>
>>64728994
What do you mean doesn't load? It shows php code as text? For <?php to work you need to load php module into apache. On linux it should've been done automatically when you installed php or mod_php, if it has separate package, and, if it wasn't done automatically, a2enmod mod_php. On windows you should add
LoadModule php5(7)_module "path/to/php/dll" 
AddHandler application/x-httpd-php .php
PHPIniDir "path/to/php/dir"

into httpd.conf manually. Also, on windows, bot php and apache should be compiled with same version of VC and php should be thread-safe.
>>
Heeeeyyyyyyyy!
i use text with onclick as buttons and it works, obviously, perfectly.
But, is there a way to disable button text selection by fast/double clicking on it?
>>
>>64729272
user-select:none
>>
alright lads, got my first VPS, got nextcloud setup, added a new volume, mounted it then rebooted now I'm getting "HTTP ERROR 500" on anything in the nextcloud subfolder anything above that folder works fine, what do I do?
>>
>>64727637
>>64727962
>>64728723

You're a part of the problem. These things shouldn't exist in the first place. Javascript should remain purely interpreted and you shouldn't have to use bloated build systems just to get simple shit done.
>>
>>64729701
yeah right, because inserting 100s of <script /> tags, polluting the global namespace instead of a solid module system and no dependency management is a superior way to handle complex JS apps
get with the times or stay a NEET
>>
File: 1518541062287.jpg (252 KB, 500x341)
252 KB
252 KB JPG
>>64729701
write a blog post expressing your frustration and post it on hacker news or reddit

post it here afterwards
>>
File: no.jpg (88 KB, 920x900)
88 KB
88 KB JPG
>>64729701
>>
>>64730411




Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.