Have nothing to do at work because we need to have our fucking stupid "user story" meeting and have been putting it off for a FUCKING MONTH.
Jaxon Diaz
Meetings, huh, good god What are they good for Absolutely nothing!
Henry Brown
I have to make a doctor's appointment tracking website should I use Java/C# or Python for the backend? >inb4 brainlet
Hunter Allen
Why does Laravel-lumen suck so much? I used flask+peewee for a personal project and it was amazing - minimal config, maximum deveopment speed. I have to use lumen at work and it seems that making the simplest thing is some sort of a hack. The community is shit too. Hold me Sup Forums
Mason Butler
Thing that puts me off going into web dev professionally is how much of an fuckin office job it sounds like. I love sitting down at a computer but loathe office culture, sounds like a paradox but it's real.
Owen Johnson
>Java/C# or Python for the backend? use PHP. who the fuck does backend in python?
Zachary Martinez
Who the fuck still uses PHP for new projects?
Thomas Bell
Who the fuck starts new projects? Just work in a legacy app
Noah Gutierrez
I checked out PHP once and didn't like it very much. Still considering to learn Laravel anyway, just because people praise it constantly, but I feel like I would just trick myself into using a language I don't really like by using a framework as a kind of abstraction.
90% of jobs also look for people with PHP skills. Just use Node.js, hell I would even learn Go, just to be able to have the opportunity to apply for some non-PHP position. It's all AngularJS, PHP, AngularJS, PHP, AngularJS, PHP
So do I give in and learn Laravel? Especially since it seems to pair well with Vue, which I enjoy a lot.
I know there also is tons of Wordpress work obviously, though from my experience using it personally, before I knew anything about webdev I would want to stay away from that as far as possible.
Matthew Campbell
Use elixir. You will thank me later
Jeremiah Barnes
Dont! Stand out of the crowed by learning elixir and elm.
Asher Foster
Is there any money left in affiliate marketing or is it just a meme? I've got a good niche, just need to make the site using a shitty wordpress blog
Owen Lee
Who the fuck has a job? Just be a NEET
John Morgan
I'm making a simple 3D engine with WebGL. What is the correct way to structure large JavaScript projects? Not sure what to delegate to different classes, or whether to stick to OOP principles or try a purely functional approach
Justin Butler
It has been two long weeks.
I still can't get nginx to work as I want it. Send help.
I just want it to process; www.site.com => www.site.com/index.php www.site.com/login => www.site.com/index.php?=login www.site.com/login/name => www.site.com/index.php?=login/name www.site.com/statistics => www.site.com/index.php?=statistics
and; Not break site URLs for Javascript/css Not ask me if i want to download the file rather than process and serve it Not give me NGINX 404's (I handle them in my rouer) Not give me NGINX 500 errors.
Closest I have gotten after I have tried everything i can think of; I either get it to not break css/js and it serves my homepage and other pages are broken. The rewrite works and it serves all my PHP pages, with no CSS or JS because their links get broken.
Please, I am begging anyone.. Please... Help me. No end of googling has saved me, I have just been fucking around with this file for 2 weeks and just recycle the same results.
Mason Allen
This is the closest I have gotten, redirect works fine but JS/CSS is broken... server { listen 80; listen [::]:80;
Web dev forced to do devops because of resourcing at my company.
I have been fighting with CloudFormation for a week, and switched to terraform + ansible + packer today.
It's so fucking nice, I'd probably kill myself if I didn't find these.
Matthew Hall
First off, they're good for shared vision on a project at multiple levels, both individual tickets and architecture. This is among the most important factor for success of a project.
Second, they're good for business planning. I'd rather have a medium speed project where I know when people are falling behind and I know how long it's going to take than have a fast project that just happens to get in on time.
Meetings aren't useful when they lack structure or could be handled asynchronously. They can also appear to be useless when all you think about is coding instead of programming as a whole.
Charles King
How would I do a kind of... reverse query? in rails.
I have a table UrlToLead with url_pattern:string, lead:string
An example record would be (url_pattern: 'foo', lead: 'bar')
I want to be able to query using a parameter that's a fully qualified url, like 'mydomain.com/foo' and return 'bar'
Like a reverse like statement. Is this possible with a query? Should I use a block and iterate? Or am I going down the wrong road?
Andrew Stewart
>meeting More like a sarcasm circlejerk.
Wtf is a "user story" anyway?
Jaxson Evans
Affiliate marketing is just a meme. Only yuropoors like those
Brayden Turner
It's a way of writing ticket that captures who the ticket is for, what they want to do, and why they want to do it.
A user story seems like a stupid abstraction when you're working on tickets, but when you're writing them they're hugely useful for capturing requirements.
The important thing is to not let them get in your way, then whoever is writing them won't have your work get in their way. You can capture multiple user stories in one pull request or use multiple pull requests for one user story.
Tyler Robinson
Would this be as good as it gets, or is there a railsier way?
def find_lead_source(url = "") sources = UrlToLead.select { |utl| utl if url.include? utl.url_pattern } sources.empty? "Web" : sources.first.lead_source end
If there's a better way, lemme know pls
Adrian Walker
page10
Dominic Walker
I don't use PHP at all, but from what I know, I am certain, that you don't handle routes in nginx like that.
>site.com >site.com/login >site.com/login/name that should all go to the same index.php, without any interference from nginx and then the actual backend (not nginx) sorts out, what the query/parameter is.
At least that's how it goes with Node and Express. Every (non-static resource) request is forwarded upstream and Express will check for a matching route, whether it's queries or route parameters.
In your case you are trying to change route parameters to queries, but why? PHP or whatever framework is surely able to handle a URL like 'site.com/login/name', given that the route is set up properly.
The problem with this article is that it doesn't go into downsides years down the line, which is always the problem with unpopular technologies.
Dylan Ramirez
Elm will be around for a long time. Currently the creator is being payed to continue developing the language from NoRedInk. They made a huge investment into elm and it's very unlikely that they stop supporting it. But even in the very unlikely case he'd lose his job, there are safeguards in place that would keep it going
Kevin Price
How can i do this in javascript?
I want an asynchronous function that runs in a loop every second
Benjamin King
window.setInterval
Noah Johnson
what do u guys think with .net core?
Isaiah Young
I'm not quite sure what you are trying to acomplish here..
One thing you can do is grab the part from the URL in an controller and redirect to the result to a differnt controller with a simple SQL LIKE-statement search..
class LeadController < Applicationcontroller
def index if params[:s] and not params[:s].empty? @results = UrlToLeads.where('url_pattern LIKE ?', "%#{params[%s]%" ) else @results = [] end end
private
def search_params params.require(:lead).permits(:s) end end
A differnt solution in "pure Ruby" would be to extract/filter the search string before you process it further:
it's not getting in contact with one, it's just a "drop us a message" kind of form that sends an email to the people who run the site with the message
thanks
Jayden Kelly
So I should just always call index.php and handle the URL that way instead of rewriting the URL
It's my own framework and worked fine with Apache but configuring for nginx was odd. I will look into changing it.
I got it working either way. I just had to capture the public URL (images, CSS, JS) and not rewrite them.
Brayden Cruz
>2018 >javascript classes still don't support variables webdev is a joke
Adrian Flores
Recommend me ideas for my first real web app. It's semester project for Uni if that matters, would like to include it in a portfolio too.
Ian Rivera
> still using JavaScript in 2018 You don't have to use it, there are many alternatives. I prefer Elm. Other reasonable options are ReasonML, GHCJS, ClojureScript or PureScript.
And if you can't into functional, than at least use TypeScript
>It's semester project for Uni if that matters It's always going to be a PoS, so don't worry about it.
I remember during my first uni class building a medium-sized webapp, 18 people in a single team. Needless to say, that shit didn't work out.
Carson Taylor
build something you want to build, not what others suggest. It will become a chore otherwise, that you don't enjoy working on.
Carter Bell
>It will become a chore otherwise, that you don't enjoy working on.
that's the job though, better get used to it
Tyler Gutierrez
yeah, but you also get paid to make up for it. Doing something for grades or other potential future benefit doesn't have the same psychological effect.
Matthew Scott
What is /wdg/'s opinion on Spring Boot? I actually really enjoy working with it and find it fantastic.
Asher Ortiz
Hey how are yalls jobs?
I'm trying to figure out if I want to leave or not.
I can show up whenever. I am not micromanaged. I have my own office. Coding standards are pretty chill. Basically as long as it works I'm good. Pay is low but high for the area. Make 52k when average household is 36k. So more than the average family here.
Now a recruiter called me about a gun ecommerce site job. Anyone have experience with that? The pay is double which puts me at the household average income of that area. Any idea if ecommerce companies are chill? Like really not all that much work to do on a functional site, right?
Christian Hill
what area?
Colton Gonzalez
>any year >not using the superior prototypical inheritance mechanism available in javascript
Easton Baker
South USA
Owen White
Master your self master the enemy. I made some advice what build with node js and ruby. pic related
Luis Rivera
Not the guy who asked, but I should have gotten that from "gun ecommerce site".
Are you high right now?
Julian Lopez
High on life.
Colton Rivera
who /comes here to bemoan their lifes situation of being a self taught neet, that fucked up in life and found a hobby in webdev, but prefers a stack that no company is interested in and can't deal with other people in business culture anyway/ ??
Jayden Walker
Me. In addition, I have high social anxiety and low self esteem which is why I don't see myself in any office where there is constant contact with other people. Currently, I'm applying for other solitary jobs. Wish me luck.
Ryan Walker
Well, I've been working on my thesis for so long that I have learned to code, started two businesses and still haven't got my degree.
Christopher Foster
I also tried to look for a job at the side, but that hasn't been very fruitful either.
Nicholas Turner
what do you do in your free time?
Sebastian Hernandez
What's the opposite of restful web service? If I dont use HTTP methods to request JSON data but instead create a "normal" backend?
Nathan Evans
Right?
Anyways, how are yalls jobs? Pretty chill or what?
Jason Green
How do I use webpack for a github pages Jekyll site?
Hunter Ramirez
Gaming. Fighting sports.
Tyler Martinez
Should I use .io domain for my web dev portfolio? I'm not sure if it's still cool and trendy.
Kevin Lopez
Thats how all dropout millionaires begin.
Logan Harris
I would use .com if you can. Just keep brainstorming for a name.
Brandon White
.com seems too 90's for me. Does anyone know why .cu is so fucking expensive? What does it even mean? I understand .lol and other le funneh domain names, but .cu?
Julian Johnson
>not using .dog
.cu is for Cuba, just like .io is for British Indian Ocean Territory, .us is for United States, .co is for Columbia, etc.
I just want to say, that pugs way of templating is terribly abstruse and not fun to work with
Lucas Ramirez
I use empty padded divs set invisibe on breakpoints to aerate the layout on desktops
discuss
Kayden Bennett
Why use .io? You want your portfolio to reach every normie possible and using .com is the easiest way to do that, everyone knows what .com is even 70 year old grandpa on his original ipad.
Not to mention .io is way more expensive, unless you have some very specific reason to use .io I don't understand the appeal for something that is aimed at normies.
Christopher Fisher
what's the reason, when you can just use extra padding on existing elements themselves, instead of inserting additional elements for that? do you have an example
Aiden Ross
>what's the reason, when you can just use extra padding on existing elements themselves but then I'd have to duplicate them and hide them depending on the breakpoint
Dominic Parker
no, you use media queries to change the styling of the same element
So I'm wondering how I should handle oauth2. I have a restful api server that uses JWT tokens and a vue.js frontend. Should I have a callback in my api server for oauth2 then issue a jwt token?
Andrew Ross
ya
Jace Torres
Thanks just double checking
Angel Cox
I wish I have Backend Dev interview in2 week's
Camden Cook
I pine for the days when I was backend only...
Noah White
Working on my personal website using bootstrap 4.
I had this idea of making the sidebar kind of narrow on the side, then move down to the bottom when the screen gets smaller.
I want the elements to be stacked like pic related when the sidebar is on the side, then spread out to inline elements when the sidebar moves to the bottom of the screen. How would i go about doing that? I'm used to making elements horizontal as the screen is larger and making them stack vertically as the screen gets smaller, but not the other way around. I don't know how to use the bootstrap grid to do that, perhaps using CSS flexbox/grid I can do something like that (still kind of new to that)
Would it even be a good idea though? I guess i can just stack them all up vertically and center them, then move them to the bottom of the screen in the same configuration when the screen gets smaller. That would definitely be easier, but I think it would really cool if I could pull off making the sidebar stretch across the screen at the bottom on mobile devices and display the contact items horizontally.
Landon Baker
Use flex-wrap, and just treat them normally. When it moves to the footer, it will gain a bunch of width and cause them to line up. Make sure the parent is flex-direction row.
Jason Evans
Same, but only because I hate CSS.
Evan Morgan
>Now a recruiter called me about a gun ecommerce site job. Anyone have experience with that? The pay is double which puts me at the household average income of that area. Any idea if ecommerce companies are chill? Like really not all that much work to do on a functional site, right?
Literally my dream is to do web development for a gun company or a gun site so I can get free or cheap gats. Fucking do it man. You'd be living my dream.
Live not too far from the Beretta USA and Benelli USA plants.
Brody Williams
This is so fucking American, next you'll say your second best option is working on the McDonald's site
Wyatt Mitchell
I'm a simple man: Guns, Vidya and Internet. If I can combine two of those things I'm golden.
How does one go about successfully making a post to Sup Forums programatically? When I send the http request, the http response indicates code 200, however no post is made. Captcha sent and everything. What am I doing wrong?
Jack Perry
>Terraform I've been meaning to look at it. How many virtual servers do you manage? Does it help with blue/green deployments?
I currently use Ansible and Vagrant for provisioning, but I am thinking of switching to Docker and hyper.sh/ or something equivalent to not have to manage infrastructure directly.
Christian Morris
Venezuelan in need of hard currency here. I know basic "Programming I" shit, what's the fastest road to getting freelance work?
Xavier Baker
Perl, Python or PHP as a CGI and why? At the moment I'm not too excited to learn PHP but will approach if there's a good reason to. More leaning towards Perl at the moment. Thanks.
Brandon Allen
Totally depends on the use case.
Jordan Turner
Developing a web stack to practice exploiting and securing, wanting something dynamic that I can get a good level of security training out of.