jsfiddle.net - Use this and post a link, if you need help with your HTML/CSS/JS 3v4l.org/ - Use this and post a link, if you need help with PHP/HackLang
Book recommendations for someone learning Javascript? It's also my first programming language.
Sebastian Thomas
Just do a online course, like the freecodecamp one. If you really want a book, get the Eloquent JavaScript book by Marijn Haverbeke. It's supposed to be good for an intro to programming, never used it myself tho.
John Gomez
Theoretical and in depth: YDNJS, More programming focused: Eloquent JS, A little more broad: JS Definitive Guide (I've read it myself, but wouldn't really recommend it)
Logan Perry
What's the secret for responsive text in CSS? I saw a site use:
wtf is "responsive text"? Text is already responsive unless you're using nowrap
Justin Ross
font size
Eli Wood
rem depends on the html(tag) font-size
Jayden Peterson
Chances are you're trying something terribly wrong and dangerous. Please just stop.
Michael Reed
there's an element in the footer of my website I want to remove but I don't know how to locate it
it's not in the footer.php file and I already deleted what traces of it were in the CSS, but it's still there
any ideas?
Levi Harris
>"Who let the thread die?" edition. We actually hit bump limit last thread. The only issue was not creating a new one a bit sooner.
Ryan Green
I'm just a beginner, so I shouldn't be answering this, but this is common sense, search for job offers that are interesting for you (pay or stack wise) and then choose your move from there, that should tell you what stack/piece of tech to get your hands on.
Kayden Gutierrez
You have completed 77 of 1409 coding challenges.
You have built 0 out of 30 projects.
You have earned 0 out of 6 certifications.
1,332 more challenges to go.
Aaron Campbell
look for an ID or anything unique in the footer, then cntrl + F your wordpress theme folder files for that thing
Grayson Cox
Well the 'rem' units are based on the HTML element's font size, so maybe check what they set that to.
But for real though, that looks like a mess. Just use 'em' units and then find a media query breakpoint that works for switching to a larger font size on smaller displays, and set HTML's font size to a slightly larger value.
John James
php, Writing classes do i need to write public before functions(methods) if it's getting assigned anyways?
Camden Clark
Notepad ++ has this neat feature of search for a String in multiple files (or a folder containing all files)
Aaron Jones
I've seen a site use the font size set to a size based on the width of the page, pretty neat, it was done in js
Dylan Jones
Probably a stupid question: What can I use to have a base HTML page template which others use? i.e. base will have banner, home button etc. which others will use coupled with their own content.
Angel Diaz
php includes, include header.php
David Fisher
best way to get a job?
is it to become a front end dev?
Jaxon Morris
Redpill me on MongoDB. Is it just databases for brainlets who can't do SQL?
Juan Hughes
it's NOSQL, Not Only SQL. So theorically it holds more advanced queries than SQL. It also "theorically" handles big queries of multiple fucktons of entities at once better (but as I've heard in this particular it's the other way around, anyone has any idea on this?), it's supposed to be more sophisticated than SQL, but in most cases it perfroms poorly when compared to SQL, just watch statistics and benchmarks on different darabases.
Aaron Parker
Theoretically MongoDB and NoSQL in general can fulfill a different set of requirements than regular relational DBs. Some companies actually use MongoDB successfully, I think Stripe is one.
But relational DBs have a much wider net of usefulness, are easier to maintain at a smaller scale (a scale that most businesses fall under), and generally already have pretty good support in most existing systems (through ORMs and the like).
I think MongoDB gained traction because it uses JavaScript for querying and JSON for document storage, and therefore was the obvious choice for a full-JavaScript stack. And it is pretty easy to get started with. It's mostly just when you try to scale that you run into issues.
Caleb Morales
do these links in the OP provide a good starting point for someone aspiring for a freelance webdev position? I only know html & css right now (also Java but that's kind of irrelevant for the most part)
what should I be learning and from where?
Chase Carter
>It's mostly just when you try to scale that you run into issues. My teacher said that NoSQL was better for bigger queries, why isn't that the case with Mongo? What am I missing here?
Samuel Richardson
Do the MDN intro to Web Development (HTML CSS JS, then your choice of Node or Python). I like that one the best
Josiah Price
Why would any average sized company use it then, other than going full javascript? PostgreSQL and MySQL have JSON types.
Parker Ward
It can work well at scale, see Stripe, but it's more work to do so. You have to deal with sharding and stuff.
I'm not really sure why it's so hyped, it might just be startup culture memes.
Charles Moore
>sharding wots dis?
Jason Anderson
Is there such a thing as open source websites? I can only learn so much from "help world" level tutorials. I want to see how React is used in real life.
Joshua Martin
digg through githubs with react on them
Nicholas Lee
So I just applied for a full stack position which required no previous experience.
I kind of fullfilled the requirements, which were just a high level of JS (maybe not so much my case) and fundamental knowledge of web technologies as well as fluency in relational databases.
I've honestly never worked with a database before, would codeacademy's mysql tutorial cover me here?
how fucked am I? I've never done full stack before.
Luis Phillips
SQL can do: .Create tables .Define the type of variable each field is .Regular queries (like select field from table) .Define primary keys .Set keys as auto increment .Define foreign keys .Joints .Some advanced stuff that Idk about goes here .create users .restrict views/permissions .same as all the above but with delete
And I'd say (I'm probably worng) that that's it. Well there is the part of combining this with ajax or whatever is used nowdays.
Jose Hall
>I've honestly never worked with a database before, would codeacademy's mysql tutorial cover me here?
Eh, I'd probably spend at least a few hours on youtube tutorial on top of that, but it's pretty much what said. It's piss easy, you'll be fine.
Isaiah Hall
create a CRUD app and that's something
Elijah Murphy
Could someone please spoonfeed me with a js code that redirects from youtube channel main page to /videos counterpart? What I wrote doesn't seem to work.
I believe that this part works, I took it from some other userscript. The regex is what I'm struggling with.
Leo Edwards
I think the issue is that the '|' operator has higher precedence than you think.
Put parentheses around that part: (channel|user) It's only necessary for the second regex, but you should include it in the first anyway.
Easton Allen
Sometimes it does work, sometimes it doesn't. On the same url. Also, it takes a good 3 to 5 seconds for it to execute. All of this, yet the script I'm trying to base on works always and in an instant. What the hell. "Base" script: greasyfork.org/en/scripts/33819-url-conversion-youtube-hooktube My script: // ==UserScript== // @name redirects // @namespace Violentmonkey Scripts // @match youtube.com/* // @grant none // ==/UserScript==
Is it an issue that you're having it run on www.youtube.com instead of just youtube.com, or *.youtube.com?
Nathaniel Stewart
I don't understand what you're trying to do, why do you have two regexes?
Also I think it might be like said, you can even use a non-capturing group with (?: channel|user)
Parker Cook
i want to start learning about web development. what's best for an absolute begginer. freecodecamp or codeacademy?
Angel Richardson
nope, violentmonkey shows whether script is active or not
>>\/ to escape / >>(.+?) no idea honestly
I want to build an userscript with a bunch of various redirects. There are some websites with parts that are annoying as hell.
I got it to work now, but apparently youtube seems to be using some jewish magic instead of hyperlinks on their website - it doesn't work on urls clicked on yt. I need to refresh the page. // @grant none // @run-at document-start // ==/UserScript==
In CSS, is there a way to add to a value of a parent attribute?
Let's say I have some nested bulletin lists:
foo
bar
baz and another one
Is there a way for me to indent the s based on their nested level?
Pseudo CSS of what I'm asking for: ul { margin-left: 3em; /* top level margin */ } ul > ul { margin-left: calc( parent(margin-left) + 2em ); /* additional margin per level */ }
Mason Peterson
ul{margin-left:3em;} ul > ul{margin left:2em;}
Hunter Cox
Tbh I have no idea what does and what does not have to be escaped / captured in js / js regex engine. I don't use either on daily basis, and each implementation seems to be a bit different (why tf is this a thing in 2k18, regex implementations should be standardized)
William Rogers
if I recall correct ul elements nested must be inside of a li not a ul, does anybody know if that's true?
Yo, finally got a sick ass interview. 3 step interview process: >phone interview (completed) >project (working on now) >final step
I probably should have asked what the third step was. He mentioned we'd discuss money and shit then(50-80k/yr.). My question is, what is commonly the third step? Will we just settle in, after discussing money and what not? Or am I going to be assigned some dreadful fucking algorithms to solve in front of someone? That shit makes me think I'll never get a job in tech. I'm nervous just speaking on the phone to them, to write an algorithm in front of people would probably make me collapse.
Zachary Young
I just want to thank whoever made that simple 150-step roadmap to being a web developer. Really made everything clear.
Carter Hall
what's the job position and what's the project about?
>youtube seems to be using some jewish magic instead of hyperlinks on their website Found the event'yt-navigate-finish' via chrome dev tools: document.addEventListener('yt-navigate-finish', function() { console.log('navigated to a new url'); // here's where you can check the url matching });
The dot character matches any single character, so it works, but technically it would also match a lot of other things like youtube/com or youtube&com.
Pretty sure that's a standard feature.
If you were to set font size to 2em and then margin-left to 1em, it would double the margin every time, for n levels of depth. But you could probably also do some shit with calc in order to add say 4pt every time: font-size: calc(1em + 4pt)
Of course, the downside of this is that the font size increases with every level of depth. So this wouldn't actually be very useful in practice. Sorry.
Austin Reed
Web developer, focusing primarily on the front-end(using React). Which is why I'm thinking the third step will be pretty simple, yet I'm unsure. The project is cloning a section of their website. It's a pretty big company, the biggest company in fact for what they're about.
>PHP uses interfaces and abstract classes, which are both 100% the same exact thing Let's all laugh at PHP /wdg/, share the worst things about it
Caleb Peterson
Guys seriously how do I git gud at React really fast? I've been reading the official docs but I don't think it's enough to bs my way through my interview on Wednesday.
Nolan Fisher
>difference between props and state >how to update state >how to pass props to other components >knowing when renders occur and how to control when renders happen (shouldComponentUpdate) >knowing the purpose of the lifecycle methods (constructor, componentDidMount, componentDidUpdate, getDerivedStateFromProps, componentWillUnmount) >importing/exporting your component >Using JSX
Cameron James
Programmers Hate PHP
Wyatt Ramirez
which java frameworks should I learn if I want to get a job?
Eli Thompson
Spring
Samuel Taylor
Any particularly good places to learn it from?
Brayden Morris
what am i, fucking google?
Jordan Jones
yes
Ryder Cooper
There's literally zero good resources for learning Spring. The best you can do is 240p tutorial videos on YouTube of pajeets with bad mics and unlicensed screen capture software. Oh and you also need to learn Hibernate, and it's the same deal.
Thomas Thomas
>pajeet's responsive design
Anthony King
Does anyone know any good resources for learning good design/UI practices?
I can do all of the technical stuff, but actually making a site that looks GOOD is what I'm hung up on.
it was actually from a western site, no pajeets in the dev team
Lucas Gomez
>what is outsourcing might as well write "poo wuz here" in a comment
Lincoln Hill
>Found the event'yt-navigate-finish' via chrome dev tools: This is nice, could you also find me something like 'yt-navigate-begin'? There are some cases where I'd like to block this shit. Sorry for being a beggar, but I've no idea how to use browser's dev tools.
Caleb Turner
copy sites as fuck, this will help you understand some things, use raleway as font, for everything, study typography, study colors, study composition. All in all, study design, come with cool designs in photoshop or AI, and try to implement them in web, but all in all get inspired by top site, I'll share my humble list with you, some of which come from /gd/'s user suggestion: Stripe, Zero Financial, Crypton Trading, KIKK, Epicurrence. yle.fi/uutiset , systemspace.link/
Connor Young
Ok, I have a interview with the webdev lead for my university next monday. They pretty much expect me to be completely entry level but I would like to at least spend some time this next week learning enough HTML information to pass as someone who looks promising. I do have some decent Java experience, and I've heard webdev is much simpler than OOP. What would you guys do if you had no previous knowledge and an interview in a week?
do you know what tech stack they're using? read up on everything mentioned in the job description
don't try to learn HTML/JS in a week or whatever, just know what every noun in the ecosystem means. e.g. PHP vs react vs apache vs sql vs git ... etc
Jackson Foster
just know that the structure is: 1.html 2.css 3.js 4.php(or other back end language) 5.Mysql (or other database languages) 6. JS front end framework (vue,react,angular from new to old)
oh and a jewel for you, you know firefox and chrome have that thingy... press F12, there you can inspect the html and css properties of a page, edit the css values, edit the html values, edit the CSS sheets (and save them if you have the files locally) and all of this in real time, such a fucking amazing source of knowledge
Colton Sanders
It's called 'yt-navigate-start'
In the inspect-element view, there's a section listing all events and the listeners associated with them. See pic related.
>They pretty much expect me to be completely entry level >entry level This just means, pretty much, that don't have professional experience. Someone could be entry level even though they've been into web dev for 4 years, creating their own shit. You're pretty much fucked unless they're going to train you while you learn.
Jose Cox
// special case for youtube if(window.location.toString().indexOf('www.youtube.com') !== -1) { window.addEventListener('yt-navigate-start', function (event) { alert('jewish tricks'); event.stopPropagation(); }, true);
return; }
Alert shows up, but the redirect does it's job anyways. God, modern web makes me want to kill myself rather than use it.
Nicholas Taylor
fixed it, but still wanna kms
window.addEventListener('yt-navigate', function (event) { event.preventDefault(); event.stopPropagation(); return false; }, true);
Camden Jackson
I have a XAMPP webserver that I created today. I have one php file that runs perfectly and one that acts up. They are identical code files stored in the same directory but with different names.
I have attached a picture of the problem. Any help would go a long way. Thanks
This is the university webtech we're talking about, my friend who referred me said he knew absolutely nothing when he got the job. It's like a paid internship. I just want to appear like someone who could pick it up quickly.
Mason Ortiz
If you have access to the source code, grep it. For example, cd to the root directory of the project and run grep -rnw 'ID or code snippet' '.'
Elijah Green
Pretty sure abstract classes can contain implementation details as opposed to interfaces. IIRC, you can implement multiple interfaces but you can only extend one class since there's no multiple inheritance in PHP, unless you count traits.
Charles Diaz
What if you rename home.php to something else, would it still work ?
Alexander Lopez
I renamed home.php to index.php just there and it still wouldn't work.
The way I got phpinfo.php to work originally was I took the old php files from the XAMMP dashboard and added my new content
Still having the same problem though
Matthew Ortiz
It looks like it doesn't interpret PHP for whatever reason. It may have something to do with the opening tag, but I'm not sure. Maybe there are hidden characters that screw it up, like a different encoding or something. Try copying the
Robert Lewis
So I wrote a front end in react, set up a MySQL thing on my laptop, have a backend that does logic with flask.
Now what? How do I actually put it on the internet? Things have changed a lot from the last time I launched a site (2005).
namecheap or google domains. hosting from digitial ocean or vultr. set up your server through SSH. get nameserver from host, give it to your domain provider.