[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] [Search] [Home]
Board
Settings Home
/g/ - Technology



Thread archived.
You cannot reply anymore.



File: wdg.png (180 KB, 1280x720)
180 KB
180 KB PNG
I want to post anime OPs, but people get mad

Previous Thread:
>>65493304

>Free beginner resources to get started
Get a good understanding of HTML, CSS and JavaScript.
https://developer.mozilla.org/en-US/docs/Learn - a good introduction (independent of your browser choice)
https://www.freecodecamp.com
https://www.codecademy.com
https://hackr.io

>Further resources
https://developer.mozilla.org/en-US/docs/Web - excellent documentation for HTML, CSS & JS
https://github.com/kamranahmedse/developer-roadmap - Frontend+Backend learner-path suggestions
https://youtu.be/Zftx68K-1D4 - Web Development in 2018

https://jsfiddle.net - Use this and post a link, if you need help with your HTML/CSS/JS
>>
What the hell does ¨application business domain¨ mean?
>>
>>65525386
Got a job writing Angular, but I don't know Angular. Any good tutorials?
>>
>>65525476
Use the documentation and maybe https://codecraft.tv/courses/angular/quickstart/overview/
>>
>google audit wants people to use webp for images
>only supported by like 3 browsers

fuck off dude
>>
>>65526139
>loading any kind of JS or CSS
LOOKS LIKE YOU ARE BLOCKING PAGE RENDERING YOU FUCK!
>>
Should I use domain modeling in my angular components? Not even the docs do it but it's apparently recommended?
>>
Has anyone ever made a backend with laravel?
>>
Will learning Vue.js make me smarter and have a wider perspective on web dev or will it make me dumber and more inclined to take shortcuts and npm install my way through a problem instead of solving it myself?
>>
>>65526634
Assuming you haven't used any other frontend JS framework, then checking one out and learning how to use it is definitely very useful.
It's not going to do your site/app-logic for you. It only opens up new ways, that you can structure your sites code and keep its elements well organized.

It's kind of like asking if Git is an easy shortcut, that makes someone dumber.
It's a tool, takes a moment to learn how to properly use its features, but in the long run you profit from it a lot, so that you can do things you couldn't do before.
>>
>>65525470
It's "stuff the developer probably doesn't know". Like web developers building Bitcoin exchanges without knowing how money words. The business domain is "finance".
>>
>>65526139

This is one of those places where Cloudflare is underrated. It can detect said browser and serve webp only if the user has it. You *could* automate this for every image on your site but damn, that's a lot of fucking around.
>>
>apply to frontend position
>whole interview is them scrutinizing my backend and full stack work
I know they're just trying to justify making a lower offer but seriously getting tired of this shit
>>
why does my npm package published 5 days ago have 102 downloads? there's no documentation or github repo or any other info, is it automated crawlers downloading it?

i had a thing on github that depended on it but only 2 other people knew about it and one of them built it
>>
>>65527170
gad the same, probably some crawlers and npm mirrors fetching every package they can get.
>>
>>65526983
>whole interview is them scrutinizing my backend and full stack work
That's when you tell them "thank you for your time, but you're clearly looking for a different developer.".
>>
File: 1517870059906.png (51 KB, 240x232)
51 KB
51 KB PNG
When a agency is looking for JQu*ry developers
>>
>>65527400
> JQu*ry developers
Eewww
>>
Is Drupal a good competence to go for ?
I saw several offers for PHP+Drupal web development and one looks very interesting to me.

Subsidiary unrelated question, I am working on a website right now and it looks alrightish but I have an issue with my CSS, I am using an image as background but for some reason on phones I have a massive white space taking half of the screen, I saw various solutions online like dividing the height by the width times 100 and then using the number as a bottom padding but nothing worked so far everything is set to be responsive and it's my only problem.
>>
Penis
>>
>>65527604
Heheheh weeeeeeelcome back :)
>>
>>65527604
Ayy we're back
>>
>>65527170
>>65527293
I didn't know anyone can just upload whatever they want to the npm package manager. Do the owners of npm moderate/monitor the packages at all?

Has a package ever been removed by moderators?
>>
>>65527783
of course, otherwise people would just upload malware

which they do but at least they do the efford to obscure it first
>>
>tfw images not yet working

>>65527590
"background-size: cover" is probably what you want, together with the image being centered or aligned on some side, depending on what it actually is.

>>65527783
There probably are rules, just like GitHub lets you upload whatever as long as it fits the service they offer.
>>
If I just know the basics of HTML, CSS, and basic JavaScript, how should I approach learning Node JS, NPM, etc.? All this stuff is completely foreign to me. Would "The Complete Web Developer Bootcamp" course at Udemy put me on the right track?
>>
>>65527816
I already used cover no-repeat and whatnot height and width at 100%, etc...
>>
>>65527834
Honestly RTFM, if you already know JS then angular vue and shit have good official docs that are easy enough to follow, don't pay a dime to learn web development with all the free resources available from primary sources.
>>
what's a better name for my cousin's website:
locksmithinlisbon.com
or
locksmithlisbon.com
or something else entirely? being a small business, i also thought it might make sense to put his actual name and maybe surname in there but that would give worse SEO right?
>>
>>65527851
My vote is for locksmithlesbian.com. Very catchy.
>>
>>65527897
Shit I have a few questions now.
>>
>>65527836
What are you attaching the BG image to? The body or HTML tags or some random div?
>>
>>65527897
This. I live in Lisbon and I'd still way prefer this version.
>>
>>65527993
The body of my header.php that I then require on each of my pages, it looks fine on one but has massive blank space at the bottom on the others
>>
>>65527783
I think they will delete your package if it's clearly not a library useful for web, or if you're just parking the package name or whatever.

