maybe a dumb question but if someone wants to become a hacker is it necessary to go deep in javascript? or only the basic are needed and should focus on any other programming language
Joseph Walker
>if someone wants to become a hacker Go deep in Assembly or go home.
A hacker wouldn't be asking your question. Javascript is the least of the things a good hacker needs to master and they need to go deep in everything they do because they need to know it better than the people that wrote the stuff that is being hacked.
Camden Campbell
asm, C, python, ruby, and js I also like golang for writing tools. goroutines are a joy to work with when you're doing multithreaded network scanning
I needed a whole lot of JS when I was exploiting a dahua cam login portal :^)
James Sullivan
made myself a tool to keep focus and work in a flow
>friend gets me hired in the company he's working >think it's fucking great since I didn't even have to search for a job >second day of work, they show me the files of the php software i'll work on >they never used git and only worked in production >more than 650 php files >all in the same folder >mixed html, js, css and php >no classes >no comments >files included one in another many times >php 5.6 >mysql queries not sanitized >hundreds of Notices help
Carter Walker
Is that tl:dr; saying you fap every 25 minutes?
Xavier Long
Sounds like low-hanging fruit. That's not a hard thing to fix, it just takes a while. A long-term, easy project sounds great to cut your teeth on and earn some cred in the company.
Imagine how much better it will look when you're all done and everyone will have you to thank for it.
Josiah Davis
/sqt/ here
1 2
how the fuck does querySelector know which one I'm referring to? my source doesn't explain that for some reason
Dylan Perry
that is true in a way, but the company is made by 7 people, the programmer doesn't seem like he cares much, and the boss cares only about the look of the interface. I want to clean all the code but it will take a lot of time only to understand what each file does and how they are related to one another. the main reason why I want to do it is that I'm afraid to break everything if I change something in a file that then I discover is used in many other places for different purposes
Owen Robinson
Someone make me a quick code snippet of a react form with functionality to add input groups and states Some pseudish code this.state ={ name: '', last_name: '', likes: [{ car: '', maker: '' }] //adding more should make another object in this array, pushing delete button should do the oposite }
What I like add more
delete entry
Christopher Peterson
It selects the first one, which should be 1.
You add classes and IDs to be able to select things better
Lincoln Walker
you use querySelectorAll() which gives you a nodelist of all the matching elements
Anthony Lopez
>youtu.be/Zftx68K-1D4 - Web Development in 2018 How far can we take the Embeds gentlemen
>I want to clean all the code but it will take a lot of time only to understand what each file does and how they are related to one another. You can break things up a bit in the mean time. Grep is your friend.
Create an assets folder, move a single non-php file into it and then grep for the filename across the codebase and update the path. Rinse and repeat.
It's probably a better strategy to fix all the warnings first because then if you do break something, fixing it will be way easier.
I once inherited an api framework which was well structured but had pages of warnings on every api call. It took me a while but I chipped away at those warnings until I had eliminated every one, initially, I just did it when debugging anything else that required looking at the framework, I'd pick one warning at random, open that file and fix it. After a while, I got a sense of what kind of shit was broken and why (missing files that contained profiling functions which were disabled, stuff like that), that made it quicker to fix other warnings and I got into a roll and cleaned up a dozen warnings in two hours that I skimmed off an unrelated debugging task when nobody was looking.
Then, when we weren't very busy one week, I sat down and spent an entire day going through Apache logs and fixing every warning I saw. After that, most API calls no longer had warnings. It made debugging actual problems much easier.
Joseph White
I'm not sure I understand the first part, or maybe you didn't clearly understood what I said, the 600 files are pretty much all php
First fix the warnings. I'd start by moving the non-php files out before trying to do anything with the codebase, maybe you'll still end up with 600 php files in a directory.
But, once the warnings are fixed, in your development environment, execute something like this. mkdir -p assets/css mv bottoni.css assets/css/ grep -ls 'bottoni.css' * | xargs sed -ie 's!bottoni.css!assets/css/bottoni.css!g'
Bam, your css file is moved to a subdirectory and every direct reference to it has been edited in-place. This won't catch some really stupid things like this: (I didn't really test this so it might not be 100% valid) // Add style sheet for whatever is in $class
...so you'll need to do a little digging to make sure that there isn't anything like that.
Once you have a better idea of the codebase and how it's put together, you could write a bash script that did half this and really get things moving. I'd still fix all the warnings first, that will have dividends right off the bat.
Cooper Clark
How do I stop being a brainlet?
Alexander Williams
what the context here, retard?
Nathan Gutierrez
Stop thinking like one.
Kevin Ross
very good ruski
Brody Lopez
Decide not to be, start thinking hard things even though it hurts.
Isaac Bell
thx
Jace Brown
thanks, I will try. Need to get over it.
Grayson Long
Has anyone here actually made it to a massive body of knowledge appreciably faster than the people you look up to?
What the FUCK is your method?
Ryder Scott
When can I start applying for work or doing freelance work? I just finished the basic algortithms on the front end part of freeCodeCamp.
Does anyone here have any freelance experience?
Chase Russell
Can I do everything web dev only on lelnux?
Ian Kelly
No but you'll suck at some things if you don't and there aren't many jobs in pure MS webdev. They're around but they're in short supply compared to the jobs in linux stacks.
Leo Ramirez
of course you can
Nolan Garcia
>pure MS webdev So its actually possible to be one then? The .net asp stuff I assume.
Andrew Nelson
lelno
Cameron Robinson
This There's a reason why any and all web deving are done on OS X, if you don't have a Macbook you can't be taken seriously.
Leo Mitchell
>if you don't have a Macbook you can't be taken seriously. lelno
Charles Peterson
>tfw have Macbook, Linux laptop, and Windows desktop
>The .net asp stuff I assume. Yeah, I see jobs for .net and asp every day, it's just that I see 10x more jobs for LAMP/MERN/MEAN. Technically, MERN/MEAN could be windows server but it never is.
>There's a reason why any and all web deving are done on OS X, if you don't have a Macbook you can't be taken seriously. Well not CAN'T be taken seriously, more like aren't taken seriously. By the hipsters anyway. There are a lot of hipsters in PM roles, they're doing things like "Agile Coach", "Scrum Master", "Product Owner" and my favourite, "Vision Champion". You need to blend in with these tools, they're often decision makers.
Jaxson Cruz
>got 2 clients, doing their Wordpress sites and netting something like $40 a month hosting their sites >only been learning for 5 months
I know wordpress is low tier and I still got a way to go but now that I'm making a bit of money off this I can really justify taking time off to learn real web development. I think I'm gonna try and pick up a few more small business owners who don't have the overhead to drop $500 on a website but would happily pay me $50 a month to maintain their site. No question really, just feeling good and wanted to share.
what do I have to know from Linux other than console commands for webdev?
William Gray
Can someone give me a very simple breakdown of redux for absolute retards? I think I get some parts of it but it feels like another layer of abstraction and I hate it. However, the tutorial I'm following is using it and given the personal project I want to do, I'll probably have to use it there too.
So, redux is sort of like a container where you store the state so any component can access it without worrying about passing it from parent to child, am I right? And what produces the state is the reducer which has two parameters; the initial state and the action. When the store gets triggered by the action, it notifies the reducer that then calculates the next state with a switch statement based on the action type.
Did I get it right?
Charles Ward
Yep. Even more than on Windows or MacOS. Every webdev languages and tools work out of the box
Kind of unrelated, but I'm looking for design inspiration for my new website. I want it to be minimal but not so much to the point of making it a black-on-white simple html. Post your favorite minimal websites.
Hudson Barnes
Anyone have an idea of how I fix this? Rails worked out of the box on my Debian install. On Ubuntu 18.04 everything runs fine except for the rails console. As soon as I run it, I get pic related and back to the bash prompt. No other rails command has given me any problems.
> go deep Are we talking "balls deep"? Cos, like, that would mean learning elite HTML skillz. Not just JavaScript mastery.
Cooper Diaz
>followed tutorials >look mom im a programmer now
fuck off
Connor Clark
How deep will he go? Will it burn? Will I taste feces?
Levi Barnes
Hey, just in case anyone encounters this, the solution is to not use the Ubuntu repository for rails. I don't know the exact details of why it didn't work, but completely removing it and using the rubygems repository to install rails fixed it.
William Cook
> black on white Use blacked.com as a template starting point, and tailor it to your needs. However, make you to reuse the images and videos from that site, as your traffic will be much higher.
Why in this case do I need to res.json the user and not newUser? Whenever I console.log(user) during any point it just returns null, I don't understand
Jason Young
"user" is whatever is in the Promise that findOne() returns, but within newUser.save().then() you shadow it and "user" is now whatever is in the Promise that newUser.save() returns
Evan Sanders
take your own advice for once
Juan Butler
I'm following the same course, kind of stuck on the redux section. the user is whatever you call it, it just returns the saved data of the newUser
Brandon Reed
I see..So what I name the saved user doesn't matter? I renamed it to newSavedUser and it works exactly the same, and the same if I do newUser .save() then(() => res.json(newUser)) .catch(err => console.log(err));
Is that way better? my eslint isn't complaining anymore if I do that
Grayson Phillips
Hey.
I'm working on a project. 'The Alpha Hub'. It's a website with a bunch of pornsites listed for your "Alpha Entertainment".
[name] with an href link to it and such.
Is there any way to force open an incognito window upon clicking the link??
The point of the website is "Stop laying tracks. It’s all anonymous."
Gabriel Torres
you're targeting the wrong audience with that product, rename it to beta hub
Brayden Baker
the variable name doesn't matter, but in the code you posted you're doing something different, because you're now responding directly with the object you've created and not with whatever save() gives you back. but that doesn't matter IF save() returns the saved object unchanged, because then the two are the same
Aiden King
Looking for programming advice, not some alpha bsing me
Asher Cruz
Where kind and what version of a browser is being used by webview in react native? I made a shitty wrapper android app for my website using react native. Everything works fine except a canvas I made that isn't working well.
I get it, so naming it newSavedUser makes the most sense for making it readable for me at least. I can't stand when people name things the same as other things but they are actually becoming something else, makes it incredibly confusing when reading it back.
Jacob Ward
yep, you're right
Jordan Green
ruski?
Michael Martin
aren't you Russian?
Owen Campbell
>Where kind and what version of a browser is being used by webview in react native? literally what
Andrew Davis
bumpy
Austin Williams
What dependencies do I need to upload files from my nodejs server to an S3 bucket?
Adam Ortiz
When we get a new Internet I hope they figure out how to handle naming.
Obviously we probably won't have extensions but intent metadata.
So like if some asshole buys "jobs" and just tries to sell it, it will get recycled after a year and they can't buy it back.
I would say if there is not meaningful content attached to the name within 3 months then it should get recycled.
Like .app was recently released and everything is bought and every single word name is taken by bots and many double word names.
It's just way out of hand. I've been looking for a job related domain name for hours and can't find anything. When you go to then they are either empty pages or listed for sale.
This should be dealt with or the Internet will die and nothing new will ever be made by anything other than companies that can afford to buy domains for 50k.
Google paid $25 million dollars to buy the entire '.app' web domain.
What's wrong with that?
isn't that easy for developers to release apps?
Chase Martin
So far I've never felt the need to use classes or any OOP really outside of manipulating objects. The most "complex" project I've worked on is the wiki viewer project on codecademy. All it was is getting data from the wiki API and displaying it.
What's a good project idea that's a step above this?
Anthony Hernandez
Richard doesn't know websites on his new internet require new naming?
They have the option to pass the input variables through .input() which you can specify the datatype (which you can omit, and they would determine by its JS datatype), but they included ES6 Tagged template literals, which they say is automatically sanitized from SQL injections, but I'm guessing they just interpret the datatype.
Should I stick with the .input so I can ensure correct types?
Yo guys, I'm making a calendar app at the moment, and I got the front end completely finished, but I'm stuck. I'm confused on how to go about the back end and database. I've worked with both of these before, but I'm not sure how I should go about storing people's events. Imagine google calendar and how you have all those events.
The way I'm familiar with handling something like this would be assigning an id to each user and assigning an id to each event, and then using a third database for relationships between events and users. Is it the right way to go about this?
Jacob Taylor
Why not use a JSON file for each day, that has all the events that happen in that day?
Not strictly web dev, but anyone ever work with jda.com/ JDA? I'm trying to access a jolokia (parses internal jmx endpoint into JSON) endpoint within JDA. Problem is, when opening servername:port/jmx/ through chrome I am challeged by something. Could be jboss, but I'm not sure. I don't really expect anyone to answer this, but thanks for your time reading this long post lol
thank you user, is there more of this for all the other things? I can't even list them all since all I know of is the cookie shit whenever somebody is from EU and the upcoming gdpr
Juan Gomez
bigdump.php
Grayson Foster
, in the end,
Joseph Bell
This might be a long shot (damn near impossible probably) but is there an easy way to set up multiple Twitter accounts and their respective developer configurations? I've only done 2 so far and its a bit tedious. Ideally I would want at least 1,000.
>Ideally I would want at least 1,000. you running a bot farm or what?
look up how to do with from the command line and write a script that does for you
Caleb Gray
trying too hard, user - the second you store a EU citizens data (e.g. an account on your website) or sell them something, you need to be gdpr compliant, so if you don't ban all people from EU, you're screwed
Gavin Allen
>you need to be gdpr compliant yes I'm sure they'll send you a sternly-worded letter
Jace Scott
>you running a bot farm or what? Yes, something like that. Will check out how to do it via scripts, thanks
Thomas Myers
It's actually not bad advise, their site isn't bad looking.
Cameron Perez
>What's a good project idea that's a step above this? University
Brayden Jenkins
Thank you EU. What would I do without huge cookie banners that you now have to click away on every single website.
Though I guess someone will make an addon, that automatically clicks that shit. Hopefully.
If someone doesn't want cookies. Why not disable them in the browser. Makes me so mad.