[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/wdg/ - Web Development General

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 317
Thread images: 33

File: 1495148244441.png (868KB, 822x552px) Image search: [Google]
1495148244441.png
868KB, 822x552px
>2017
https://www.youtube.com/watch?v=9hDKfBKuXjI [Embed] [Embed]

>This season's Advent of Code:
https://adventofcode.com/2016/

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

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

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

>Useful Youtube channels
derekbanas
learncodeacademy
funfunfunction
computerphile
codingrainbow

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

>Backend development
https://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks
[Gist] backendDevelopmentBookmarks.md (embed)

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

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

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

>cheap vps hosting in most western locations
https://lowendbox.com
https://www.digitalocean.com/
https://www.linode.com/
https://www.heroku.com/
https://www.leaseweb.com
>>
Will HTML 4 run?
>>
I know this seems pointless, but it took awhile for me to figure out how to center text in HTML5.

div align="center"

Maybe it'll help someone out there
>>
>>60559366
align is obsolete, use CSS and text-align instead.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div#Attributes
>>
>>60559366
SHUT THE FUCK UP
>>
>>60559366
html is barebones nowadays.

just use css for anything design-related.
>>
I've been doing web dev for about five years now, pretty much all LAMP stack (WordPress, Magento, Laravel, CakePHP).

I've got a new client who's after a portfolio site, which I'd normally go straight to WordPress for. I fancy using the opportunity to learn something new though because PHP is for shithouses.

Are there any strong non-PHP CMS' out there? JavaScript-based would be fun.
>>
Reminder that :
Go, C#, Java > Python, Ruby > PHP, Javascript
>>
>>60559388
>>60559414
I don't expect many people to find use for it. I'm just a novice and thought I would share since I asked this thread and several other people before figuring it out.

My friend has a profile on a website for their job, but they can't edit CSS, only HTML. Thus it was relevant for me.
>>
+1 for vim
>>
File: 1493586623285.jpg (11KB, 175x152px) Image search: [Google]
1493586623285.jpg
11KB, 175x152px
>Mention on a webdev discord that I use JSF
>Get called a decrepit 45 y.o. washed-up programmer who needs to learn React asap
>>
>>60560690
and you're only 44. Damn, that must have hurt, huh?
>>
>>60559696
Kotlin, Swift, Dart >>> others
>>
>>60560690
kek. they probably had to google jsf first too
>>
Why do websites make public apis?
>>
>>60561755
why not? It makes it so much easier for others to interact with your site in an automated way. Say you have a cool site and others want to scrape it, well, instead of scraping it they can just code a script in 2 minutes to get all the info through the API.
>>
File: Comb25052017120358.jpg (136KB, 1080x640px) Image search: [Google]
Comb25052017120358.jpg
136KB, 1080x640px
guys come play my web game that i hacked together with jquery because i don't know react
it's unoptimised fun
https://www.drawasaurus.org/
>>
>>60562104
Do you have code published somewhere?
>>
File: ss_014.png (50KB, 1117x124px) Image search: [Google]
ss_014.png
50KB, 1117x124px
anyone knows how to fix this
>>
>>60561755
Why do websites make any features?

>>60562231
chown -R mysql:mysql /var/lib/mysql
>>
>>60562104
Pretty awesome how long did it take to make? Did you make the sound / gfx urself?
>>
>>60562683
>Why do websites make any features?
I think his question is more along the lines of "What are the benefits of making a public API?"
>>
File: 1495216725933.png (123KB, 459x473px) Image search: [Google]
1495216725933.png
123KB, 459x473px
apache or nginx?
>>
My Scala-obsessed colleagues look down on me for liking Go, but I can bust out a whole service while they're still arguing about which abstractions to use.
>>
>>60559679
Jekyll with cloudcannon is fine if you don't need anything too dynamic. But for a portfolio site it might even be easier to roll your own and use something like dropbox for the store - i.e. they upload their pieces and the site rebuilds itself.
>>
>>60562104
cool idea, it's a bit like pictionary eh?
>>
>>60562793
nginx
>>
File: 08harlow.jpg (367KB, 1051x1327px) Image search: [Google]
08harlow.jpg
367KB, 1051x1327px
Complete newb here, I want to deploy a small application on heroku. The app has static files and media files (i.e. files uploaded by users).

Is there something special I have to do to make sure static and media files are deployed, except this:

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
>>
>>60563075
you wouldn't deploy your 'media files' / user files. they're not source. use S3 on heroku for user files
>>
>>60562726
How else is API supposed to be used if it's not public?
>>
>>60563368
it's a small app just to show off, I know that heroku would clean temp (i.e. media) files when the app is reset, but I don't care about it, I just want it up, so S3 would be an overkill I think
>>
What am I doing wrong?

My page url is mypage.com/something/xyz

On that page I have a link with href="/about.html"

But if I click on that it takes me to mypage.com/something/about.html

I need to clear the path "something" from the url.

How do?
>>
>>60563570
that's how it works.

do you have a base element somewhere?
if so try adding ../ before.
>>
I'm just getting started with WordPress, and I'm trying to make my own theme. I started with the "twentyseventeen" theme that they give you by default, just to try to learn how everything works.

I noticed that everything seems to load a metric ass-ton of javascript, despite this being a largely static site. If I create my own theme, will I be able to get rid of jquery and this other crap, or is it hopelessly entangled with WordPress?
>>
Very simple and stupid question, but WHAT DOES THIS DO? Never seen the &&s being used when assigning value.
Specifically, what does the && statement mean and what would this result in?

const localFeeds = localStorage.feeds && JSON.parse(localStorage.feeds);
>>
So I've tried a couple of times in the past to get pomf setup on my home server for personal use, but I can never get it working correctly.

I'm running apache2 with pretty much default configuration, but when I start uploading images, I start getting server error messages, but what's odd is that often one image will go through and then the next won't? Any ideas?

Pomf github:

https://github.com/pomf/pomf
>>
>>60562888
I made a little proof of concept once that used tumblr because I was working with a guy who already used tumblr a lot. I ultimately decided against it because I didn't want to worry about tumblr changing there terms, shutting down etc but it was pretty cool from a normie perspective and saved the time of designing a cms interface, searching/tagging was already implemented etc
>>
>>60564252
Localfeeds is set to true if both localStorage.feeds && JSON.parse(blah blah) return true. If one or both of those returns false/fails then localfeeds would be set to false.
>>
>>60564252
&& is a short-circuiting operator.

If the first (left) parameter is false, it returns that parameter, because the result of a logical and operation will be false, and it has deemed that parameter evaluates to false.

If the first (left) parameter is true, it returns the value of the second (right) parameter, because if that second parameter evaluates to true, then the expression is true, and if it's false, the expression is false.

The unintuitive part is that what is returned is not necessarily a boolean true or false value. There are several values that evaluate to false (0, false, "", null, maybe others I'm not thinking of?), and most other things evaluate to true. So the thing that gets returned is one of the two parameters of the && operation.

In this case, localStorage.feeds might be an empty string. If it is, the first parameter evaluates to false, so the operation short-circuits, and that empty string will be returned to be set as localFeeds. If it's not, then the non-empty string will be parsed as JSON, and the resulting object will be returned and set as localFeeds.

Basically, that code just makes sure we don't try to parse an empty string as JSON.
>>
>>60561755
To promote their website/services.
>>
>>60564576
No, JavaScript && does not necessarily return a boolean.
>>
File: 1486511323981.jpg (59KB, 728x410px) Image search: [Google]
1486511323981.jpg
59KB, 728x410px
>tfw got job as javascript/ajax/php/sql programmer
>>
>>60563570
Learn absolute vs relative difference. Also you probably want to use base href.
>>
how should I handle user authentication in a node.js/react app? I'm seeing a lot about using tokens with passport and bcrypt, does this sound about right?
>>
>>60564824
what did you have in your portfolio, or what do you think made them hire you?
>>
>>60565090

i made a game in Lua lol thats it
>>
>>60565106
how complex was the game? I don't have a game but have a few decent front end apps, a couple full stack apps that I'm proud of. gonna start applying next week
>>
>>60565144

it was a lame 2d shooter, but i also did have a CRUD app in PHP. Front end stuff doesn't mean much in 2017
>>
>>60565201
alright I got a crud app and another that just stores user settings to db. my front end stuff is just functional with some neat css, banged those out pretty quick
>>
>>60565232
Not him but just start applying.

My job didnt even look at my portfolio.
>>
>>60565064
JWT
>>
Do any non C#/Java backend devs expect much in the line of code completion/hinting in their setups? I'm working on a pretty big Perl code base in Sublime Text and while it isn't unmanageable yet I think its nearing the point where'd I'd appreciate a little help from my text editor
>>
>>60563992
Mostly dependencies so you need them.
>>
>>60564254
Hard to say without error.
>>
>>60565787

I tell you error is "Server Error" sir.
>>
File: 1313244242.jpg (32KB, 182x182px) Image search: [Google]
1313244242.jpg
32KB, 182x182px
sup, I got sent here when I posted this thread:
>>60565563

Still interested in answers, so I'd be glad if you responded ITT
>>
>>60565701
Switch to VS Code. It's way better for handling anything larger than a single file.
>>
>>60565807
could you post apache error logs please?
It's probably under /var/log/apache2/
>>
>>60566156
Does it even support Perl?
>>
>>60566138
>Do you use yarn/npm/other?
yarn
>Do you completely fix the version numbers, to major/minor/patch version or shrinkwrap?
fixed, I update them manually one by one from time to time because I try to limit number of dependencies I use
>Are you developing a library or an application?
two applications. a front-end for my web application and a game on electron

>>60566183
of course it does
>>
>>60565701
Are you sure SublimeCodeIntel does not support perl?
>>
>>60566239
It doesn't run properly on my end. I tried Codecomplice too. I'm using the latest dev build of Sublime Text 3 though, which may be an issue. But the last build of 2 is so old that I doubt its a good idea to use in a desktop environment that's 4 years newer
>>
>>60566229
yarn automatically locks dependencies recursively, doesn't it? At my work, we almost ran into trouble because a sub-dependency updated and caused a critical vulnerability. I managed to convince some teams to use shrinkwrap but since it's still kind of lossy I'm considering bringing in yarn
>>
>>60565266
but did you have a degree? It's a completely different ball game if you do. Also, what kind of company hired you? Small start-up, big corpo, ...?
>>
MySQL or postgres?
>>
What is the easiest language to make scripts for webscrapping and small edits on 4chan for example? JS or python?
>>
>>60567030
python for sure
>>
>>60567030
probably python but there are many scrapy-implementation on node.js basis aswell
>>
>>60567030
Python or TypeScript
>>
>>60566958
Postgres. Also Mariadb > Mysql.
>>
Quick question

what is your preference ide or whatever?

I'm not sure about atom seems slow and clunky

sublime text has that psuedo text editor in a newish feel that makes it a bit uncomfortable

I just with notepad++ was on linux would have used that.

guess sublime text gets the job done maybe I can fix it up to not look soooo how much it looks
>>
>>60568345
We use phpstorm at work. It does some strange things from time to time but it's a pretty good tool overall
>>
thoughts on coffeescript?
i love it btw, it's so minimal. very refreshing after systems programming
>>
Be honest with me /wdg/

I just started trying to learn web dev basics two days ago. HTML and CSS, truly beginner. I am trying to learn and practice as much as I can and plan on doing it everyday because I am currently a NEET on disability and have time. How long is it going to take before I can actually get a job?

Does anyone do it on their own without having a position as a company? How much experience do you have if so? What are the incomes like of people who freelance web dev vs those with jobs? Sorry for noob questions I just don't know if I should spend more time investing in this or 3d printing. The downside to 3d printing is of course the initial investments and material costs.
>>
>>60568345
depends what im doing but more often than not, vscode, if you liked atom but hated how slow it was vscode will probably suit you best
>>
Does it ever boggle your mind the number of shit your server is doing at once? Thousands of simultaneous connections, atomic read/writes to your database, throwing and catching exceptions, doing redirects, hundreds of writes to log files? Doesn't it ever seem like a giant wobbling tower of strings and marbles, ready to collapse at any moment?
>>
>>60569637
Lay off that kush senpai.
>>
>>60569447
>How long is it going to take before I can actually get a job?
Couple months.

>Does anyone do it on their own without having a position as a company?
That's freelance. I hate doing freelance, personally. Administration, client relations, legal, what a nightmare. Watch the talk Fuck You, Pay Me.

>How much experience do you have if so?
You need basically no real experience to get freelance gigs. You could even do rentacoder type shit.

>What are the incomes like of people who freelance web dev vs those with jobs?
Huge spectrum of possibilities for both. Can't really be directly compared. You make this choice based on what kind of environment you want to work in, NOT based on the money.

>investing in 3d printing
u wot m8? Web dev is one of the most in-demand gigs there is, and has been incredibly stable through multiple recessions, and has highly competitive salaries. It's also cushy as fuck. 3D printing is some toy bullshit with no significant revenue potential.
>>
>>60568691
ded, even github dropped it for typescript
>>
>>60569447
the only real skill you need is the mega autism required to bang your head against a problem until you figure it out
>>
>>60569722
been off for years now brother
>>
>>60567030
you can use my haskell 4chan scraper if you want
>>
>>60560148
In that case, just use:
<div style="text-align: center"></div>

Neither solution's ideal, but at least with this one, you'll be using CSS called through HTML instead of an ancient HTML4 property.
>>
File: menu.jpg (14KB, 183x248px) Image search: [Google]
menu.jpg
14KB, 183x248px
>>60558866
I need some help how i do menu like in the picture , i know html javascript php but CSS is hard
>>
>>60568345
I'd say VSCode is good, but a bit bloated. I'm using PyCharm right now, and I'd say anything from JetBrains is trustworthy.
>>
I'm making an async request to a web service using javascript. On page load the object that I manipulate has not yet been filled with data. How can I stall page load (any other way?) until I have gathered all the data I need? If i try and reload the page afterwords it works ok, but not at first.
>>
>>60568345
VSCode for TS, JS and Python
IntelliJ IDEA for Java and Kotlin
Vim for C and text editing

>>60570357
1. Let the page load in peace
2. Call the web service
3. Fill the object with data
4. Inject it into DOM
>>
Anyone know what is the best way to store a location in MongoDB and then display a small embedded Google Map window with the location, with Angular 1?
>>
>>60570439
store latitude and longitude in the database and then use this https://ngmap.github.io/
>>
>>60569637
Not only your server. The universe just works.

>>60570225
.ul-element { margin: 0; padding: 0; list-style-type: none; border-top: 1px solid skyblue; }
.ul-element li { border-left: 1px solid skyblue;
border-right: 1px solid skyblue;
border-bottom: 1px solid skyblue; }
.ul-element li.active { why-are-you-not-reading-the-css-docs-right-now }
>>
so how does usernames come into play for employment?

git has to be something sensible?
>>
>>60569862
apples to oranges
>>
File: 1477406635273.jpg (512KB, 1075x934px) Image search: [Google]
1477406635273.jpg
512KB, 1075x934px
>>60570558
Iam reading right now :(
>>
>>60570675
not really. they used coffeescript for atom and now they switched to typescript for the new desktop client
>>
I got a background program that needs to connect to a postgres database. To do that the program has to be run by the postgres user. Is it generally safe to have the postgres user running programs?
>>
File: tgsnt.jpg (257KB, 1905x968px) Image search: [Google]
tgsnt.jpg
257KB, 1905x968px
Have you guys ever made one of those modern pages with multiple fixed backgrounds? I assume everyone it's a template for some CMS since they look so similar. Looking to make a professional homepage to compliment my linkedin

http://www.bankofcanada.ca/banknotes/banknote150/ is a great example showcasing some commemorative canadian money
>>
Why isn't thenewboston on the list of youtube channels?
>>
>>60570558
my server works I'm just amazed that it does there's so much going on
>>
>>60572065
It's often called parallax scrolling. It's not really that hard to do; it's a built-in CSS property:
background-attachment: fixed


>I assume everyone it's a template for some CMS since they look so similar.
Yes actually, it's used in the current default theme for WordPress, and probably a bunch of themes and other CMSs.
>>
I keep having issues of shrinking my website. Any good guides out there for this issue? Basically, a proper way to structure the divs, width measurements, ect
>>
File: 1471041766137.png (226KB, 512x475px) Image search: [Google]
1471041766137.png
226KB, 512x475px
I'm thinking about getting into c# guys. Sadly I don't really know that much about.

Was talking to a recruiter and they were telling me about how much the area around here is booming with this as a desired language. I've looked around and pretty much every fucking job is asking for .net or c#

Is there any reason not to? I don't have any backend experience/exposure at all (At least I'm assuming they're wanting it for backend) other than a college course on MySQL.

Of course the end goal is a job so I'm considering buying a course to learn it just because I don't have time to decipher Indians on YouTube with shit audio.

Is it a hard language to grasp or a bad one to learn for a first language? Does it ignore whitespace? Is the free version of visual studio sufficient? What kind of stuff should I be aiming to make to get a job/does it take a long time to git gud with?

Thanks in advance.

Pic is so I can find my post later.
>>
Watching a CSS tutorial and he did the following selector:

html, body { ... }

The fuck? Wouldn't you just do html since that encompasses body?
>>
>>60573697
that depends. https://codepen.io/anon/pen/wdOdKB
try removing ", body" here. you can see that it changes the output
>>
>>60573537
C# is kind of similar syntax-wise to Java, if you've ever used that.

If you're looking for webdev jobs, then learn ASP or ASPX or ASP.NET or whatever it's called these days.

>>60573697
For most things that are going to be inherited, like fonts, you're going to want to just style body. But I guess there's not really any harm in adding those styles to html as well.

Styling the html element is generally for box model stuff, and possibly setting some defaults. For example, you might want to target both html and body for doing things like setting the margins and padding to 0, since browsers might have different defaults for those values. Another case where I've had to style html is to set its height to 100% (and body's height as well), in order to do some vertical alignment things.
>>
i HATE web devopment

i didnt become a programmer for this
>>
>>60573823
Y tho? I thought styling one thingy styles all its children. body is a child of html. So it should be redundant but as observed it's clearly not.
>>
File: 02fig01.jpg (51KB, 360x274px) Image search: [Google]
02fig01.jpg
51KB, 360x274px
How do I get my multidimensional array looking like the pic instead of what I have below? I feel like I need to bring the elements up one level, but don't know how

Array
(
[checklist_name] => 316 list
[checklist_description] => test list
[item] => Array
(
[0] => Array
(
[name] => itema
[description] => itema des
)

[1] => Array
(
[name] => itemb
[description] => itemb des
)

[2] => Array
(
[name] => itemc
[description] => item c des
)
)
)
>>
File: someimage.jpg (76KB, 750x1000px) Image search: [Google]
someimage.jpg
76KB, 750x1000px
>>60558866

>Try to do Code-A-Thon's because I'm broke and I'll never get hired anywhere cause' reasons.
>Fuck up horribly the first time because I went with Meteor because "we need a mobile app" and I thought "Well shit! Cordova can doo dat! Iz gotza try it out"
>Can't connect with SOAP request to their database because "lol CORS" and fuck up eight hours of time.
>Too late to try and bother so go home in defeat.

>Try second Code-A-Thon a few weeks later, get a team together. Enough to get shit done.
>We decide to pick up a straggler. Have the choice between reasonably competent C++/Java dev in his thirties, or insane Howard Zinn self-professed "Ivory Tower" type who's met Dijkstra and CAR Hoare.
>Have reservations about latter, others want him because he seems smart.
>We pick him.
>Fucking stupid mistake.
>He wants us to implement some crazy dynamic scheduling idea that will magically compel rich people to ride the bus. (Note: I ride the bus in my area and I don't see rich people riding the bus and I likely never will.)
>We agree since he dominates the discussion on everything and wants us to do everything his way.
> Note that we are trying to implement this in JS.
> JS...
> Spend time getting bitched at for setting up server and getting lambasted by this dude while he goes full Bill Maher on one of our other dudes about unrelated topics.
> He didn't bother to bring his laptop, or anything else, like a fucking phone. So he plays idea guy while we're stuck either watching him write algos on a entire whiteboard, or playing sysadmin.
>The guy who's supposed to watch him can sorta understand what's going on, but he can't code it. And he can't get real help because Noam Chomsky went on a tirade about something besides bringing something to be productive with.
>Hours pass.
>Idea guy leaves, doesn't come back.
>We're screwed because we went all in on this idea.
>I give them an "I told you so." moment.
>Still lose
>Still will never get hired.
>Still fucking broke.
>>
>>60574198
>I thought styling one thingy styles all its children.
Not necessarily. Certain properties are inherited by default, while others are not. Basically, either the default value for those properties are "inherit" or they are some other value.

Things like font and text color are inherited by default, while things like height, width, and margins are not.

You can still set the height of body to "inherit". It's just not set to that by default.
>>
I just got the idea of creating a small set of classes and functions in Typescript to generate all the CSS rules.

Tell me /wdg/ why has no one ever done this before?

(Like in seriously, using code instead of plain rules is quite more efficient).
>>
File: watch.webm (31KB, 292x150px) Image search: [Google]
watch.webm
31KB, 292x150px
i dont want it flickering
wat do
>>
>>60573537
C# is very good language although maybe a little harder than other common webdev languages. VS Community is enough. Make sure you learn Core or Asp.net MVC, anything else is shit.
>>
>>60575062
wdym by >flickering
>>
>>60574512
Why would you want that? Looks normal the way it is right now.
>>
>>60575062
I think that's because your font isn't monospaced and 1s are different width. You could wrap each character in a div with a width and center align the text or use a different/fix the font.
>>
>>60574972
First probably it is done. Second why the heck should anyone want another layer of abstraction on top of CSS?
>>
>>60560690
>goobbledygook
am I the only one just using notepad++ and php/mysql any more?
>>
File: mycomrade.png (88KB, 190x204px) Image search: [Google]
mycomrade.png
88KB, 190x204px
>>60562856
>>
github question: when I make commits on another guy's repo, but I don't make a pull request, it doesn't show up on my contribution chart, right?

Because I've been doing work directly on a friend's repo, but I commit and commit and it's like I don't get any credit for it, my green chart thingie doesn't change at all.
>>
>>60559696
I agree, Go, C# and Java are really slow and bloated.

JS and PHP use the least resources in all the tests I've seen. Good list!
>>
>>60577631
post the tests
>>
File: ss-2017-05-25-13-36-34.png (79KB, 620x758px) Image search: [Google]
ss-2017-05-25-13-36-34.png
79KB, 620x758px
Go, C# and Java are all significantly faster than JS and PHP.
>>
File: ss-2017-05-25-13-37-25.png (81KB, 614x762px) Image search: [Google]
ss-2017-05-25-13-37-25.png
81KB, 614x762px
>>60577631
>>60577676
>>
>>60573824
>>60573697
Cool thank you to both of you.

Now I just have to decide which tutorial to get...
>>
does anyone have any experience with plone? I'm trying to set up an intranet website using plone, but I the documentation is a little lacing. do I just use apache or nginx as the front end and instead of pointing it to a domain should I point apache to the intranet?

even a domain would be fine, I'm just not connecting the dots as far as how to get plone to actually deploy so other computers can see the site
>>
What's the difference between

function foo() {};


and

var foo = function() {};
>>
>>60578263
the first one is hoisted, the second is run when the JS engine gets to that line.
the second also lets you scope functions correctly, where as the first always defines the function even if your block never executes.
>>
Whats a good lightweight framework for something that will be mostly a static business website? I used Drupal years ago for the task but would like to avoid PHP.
>>
How can I fake a portfolio of two or three websites?

I can make them within a day but I cant find any "clients" to put them on
>>
>>60577676
>>60577689
Ruby is even faster than that.
>>
>>60573826
Feel ya man
>>
File: ss-2017-05-25-16-02-19.png (79KB, 633x767px) Image search: [Google]
ss-2017-05-25-16-02-19.png
79KB, 633x767px
>>60579037
it sure is
>>
>>60579008
you don't need any clients, just host them yourself and say so, nothing wrong with that. Otherwise, just go on upwork and offer your work for little money, if all you want is somebody to take your sites.
>>
>>60569790
>How long is it going to take before I can actually get a job?
>Couple months.

God I hope so, I've been studying webdev (HTML/CSS/JS) for the past two years while taking CS classes (basic C/C++ and Java stuff) and I already felt like I knew nothing once I started getting into stuff like react, mysql, and node. I just really want a dev job guys. I'm tired of being a retail cuck.
>>
What's the best way to learn web development ?

And how much time does it take to be employable ?
>>
>>60579718
Can anyone just help me? My parents are kicking me out next week and I need to find a job until then! I'm downloading Dreamweaver right now, it's what you use right?
>>
>>60579718
>>60579847
pick up basic programming first to get some of the principles down, doesn't matter which languages. once you're good at programming the language becomes irrelevant.
then look into server side languages/frameworks and some html/javascript.
see html and javascript as a UI framework for your code behind.

start by reading the OP.
>>
>>60579578

I never went to school for anything tech related and landed an android developer job starting at 70k a year cause I'm self taught. How does it feel?
>>
File: yeah_sure_jon_hamm.gif (483KB, 500x221px) Image search: [Google]
yeah_sure_jon_hamm.gif
483KB, 500x221px
>>60579957
Whatever you say Rajeesh, whatever you say :^)
>>
>>60579847
>My parents are kicking me out next week and I need to find a job until then!

weak attempt at trolling? Cause if that's really your situation, forget about Dreamweaver and start looking for a nice bridge to sleep under.
>>
Guys, https://www.udemy.com is having an amazing discount for their courses. I dont know if anyone has experience with it but I would like to take a course of Web Development, but I dont know wich too choose, any help?
>>
trying to wrap my head around registration and authentication, can someone give me a sanity check on this?
registration-
client posts desired credentials to server
server does verifications to make sure both are in correct format
server does verification to see if db currently contains same username
if unique - username is written to db, password is hashed and written to db
server responds ok
authentication-
client posts login credentials to server
server does verifications to make sure both are in correct format
server checks to see if login username exists in db
if it does, hash the sent login password and see if hash matches stored hashed password
if match, send ok with jwt
jwt is stored locally on client, how is it used going forward? Do all new requests from the logged in client include the token so the server can id it?
>>
>>60575845
Setting logic on top of css would alllow you to create something more efficient, for example instead of the retarded relative position system you could use cartesian coordinates and have everything making more sense, plus the code would be more easy to read, and at times even faster to write.
>>
>>60579718
There's really a lot to go through.

You're at a disadvantage if you've never programmed before. That would definitely help in learning JavaScript.

But before that, you should probably just start with simple HTML and CSS. Maybe do a free online course to learn the basics, then make a few things of your own to get familiar with a real world environment. (Personally, I prefer using a basic IDE or text editor as opposed to a wysiwyg editor like Dreamweaver, but I guess that's up to you.)

Then learn some basic JavaScript. If you don't know how to program already, probably do an online course, and make sure you learn how to add basic functionality to your site.

I'd say learn those 3, and maybe some basic design principles, and you can get a freelance job making static sites. I don't think you should even delve into backend, because that's a whole other skillset.
>>
>>60580892
>jwt
no idea what that is, but yeah, you pretty much got it down.
Authentication also has to do with giving the right people access to the right places. Meaning, maybe you have three classes: registered user, Moderator and Admin. All 3 register, but only mods can edit posts, and only Admins can delete posts (whatever, can't think of a better example), so you have to make sure that each user is given the correct permissions.

Some parts of your site might only be accessible to certain users, etc. So you need to define all this in the user definition, and implement it somewhere, usually on the view.

>Do all new requests from the logged in client include the token so the server can id it?
Pretty much, yes, so that every action is authenticated, because of what I said before.

>>60580759
lol Udemy ALWAYS has an amazing discount on their courses, don't fall for that gimmick. If you wanna buy something fine, but don't let them rush you into it because those deals are on pretty much every other day. Google "how to get Udemy discount" or smth like that and they'll teach you the trick.
>>
>>60580142
do you really think something like that is hard to believe?
>>
Gonna ask this straight.

My job is shit, I'm quitting, I have enough money to stay at home learning something on my own for a while.

Web dev or coding for landing a job and making money?
>>
>>60580907
Existing preprocessors already support basic logic. Little reason to force frontend devs to learn another language to do same thing. Also cartesian coordinates are supported as absolute positioning, it's just that basing layout on it is retarded.
>>
>>60566890
30 year old company. I have no degree.
>>
What's the fastest way to learn enough to get hired for a remote job? I can start at $300/month.

I've already finished CS50.
>>
>>60581150
you won't get a job in real software development, you would in web dev though. do web dev for 2 years, pivot again to software engineering
>>
Making a pet game in phaser.
>>
>>60580892
J W this used to achieve stateless authentication meaning you would put user permissions into token and when user tries to access restricted resource you can check his access using data in token.
>>
>>60581150
>web dev or coding
Web dev is coding per se. Start with html/css and after a few days pick a programming language and stick with it until you're comfy enough to grasp and use/manipulate collections, strings, integers, loops etc etc.

I hear Python's pretty beginner friendly so you can start with that.

Even though it's the language of the web I'd advise against starting with Java Script because imo it can be pretty confusing for newcomers.

After making something non-trivial with your language get into learning JS (for front end and back end if you want to learn NodeJS) and a back end language of your choice(you can stick with Python or learn C#, Go, Php, Swift, ...). It will be a lot easier to get into this stuff once you've actually learned to program. Good luck.
>>
>>60581346
By "pet game", do you mean like a pet project, or like a game that's about pets, like dogs and cats?
>>
>>60581576
Yes, a dog. I have a good idea for the AI.

I'm getting quotes from artists right now.
>>
>>60581309
>$300/month
lol
>>
>>60582359
Seriously, I'm poor as fuck, in a country where that's more than enough for food.
>>
>>60582527
Make your own stuff.

My websites bring me between 1 and 2 grand a month passively.

Thats not enough to support me but if I lived where you lived I would be fine I'm sure.

I never understand why people with such low expenses don't make businesses targetting rich countries.
>>
ok so quick question
there's some website that has incredibly basic formatting, it's literally just <p>s and <h1>s
it was just talking about how most websites are way too overdesigned
anyone know what it's called?
>>
>>60583254
http://bettermotherfuckingwebsite.com/
>>
>>60583377
that's the one
cheers mate
>>
>>60580759
Do the Web Development Boot Camp by Colt Steele, at the same time you're doing that you should also be doing Free Code Camp. If you get stuck on Free Code Camp just keep doing the Udemy course.

When you complete both of those courses you should be eligible for an entry level role provided you have built up a decent portfolio site and completed some projects.
>>
>>60583377
That's actually a response to a different site,
http://motherfuckingwebsite.com/
>>
>>60559679

Django (Python) is pretty popular. I wouldn't trust any node.js CMS right now since none have been around for long enough to really mature. KeystoneJS is worth a go if you don't mind the risk though.
>>
>>60583480
>Django for a portfolio
totally overkill, Flask + Vue2 on Gunicorn will do the trick
>>
Would it be possible to become a full time stay at home NEET who makes a living by freelancing?
>>
>>60582699
Do you run ads on your sites or something?
>>
>>60582699
Yeah, I've always thought about making something like that. Never could figure out what exactly should I do though.
>>
>>60583559
You can't be a NEET and work, maybe you can get some government money for the mental disabilities you obviously have.
>>
>>60583528
>totally overkill
allow me to disagree. Yes, it's overkill for the task, but the goal of a portfolio is not to do the work with the least amount of effort possible, but to show your future employer that you know how to use the tools. I don't think there's many flask jobs out there, but there's plenty of Django ones. Hence you wanna show that you know how to use django. Just my $0.02 though.
>>
>>60583901
your 0 cents, its for a client
>>
>>60582359
Where does "entry level" start for someone working 25-20 hours a week?
>>
Probably not the right thread for it but hey. So one of my commits, containing 12 hours of work, has been overwritten because of a serial --force user. The only reason it was 12 hours is probably because he kept forcing his shit up to the repo, and I had to fix conflicts manually because I'm new to and shit at github.
Anyone know if there's a way to get this garbage back, or am I going to fucking murder someone today?
>>
>>60584214
did you delete your local branch already?
why do you even have force push allowed on the server.
you could check your local reflog if it's still there.
>>
>>60584388
>did you delete your local branch already?
Yeah, not by choice though. I'm using github desktop.
>why do you even have force push allowed on the server.
I don't have control of the repo and I don't know if that's even a thing on github. I'm very new to git in general.
>you could check your local reflog if it's still there.
I don't know what or where that is, sorry. Still, that sounds like a lead. Thanks.
>>
>>60584428
>github desktop.
worst choice.
it auto stages changes and generally abstracts git from you too much.
look at sourcetree or use an IDE that support git.

>I don't know what or where that is
go to your local git repository using the command shell of your choice and enter "git reflog"
it should list you your local commits
if you find the one you're missing copy its hash and run
git reset --hard <hash>

make sure you don't have any open changes, they might get deleted when you reset.
>>
>>60584515
Thanks man, you're a goddamn hero.
I've gotta learn how to properly use a shell after this.
>>
>>60583559
Real freelancing demands social skills and connecting and is actually harder than normal job.
>>
>>60583728

nichepursuits.com is a good resource for this. It'll take time to build up so it's key to do something you'd possibly do regardless of the money
>>
Ok, so I just got a B.S in CS with a minor in Mathematics. I have been teaching myself web dev for the past 3 years and have been working as a part-time/ full-time full stack web dev for ~2 years. How do I land my first >=70k per year job? No one seems to respond to my applications.
>>
Doing intro to web prog and supposed to make a project using html css js and php
I never did something like this before and havent even started php so idk what it does beside being server side therefore idk what to choose but if i dont the professor will choose it for me and i dont want that either
Give me some simple ideas for a website project that i can do in a couple days
>>
>>60584868
What about those freelance websites?
>>
>>60585502
a simple task manager tracker
>>
>>60585553
you're competing against literally Pajeet for $4/hour. If that's good enough for you, or if you've really got the skills to set your wages higher, go for it.
>>
>>60585502
a simple pastebin clone
>>
>>60585553
If you want to build new Facebook for $100. You will be competiting against pajeets to be slave of idiots who are hoping to get their next stupid get rich idea done without any real budget or understanding of web. You will expected to work on wordpress sites what were developed by non programmer owner by trial and error.
>>
What's your opinion on Firefox developer edition?
Is it gud or just a meme?
>>
>>60587032
You NEED a developer edition to develop, the inspector is blocked and you can't open non-signed pages otherwise.

It's a shame it costs $100/year though.
>>
Guys, a small question about MongoDB.
I write my data in test collection "test" and now i trying to see it in mongo console so:
bd.test.find();

but it don't do anything. What's wrong?
>>
>>60587172

Either the test collection has no elements (you didn't insert correctly) or db is not the database that has the test collection. Make sure to "use db" before querying.
>>
>>60587218
Well, this is my example:
var MongoClient = require('mongodb').MongoClient,
assert = require('assert'),
url = 'mongodb://localhost:27017/test';

MongoClient.connect(url, (err, db) => {
if (err) throw err;
var collection = db.collection('test');

var data = {test: 'something'};

collection.insert(data, (err, result) => {
if (err) throw err;

collection.find().toArray((err, results) => {
console.log(results);
db.close();
});
});

});

I see my data from console.log(), but in don't in mongo console.
>>
>>60558866
I've wanted to try out webdeveloping for a while now. Thanks for the links.
>>
So how the fuck are you supposed to do this

https://codepen.io/ThiagoFerreir4/full/eNMxEp

from just the teacihng of freecodeacademy up till this point?

its a radical jump in what was done

if thats how its like I don't understand how this website can take credit for the work done by the people learning which is 95% not on the site at all
>>
>>60587767
What are you asking?
>>
>>60587767
this is them teaching you how to google shit
>>
phaser is pretty cool, dudes
>>
>>60587786
nevermind me

>>60587816
I'm a little afraid im doing something wrong since it is so easy to slap everything together by just googling what you need

I suppose this is good enough since the job whatever it may be will get done if there is google
>>
>>60587831
It is
I wonder what phaserdevs think about webassembly
>>
>KAT made over $12 million per year in advertising revenue

well

why aren't you making the money
>>
>>60587767
Is it portfolio challenge from the fcc?
>>
>>60588006
last of the Basic front end development projects


https://www.freecodecamp.com/challenges/build-a-personal-portfolio-webpage
>>
>>60587984
If they were using adsense that's approximately 12 billion views per year.
>>
>>60587984
Because I am not into "going to jail" thing

It's funny, my steambuddy from Russia told me that they have literal pirated movies streaming website, not even tracker, in top 15 visited sites according to Alexa
>>
>>60588031
Maybe you should skip it for now? Complete other challenges, return to it later with new knowledge
and projects
>>
>>60588052
It's not illegal to stream pirated movies.
>>
>>60588182
it's illegal to host pirated movies
>>
I'm practicing my web dev by working on a small project. I want to give h1 its own background (a generic blue gradient wallpaper). I have everything set up but it won't work. Can anyone help?

https://jsfiddle.net/ny989b5v/
>>
>>60588686
>https://jsfiddle.net/ny989b5v/
- backgound -> background
- forgot "" in url

Most importantly, it's either
background-image: url("..");
and specify url only, or
background: url("https://www.walldevil.com/wallpapers/a42/gradient.jpg") no-repeat center center;


lookup background, background-image, background-repeat, etc properties
>>
Does anyone have any experience moving a complex application from Backbone/Marionette to React? I'm trying to figure out an easy way to do it without rewriting all our applications.
>>
>>60588929
Thanks, I fixed it those and just did Background, it worked. JSFiddle has slightly different formatting so I've been accounting for that
>>
>>60588967
don't fall for the hype, react is trash
mario is still king
>>
>>60589217
What's Mario?
>>
>>60589266
marionette
>>
>>60587984
>>60588052
>>60588182
>>60588410
Technically, I think there's some law in Europe that made it illegal to link to pirated content as well.

All the pirate streaming sites I've looked at seem to use either google video for hosting (they really don't seem to vet customers) or an array of other hosts, all of whom seem to be suspiciously similar. Their FAQs, and many other parts of their sites, are literally word for word identical. I'm not sure if they're just all fronts for one business, or if they're just all using some common backend, but it's weird.

I wrote a scraper with a nice UI, just for myself and some of my friends to use, so that I don't have to deal with the shitty javascript players that these pages use and their universally awful UX.
>>
My goal with learning web development is to be able to get into a career that will be safe from automation for the foreseeable future, be involved in an industry that is growing, to be able to work anywhere on earth and to have the potential to work from home.

Does anyone on here work remotely? How feasible is it?

Ideally I'd like to be able to go travelling and to work remotely or perhaps freelance.
>>
Can you do progressive enhancement with react? IE I have a rails site that displays a table using erb, can I write a react component to override that table? I'm not talking rendering the JSX on the server, but augmenting an already server rendered site?
>>
>>60583398
>Do the Web Development Boot Camp by Colt Steele

I'm not that anon but this is looking very enticing lately. I've been planning on going to a bootcamp because I kind of feel like I need that classroom structure but for $10, it's kind of hard to beat. I could pocket the bootcamp money and put it towards investing so I can live comfy while devoting all my time to the Udemy course. I'm also in desperate need of an adderall prescription to help me through it but that's a different story.
>>
>>60590537
>Does anyone on here work remotely? How feasible is it?

Lurking here. not a web dev but a freelance graphic designer.
If you're going to freelance I HIGHLY recommend you stay away from the shitty freelance sites (freelance.com, upwork, etc.). They have annoying fees and annoying payout schedules and that's IF you get work because you're constantly being outbid by someone in a second rate country willing to work for much less than you.

Your best bet is to clearly define what your skills are, place a set value to them by looking at what competitors charge, and find a way to engage with customers before they wind up on one of those freelance sites. If you can accomplish that, after a while the majority of your work will be coming to you whether it be recommendations or repeat customers.
>>
Why do clients insist on using the shittiest technologies? The technologies I recommend also have easy interfaces so it's not that
>>
>>60591047
What do they insist on, and what do you recommend?
>>
>>60579008
I'll give you $100 to help me implement my site and I'll provide a reference

[email protected]
>>
>>60590833
going to answer my own question here, yes. you'll probably violate dry principles but the component will replace whatever content is in the element before, and not append it or do anything crazy. so you can in theory render on the server in whatever language you want and then write your react on top of it.
>>
>>60577052
fork it first then commit on your own master branch so it would show in your contribution. then send pull request. It would already show in your contribution whether your pull request got merged or not
>>
>>60578263
for best practice and to separate yourself from pajeets, always do:
var foo = function foo() {};
export {foo}
>>
>>60587317
>I see my data from console.log(), but in don't in mongo console

type 'use test' into the mongo console to switch to the 'test' db, then type 'db.test.find().count()' which should return the number of docs in the 'test' collection. (Easier than spamming up your console if you have a lot of docs)
>>
>>60590537
> a career that will be safe from automation for the foreseeable future
Depending on your timeframe, you'll have a hard time finding something that matches that requirement.

The rest of that stuff is completely feasible though, although I highly recommend you put in a few years working for a software company before going freelance and also taking some business/sales classes or something because freelance is like 30% writing code, 70% dealing with clients.

And as others have said, most freelance sites are cancer.
>>
>>60592667
>type 'use test' into the mongo console to switch to the 'test' db
I already found what was wrong. I need to use "mongo test" for entering in mongo console (or your variant) instead "mongo" that i used before. With "mongo test" and next "bd.test.find();" all works fine.
But thanks for you help, anyway.
>>
>>60564252
If the first value is truthy, the second is returned. Otherwise the first one is.

Truthy is anything which isn't: false, null, NaN, undefined or 0.
>>
>>60587767
Lol that website is pure shit, I would never hire anyone that can put that much bloat on a page.

Also pretty easy to do, just link bootstrat and markup a few images
>>
>so make this site look good on browsers and mobile
which fucking browser, which fucking mobile, It's not 2005 anymore

fuck people i work with
>>
>>60593710
all of them, you idiot
>>
>>60593754
Yeah I know, also shouldn't spend more than half hour in total. Silly me.
>>
>>60593710
Desktop: Edge, IE11, Latest Firefox, Chrome and Safari
Mobile: Safari and Chrome

There you covered every normal person.
>>
>>60593781
This is basically what i do. Plus few different iphones. I just wanted more clear requirements. So I won't waste time on shit they don't need.

They always say they want everything, but i feel they don't really give a fuck and want it only working on mac chrome.
>>
>>60593754
This. Properly made site will work in all modern browsers, it's not 2005 anymore.
>>
File: dt150222.jpg (163KB, 900x439px) Image search: [Google]
dt150222.jpg
163KB, 900x439px
>>60593766
>>
>>60593870
>2005

Oh god. Supporting fucking netscape navigator because people wouldnt move on was worse than people these days not moving on from IE. Nothing worked on fucking netscape.
>>
>>60593870
ALL the browsers? You know there are differences between systems? You would have to check all the browsers on all the systems then if you want to be 100% sure. Then you have different resolutions and mobile have all those browsers too and different system versions.

I bet you think all the browsers are just new chrome and firefox.
>>
>tfw there is and odd animation "shake" effect when animating width
>it reproduces only on Win 10 machines on Chrome
shit
how the hell do I debug this
>>
>>60594477
>https://www.w3counter.com/globalstats.php

with 4 browsers you cover +90% of the market share. That's enough for me, fuck the special snowflakes using other shit.
>>
I'm implementing a REST webapi and am confused on the structure and retrieving items by id.

Let's say it looks like this:
Town -> House -> Persons

To get All towns I would do something like:
localhost/api/v0/towns


To get a specific town:
localhost/api/v0/towns/{townId}


Now to get all houses:
localhost/api/v0/towns/{townId}/houses


Now, I don't understand how to implement getting a house by given id:
localhost/api/v0/towns/{townId}/houses/{houseId}


The given townId now doesn't make any sense. Is it ok to just pass an arbitary "0" to it?
localhost/api/v0/towns/0/houses/1


Or shall I make a route like without townid?
localhost/api/v0/towns/houses/1
>>
>"anon, please make this"
>"ok give me a day"
>...
>"here you go. provide feedback, tell me where you want to deploy and pay me so we could finish in time"
>no answer
>"hey, I hope you realize that we are heading for an unnecessary crunch, tell me what to do"
>no answer
>alright, back to my own shit
>a month later
>"ANON PLS I NEED THIS + GAZILLION OTHER FEATURES ASAP"
Fucking business people, man. At least he ended up bending over and paying me 3x for this shit
>>
>>60594704
List all houses in town 1
/api/v0/houses/?town=1


Details for house 50
/api/v0/houses/50
>>
>>60594704
https://stackoverflow.com/questions/20951419/what-are-best-practices-for-rest-nested-resources
Don't listen to this >>60594950 guy
town is a resource in itself so having it as a get parameter (?town=1) is against everything rest stand for in the first place.
As said in SO link you should probably do:
POST api/towns/{id}/houses
to create a house
GET api/houses/{id}
to get a house
GET api/towns/{id}/houses
to get all houses in a town
>>
File: 1493407252042.jpg (1MB, 3888x2592px) Image search: [Google]
1493407252042.jpg
1MB, 3888x2592px
why is web dev so easy?

>make database
>put data in it if it's already available
>use back end language to store, update, add, remove data from database
>use front end language to display the data and make things look cute

that's it, unless youre just a front end babby
>>
>>60594950
>>60595034
Yeah, thought about that too first, but then what would be the point of a structured api if you are just clutting everything into the get parameters.
SOs solution seems fine.

Thanks
>>
>>60595034
Just because town is a resource doesn't mean you can't filter on it.
>>
>>60595073
>make things look cute
the hardest part for me
>>
>>60562888
>>60564533
a bretty neat concept desu
>>
>>60595168

yeah same here most of the time, css can be annoying, especially without using a pre-processor
>>
>>60595112
It technically doesn't but it's not really The REST Wayâ„¢.
GET params are for attributes of resources like:
GET api/towns/1/houses?color=green&size=big

And you may say that you don't care about The REST Wayâ„¢, but the whole point of rest is to use these common practices, like for example using POST to create resources, and GET to retrieve them. Nothing says you can't use GET for everything, but that's not The REST Wayâ„¢.
>>
>>60595331
I could say location is an attribute to the house, but I'm not against having

/api/towns/1/houses/

/api/houses/5/
>>
>>60594946
http://themagicemail.com/

Haven't tried this myself, but I've heard good things, so might be worth trying in the future
>>
>>60595073
>why is web dev so easy?
you aren't working with others
>>
Does anyone else use Chrome Canary?

I've been having an issue on 4chan that I can't seem to replicate in my own tests.

When I have a reply that expands the comment textarea (i.e. gives it a scroll bar) and then I delete some stuff such that the text now fits within the textarea, the box becomes invisible, and then the post box looks like pic related. Typing in the box again causes it to reappear once the text has exceeded the area of the box.

The effect is the same as if I set the textarea's visibility to hidden, but inspecting the computed styles while I trigger and untrigger the visibility does not show any changes. Similarly, the HTML is identical before and after.

This only occurs in the last few versions of Chrome Canary, so it must be a bug there, but does anyone have any ideas on what property or code or whatever might be causing this?
>>
>>60596390
>using a highly unstable testing version of software
>not knowing how to deal with bugs
Why would you even?
>>
>>60595686
This.

Tell me how easy it is when your pull request gets kicked back because they want you to replace your 5ms query with a 13 second view.
>>
>>60592116
how does that work
>>
File: y4EZvq1qfkzxv.png (106KB, 278x229px) Image search: [Google]
y4EZvq1qfkzxv.png
106KB, 278x229px
>>60592116
>>
>>60596689
I'm trying to identify the bug so I can submit a bug report.

I started using canary mainly to test some new webgl stuff.
>>
>test
>>
another test
>>
Guys, retard here.

How to use sass in nodejs express projects? Should i use only node-sass-middleware or something else with it?
I installed the middleware, got an express example here:
https://github.com/sass/node-sass-middleware
and did everything like there, but it still does not works. Maybe need "node-sass" package for it?

Also, i seen a basic express template and there is no "node-sass", only "node-sass-middleware". Connecting code is similar (i tried use it too) and the template-project works fine.

https://pastebin.com/qkuTVvdQ
>>
File: trying css1.jpg (23KB, 578x185px) Image search: [Google]
trying css1.jpg
23KB, 578x185px
I'm trying out some things with CSS today, but for some reason I have  appearing in front of my copyright symbol. It should just read as ©2013 My Shite

<footer>©2013 My Shite</footer>

What am I doing wrong?
>>
>>60597466
&copy;

Make sure you have a charset defined also.
>>
>>60597466
Try unicode codes of your  and © maybe.
>>
>>60597466
<meta charset="utf-8">
>>
I installed KeystoneJS on my VPS and ran it, but it set itself running on https://0.0.0.0:3000 for some reason. When I tried going to thedomain:3000 it just timed out. How have I fucked this?
>>
>>60597571
Is port 3000 open?
>>
File: trying css2.jpg (25KB, 585x187px) Image search: [Google]
trying css2.jpg
25KB, 585x187px
>>60597520
>>60597530
>>60597550
Thanks bros! I was using Alt+0169 at first. Does that cause issues? and I added the charset, thanks for that too.
>>
>>60597642
>Alt+0169
If you talking about unicode codes, then your symbols should be
&#194;
and
&#169;
for html.
>>
>>60597730
I didn't know that, thanks. Still learning stuff.
>>
File: big_png_for_you.png (3MB, 1440x1080px) Image search: [Google]
big_png_for_you.png
3MB, 1440x1080px
who though that server side rendering for normal operations would be a good idea?

the only reason I can think of would be for search engines, before they were able to handle JS.

I might be an idiot though
>>
>>60598438
server side rendering is more performant
page renders faster
>>
>>60598617
I get why pre-rendering for your most popular pages is nice to have, but I can only imagine, that SSR for every single request gets to be very taxing on the server for a larger site.
Not like you can cache every single unique request, like asking for some random users profile, right?
>>
>>60598746
You can cache any page if it doesn't not contain session info unique to a certain user, i.e. "Welcome Username! You have 5 new messages", you could totally cache a user profile though if it was for not logged in users. You also have stuff like partial caching which just caches sections, so you could cache a users profile but not the part that shows info to logged in users
>>
>>60598746
not at all.

client-side rendering:
>server loads bootstrap from cache
>client receives bootstrap
>client parses bootstrap
>client makes request for payload
>server processes request
>client processes result

server side processing
>server loads bootstrap from cache
>server requests "itself" for data
>server fills in blanks of bootstrap with request <--- only additional load on server and is extremely cheap
>server returns full page

In the client-rendered model, the server has to process two separate requests in two separate threads, which is more taxing
>>
>>60598746
Server load will depend on language/framework/templating library. You can render HTML on the server with very little resources since it's basically just string concatenation. Obviously though a server spitting out just JSON instead of HTML should be faster. But a lot of JSON implementations are slow so a good HTML templating system could still be faster and use less resources. Just depends on all the details..
>>
How would I go about writing a JS script using PhantomJS to loop idly waiting for an input before executing an action? I don't know the first thing about JS because looking at it gives me a headache.

Also I assume there's no way to do threading in JS?
>>
>>60599030
Did you even try google before asking?
>>
>>60599065
I'm very hungover and don't want to read 16 stackoverflow posts not-quite-answered by rajeesh to get an answer to a fairly trivial question
>>
>>60598438
there was no other way before xmlhttprequest became a standard in 2005
>>
>build clean functionality for front end
>hand over to design team
>they take 20 lines of code and add a thousand div tags to it

Why must my children be raped
>>
File: man-memory-loss-720x480.jpg (85KB, 720x480px) Image search: [Google]
man-memory-loss-720x480.jpg
85KB, 720x480px
>>60558866
Its possible to edit HTML and css of wordpress template , i know HTML and css , but iam not find the html and css files in wordpress to edit, iam using the Twenty seventeen.
Any help?
>>
What's the best domain registrar these days?
>>
>>60599229
RTFM
>>
Any suggestions on how I could improve this? Will post the entire page in a few hours, just need suggestions on this part for now.
>>
File: Capture.png (497KB, 1643x871px) Image search: [Google]
Capture.png
497KB, 1643x871px
>>60599359
Forgot image
>>
>>60599375
>Qualit assurance
Not doing a good job there, bucko
>>
>>60599375
Looks good.
Fredward DeRozario has a spelling error
>Qualit Assurance
quality

and I think Rose Dawson aswell
>Cheif Technical Officer
should be chief, right?
>>
>>60599375
Nice one, looks clean, how does in render on mobile?

why do my things always turn up looking like shit
Any good books about things looking nice?
>>
>>60599375
>>60599455
oh and also, I think it would fit if all of the images had a similar filter look.

https://una.im/CSSgram/
>>
>>60599030
i'm not really sure since I don't do JS, but the 'loop idly waiting' I think has to do with sockets.io, so check these links to see if that's what you need.

>https://socket.io/get-started/chat/
>https://www.tutorialspoint.com/socket.io/index.htm

Basically I think sockets is just a js library that just waits there for your input, and once it gets any input it runs with it.

I could be way off though, but nobody else is helping you out so there you go
>>
>>60599430
>>60599455
Thanks, I guess I need to turn on spell checker in sublime.

>>60599493
Thanks for this, I'll use it to get all of the images to look the same before I finalize it.

>>60599483
Thank you. I didn't read any books, I just browse as many sites as I can while looking for inspiration then trying to do it on my own, that's how I learned.
This will help https://frontendmasters.com/books/front-end-handbook/2017/
Also, check out the link in OP for front-end development.
>>
>>60599229
To build a theme, use:
https://codex.wordpress.org/Theme_Development

You'll need to know PHP as well if you want to edit the templates.

Just editing the CSS can be done by editing wp-content/themes/twentyseventeen/style.css

The HTML is all inside PHP files, which are around the same location as the main stylesheet

Alternatively, I think the proper way to do this is to use twentyseventeen as a parent theme and build off of it that way.
>>
>>60579113
>pidigits
>secs: 3.14
>>
File: PiFaceDigital2.png (1MB, 963x723px) Image search: [Google]
PiFaceDigital2.png
1MB, 963x723px
>>60599791
>mon visage quand
>>
So when styling shit, is it ALWAYS better to go with % instead of em or px? Because of ipad niggers and whatnot?
>>
>>60600227
you want em or rem
>>
>>60600250
y
>>
>>60600254
I assume you mean "why", 2 more letters and you'd have gotten it, anon.

Because when someone has a different default font size (which is usually 16px) your layout doesn't fuck up.
Especially in times of 4k monitors you see higher default font sizes.
>>
>>60600315
Shouldn't % have the same scaling effect? Why em over %?
>>
>>60600315
Can't you bypass that by setting the font size at the beginning of your css then? Something like

body{ font-size: 16px; }


I assume that'll get everything on one size regardless of your defaults.
>>
>>60600315
As it turns out making websites to look good on 1440p+ monitors is not that easy, yeah
>>
>>60600370
% doesn't scale with the font size.

>>60600376
sure you can. but you'll earn the grudge of users that have it changed.
>>
>>60600227
em or rem for fonts, so that they get set relative to the default.

% generally for block element widths, although pixels are alright in some cases, and can be adjusted in various media queries.
>>
Any way "modularize" my nav bar? Gettin sick of copy and pasting this at the top of every new html file I make
>>
>>60600651
that depends. if your end product is supposed to be just static html pages then you could use something like jekyll
>>
>>60599766
parent theme?
i know basic php
>>
>>60599270
Really?
https://www.youtube.com/watch?v=ZXMpiO52AVA
>>
>>60601092
>basic php

And that's all you need. What's really fucky is actually learning the Wordpress native functions, knowing PHP gives you a better base for understanding what they actually do.
Good luck with that, because WP is a clusterfuck of functions.
>>
>>60601107
Think about the video title for a couple of seconds
>>
File: learningJS.jpg (259KB, 1795x1003px) Image search: [Google]
learningJS.jpg
259KB, 1795x1003px
once I get my JS skills down do you guys recommend me move onto learning Node and mongoDB for my backend languages since they're JS too? Or learn PHP/MYsql?

I just want a job in the web dev field.. I make $9 a hour watching fucking dogs (really comfy job but I'm 26)

I'm guessing learning PHP would automatically aide me doing Wordpress shit which is an easy way to get into the field (imo)
>>
how are things looking for PHP 8.x w/ JIT? can we expect a dramatic performance boost like the 7.0 update?
>>
>>60600651
Last time, I set up a gulp task to concatenate my small html files, header + navbar + container + footer.
>>
>>60600651
I just do everything in PHP. I make a header file then include it on the pages where needed.
When I'm done I change the extensions back to HTML and paste the finished header/footer in them. Inefficient, I know.
Thread posts: 317
Thread images: 33


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.