There's probably rules for what you can and can't upload somewhere in
https://www.npmjs.com/policies
>>
>>65528006
is it true that portuguese people understand galician well? i am going there next week
>>
>>65528060
Depends on how complex your sentence will be, for example I can't speak Spanish, in the sense that you and I cannot sit down and have a conversation in Spanish. But if you ask me where the bathroom is, I can totally understand that and reply. Galician is even closer to Portuguese than Spanish, so your chances are high that you'll get by without switching to English a lot.
>>
>>65527834
Learn more of HTML, CSS and JS, more than just the basics.
>>
I don't know anything about Webdev but I need to develop simple a web application that wraps around a CLI program I wrote. Any recommendations on how to get started?
>>
>>65528259
Tell us how it wraps around it. What is your CLI program, what do you intend to make it do?
>>
>>65528308
It's basically a program that performs some heavy scientific calculations by sending a problem to a privileged HPC server. So it needs to be in a web app so others can use it without network permissions. Fortunately, the user doesn't need to upload a ton of data since the program gets most of what it needs itself. It will mostly just be selecting some from pre-selected options with some numerical values entered by the user. This will then be fed to the CLI which will formulate the problem based off of that information, send it to the server, and return the result after it's done computing.
>>
>>65528381
Just use whatever, Python, Node or PHP.
Personally I think Python has the best interfaces to other applications but in the end it doesn't really matter.
>>
>>65528408
Also, for framework recommendations:
Python: Flask or Django
Node: Express
PHP: Laravel
>>
>>65528413
Laravel, really nigga?
>>
>>65528526
To be honest, I've never used it other than checking out some basics. I usually stick to Drupal (which would've been overkill for a beginner) or a completely custom setup.
What's wrong with Laravel?
>>
>>65528568
It's bloated as fuck and relies on a shit ton of external dependencies for even basic functions, going with Symphony is a much better choice in 90% of situations.
>>
>>65528579
Fair enough, I don't think having dependencies is a bad thing by default, especially when the user is a beginner.
But since I have no experience with Laravel I'll trust your judgement on this.
>>
who else has a love hate relationship with front end development?
I recently get into the zurb foundation framework, and I like it, it feels like it was designed for customization.

It also helps to know that websites and html started out as a format for ducuments, like a 'word' file.
Right now we misuse it to create fancy interfaces. If you know that than it becomes ok to use it in a non semantic way.

semantic is hiding the stylization in css
interface design hides the complexity and hackery of css behind css classes
do something complex in css? create a class and put everything behind that class

then classes start to not describe content, but the complexity of css
I think this is the way to go nowadays

https://www.youtube.com/watch?v=VlY5CfkL760
>>
What framework should I use for my first time building a site?
>>
>>65528654
What language are you using?
Generic answer would be Vue.js and Node.js but that's if you don't mind full stack Javascript.
>>
>>65528654
for starting out, I think bootstrap is good
>>
>>65528654
Don't use one.

>>65528626
Sound like you'd like the atomic approach.

>>65527851
What portuguese person is going to search for locksmith?
>>
What exactly do people mean when they say they hate websites running JavaScript?
>>
File: 1509317689529.jpg (115 KB, 727x639)
115 KB
115 KB JPG
>>65527850
I love how people are so scared of paying 10 bucks like it's just a horrible, unthinkable thing.

always makes me laugh
>>
>>65529016
i could pay your mother, but i do it for free
>>
>>65528579
>It's bloated as fuck and relies on a shit ton of external dependencies for even basic functions, going with Symphony is a much better choice in 90% of situations.
Symphony is actually bigger than Laravel and the latter makes heavy usage of the former's components.
>>
>>65529249
thank you for unclogging the WC. she really needed help. you did it with your bare hands too.
she said you acted like you had autism. next time try to smile and strike a conversation.
>>
>>65528941
They hate when a site needs javascript for basic functionality like logging in or page rendering.
>>
>>65528654
Don't use any framework until you can build a website with HTML/CSS (no frameworks), & Vanilla JS. Once you can do that and understand what's going on under the hood, then and only then should you learn a front-end framework. Otherwise you won't know what the heck is going on behind the scenes.
>>
How do I use polyfills to get html template support in browsers that don't support it natively?
>>
w3c just got btfo by apple, mozilla, google, and microsoft
k e k
>>
>>65530364
why
>>
Do you name your angular modules in plural or singular?
>>
>>65530364
I heard we'd still be using tables for layout if it were up to w3c.
>>
File: contacts-6-list-view.png (116 KB, 1650x1412)
116 KB
116 KB PNG
I have a list of items that get sent from a server, when I click on the 'add new item' button, a modal pops up with a form, all in the same page. What's the best way to add the new item into the list? Do I make a new request for the items after the new item gets sent, or do I just simulate it and locally add it?
>>
>>65529016
People will bitch about not making enough at their job, but will spend 3 hours trying to save $5. Effectively pricing in their time at $1.66 per hour.
>>
Another day another grind
>>
>>65528815
ok but seriously, how do i name the site?
>>
File: 1105553.jpg (28 KB, 640x480)
28 KB
28 KB JPG
I haven't used the native CSS grid before, does it allow me to make responsive layouts without using media queries or do I have to add media queries anyway?
>>
>>65530364
>>65531043
quick rundown pls?
>>
File: 1216033363406.jpg (15 KB, 306x227)
15 KB
15 KB JPG
>>65532211
>w3c wants to push new HTML spec
>apple, google, mozilla and microsoft say that they don't like it
>they want the spec to be changed according to the way they implement shit in browsers
>w3c caves in like a little bitch

this is why we can't have nice things
>>
I tried into backend development and it's so confusing. Im I supposed to develop against external web server (nginx/apache/other) with cgi, fastcgi or something and delegate the TLS proxy to that web server or native web server for that language of what? Is there even some way to do this universally and decide later depending on runtime environment?
>>
tfw dead thread
let's revive it guys

Bootstrap sucks
Jquery is good!
>>
Is there any reason to start with node.js or jquery when there is PHP7 for anything backend related?
>>
>>65532846
i love php
>>
>>65532846
Fuck the innernet, man

