I built a golang webapp and ended up caching tons of DB data internally. Am I supposed to be doing this or is this what memcached is for?
How do I make my webapp "scale"?
Nolan Brooks
What frameworks/languages are available for back end workers, like sending emails or thumbnailing photos? Things that I don't want to be part of the request handler.
Also, how do I transfer data to it? Database table? Redis? Some kind of message passing solution?
Help a lost user out
Michael Peterson
I'm gonna try and fit an image into the header image of a wordpress that is using the theme Jarvis. How fucked am I?
I mean the last two you should do, just not the first one.
Eli Morales
Depends if the data is cached on the client or server. Any data that takes long to query from a DB should be in memcached or a redis store. Other DB data that is often constant and used by all clients should on the client without having the client request for the data.
Tyler Stewart
How about an example where it isn't retardedly used? I feel like arrow functions are a meme.
Landon Smith
>been doing freelance stuff since January of last year >fell into deep depression the last six months, haven't done any work >been working more hours at shitty wage slave job to pay rent >go to do some side projects and can barely remember anything What's the point anyway?
Is full stack javascript a meme? A sort of big company had a small 14 week course in my uni. Short story long, the course was epic. I was getting into web development lately, did some mocking around PHP, and mostly Java backend.
The 3 lecturer (2 backend, 1 frontend) did some amazing work in node and react. From as little as using let, and const instead of var to the structural build up of the code. (Thank god I took notes, and screens.)
I really would like to work there, but I feel all the content I can find is rubbish compared to their levels. Downloaded ions of udemy and lynda tut videos, but those are rubbish. Read latest book about nodejs I could find, but i felt it was just scratching the surface. (Web Development with Node and Express (just realised this shit is 4 years old))
Any suggestions? I got the basics, but would like to watch, read something fresh
Ryder Murphy
maybe one of you knows - is there a way to select multiple tabs in chrome without entering them? Whenever I select them with ctrl+click I go to that tab and I don't want that
Oliver Scott
No it is not wtf
80% of the current jobs are with React/Angular/Vue.js/etc. all JavaScript-based.
Don't listen to the Jow Forums "devs" they know jackshit.
I just got a new contract today, once again Angular.JS with a Node.js REST API to build.
This is where the money is, stop fucking around Java as a backend!
PHP is pretty good too nowadays with Laravel/Symfony/Composer but JS is where it's at for both backend AND frontend right now.
Gavin Price
How would I do this? I wrote a single page app using basic JS,HTML and CSS that calculates some values according to what the user inputs. I want to move the number processing server side to hide all the calculations.
From what I understand I would have to send all user input as JSON but where do the calculations happen? Can I copy paste my calculations code from the single page app?
The data set is stored in the golang app (serverside), not a redis store. The app reads the SQL DB every minute to regenerate it's caches on a background thread.
Isn't this technically faster caching than memcached? What would be the purpose of adding memcached in between the webapp and DB at this point?
There is no real client-side, the intent is to produce javascript-optional HTML.
Jeremiah Perry
You'll need a Wojak with a tinier brain.
Server isn't just a machine to redirect your requests, there's plenty of code for validation, authentication, communication with the DB, HTML pre-renderization, error handling. Yes, you can paste your code in the server, as long as your server runs in JavaScript.
Oliver Ramirez
Bundle everything within an object:
`var o = { input1: "", input2: "", input3: "" }`
and use `JSON.stringify(o)` to convert it to JSON.
Use XMLHttpRequest (XHR) to transfer the user input object to the server.
Use Node.js (using express.js will make it quicker) to make a server-side API.
Use that API with your static page. Convert the returned JSON to an object with `JSON.parse()`
Use the data like you did when it was all static.
PROFIT.
Colton Gomez
Stop bashing like an asshole.
Yes he can paste the calculations.
`(x - y) * z / 100`
will still parse in any fucking language you tinier brain faggot
Noah Long
One new tripfag to the filter.
Christopher Young
drop the trip fucking retard
Aaron Collins
Don't tell Bob what to do.
Nathaniel Wright
Thanks senpai. Learning everything as I go along and this is really helpful.
anybody else just winging it? I learn a little there, a little here, but mostly I'm bumbling around. I don't make much either (38k) so I'm not exactly feeling too terrible.
Robert Bailey
Former NEETS who have successfully broke out through freelance, how did you do it? What kind of projects did you showcase? Did you market yourself as an agency/studio or an individual?
Henry Anderson
LOL that's how I started my whole career 10+ years ago. Everybody does this most of the time, tech is going so fucking fast, nobody knows all the things all the time except for some crazy university scientist mother fucker
Dominic Morris
How old are you and how much do you earn?
Jacob Fisher
Wait, wrong code. I meant the text isn't vertically centering correctly. h1{ color: #F1F1F1; font-family: DejaVu Sans, Book; position: absolute; text-align: center; top: 50%; left: 50%; transform: translateY(-50%) translateX(-50%); }
What me do wrong?
Jordan Foster
If by money you mean basic codemonkey pay for CRUD shit, then yes, by all means go fullstack JS and compete with bootcamp grads
Webshits are so delusional. Java is king for any serious distributed system architecture
Brody Collins
I've been programming for a year with babby C++ and Python but lately the web pill has been tempting me.
I just need to be sure of one thing: will Javascript allow me to make any web page my bitch? Like can I use it to easily make scrapers that run right in my browser, or silly things like clicking every button in a page? Automating things right in my browser is what appeals to me.
Connor Gutierrez
I used to work in boring offices, underpaid since I live in a non huge city.
Some day I learnt that my employer was charging 115$/hour for what I was working on and gave me 15$/hour. That pissed me off so much that I did everything I could to make a shitty job and got fired a few months down the line.
Right there I was convinced of one thing: I want to be the one who's charging 115$/hour.
So I started on shitty websites like E-Lance, Freelancer, oDesk, etc. I marketed myself as a single freelancer. Started at 30$/hour, got a few cool clients, a few from other countries which got interesting since that gave me lots of knowledge about different cultures and helped me reaching new clients next.
I never once made more money here LOCALLY than I ever did REMOTELY. So keep that in mind. Hunt for what's paying at the moment, learn it, build a project with it to help show how good of a programmer you are (because yes you gotta be somewhat good at this) and then people will email you non-stop. Then you can showcase the projects you worked on when you reach for new clients.
Once good enough and with enough achievements to brag about: hunt for the startup world. That's where you'll dig up the real money.
I'm still freelancing after ~6 years, alone in my apartment office. Which is kind of boring but the money I make and the freedom I have makes me laugh at my friends who hustle like crazy to get minimum salary.
I'm 30 years old and in a good year I can make around 125k USD$ and in a shitty year I can make 40k USD$. It really all depends to how I feel in the end. If I have a great life and lots of energy I hunt for bigger challenges and make even more. A few years ago my father died which slowed me the fuck down but I'm back on track and working for a Colorado based startup atm that pays real good.
I highly suggest people to learn how to manage their lives, manage themselves, manage a business and clients and most importantly learn FINANCES.
Hunter Phillips
You definitively don't work in the industry nor know what you're saying.
Java is an old bunch of shit. Nobody cares for it anymore, everybody hates the shit out of it.
I see 10 times more C#/VB.NET projects than Java ones.
Python is pretty cool desu Keep using it, it's fucking awesome for web crawling / scraping.
Yes it's totally feasible with Node.js for example but I'd keep using python for that since it's so efficient.
I'd build a web interface around a python-backed script if I had to do a web scraper.
James Scott
Stick with one framework for you projects. Make things harder for yourself and try to optimize, write unit tests, etc. You will start to remember. As long as you remember the general scaffold and setup for a project, you are fine. Stackoverflow will guide you to victory
I already did a bunch of web crawling with python but for interacting with the javascript parts of a web page I have to literally run a browser through Python (using Selenium) so might as well learn Javascript and do it through my browser. That way I'd also have the comfiness of not having to worry about headers and cookies to give with the request.
Brody Howard
I disagree. JS is can make for a decent backend depending on the situation. I've been using C# for a while and enjoy how easy it can be to work with. It depends on the industry, but mine calls for a lot of .NET backends
Colton Diaz
>Java is an old bunch of shit. Nobody cares for it anymore, Wrong.
Just because you see React/Vue/whatever only, it doesn't mean it is the norm.
Go enterprise, and suddenly it's all Java, C++, etc
Logan Morris
Node JS is fucking disgusting. Stick with PHP. It's not 2009 anymore, you can use PHP now.
Logan Bell
Help me guys. I am working with book Configuring Full-Stack with Node.js, Express.js, MongoDB, Mongoose, Falcor, and Redux. Now i should start server to see my work but there is weird server
Error: Cannot find module '/home/nedlo/fullst_react/server/server/index.js' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15) at Function.Module._load (internal/modules/cjs/loader.js:507:25) at Function.Module.runMain (internal/modules/cjs/loader.js:742:12) at startup (internal/bootstrap/node.js:236:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:560:3)
Its probably because versions of dependencies are not the same as in book?
Dylan Bailey
*weird error
Liam Turner
Kek, you got no clue. Java is in demand where performance and maintainability is in demand. Go and try to work for banks, fintech and big corps with your node.js skills in the backend lmao.
I'm talking about the market NOW, especially the start up market (see my earlier posts).
Enterprise-wise, then I agree it's all Java/C++/.NET/C/ASM.
About performance: most of netflix, linkedin, trello, uber, paypal, medium, ebay and more now runs with Node.js backed solutions. That's convincing enough IMO. Even fucking Microsoft of all business is pushing Node.js everywhere.
Welcome to 2018 and suck a dick!
Glad you liked the story user! It's not all shit and giggles though. Sometimes I do dumb moves, but it's all about learning in the end. I never regretted going freelance.
Justin Wright
Really activated my almonds there, webshit. Your brain is rotten, your skills are nonexistent and all you will ever do is be a data monkey plumber.
There's nothing weird about that, your server just isn't finding the index.js file. I'm pretty sure you have to write those paths as if you're accessing them from your starting JS server file, so if your text editor gave you a hint while you were writting a path from another file, it may be wrong.
Joshua Mitchell
>this small example proves the rule
lmao
Lincoln Peterson
Node.js is only used in these companies to display the frontend to users, not to do any heavy lifting whatsoever.
Go and try to run an optimization algorithm or message queue infrastructure in node lmao
William Evans
What's your point? You're confirming what I just told. There's way fucking more JS jobs then C# or Java or whatever else dumb fuck.
I wasn't specifying JavaScript in that post because it was so fucking OBVIOUS.
See
Cameron Nguyen
For every company you named theres 10 bigger/more important ones that use Java/C++
Logan Walker
Ah, so you are a pajeet that has no clue what number is bigger. Let me guess, you also struggle with linear algebra?
>been studying for 8 months >got an interview for a job >they said my shitty liberal arts degree didn't matter and i showed more willingness to learn than the other interviewees >got da job I-I made it bros, all thanks to you guys telling me I was shit and to not give up. Thanks for the 50k starting gangerino, I love you all.
Nolan Rogers
Anyone know if you can add Javascript to an embedded Google Calendar iframe. Want to add a custom onclick event. Any better approaches?
Mason Rogers
Is Spring still a good backend framework?
Dominic Jones
the point? PHP devs use $ for vars because they make no cash?
I find it funny that I make the same salary doing JS than somebody who's messing with C++ pulling his hair out.
Call me pajeet all you want, I'll keep cashing up the checks.
You know what's the thing about "new" techs? They're new and not widely used yet, that's why they're used in START UPS. Check again in 10 years when every fucking thing is javascript driven.
Congrats user! Willingness is all you need, employers just want people who WANTS to work and learn. Keep it up, now you gotta learn and deliver.
William Hall
Thank you now there is another problem. Here is server.js code:
import http from 'http'; import express from 'express'; import cors from 'cors'; import bodyParser from 'body-parser'; import mongoose from 'mongoose'; mongoose.connect('mongodb://localhost/local');
SyntaxError: /home/nedlo/fullst_react/server/server.js: Unexpected token (29:13) 27 | Article.find( (err, articlesDocs) => { 28 | const ourArticles = articlesDocs.map((articleItem) => { > 29 | return `${articleItem.articleTitle} | ^ 30 | ${articleItem.articleCon tent}`; 31 | }).join(''); 32 | at Parser.pp$5.raise (/home/nedlo/fullst_react/node_modules/babylon/lib/index.js:4454:13) at Parser.pp.unexpected (/home/nedlo/fullst_react/node_modules/babylon/lib/index.js:1761:8) at Parser.pp$3.parseExprAtom (/home/nedlo/fullst_react/node_modules/babylon/lib/index.js:3750:12) at Parser.parseExprAtom (/home/nedlo/fullst_react/node_modules/babylon/lib/index.js:7238:22) at Parser.pp$3.parseExprSubscripts (/home/nedlo/fullst_react/node_modules/babylon/lib/index.js:3494:19) at Parser.pp$3.parseMaybeUnary (/home/nedlo/fullst_react/node_modules/babylon/lib/index.js:3474:19) at Parser.pp$3.parseExprOps (/home/nedlo/fullst_react/node_modules/babylon/lib/index.js:3404:19) at Parser.pp$3.parseMaybeConditional (/home/nedlo/fullst_react/node_modules/babylon/lib/index.js:3381:19) at Parser.pp$3.parseMaybeAssign (/home/nedlo/fullst_react/node_modules/babylon/lib/index.js:3344:19) at Parser.parseMaybeAssign (/home/nedlo/fullst_react/node_modules/babylon/lib/index.js:6474:20)
Brayden Powell
where the fuck do you live? Cause I've seen more jobs asking for C#/Java Developers than PHP/JS meme framework developers
Logan Reyes
>python is so efficient
You really are the most idiotic person in this thread. Everything you post reeks of being substandard.
>node.js >new
Jabbascript is popular at startups because JS devs are cheap and ubiquituos, you can hire low skill bootcamp grads to get the prototype of your product to market fast. As soon as the startup has grown the webshits get kicked out and the real boys move in to fix the architecture. t. Java/C++ consultant who's done this dance for the last 5 years and bills 400$/h
It's ok. Too bloated desu, vert.x is better. It's ok if you want something that just werks
William Diaz
>SyntaxError >articleItem.articleCon tent Read the error message. Also const articleSchema = { articleTitle:String, articleContent:String };
Are you passing the String constructor here? Are you sure that's how supposed to work?
Austin Anderson
Front End dev here.
Fuck you all of you other Front End devs who think you're hot shit with all your JS, who can't write actually good HTML and CSS too. Like holy fuck there are a lot of you! I feel like i'm the only fucking one on this planet sometimes who actually understands CSS. God fucking damn. Also if you think you don't need design skills in front end, then you're god damn retardedly delusional. Have fun being pajeet-tier without even knowing it.
front end is for brainlets and you don't even know Haskell
Connor Hill
there's alot of front end devs out there who either aren't interested in or don't care to learn any web/ui design skills, and thus either have to A: rely on bootstrap css, or B: code websites and UIs that are incredibly ugly or sloppy at best, visually.
Carson Evans
How center text inside a div in CSS?
Wyatt Miller
How the FUCK do I create an SQL database? Do I always have to pay someone like Microsoft or MySQL to make a .dbo file?
Wait, can I just create a file with a .dbo extension and use Node-SQLite to write to it?
Anthony Thompson
they really call themselves front end devs? i expect back end devs to pull that shit, full stack too, but really front end devs? jesus christ what hellhole are you working at?
help guise. yesterday I was using webpack v3x and everything works ok. today I decided to upgrade to version 4x and now I'm fucking stuck on extracting the css file.
The sass-loader,css-loader,style-loader all works ok. But when I included the"mini-css-extract-plugin" I keep getting Cannot read property 'thisCompilation' of undefined
here is my minimal webpack config: const path = require('path'); const webpack = require('webpack');
"css-loader", // translates CSS into CommonJS "sass-loader" // compiles Sass to CSS ] }, ] }, plugins: [ new MiniCssExtractPlugin({ filename: "[name].css", chunkFilename: "[id].css" }) ], };
To those who made the extract css to work could anyone pls share their webpack config. This is the only bullshit preventing me from getting productive already
Gabriel Brooks
I'm just gonna disguise an input as a div and call it a day, I think that's the best solution.
Kayden Rogers
An intern at my company just updated my react component. He added a prop. He added a componentDidUpdate to check whether that prop has updated and set a state variable to a COPY of it. Then he calls that variable in render() as this.state.-variable- when I have neatly dereferenced prop and state at the top
So how much web dev do I need to know to land a job? I'm a 3rd year uni fuck up who doesnt want to go back, I just want a regular job in web dev, I've built a CRUD app in django that's deployed on my VPS and get basic CSS and flexbox. Should I just built a react app or 2 and start applying? am I fucked? is the only way to get a job to go back and finish school?
why would you use webpack when everyone on this planet uses npm
Thomas Butler
Any CSS guru here?
How do I center this shit in discord chat area?
I tried vertical-align but no dice. This is not padding or margin - there is 5px padding on whole group element on top and bottom and 0.2em margin-bottom under each message line t space them out but this is not what makes the chat lines to be at the top position here.