Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:33
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • May 10 09:13
    @bjorno43 banned @zhaokunhaoa
  • Apr 27 19:46
    @mstellaluna banned @zhonghuacx
  • Apr 25 17:12
    @mstellaluna banned @cmal
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:11
    thecodingaviator labeled #31179
  • Apr 01 18:09
    thecodingaviator commented #31179
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:09
    thecodingaviator labeled #31182
  • Apr 01 18:07
    thecodingaviator commented #31182
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator labeled #31190
  • Apr 01 18:07
    thecodingaviator commented #31190
  • Apr 01 18:05
    thecodingaviator commented #31157
  • Apr 01 18:04

    thecodingaviator on master

    remove A (#31157) (compare)

  • Apr 01 18:04
    thecodingaviator closed #31157
  • Apr 01 18:04
    thecodingaviator closed #33788
  • Apr 01 18:04
    thecodingaviator commented #33788
  • Apr 01 18:02
    thecodingaviator closed #31059
alpox
@alpox
@JakeDVirus You have to rethink in terms of modules. Every file is its own module and is encapsulated. If you simply import 'xyz' you run the code of the module but you do NOT import name bindings. You can only import name bindings which are explicitely exported by the module you import. Those exports you can import by name or all of the exports with import * from '...'.
If you are in need of getting stuff available from a third party module which does not expose anything by defining exports - like globals - you have to tell those to webpack specifically in the config as shims
If you only need to load one file which defines globals and then run another script you dont need webpack, you just define the script before your main script in the html.
Banane
@nadirzebiri2_gitlab
Yo
siliconchild
@siliconchild
import React from 'react';
import {connect} from 'react-redux';
import SubCategoryPreviewLoader from '../subcategory-preview/subcategory-preview.loader.jsx';
import {selectSubCategoriesArray} from '../../redux/shop/shop-selector.js';
import {CollectionsOverviewContainer} from './subcategories-overview.styles.jsx';


const SubCategoriesOverview = ({subCategoriesList}) => {

    return(
        <CollectionsOverviewContainer>
            {subCategoriesList.map(subCategory=> (
                <SubCategoryPreviewLoader subCategory={subCategory} key={subCategory.id} />
            ))}
        </CollectionsOverviewContainer>
    )
}

const mapStateToProps = (state,ownProps) => ({
    subCategoriesList: selectSubCategoriesArray(ownProps.match.params.parentCategoryID)(state)
})

export default connect(mapStateToProps)(SubCategoriesOverview)
Could someone tell me what's the simplest approach to turn this into an infinite scroll, I have a list using which the SubCategoryPreviewLoader fetches information and displays a preview of the subcategory. Instead of looping through the whole list i would like to render the SubCategoryPreviewLoader progressively as you scroll. Since i am not fetching any data from this component and data fetching happens in the child ( SubCategoryPreviewLoader) component, Could someone tell me what's the proper way of handling this
Kode Bae
@kodebae
https://codepen.io/karmen-kristina-durbin/pen/QWWQZox?editors=1100 Can someone please give me advice on how I can improve my styling and css of my beginners projects?
David Sabalete
@dsabalete
@kodebae you could use bootstrap to style it
Banane
@nadirzebiri2_gitlab
Guys i want to create a reward website with points but how
I have no experience and I want to create a website similiar to flame.gg
Who can help me
Brad
@bradtaniguchi
@nadirzebiri2_gitlab Maybe explaining what a "reward website" is, for those not familiar with flame.gg
Banane
@nadirzebiri2_gitlab
A reward website is a website where we can earn money by watching videos complete survey and offers
like prizerebel
i want to make a reward website who can help me please
Brad
@bradtaniguchi
@nadirzebiri2_gitlab To build those websites you'd probably need to determine how to monitize those items, like surveys, and offers. Content would be a big issue
BuntyBru
@BuntyBru
How do i get this type of slant div
image.png
Brad
@bradtaniguchi
@BuntyBru Inspect the element and just look at how they did it
Banane
@nadirzebiri2_gitlab
@bradtaniguchi i know
But with tutorials do you think I will succeed to create the website? (I have no experience)
And what is less complicated: to make a login with google buttom or a basic sign up form
Brad
@bradtaniguchi
@nadirzebiri2_gitlab Anyone can succeed, but you need experience to build what you want. No tutorial gives you 100% of what you need for all cases
Banane
@nadirzebiri2_gitlab
Ok
But i have no experience
Brad
@bradtaniguchi

And what is less complicated: to make a login with google buttom or a basic sign up form

Depends on what you need

@nadirzebiri2_gitlab Then you need to go learn what you need to learn. Going from 0 to "hero" only is possible if you even know what a "hero" is.
Banane
@nadirzebiri2_gitlab
will it be complicated to make a points system?
Brad
@bradtaniguchi
I think your asking the wrong questions. Complicated is relative. Complicated for someone who knows what they are doing, probably not, complicated for someone with no clue, probably
Banane
@nadirzebiri2_gitlab
@bradtaniguchi can I see the websites you coded
Brad
@bradtaniguchi
I don't code websites, I build web apps
Banane
@nadirzebiri2_gitlab
So what you did
Brad
@bradtaniguchi
I have a bunch of older public stuff on my github, most is either half done or done for school, my current project is private
Banane
@nadirzebiri2_gitlab
Ok
Brad
@bradtaniguchi
I do lots of Angular, been trying to abuse the tooling to build full stack apps using the exact same tooling
Banane
@nadirzebiri2_gitlab
Cool
Kaz Baig
@kbaig
@bradtaniguchi have you tried NestJS yet?
idris
@idris12
hello everyone
idris
@idris12
why doesn't this give me every single element in the array?
function palindrome(str) {
let result = str.split('').every((val) => {
            console.log(val)
})
}

palindrome('abba')
Dale V Ross
@dalevross
@idris12 I think the every function returns false after the first element because the result of the function is undefined. return true after console.log. I'm not sure what you're trying to do exactly though, but that's why it's failing.
Brad
@bradtaniguchi
@kbaig Yes I use nestjs for my own personal projects, I even have one running an internal app in production at work
Kaz Baig
@kbaig
@bradtaniguchi nice
It seems architecturally similar to angular
not its own architecture I mean
The architecture of a Nest app looks similar to that of an Angular app
Brad
@bradtaniguchi
It definitely is, but then Angular's own architecture isn't new, just a combination of existing patterns. With DI, and modules being the core
all the "Angular" specific stuff is thrown out since they don't apply, just the architecture is there.
@kbaig
Honestly the modules in nestjs are kinda meh, unlike Angular there isn't a practical point to modules besides some context here and there, and maybe some sharing of "groups" of stuff. The DI system is super useful though.