DELETE THE WEB
>>
File: So_happy_smiling_cat.jpg (1.38 MB, 1317x1536)
1.38 MB
1.38 MB JPG
How is this side project going, anon?

getting paid yet?
>>
>>65533162
My projects are going well mr. cat. I've not received any income from web development yet but I still remain hopeful. Every day my projects advance and the progress I make strengthens my resolve in my quest to become a strong and influential member of the web development community. I hope your work is similarly going well, mr. cat.
>>
Is Openstack worth getting into or is private cloud a joke?
>>
>>65525386
Why don't people like anime OPs?
>>
How much do people even charge for "make our small company an online presence"?
>>
How do I change click listener border boxes that come up when you add them?

It's the blue border that only appears if you add a click listener, I'm just currently overriding it with a focus border of 2px but it looks like SHIT
>>
>>65533234
what's the point anyway?
>>
File: 46a.png (97 KB, 645x729)
97 KB
97 KB PNG
>>65533191
>working for free on a project that generates no revenue
What a cuck
>>
>>65533829
Don't be a cunt
>>
File: zand.jpg (103 KB, 1140x650)
103 KB
103 KB JPG
>>65533829
>having to work to survive

*laughs in NEETbux*
>>
>>65534050
I get NEETbux and it's like £10 a day. I absolutely cannot wait to find a job.
>>
>>65531285
What happens if the "simulated" item is added, but somehow didn't go through in the back-end?
>>
>Tfw you unironically enjoy working with WordPress, PHP and jQuery.

What's so good about using other tools when these work perfectly fine for me?
>>
>>65533191
cringe

>>65532260
>w3c shills on wdg
y i k e s
>>
>>65534731
Wordpress/PHP/jq is ok for certain use-cases, especially if you need to make a CMS with a custom theme but for more bespoke solutions it's better to use lower level tools.
>>
File: 1523666420204.webm (1.94 MB, 480x856)
1.94 MB
1.94 MB WEBM
Is trying to make an Instagram clone with node.js a good way to learn node?
>>
>>65535209
working with node is a good way to learn node, yes
>>
File: 1509469093020.jpg (8 KB, 269x211)
8 KB
8 KB JPG
>>65535248

I'm trying to integrate a sort of free node bootcamp. But they take people with a good...background and motivation. It would be to show my motivation. Of course, I won't be doing the whole thing before trying to integrate the bootcamp.
>>
Don't forget to take care of your physical and mental well-being anons! It's very important!
>>
>>65535209
Yeah, sounds good. Are you going to implement the filters too?
>>
>>65535305

Also. Don't worry about finding gfs. They mostly suck (your life out of you, your free time, your money and your semen)
>>
I want to start up a platform for advertisers like our boi Zucc. But the social media angle is fruitless in 2018, with so many brands dominating the market now. So how do I squeeze out some beautiful $$$s from advertising opportunities? What kind of people would pay a lot of money for plebeians to have a glimpse of their product?
>>
File: 1519309361274.jpg (94 KB, 519x533)
94 KB
94 KB JPG
>>65535311
nope, seems too difficult.
>>
>>65535209
>that webm
cheeky fucker
>>
File: 1523663626790.webm (1.96 MB, 480x360)
1.96 MB
1.96 MB WEBM
>>65535344

I was sweating the whole time.
this one is good too
>>
>>65535329
There are a few good node image processing packages, you should give it a shot.
>>
>>65535365
all right I will. Thank you for the positive support.
>>
>>65535357
is there a ful video of this webm in higher res somewhere
>>
File: PassengersSpace.jpg (110 KB, 1920x808)
110 KB
110 KB JPG
>>65535403
you'll have to search for it, m8
>>
>>65535329
>>65535365
imo using imagemagick and shell commands with node would be easier http://www.fmwconcepts.com/imagemagick/clip/index.php
>>
So what is /wdg/'s opinion on HTML
>>
>>65535750
Personally, it's my favourite programming language.
>>
File: 43618624.jpg (389 KB, 1595x1063)
389 KB
389 KB JPG
>>65535871
>>
>>65525476
>Got a job writing Angular, but I don't know Angular. Any good tutorials?
Poor motherfucker. Angular is a gigantic shitshow. Pirate the ngbook2 and work through it all. Good luck.
>>
File: 1523285677946.png (2.28 MB, 2300x2500)
2.28 MB
2.28 MB PNG
Can we talk about rails?
>>
>why are you using so many packages dude?
>webdev
>lol

#include <assert.h>
#include <debug.h>
#include <err.h>
#include <inttypes.h>
#include <kernel/mp.h>
#include <kernel/percpu.h>
#include <kernel/thread.h>
#include <lib/ktrace.h>
#include <list.h>
#include <platform.h>
#include <printf.h>
#include <string.h>
#include <target.h>
#include <trace.h>
#include <vm/vm.h>
#include <zircon/types.h>
>>
File: me.png (312 KB, 389x386)
312 KB
312 KB PNG
>>65536066
including code from other files isn't the same as always using third-party modules for every little thing
>>
File: 1521041995896.png (110 KB, 657x539)
110 KB
110 KB PNG
>>65533237
500$ if you are a nub freelancer.
2k if its some agency, that overcharges to hell to implement a retarded image carousel.
pic related is my knowledge of project pricing btw.
>>65533162
going well
>getting paid yet?
Someone is going to pay me to write Vue+Node sites?
>>
>>65536066
that's not really comparable
especially when npm has proven time and time again they have no idea how to handle things.
>>
i like the node and the js, but together? no way
>>
Vue lads report in
>>
How often do you guys spend refactoring your codebase? I was thinking of setting a day out of the week to go back and review my code and try to streamline with techniques that I learn over time.
>>
>>65536303
eyyyyyyy just started learning Vue yesterday and it is going grrrrrrrrreat
>>
File: 1513214473541.jpg (93 KB, 1024x576)
93 KB
93 KB JPG
>>65536303
It's great
>>
>>65536303
stop posting evan
>>
.com or .org?
>>
I have been asked to build a fancy bubble graph that has hundreds of bubbles.

