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
Lia-Sue-Kim
@Lia-Sue-Kim
Fair enough
Brad
@bradtaniguchi
I don't know of any personally
but even if it was free, youd need to setup some automatic tests
Lia-Sue-Kim
@Lia-Sue-Kim
others need to earn something for a living
can you tell me more about automatic test?
Like usually you have to test it manually ?
Brad
@bradtaniguchi
Basically you write code to test your code, to verify it works as expected. You could test it manually, but every time you change something you have to manually test it again. Write 1 test and it will test your code forever, great for catching regression
Depending on what your testing, you setup different tests, it sounds like you need UI testing, so stuff like screenshot tests (I think) are what you would want, but I've never used those.
Lia-Sue-Kim
@Lia-Sue-Kim
is it some kind of algorithm?
AJ Brommy
@AJ-Brommy
might be worth asking around in linux communities, they are well tuned with open source stuff
Brad
@bradtaniguchi
what is?
Lia-Sue-Kim
@Lia-Sue-Kim
@AJ-Brommy Linux communities where?
@bradtaniguchi you said that you have to write code to test code right
where to do that
Brad
@bradtaniguchi
Yea you write the test code, that tests you code (lol). Usually its done via some test runner, like Karma
Karma then takes your code, the test code, and runs the tests, like "expect this function returns true when given these arguments"
So its definitely a technology, not an algorithm
Lia-Sue-Kim
@Lia-Sue-Kim
what about UL test
I think I need orginized design
like everything should work fine without programming
pure html and css
User interface design**
Brad
@bradtaniguchi
Yea it sounds like you want to test CSS, idk how that would work, but I'm sure it would follow a similar concept
AJ Brommy
@AJ-Brommy
Lia-Sue-Kim
@Lia-Sue-Kim
@AJ-Brommy i got this
message
The server at nevci.com sent a HTTP redirect. Your web address has been updated. Please try again.
@bradtaniguchi ok thank you Brad
Hussein Zaki
@Hussein90

hi to all
@all
i have this json data

{
  "posts": [{
      "title": "CopyRight Automatico",
      "tags": "[JS]",
      "id": 1,
      "userId": 1,
      "name": "Shopping",
      "dueDate": null,
      "priority": "high",
      "categoryId": 1
    },

  ],

  "categories": [{
      "id": 1,
      "name": "Personal"
    },
    {
      "id": 2,
      "name": "Work"
    }
  ]
  ,
  "subtasks": [
    {
      "id": 1,
      "postId": 1,
      "item": "Milk",
      "done": true,
      "optional": false
    }
  ]
}

look at the posts array you will find categoryId": 1' and at categories you will findid:1` i want when i call post.categoryId i get word personal not number 1 @all any help

Brad
@bradtaniguchi
@Hussein90 I see the data, but dont understand what your trying todo.
Hussein Zaki
@Hussein90
okay
look at a posts array
@bradtaniguchi
inside it there is property called categoryId
i want when it called not getting me back number 1 but name personal
@bradtaniguchi
Brad
@bradtaniguchi
@Hussein90 Why not use the id to get the name?
Hussein Zaki
@Hussein90
that my question , because they have the same categoryId right @bradtaniguchi
Brad
@bradtaniguchi
Yea, do you know how to get the corresponding category?
Hussein Zaki
@Hussein90
no
that my question
@bradtaniguchi
Brad
@bradtaniguchi
You'd want to loop over the items in the categories array and when the id matches the one you want, return that object
Hussein Zaki
@Hussein90
can you show me
@bradtaniguchi
please :)
Brad
@bradtaniguchi
Id rather not give you the answer up front, you should look up the answer and learn it yourself
Hussein Zaki
@Hussein90
okay
Brad
@bradtaniguchi
Id suggest going thru some javascript courses, either on FCC itself, or on another place like following MDN docs.