Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Aug 17 09:32
    User @bjorno43 unbanned @linkin-park
  • Jun 20 21:19
    @bjorno43 banned @shenerd140
  • Apr 25 17:13
    @mstellaluna banned @cmal
  • Jan 08 22:05
    @mstellaluna banned @dertiuss323
  • Nov 07 2018 04:42
    User @texas2010 unbanned @ows-ali
  • Nov 02 2018 16:25
    @texas2010 banned @ows-ali
  • Oct 12 2018 05:50
    @bjorno43 banned @NACH74
  • Oct 05 2018 23:02
    @mstellaluna banned @JomoPipi
  • Sep 16 2018 12:21
    @bjorno43 banned @yash-kedia
  • Sep 16 2018 12:16
    @bjorno43 banned @vnikifirov
  • Sep 05 2018 08:12
    User @bjorno43 unbanned @androuino
  • Sep 05 2018 07:38
    @bjorno43 banned @androuino
  • Aug 23 2018 16:57
    User @bjorno43 unbanned @rahuldkjain
  • Aug 23 2018 16:23
    @bjorno43 banned @rahuldkjain
  • Jul 29 2018 14:13
    User @bjorno43 unbanned @jkyereh
  • Jul 29 2018 01:00
    @bjorno43 banned @jkyereh
  • Jul 10 2018 22:09
    @bjorno43 banned @manafn
  • Jul 06 2018 15:20
    @texas2010 banned @imlegend19
  • Jul 03 2018 12:28
    @bjorno43 banned @vbvmatta
  • Jun 29 2018 13:54
    @bjorno43 banned @OGTechnoBoy
Anthony Drane
@Antiaccess
yes, apologies for being relatively new. It's my portfolio (dw not for developing)
I've done the front-end course, but that was maybe 6months-a year ago
VaseJS
@VaseJS
i recommend learning the power of css3 before using any framework. with flex box and css grid, css can do most things easily without the overhead and control of a framework. i recommend mozilla tutorials on css and html. they cover everything. then you won’t have bugs like this that is caused by or likely caused by your framework
also, if you want to step your css game up, look up harry roberts (always search his name with ‘css’ or you’l get the bank robber)
Anthony Drane
@Antiaccess
haha! In the future for sure. At the moment I just need to have this working so I can apply for jobs. But yeah one day I'll get ramp my skills up
thanks @VaseJS
CamperBot
@camperbot
antiaccess sends brownie points to @vasejs :sparkles: :thumbsup: :sparkles:
:cookie: 451 | @vasejs |http://www.freecodecamp.org/vasejs
Anthony Drane
@Antiaccess
cheers @Masd925
VaseJS
@VaseJS
the next problem (the same reason i recommend vanilla css first) is we’d have to understand the framework to really hunt down the bug in your css. because we have to know what all the classes do to know how they effect each other
Anthony Drane
@Antiaccess
well tbh if there's a simple way to do an image carousel without the framework I can just get rid of it and start again rather than investigating
VaseJS
@VaseJS
jobs are easy. and during an interview you are most likely to get asked about more fundemental understanding of css / html.
yes there is
Anthony Drane
@Antiaccess
well I agree, but I'm not going for developer roles... it's more of a support skill for me
VaseJS
@VaseJS
but that depends on your skill level. but just search vanilla css carousel and you’ll get a bunch of results. but understand the negative UX side of having a carousel on your site. an image gallery would be a better experience for users. but thats another topic :P
Anthony Drane
@Antiaccess
bahaha
double blow - UX is the area
:P
I felt it was appropriate here as it's a screen flow that users can move from one set of screens to the next in a sequence
a quick guide without going into super detail on each
Anthony Drane
@Antiaccess
like [] -> [] -> [] -> / break in carousel / [] -> [] -> [] -> / break in carousel / etc.
VaseJS
@VaseJS
its late here so i’m headed off to bed. i am interested in how everything turns. post on codepen or something we can see and interact with as its easier to help you.
until next time.
Anthony Drane
@Antiaccess
cheers mate
Bjorn van de Peut
@bjorno43

but that depends on your skill level. but just search vanilla css carousel and you’ll get a bunch of results. but understand the negative UX side of having a carousel on your site. an image gallery would be a better experience for users. but thats another topic :P

The amount of but's in there..

Markus Kiili
@Masd925
@bjorno43 There is no but in an empty statement. A new Chinese proverb.
Bjorn van de Peut
@bjorno43
lol
Amal Shukla
@amal1994
Guys, need help
what's the best way to contain common html and render it
for e.g if we are using Tabs
and there is common static content that needs to be shown on both tabs
suggestions needed - how to do it in anguar4+.
I'm not thinking of creating a component for it since it's just static data
Muhammed Hafiz
@zifahm
how do i do this?
React: Use a Ternary Expression for Conditional Rendering
https://beta.freecodecamp.org/en/challenges/react/use-a-ternary-expression-for-conditional-rendering
ternary expression that implements the following logic: when the page first loads, render the submit button, buttonOne, to the page. Then, when a user enters their age and clicks the button, render a different button based on the age. If a user enters a number less than 18, render buttonThree. If a user enters a number greater than or equal to 18, render buttonTwo.
{        (document.readyState=="loading") ? buttonOne:
          (this.state.userAge>18)?buttonThree:buttonTwo
           }
zipquote
@zipquote
var button; if (document.readyState=="loading") { button = buttonOne; } else if(this.state.userAge>18) { button = buttonThree; } else { button = buttonTwo; }
Why ternary? It's confusing as hell. Save output in some variable. Then in render {variable}
Markus Kiili
@Masd925
@zipquote Ternaries tend to make code harder to read and understand. You are correct in that.
Muhammed Hafiz
@zifahm
@Masd925 @zipquote the challenge is use terenery expression ... i can not use if /else statement
zipquote
@zipquote
My bad.
Try (document.readyState=="loading") ? buttonOne : ((this.state.userAge>18) ? buttonThree : buttonTwo )
Muhammed Hafiz
@zifahm
nope doesn't render
zipquote
@zipquote
What's the error?
Javier Pons
@JavierPons
I want to check if inside a (array of numbers) there is any number repeated. Some comments to this code.

```
function firstDuplicate(a) {
let repite = [];
for (let i = 1; i<a.lenght; a++) {

if (a[i] === a[i]) {
   return  repite.push(i)   
    }
}

}

Marianissimus
@Marianissimus
a[i] === a[i] always should return true, as you compare one item to itself :) @JavierPons
Javier Pons
@JavierPons
:+1:
Muhammed Hafiz
@zifahm
@zipquote error is in unexpected token near buttonOne
zipquote
@zipquote
There will be some line number and token also mentioned I think then
Javier Pons
@JavierPons
@Marianissimus does this expression have sense. a[I] == a[I+1]?
Marianissimus
@Marianissimus
yup @JavierPons
Javier Pons
@JavierPons
@Marianissimus :+1:
Marianissimus
@Marianissimus
however, it's far from perfect... @JavierPons
Javier Pons
@JavierPons
function firstDuplicate(a) {
let repite = [];
for (let i = 1; i<a.lenght; i++) {

    if (a[i] === a[i+1]) {
        repite.push(i)   
        } else {
            return -1;
        }
    }

    for (let j = 1; j.repite.lenght; j++)
}
I found out some mistakes
Marianissimus
@Marianissimus
length
push a[i], not i