each bubble should play a sound when clicked. the graphic will likely be an svg, so i can target each bubble easily.

the problem i can see is, how do i deliver the audio?

i wouldnt want to load all those files for obvious reasons, the page would go into the many mb's in size.

is there a way to stream the audio somehow?

like, can i host the audio files somewhere and simply stream the sound when a bubble is clicked?
>>
>>65536536
Well are you an organization or something that's not important? :^)
>>
>>65534723
It will only be added if the item gets added to the database. After posting that I realized I can just send the item I added and add that without needing to request the whole list of items again.
>>
>>65536627
can't you just host the audio files somewhere and play them on click using <audio>? it should load just the one being played

if they take too long to start playing, you could preload the bubble's sound when it's hovered/mousedown'd (and keyboard focused)
>>
How would I do this?

I want to have an underline on the activate link in a navigation bar. When a user clicks a different link, I want the underline to slide from the currently active link to the new link. I want that to happen before the new page loads. Can anyone give me a hand?
>>
>>65536627
>like, can i host the audio files somewhere
...on the site?
>>
>>65536869
post a jsfiddle
>>
File: 1518602379595.jpg (132 KB, 650x866)
132 KB
132 KB JPG
>>65536869
Really simple with embedded ruby. Add a conditional to set the css style. I'm sure you can do the same with javascript
>>
just wasted my day reading tc39 proposals. what the fuck?
half the new class ones in stage three are pure syntatic cancer. why are these fb/airbnb/whatever retards allowed to make the language so retarded?

using unreadable sigils like # to denote "private" methods/members? what the fuck.

class {} syntax was a fucking mistake.
>>
>>65537437
While I don't think that the curly braces for classes is the greatest, it's a lot better than python or any other whitespace-reliant language. Wana hear a horror story? My uni distributed a few python classes for a web crawler. These were given out as microsoft word documents. I hope you can imagine the pain of going through 300 lines of non-indentation to try and fix it
>>
>>65537464
Sublime Text has a code format plugin
>>
>>65537476
I wish I knew about things like that a few months ago... ; _;
>>
>>65537464
better? ya it's ok. but things like

https://github.com/tc39/proposal-class-fields

are just so grammar outlandish it's fucking horrible.

really?

#x = 0
also who the fuck are using computed properties? and why doesn't get/set/static have a NLT form for handling weird tardo cases like get() {} or get = 0? like what the fuck.

also this intentionally creates a lot of new ASI hazards for no reasons I can think of that are good. sure the class {} whatever shit is ok. but it was introduced bymassive faggots with some stupid ass self serving agenda.
>>
How do I center elements within a Bootstrap grid? I currently have three buttons that follow a paragraph however they seem to be right aligned rather than centered below the paragraph despite each taking a third of the Bootstrap grid. I know I can use margin-right to fix it, but I’m curious as to why setting a div section and using center-block or text-center doesn’t work.
>>
>>65537437
There's a lot more retarded ones. The stream operator comes to mind. Hurr Durr I want to create a new call syntax that is left to right just to make the language unlearnable. Also decorators have zero thought put into them.

I think ES6 was a mistake. It has nice changes but now there's this dumb mentality that JavaScript should allow any fucking proposal.
>>
File: 1523722673527.jpg (156 KB, 1406x1199)
156 KB
156 KB JPG
>>65537501
why do you care about this?

Will this change in any way your life or the programs you write ?
>>
>>65537535
true that |> shit and the whole debacle over, only currying, some kind of marker weird ass not currying style, mix, etc. like, this is JS. currying isn't built into the fucking language anyhow. what the fuck.

you're right. I almost forgot about that fucking bullshit.
>>
type schoolPerson = Teacher | Director | Student(string);

let greeting = stranger =>
switch (stranger) {
| Teacher => "Hey professor!"
| Director => "Hello director."
| Student("Richard") => "Still here Ricky?"
| Student(anyOtherName) => "Hey, " ++ anyOtherName ++ "."
};
>>
>>65537543
it does affect me because shit like babel, which is virtually required in 2018, allows people to dream up the most wtf nonjs syntax and let them use it on browsers as far back as IE8.

also I like the idea behind js classes, but the direction tc39 took to implement the base model in ES6 and all the fucking retarded shit they are doing for ES2018 is literally making js suitable for tc39 fag bois.
>>
File: ubuntu-logo-g.png (13 KB, 300x300)
13 KB
13 KB PNG
What's the best and most user friendly Linux Distro to use for webdev?

Currently using Ubuntu 16.04, and am waiting for 18.04 release, unless there's a better recommendation.

I've tried Mint (thought it was meh), and don't want to hassle with something like gentoo or arch. Possibly looking at manjaro, idk. Suggestions?

Also, dual booting b/c i need windows for creative cloud software.
>>
File: messaging.gif (327 KB, 720x474)
327 KB
327 KB GIF
>>65536303
Started using Vue recently and I'm making a shitty websocket chatroom thing. I implemented the UI pretty nicely using Vue, working on the backend/frontend logic now.
>>
>>65537670
it literally doesnt matter, you'll still remain an incompetent dev
>>
>>65537501
>#x = 0
I agree that's retarded, but I also don't quite understand..

Why not just make it so you can simply use the let keyword to declare scoped variables, that can't be accessed from outside the class?
It's something that already exists in the language as a concept since ES6.
>>
>>65537717
are you a competent dev?
>>
>>65537670
at the end of the day you will be typing the same commands into the terminal, the only difference is going to be what commands you type to install whatever software you need
>>
>>65537670
I use fedora. their release targets are basically as bleeding edge as arch's "stable" and has a "jus werks" installer and defaults
>>
>>65537727
i can make my own decisions over what os to use so at the very least i'm not a brainlet
>>
>>65537670
i think youre set, if it aint broke dont fix it
>>
File: muhmootools.png (134 KB, 774x838)
134 KB
134 KB PNG
>>65537535
>>65537555
Reminder that this exists

