What is the correct terminology if I am attaching something as a property to a class in JS?
So say I have the class 'Model' and I want to attach 'foo' to it like Model.foo. Would you say foo is stored "as a property within the Model class' prototype chain"?
Benjamin Diaz
How to send clientside JavaScript data to serverside NodeJS?
I'm a web developer and I have mostly worked with digital agencies. I am not a project manager or a designer, however. What are some resources/must-knows when it comes to developing my own personal project? I can turn a PSD into a website no problem but I want to know how to plan and map out the project instead of jumping straight in and coding something that is destined to fail.
In short, I want to be a little bit more than a keyboard slapping code monkey. What resources will help me attain this level? What needs to be considered when planning?
Yes but I'm asking does "stored as a property within the Model class' prototype chain" make sense
Noah Hughes
what laptop does /wdg/ use?
just got a job and most people use an XPS or macbook
William Richardson
I downloaded that books and it was a pile of garbage. They try to make it so easy and hold your hand so much it's actually just cumbersome to read through.
Anthony Jackson
Because those people actually have jobs so they can afford a good laptop
I bet everyone on Jow Forums uses a 6 year old used thinkpad modded with a bigger battery (which lasts 4 hours) because it's cheap
Nathan Watson
i use a thinkpad myself as well but i wanna get something a bit smaller/lighter and easy to carry around
xps is crazy expensive for me though may aswell just get a desktop at that point
Elijah Walker
> a 6 year old used thinkpad I asked one of the lead programmers how does he cope up with the feeling that his Macbook soon will be obsolete due to a soldered RAM. His response was "LOL, is it? It's upgradeable in mine".
Carson Bennett
Depends on your implementation. I mean you can have a Model.foo without foo being apart of the prototype chain so maybe its not quite explicitly accurate.
class Model { constructor() { this.foo = this.foo.bind(this); }
foo() { return 'value'; } }
const model = new Model
in this case, it is apart of the prototype chain and model.foo() will return "value"
class Model { constructor() { this.foo = "value"; } }
In this case, it is not apart of the prototype chain and model.foo will return "value"
In both cases, I would call foo a property of Model, but only the first is apart of the prototype chain. Or so I understand
Adam Martinez
for more info, The second example is called an instance property, rather than a prototype property.
I am a back end dev but need to learn how to make a front end. How hard would it be to replicate something like this? pro.coinbase.com/trade/BTC-USD
Asher Collins
Depends on how original you want it to look and how much control you want to have over it.
You could likely find a module that handles the chart. npmjs.com/package/candlestick-volume-chart is something I quickly found, no idea how good it is though. If you are scared of css/scss, You can also use a framework like bootstrap or materialize to handle your styling. The only problem with using bootstrap without custom CSS is that your website will look like bootstrap.
Either way, it will still be a decent amount of work.
Noah Russell
For the layout I have looked into using css grids , but I already have the graphs sorted , its just html and css I dont really know that well and when I try I have trouble getting stuff to fit how I want it to.
Owen Harris
Guys here is a retarded question: Am trying to make my first website for giggles and am trying to use icons from Ionicons. It says that in order to make a icon bigger I just need to apply ion-icon { font-size: 200%; } The problem is that this makes every icon big. How do I call just certain icons with big in their names for example? just using .big-ass-icon { font-size: 200%; } doesnt work. PS: Am retarded.
Joshua Cook
yeah, styling is usually a bit of a battle. If you are unfamiliar/not confident with CSS' flexbox property, I'd say a grid system is the way to go. Although given the time, flexbox is really quite a handy property
Mason Cook
I've never used Ionic but it looks like it is just using custom HTML elements Try applying the class name to the element and see if that works
That should make only that icon have the class "big-ass-icon." If that works, simply add the class to any icon you want. This is, of course, assuming that Ionic is as simple as I think it is
Hunter Smith
Any good youtube videos on this stuff?
Joseph Morales
Not off the top of my head, I'm afraid mate, I learnt how to properly use flexbox from a colleague of mine at work. I've always found CSS tricks to be helpful so maybe their section on flexbox could be of some use
If its the framework grid systems you're going with, then the best I can say is the documentation of that framework.
Sorry I couldn't be of some more help
Luke Powell
are are you retarded, user
you sure fucking seem to be
Levi Nelson
just use a ready framework, like bootstrap 4 (you get mobile ready views too) It's all css and html, easy as fuck to work with
there's also "foundation" and others, but I've only really ever used bootstrap, and completely custom solutions, so.
Angel Roberts
I warned you, doug. I warned you about the retardation.
I should have said that I tried adding a class that way but no icon appears when I do that.
Xavier Nelson
Same. I read through some pdfs to check out which book to buy. And that book looked horrible.
Leo Turner
Sorry, Ionic is using angular so you may need to use ngClass instead of class
Lincoln Nguyen
>tfw have some great domains, but too worried about the stability and future pricing of new tlds to use them For a portfolio site. What do you guys think of a domain and email like?
should a long calculation(alpha beta pruning) be done async or in a web worker?
Liam Young
>what the fuck even is it
Not usually my first pick aye. My first exposure to it was fixing a god awful bloatfest of a web app. A fucking disgusting experience which has since left me with a bad taste for it. Not that the web app was angulars fault or anything, but it was certainly hard to appreciate it after that
Xavier Jenkins
>What needs to be considered when planning?
Start building something large all by yourself, you'll run into planning issues soon enough. Learn from that.
Nolan James
the.two
Elijah Reed
Are the javascript challenges on freecodecamp worth it? They are having me do random obscure shit that i will never probably have to do ever.
Also i cant figure them out- they are hard as fuck. I feel like im better off just learning react then try to figure these challenges out.
Chase Diaz
Get to work instead of expecting to be spoonfed with an easy solution.
Ayden Hernandez
Okay thanks for everything lads. I worked around it by putting the icons I needed to customize in a div that I applied the customizations on directly.
Jackson Sanders
I used to fuck with codewars. No you will likely never encounter these problems with 95% of work out there but these problems force you to look at your languages docs to determine the quickest and most efficient way to solve them. Its the shit you pick up from doing that which will make you a better coder.
desu, it was looking at other peoples solutions that made me go >oooooohhhhh thats such good way of doing it
Andrew Russell
WORDPRESS QUESTION ON DEV/PROD ENVIRONMENT
Doing some Wordpress developing. What's the superior approach to deal with development/production environments???
Right now I got a Bitnami Wordpress stack installed on my computer and a live site running.
I migrate between them using "All-In-One WP Migration"
This tool exports and imports, and can only handle ~500 MB (they want to get paid for more).
It's not ideal. What's the best way to deal with development/production in Wordpress?
Asher Turner
the superior approach is to not use wordpress
Nathan Fisher
I want to display a some code in my website.
I'm using code tags and whitespace: pre in my CSS.
The problem is, if I follow regular indentation of elements in the HTML file, every white space is taken into consideration, resulting in a huge blank space in the left side of the block container.
The easy, but not so clean way of solving this is giving the actual code no indentation at all, but that looks plain ugly and breaks the HTML structure, just visually but stills.
I would have to do something like this:
.container { display: flex; /* or inline-flex */ }
Is there any other way around fixing this?
Jonathan Perry
what's a good alternative to particles.js
Nolan Stewart
Why do you need an alternative?
Blake Johnson
Just looking for something similar (gay animation to put on homepage) but wondering if there's other things like it, I know there was something like blobs that bounced around but I can't find it
Levi Fisher
If only the thinkpads used were just 6 year olds. Rather most of them are decade+ old at this point, prior to Lenovo buying the brand.
Camden Perez
jamstack is the future old man get used to it
John Campbell
Bump. I know some people w/ WP experience lurk here.
Grayson Morris
>going back to CSS after months and getting shit done
Feels good. These threads were so helpful for me to get started last summer, but I was so fucking short in free time. Now I can easily pull 3-4 hours every day at least, and I've made of this my main life goal right now.
The pure hatred I feel for my current job helps as well.
You could just use python. >I wanna work in server side enterprise Web dev Then you're probably going to only really find jobs using Java or C#. Alternatively, php for the wordpress 'enterprise' world.
Dylan Price
Thanks. I've been looking into Java desu, will maybe pick up a book or two. Any recs?
Hunter Long
Asynchronous fetch requests to an express server.
Gavin Thomas
Lads, I just got a react front end to display information from an arbitrarily sized CSV file. It's a glorious feel. When it displayed correctly for the first time, it felt like I got a rare drop in OSRS
I'm trying to register an app using oauth2 and it's asking for a redirect uri. I've googled it, but I'm still not sure what it does or what I'm supposed to put as the redirect uri.
This is for work and I don't want to mess with the app too much, but for the task I was given I just need the client id/secret to get access to the analytics.
Evan Hughes
BTW in monday i will have phone interview: node.js/React developer. Could you guys give me some hints? I read React and js docs right now, should i read something about HTML/CSS? This offer is not even junior i think, i just posted unfinished node.js app to github and maybe he thought i am qualified. I am pretty stressed guys
Kevin King
lol youll get shrekt
Nathan Ortiz
Hey so I'm new to mac and have a question.
I tied my rsa key to my work bitbucket to use git and clone the repo, but how do I do it again with my personal bitbucket?
It reminds me of guy who studied 2 months of php and failed at mysql in interview.
Christian Edwards
Call them to cancel the interview so you don't waste their time
Henry Moore
None of that is macOS exclusive. It will work exactly the same way no matter the git remote service or OS, even Windows these days.
Matthew Davis
You should add w3school link into the next thread. The site is good and you can also do quiz's
Dylan Nguyen
int a=0 [\code]
Charles Diaz
Anyone got any good pdfs for HTML/CSS/Javascript?
Aiden Phillips
Is it worth learning JQuery
David Hill
Serverless is the future sweeties, get with it.
Lucas Phillips
Yeah. It's still widely used
Jose Bailey
Worth learning? Sure, a lot of sites/people still use it and a lot of code snippets use jquery so being able to at least understand what's going on is useful, plus putting it on your CV is good.
But actually using it is a bit iffy, learning react/vue/angular is going to be much better in every way, especially since vanilla JS can do most of it now anyway
Issue tracking and a ui design tool. You might also want a way to track requirements and features, and documentation and design principles.
Eli Gonzalez
You put your website (localhosst in dev, www.website.com in production)
Brody Scott
fak
Adrian Bennett
should i kill myself? i think i will try anyway, i will try to bullshit my way into next phase by throwing some buzzwords like 'jquery' or 'dom api'
Blake Rodriguez
My original idea was to have one central import.js file which handles all the imports of every class file in JavaScript, but now I'm getting "x is not defined" errors flying at me. Have I made a terrible mistake and is there a better way to handle having to import a million files in each file?
Caleb Reyes
Full stack is fucking bullshit
Nah, just realize that you were underqualified and some recruiting monkey decided you were a useful tool in making it look like he's doing his job. Say thanks, and see if he'll add you on linked in and maybe you can get use out of him in the future.
Samuel Gutierrez
kek how the fuck does anyone fail at mysql
Logan Hill
>should i kill myself? Bro wtf you just applied to a position far above your capabilities take it easy
Ryan Evans
How long did you first personal project take /wdg/ (something that has a backend)? How long would it take you to write now?
Jason Thomas
like a week same thing would probably not even take half an hour
Ayden Murphy
Why? Shits obsolete now. I can't see myself ever using it again on a new project
Aaron Martinez
Email them and say you are worried you aren't at the level they are looking for and if that is OK then you would like to apply anyway.
My first job hired people that didnt even know the right language. They didn't give a shit. Current job hires people that are novice too since they can learn most of the language in 3 months on the job if they ask questions and get help when they need it.
Guys, what the fuck is wrong with Jow Forums? I can't seem to be able to make any posts without disabling javascript? What the hell is going on, and why am I the only one to notice?
Cuz integration with other modules and plugins and script duuhh. If you're doing babbys first app or plan on never having a job fine don't learn it. If ur gonna be employed you need to know it. And it's not even remotely difficult to learn. Like a weekend tops. Just learn it. Webdev interviews always ask about it too.
Isaiah James
angular is supposed to be declarative why u messing about with element fiddling
Colton Bailey
It really should not matter why. The real question is why is angular throwing errors?
And before you blame jQuery, angular is SUPPOSED to be compatible with jQuery.
To the degree that JQLite is only implemented if jQuery isn't already loaded.
If you really must know why i'm fiddling with elements, its because I was experimenting with an angularized apache index.
README.shtml & HEADER.shtml will have some markup and script. Because the index is being generated by `mod_autoindex` I don't have access to the index data except by iterating over the DOM. I can still implement angular directives before/after the HTML table. But to get my shit alongside the table, I need to insert it.
But my use case really shouldn't matter. The problem is the library, not my code. As demonstrated in that slim example.
There's no reason angular should be throwing those errors.
Jaxson Rogers
Holyshit you're that special kind of retard in the team who stamps his feet and says IM RIGHT YOURE WRONG and doesn't last probation period aren't you