Because some 3rd party obsolete legacy library from years ago, that messes with Array prototypes definitely takes priority, when naming methods.
>>
>>65537724
dunno.

https://github.com/zenparsing/js-classes-1.1/issues/32

is the best I could find. something about variable scoping rules or having to mangle the js engine.
>>
>>65537800
i really really wish they named it smoosh.
>>
>>65536303
vue is hot
>>
how do we get evan you banned from wdg
>>
File: f.jpg (8 KB, 212x67)
8 KB
8 KB JPG
>>65538028
>>
Is there a way to automatically remove api keys and such with a placeholder when pushing the project to github?
>>
File: h542h462.jpg (44 KB, 600x400)
44 KB
44 KB JPG
Anyone like curry?
It's growing on me man.
>>
>>65538128
singular global constant that you replace with some build step that just changes it with sed?
>>
>>65538151
ya. wh*toid women don't stand a chance.
>>
>>65538202
stop pretending you ever had a choice to begin with.
>>
File: wes.jpg (17 KB, 400x400)
17 KB
17 KB JPG
>>65538028
Leave Evan to me
>>
>>65538332
What's the connection between wes bos and even you?
>>
>>65538128
have them in a file and add it to .gitignore
>>
>>65538360
>>65538177
Thanks.
>>
File: karlie_kloss.jpg (76 KB, 1061x612)
76 KB
76 KB JPG
I am assembling a team...
>>
You can only use 1 JS library for the rest of your life, what do you choose?
>>
>>65538479
can I still create my own libraries in addition to the one?
If so, then probably Moment.js
With some time I can probably recreate a lot of libraries, but it's literally impossible to do all that date/timezone stuff for the last hundred years yourself and not lose your mind.
>>
>>65538479
Ga.js
>>
>>65538479
gulp
>>
>>65538479
vanilla.js
>>
>>65525386
how should i handle authentication? is there something better than email + password
>>
>>65539187
>fingerprint
>voice recognition
>eye recognition
>browser history patterns
>>
>>65539187
what's wrong with email + password?

just don't allow weak passwords to be created
>>
>>65539187
better? probably. but will users bother to handle anything different? probably not.
>>
>>65539187
email and password is perfect because then you don't need to worry about conflicting account creations. You can also follow that rule to setup third party logins depending on your platform. When in doubt, don't handle it yourself
>>
File: 1512557192575.gif (1.78 MB, 500x625)
1.78 MB
1.78 MB GIF
>>65525386
What would be best to create a nice photo gallery showcase type site in a short amount of time?
I tried using wordpress but it seems like it is more for blogging and post-oriented content, which is kinda unfit for my purposes. I'm looking for something more media oriented where I can showcase something. Wat do?
>>
>>65539368
you can make it easier to sign in without a password which would ultimately be easiest
>>
>>65539530
Definitely wordpress. While you can do blogging with it, you can set it up with plugins to only have a portfolio going on in it. I don't think you looked as hard into wordpress as you should have, because that shitty fuckware supports all kinds of things.
>>
>>65538128
>>65538177
>>65538360
jesus christ
.env files
>>
>Want to contribute basic stuff to open source projects
>Search for 3 hours
>It's all 0 star 5 commit hobby projects
I can't feel important with this...
>>
After I installed a css framework through npm, the instructions state that I need to import it, but I don't know how. When I tried to import it in my sass file, it didn't work.
>>
can you dudes recommend a tutorial to learn laravel and the whole mvc meme? i come from writing procedural shit so classes and all this stuff is kinda new
>>
>>65539632
Which framework?
>>
>>65539584
what about?

if you mean retarded shit like DEPLOYMENT=prod retardation, no. never got that meme using env variables to make your program do semantically different things than properly using configuration options.
>>
>>65539632
What's your setup? You need the proper loaders to be able to import SASS files.
>>
>>65539657
1. Add .env to .gitignore
2. Insert API_KEY=abc in .env
3. ???
4. Profit
>>
>>65539674
don't forget to add deployment=prod to trigger some /g/ autists just for the memes
>>
>>65539648
bulma to be precise.
>>65539663
Sorry, w-what loaders?
Currently, I have a simple gulpfile that fetches the css file from the node_modules folder and then copies it to the necessary folder. It works then but I'd rather just simply import it with one line if it's possible?
>>
>>65532260
Which html spec
>>
>>65539674
honestly, this retarded argument has gotten out of hand. without even knowing what the person originally doing or wanting I don't see a point of pushing this. but api key should be a configurable in a CONFIGURATION file, not some fucking retarded env noise or a static that's compiled with whatever binary release being made.
>>
>>65525476
There are some Angular video courses and books on this server:

https://discord.gg/wdg

Check the #reading-list pinned messages, there is a cloud drive with books and courses.
>>
>>65539716
In your main.scss
import '~/node_modules/bulma/css/bulma.min.css'
>>
>>65536627
https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API
Think you can stream with the web audio API if the browser you're targeting supports it.
>>
>>65539772
It worked! Thanks!
>>
>>65539744
Environment files are configuration files.
>>
>>65540040
no, they are a collection of retarded c strings (key=value\0) that get loaded into some segment of memory that are potentially passable to children. env shit is noise and shit like /etc/sysconfig or defaults was a bane to proper configuration.

I don't consider an "ENV file" to be the same as a configuration file.
>>
Anyone here knowledgeable in Angular? I guess not, but I think this question can be applied to React/Vue or any other front end framework? How do you set up UI containers? For example, imagine a dashboard container, it has a sidebar and a top bar, and all the main content inside is what's being routed, but what about other parts of the site that don't require a dashboard, like the login or 404 page, how do you encapsulate component pages that use the dashboard container and those using a clean container? I've been searching through dashboard templates in Github and I found this:


//application wide router
import { Routes } from '@angular/router';

import { AdminLayoutComponent } from './layouts/admin/admin-layout.component';
import { AuthLayoutComponent } from './layouts/auth/auth-layout.component';

export const AppRoutes: Routes = [
{
path: '',
redirectTo: 'dashboard',
pathMatch: 'full',
},
{
path: '',
component: AdminLayoutComponent,
children: [
{
path: '',
loadChildren: './dashboard/dashboard.module#DashboardModule'
},{
path: 'components',
loadChildren: './components/components.module#ComponentsModule'
},{
path: 'forms',
loadChildren: './forms/forms.module#Forms'
},{
path: 'maps',
loadChildren: './maps/maps.module#MapsModule'
},{
path: '',
loadChildren: './timeline/timeline.module#TimelineModule'
}
]
},
{
path: '',
component: AuthLayoutComponent,
children: [{
path: 'pages',
loadChildren: './pages/pages.module#PagesModule'
}]
}
];


How about it? Is this the best approach? What would you do in React? I know a little bit about that library and I'm interested to know as well. Please respond.
>>
>>65540136
how about mansplaining how you do this

only after you clean the foam off your mouth no rush nigga
>>
>>65540185
the fuck
>>
>>65540196
yeah dude, enlighten these poor bastards on config files, they know nothing
>>
File: 1518962843202.gif (188 KB, 540x603)
188 KB
188 KB GIF
>>65540185
Please go back to whatever shithole you came from
>>
>>65540230
Cute
>>
>>65540229
what?

config -> file you parse configurable runtime behavior
env file -> shit you preload into a process before executing your code.

pretty straightforward tard
>>
why are webdevs online so grouchy?
>>
>>65540272
an API key or DB credentials are not 'configurable runtime behaviour'
>>
>>65540303
Configs are confusing
>>
>>65540370
except they literally are and using some collection of NUL delimited strings is just a really retarded and poor way of doing it.
>>
>>65540185
Faggot.
>>
Is it possible to call a function inside a for loop's parameters, like
for (funcLoop()) {
console.log('hi!');
}

function funcLoop() {
return let i = 0; i < 10; i++;
}

Because as it stands, JSBin gives me an error
>>
>>65540738

function funcLoop(i = 0) {
return i++ < 10;
}


>>
>>65540738
no? use/make an iterator instead. or generator function I guess.
>>
>>65529290
Sure if you install all the bundles at once. Symfony lets you add as you go.
>>
File: 1294420506499.jpg (30 KB, 320x291)
30 KB
30 KB JPG
Will CSS ebery get if else statements ?

Would b ool for repsponsive shit

Pic related
>>
>>65541222
if/else for what?

css already has media queries. bout the best you can get to conditional css...
https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries
>>
>>65540738
You want a generator m8
function* loop() {
for (let i = 0; i < 10; i++) {
yield i;
}
}

for (let i of loop()) {
console.log("hi! " + i);
}
>>
>>65540738
>for (funcLoop()) {
nigga what
>>
>>65541253
#container {
if ( this.width >= 200px ) {
.child {
background-color: white;
}
}
}
>>
>>65541496
>width

you want media queries then like I linked in the relevant MDN
>>
>applying for positions
>one posting asks for people familiar with their stack, but don't say what their stack is
>I email because it's with a company I'd otherwise be interested in working for with great benefits and location
>Mac, C, Go, Ruby, and jQuery
>
>
>
>>
>>65541545
People still use C?
>>
>>65541545
sounds pretty fucking shitty tbqhwyf
>>
>>65541545
none of those are problematic
>>
>>65541750
literally all of those are problematic. are you a fucking retard?
>>
>>65541545
Who uses jQuery in 2018? Literally anything would have less girth at this point.
>>
>>65541755
ah yes, neet tell me more about this wondrous life of elixir-exclusive programming
>>
>>65541777
Like 90% of websites still use jquery and companies are too lazy to rebuild. You need it for legacy purposes.
>>
>>65540137
No one? I guess I'll go to stackovermeme
>>
FUCK WHY DOES SHITTY MICROSOFT EDGE NOT SUPPORT <TEMPLATE> IN CURRENT YEAR REEEEEEEEEEE
>>
>>65525386
I may never get started on my web dev project.
Guys, if you want to get serious about actually starting a website, buy a server.

I'm not going to start my website until i buy a server
>>
>>65542503
Literally who the fuck cares about edge, tell your client to stop being a retard.
>>
>>65542503
....why are you using <template> ?
>>
"work at side projects so employers will know why they should hire you"

well ok, but what are good examples of side projects in that sense? what should I aim for if I'm looking for a better CV more than anything?
>>
>that one neet who replies to posts knowing full well he's useless and has zero insight/understanding of anything
what's his mental disorder?
>>
>>65542704
>neet
there you go

t. neet
>>
Retard time: I want to build an android app just for myself that will alert me via notifications when something occurs on my Home Server - what's the simplest way to do this? I was planning on using MQTT but maintaining a solid connection via that looks like a no go.
>>
Would it be better to learn Entity for database interaction or am I better off just using something like Dapper so that I can get something built? I feel like a brainlet with SQL and setting up DB connections.
>>
n a i s u
https://vuepress.vuejs.org/
>>
>>65543126
push notifications?

https://stackoverflow.com/questions/11151894/how-to-do-push-notification-from-server-to-android-mobile
>>
>>65533162
I think my backend is finally in a good place so I can start on the front end now. Using MySQL + express + reactjs
>>
>>65539594
Contribute to dependencies you normally use that are open source
>>
File: 1522457609761.png (107 KB, 1200x580)
107 KB
107 KB PNG
Anyone know what theme this is?
>>
>>65543838
terrible
>>
File: Burglar-610[1].jpg (105 KB, 610x357)
105 KB
105 KB JPG
How can I protect my site content from being copied and stolen?
I have tried various WP plugins that disable right click, but most content thieves nowadays just open the dev console and copy the text from there.
Is there any html encrypion based solutions?
>>
>>65539187
OAuth
>>
>>65543281
Can you do it but not through Google/third party solution? Is it at all reasonable to run it myself on my own simple home server?
>>
I make a couple of sites once every year or two and each time I hand write all the html and (plain no framework) css and then I forget a bunch and have to relearn everything each time.

Is there something better now that keeps markup and styling clean without having to hand write everything?
>>
My company wants to switch to Angular 2 for all of their dashboards and I'm the poor fucker who's gonna have to develop all of that shit, what are the advantages of Angular over React and Vue? It just sounds like a more complicated and poorly optimized mess to me.
>>
>>65544173
Look at what other top sites do.
>>
File: PrtScr.jpg (15 KB, 350x260)
15 KB
15 KB JPG
>>65544173
If it can be seen it can't be protected.
>>
>>65544173
for the browser to render a page it has to receive the code of what it has to render, if it receives the code then the user can see it.

you could hide your content behind 1000 plugins that disable every keyboard and mouse button and all you'd have to do to bypass that would be downloading the page with curl or wget and opening it with a text editor
>>
>>65544173
>I have tried various WP plugins that disable right click
fuck you
I had to install an addon that re-enables text selection etc because of shitcunts like you
>>
>>65544173
protip: you can't

it's literally impossible and you shouldn't even bother trying

even if you do everything in your power to transmit your content in some encrypted and obfuscated manner, they could still screenscrape your shit no problem
>>
File: fucking pajeets.png (19 KB, 1008x292)
19 KB
19 KB PNG
>freelancing in 2018
>>
>>65545411
Most developers are bitches, these idiots are the reason why we get so many shitty clients, I'm glad I'm actually skilled enough to get at least a 80€/h rate.
>>
>>65545411
5$ goes a long way in India
>>
>>65544440
help
>>
>>65545411
*poos in your server for 5 bags of rice*
>>
>>65537522

Learn flexbox.
>>
>>65540137

That's easy as fuck.

app.component.html
><router-outlet></router-outlet>

components that you want a navbar or sidebar
><app-navbar></app-navbar>
>component html

components that you don't want a navbar or sidebar
>only the component html

Is this something what you want?
>>
Need some ideas, guys. I have a database with the IP's of my site visitors (50 million hits/month, I work for a moderately sized company). We have a service, kinda like GeoIP, that gives us the country for each IP. I don't want to hit up the service 50 million times, so I want to find a way to cache my previous results (memoization or something like that, I believe it's called, using a LRU cache). Caching individual IP's is useless because they're almost all unique, so my question is, what is the smallest amount of IP digits that I would need to cache to be able to still tell what country it's from? Hope it's clear...
>>
>>65542703

todo list
>>
>>65545807
Why not group them into subnets? or better yet just group them into the octet sections Then from there just index everything properly.
>>
>>65545865
right, this is my question, sorry I'm a new. so doing 190.106.126.xxx would be enough, right? That range would always belong to just one country, correct? Or can I go even further and do 190.106.xxx.xxx? This is what I need to know.
>>
That's it, I'm learning PHP at the same time as JS.
>>
>>65545910
You would need the IP ranges for each ISP. Might as well download a local copy from https://db-ip.com/db/ or similar and run it against that instead.
>>
>>65545910
Not a network expert here by any means, but wouldn't the ip range depend on what the isp in said country bought? so if there's multiple isp there would be multiple ranges with possibly different subnets? and even in the subnets ranges there could be multiple owners like x.x.x.90 - x.x.x.100 belongs to isp from country A and x.x.x.101 - x.x.x.120 belongs to an isp in country b
>>
>>65545966
Yeah, I guess that's my question, if countries get assigned whole blocks or it all just depends. So what you're saying is that it might be the case that the last 3 digits are relevant to determine the country, that was exactly my question. So then my caching technique is not gonna work. Unless someone has another idea...
>>
>>65546010
ISP buys a range of ip's, it doesn't matter what the country is since the ip's are not predefined for a specific country.

Try looking at a few countries on this site and see that they have a mishmash of different ranges

https://lite.ip2location.com/ip-address-ranges-by-country
>>
>>65542510
There are a total of three people who care about Edge which is two more than care about <template>
>>
>>65545910
How granular does the location need to be?

The smallest an ISP can get in an allocation is a /22, so 190.106.0.0 - 190.106.8.0. That's probably going to be limited to a country. However, we route as small as a /30 to different states.
>>
>>65546122
just country is all I need. So you're saying that 190.106.0.xxx is always going to be in the same country, correct?
>>
I want to get money but also don't want to interact with people at all. Is there a market for writing programs/frameworks/plugins/etc and charging people for a licence? I am a good programmer so any language or framework is fine, I just don't want to get a job.
>>
I'm thinking about rewriting my react project to typescript.
Opinions on typescript + react?
>>
>>65546268

Rewrite it to Angular instead.
>>
>>65546248
There might be, yeah. Don't go freelance though, cause what that means is you spend more time talking to your clients than actually working on your code.
>>
File: grills.png (490 KB, 449x401)
490 KB
490 KB PNG
>>65546277
Thanks but no thanks
>>
any good books for learning php from scratch, something thats not outdated
>>
>>65546640
Pro ASP.NET
>>
>>65546666
i just wanna learn php cause i might need to maintain my schools website
>>
>>65546706

>2018
>learning through books
>>
>>65546723
im obviously gonna download the free ebook
>>
>>65526983

Well if you write a garbage back-end code, there's big chance you'll be writing a garbage front-end code too.
>>
Help me /wdg/, I recently got an Indian gf. She's cute, great personality, nice body, etc. I want to marry her.

However, I don't want my child to look like Indians. What do?
>>
>>65546790
tell her you don't want kids, then have a family on the side with an aryan cutie
>>
File: 1522275313441.jpg (41 KB, 400x370)
41 KB
41 KB JPG
>>65546790
you are a moron. If you want white children, marry a white woman. Is that so difficult to understand?

Now fuck off to >>>/adv/
>>
>>65541513
I know what media queries are, they're really not the same thing though.
>>
Has anybody here made a web scraper with JS? I want to scrape for YouTube videos and then download them. There are modules available for that in Python but I was wondering if I could use JS instead. I found this YouTube downloader node.js module - https://github.com/fent/node-ytdl-core - but the scraping part is what I'm concerned with. I want to skip from video to video in a single channel and download 'em all. Any advice /wdg/?
>>
>>65547453
Youtube probably have an API you can use.
const videos = ytAPI.getVideos({channel: 'channelID' });
//do your magic to download videos
>>
>>65547509
They do. Thanks for reminding me about that. I'll go do some thinking and write some code.
>>
>>65547239
they are literally exactly what you want you fucking retard. you want to control things based on basic bitch shit like screen width.
>>
>>65546790
>However, I don't want my child to look like Indians. What do?

why not you fucking racist?
>>
>>65547754
races are a social construct, sweetie
>>
>>65547782
except they are not
>>
>>65547831
newfag get out
>>
>>65547831
>>65547782
when did this retarded thread become /pol/?
>>
>>65546790
Fuck a white bitch instead
>>
web dev is shit get into software dev
>>
File: maxresdefault.jpg (111 KB, 1920x1080)
111 KB
111 KB JPG
>>65546790
How come this dude does not get banned, but I do for posting a slightly revealing picture of a cute girl
>>
>>65547990
>thing people make a living off is shit, get into other shit people make a living off
>>
>>65547831
>>65547782
They are. If your child is raised in your country then he's nothing Indian. The upbringing makes their thinking fundamentally different. May still get some cultural influence from your gf though.
>>
>>65548016
because you constantly post the same girls over and over again
>>
>>65548120

so? I don't see why this is a problem? on autism central? Can't I be obsessive? fuck off
>>
>>65546268
The transition will be tough but it's easy to maintain afterwards.

>>65546248
Have you tried pretending to be a girl for old men online?

>>65544624
React and Vue are similar in how they aim to solve their problem, Angular is a totally different beast. They aren't substitutes for one another.
That being said you're in for a lot of work, so at the very least you have some job safety and potentially a raise.
>>
>>65548154
>on autism central?
I think you meant to post in >>>/trash/
>>
So I'm a noob working on this dice game in html css and java and im trying to center this fucking div but when i change div.dic to .center.div.dice it will center it but remove the color/boarder/ect. Plz halp

<style>
div.dice {
float:left;
width:50px;
background:#ffffff;
border:#111 2px solid;
Color:#00853D;
padding:10px;
font-size:50px;
text-align:center;
margin:5px;
}
</style>
>>
>>65544173
ur one of those total fucking faggots arent you.

>thinks his words are worth anything more than a bullet to the head
>>
>>65548306
>.div
>>
>>65548306

Learn flexbox.
>>
>>65546268
Me here
I use immutable as reducers in my store. Do I really need to define keys, an interface and then the keys in the record? Feels a bit redundant. Is there any better way?

import { Record } from 'immutable';

const keys = {
status: null,
description: null
};

interface IErrorRecord {
status: number | null,
description: string | null
}

export default class ErrorRecord extends Record(keys) implements IErrorRecord {
status: number;
description: string;

constructor (values: Partial<IErrorRecord>) {
super(values);
}
}
>>
>>65548583
He should learn the differences between classes and elements first tbqh
>>
>>65548306
Read https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors

You're using a class selector before what you want to be a type selector.
Where you think . is used to merge the two together, you're actually changing div (type selector) to .div (class selector)

Using div is most likely unnecesary as a whole, but what you need to do is div.dice.center
>>
File: despiteallmyrage.jpg (27 KB, 601x508)
27 KB
27 KB JPG
>>65525386
I know how to program(Some C/C#, Java, JS, some Node, and React). How do I stop being a poor wagecuck guys?
>>
>>65549728
What's your current wage?
>>
How do I get work or find a job as a junior web developer?
>>
>>65549878
you apply for jobs? duh?
>>
>>65549864
$11/hr, roughly 12k a year being part time.
>>
File: Best font.jpg (13 KB, 564x451)
13 KB
13 KB JPG
What's the best font and why is it Poppins?
>>
>>65549918

really modern
and soyboyish
>>
>>65549953

its kewt :3c
>>
>>65549953
I thought so too, looks very liberal startup like. I prefer Roboto, truly in the middle of a fine line between modern and corporate.
>>
>>65549878
Depending on competition in your area, apply for jobs or internships.

>>65549905
Go full-time, move if necessary. You should get at least 65K. Setting up WordPress sites in India with Fiverr clients probably earns more than $15/hr.

>>65549918
Looks nice. Where have you used it?
>>
>>65549999
>Go full-time, move if necessary.
I'm a student since no one will look at me without a degree. I'm just trying to explore ways to earn money in my free time. Maybe going on Fiverr or freelance is the way to go.
>>
File: soygram.jpg (214 KB, 1920x1040)
214 KB
214 KB JPG
>>65549999

Currently making Instagram clone for recipes/foods.
>>
>>65549999
checked
>>65550154
what is your stack, anon?
>>
>>65550230

[spoiler]Angular/Laravel[/spoiler]
>>
>>65549918
is it free as in freedom?
>>
>>65550270

Yeah, I only use fonts from Google.

>https://fonts.google.com/specimen/Poppins
>>
>>65550283
lit. thanks.
>>
>>65525386
a website which resembles googles startpage
but instead shows all the alternative free services in the corner instead of Google's

https://codepen.io/fire-hawk/pen/yKdZWG
>>
File: rounded_corners.png (2 KB, 88x93)
2 KB
2 KB PNG
Is there a way to make one border of an html element rounded on both sides, like pic related?
I know of border-radius but then I get a different result.




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.