These are chat archives for FreeCodeCamp/Help

7th
Oct 2017
Liam Docherty
@ldocherty1
Oct 07 2017 00:10
Hi does anyone have experience with using JAVA here?
Stephen James
@sjames1958gm
Oct 07 2017 00:14
@ldocherty1 SOme
Liam Docherty
@ldocherty1
Oct 07 2017 00:19
@sjames1958gm Can I message you if you don't mind?
Ismail Hozain
@ismailhozain
Oct 07 2017 00:20
@ismailhozain
hey guys im having issues turning my images into links for the twitch thing.It is giving me a hard time, each time I click on the linked image it turns my screen in the pen white is there anything else that i can do? https://codepen.io/ismailhozain/pen/zdgQEb?editors=1000
it like opens the page but does not load it
i copied the link of the page into another tab and it worked but not the one opened by my pen
MAOKG
@MAOKG
Oct 07 2017 00:31
@/all Just finished my full stack voting app, https://voting-app-react.herokuapp.com I used React + Redux + Express + MongoDB to build this project with server side rendering. Any feedback will be very appreciated!
reachmua
@reachmua
Oct 07 2017 02:57

Hello Folks,
I have a bit of code on the Image Abstraction API Project. And for some reason I cannot seem to get the objects expected in the Basejump.
I get an error message: "TypeError: Cannot read property 'webSearchUrl' of undefined" And that applies to the other objects as well.
Would appreciate any feedback, been stuck on it for longer than I am willing to reveal.

// Base Node requirements

var bodyParser = require('body-parser');
var cors = require('cors');
var express = require('express');
var app = express();
var mongoose = require('mongoose');
var searchString = require('./node_modules/searchString');

// Bing API requirement
var Bing = require('node-bing-api')({ accKey: 'API-key' });

app.use(bodyParser.json());
app.use(cors());

mongoose.connect('mongodb://localhost/searchStrings');

//app.use('/static', express.static('public'));

// Search terms in the DB.
app.get('/api/searchHistory', (req, res, next) => {
    searchString.find({}, (error, data) => {
      res.json(data); 
    });
});

//Items in the DB per exercise.
app.get('/api/imagesearch/:searchString', (req, res, next) => {

    // Constructors
    var searchString = req.params;
    var skip = req.query;

    var data = new searchString({
        searchString,//: query,
        searchDate: new Date()
    });

    // Get items in the DB.
    data.save (err => {
        if (err) {
            res.send('Error saving to DB.');
         }
         // else {
        //     return res.send('Saved to DB.');
        // }
        res.json(data);
     });


    // Bing API
    Bing.images(searchString, {
        top: 5, // Pagination limit of 5 results (count).
        skip: 2 // Skip first 2 results (offset)
        },
        function(error, response, body){
            var searchData = [];
            var webSearchUrl;
            for (var i=0; i<5; i++){
                searchData.push({
                    url: body.value[i].webSearchUrl,
                });

            }
            res.json(searchData);

         });
 });

app.listen(process.env.PORT || 3000, ()=>{
  console.log('Server runnin');
});

This is all that the json spits out

{
  "__v": 0,
  "updatedAt": "2017-10-05T03:46:06.442Z",
  "createdAt": "2017-10-05T03:46:06.442Z",
  "searchString": "function model(doc, fields, skipId) {\n      if (!(this instanceof model)) {\n        return new model(doc, fields, skipId);\n      }\n      Model.call(this, doc, fields, skipId);\n    }",
  "searchDate": "2017-10-05T03:46:06.437Z",
  "_id": "59d5aafe1e31bf156242744b"
}
Dylan
@dhcodes
Oct 07 2017 03:08
@reachmua console.log body in your function to make sure it's working right
essentially your error is saying body.value[i] is undefined
heroiczero
@heroiczero
Oct 07 2017 04:00
@piteto @GitHub-Henry @daddycardona @khaduch @DarrenfJ @longnt80 A New Day :) TY for Keeping Help Alive :) @sjames1958gm :wave:
CamperBot
@camperbot
Oct 07 2017 04:00
heroiczero sends brownie points to @piteto and @github-henry and @daddycardona and @khaduch and @darrenfj and @longnt80 and @sjames1958gm :sparkles: :thumbsup: :sparkles:
:cookie: 214 | @piteto |http://www.freecodecamp.com/piteto
:cookie: 376 | @github-henry |http://www.freecodecamp.com/github-henry
:cookie: 373 | @daddycardona |http://www.freecodecamp.com/daddycardona
:star2: 3347 | @khaduch |http://www.freecodecamp.com/khaduch
:cookie: 592 | @longnt80 |http://www.freecodecamp.com/longnt80
:star2: 2098 | @darrenfj |http://www.freecodecamp.com/darrenfj
:star2: 8522 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
Henry
@GitHub-Henry
Oct 07 2017 04:01
@heroiczero thanks for the brownies
CamperBot
@camperbot
Oct 07 2017 04:01
github-henry sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1835 | @heroiczero |http://www.freecodecamp.com/heroiczero
Long Nguyen
@longnt80
Oct 07 2017 04:06
@heroiczero ty
CamperBot
@camperbot
Oct 07 2017 04:06
longnt80 sends brownie points to @heroiczero :sparkles: :thumbsup: :sparkles:
:star2: 1836 | @heroiczero |http://www.freecodecamp.com/heroiczero
CamperBot
@camperbot
Oct 07 2017 04:32
reachmua sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
:star2: 1835 | @dhcodes |http://www.freecodecamp.com/dhcodes
reachmua
@reachmua
Oct 07 2017 04:49
@dhcodes thank you for the response! Yes, that is the error I am getting, even with "console.log(body)" in the function it returns the same error message.
CamperBot
@camperbot
Oct 07 2017 04:49
reachmua sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
api offline
aRtoo
@artoodeeto
Oct 07 2017 05:23
guys master need help. started my calculator app project on fcc. i need help on the design.
i have spaces between the buttons. any idea how to fix this? heres the pen.
https://codepen.io/artoo/pen/gGvvER
piteto
@piteto
Oct 07 2017 05:30
@artoodeeto remove the padding from .key-pad and .key-pad-last classes, and set font-size: 0
for your buttons, set width: 25% and remove the margin-left property
aRtoo
@artoodeeto
Oct 07 2017 05:32
@piteto did not work bro
piteto
@piteto
Oct 07 2017 05:32
Save and I'll refresh your pen @artoodeeto
aRtoo
@artoodeeto
Oct 07 2017 05:33
saved my pen
@piteto
piteto
@piteto
Oct 07 2017 05:34
@artoodeeto font-size: 0 for your .key-pad and .key-pad-last properties, not for the button
and remove the margin-left property from your button
The reason for font-size: 0, and some other options: https://css-tricks.com/fighting-the-space-between-inline-block-elements/
aRtoo
@artoodeeto
Oct 07 2017 05:36
@piteto bro it worked. thanks so much
CamperBot
@camperbot
Oct 07 2017 05:36
artoodeeto sends brownie points to @piteto :sparkles: :thumbsup: :sparkles:
:cookie: 216 | @piteto |http://www.freecodecamp.com/piteto
aRtoo
@artoodeeto
Oct 07 2017 05:36
@piteto you can sleep tight tonight bro
piteto
@piteto
Oct 07 2017 05:36
:joy: I was worried
aRtoo
@artoodeeto
Oct 07 2017 05:40
@piteto why bro? did i say something?
piteto
@piteto
Oct 07 2017 05:44
@artoodeeto I was worried I wouldn't get any sleep if we didn't fix your calculator buttons
When you said "you can sleep tight tonight bro" - it was a joke in response to that. Jokes are always best when they're explained, huh?
aRtoo
@artoodeeto
Oct 07 2017 05:45
@piteto lol. i was about to sleep. been figuring this out. i just thought maybe i need really help
@piteto ahhhh. hahahahaha. i thought i creep you out by saying that. lool
Supra01
@Supra01
Oct 07 2017 07:56
function mutation(arr) {
  // 1. Split and make both array values lowercase and reorder them
  var sortedArr1 = arr[0].slice().toLowerCase().split("").sort();
  var sortedArr2 = arr[1].slice().toLowerCase().split("").sort();
  console.log(sortedArr1);
  console.log(sortedArr2);
  // 2. Interate/loop through array check characters that don't match

  for (var i = 0; i < sortedArr2.length; i++) {
    console.log(sortedArr1.indexOf(sortedArr2[i]));

    return sortedArr1.indexOf(sortedArr2[i]) < 0;
  }
}

console.log(mutation(["Mary", "Aarmyz"]));
Hello! I'm working the mutation algorithm challenge and I'm getting hung up on my last return in my code. If possible I would like to know if i'm on the right track.
The last loop is tripping at the first iteration
I don't need a solution just a nudge in the right direction
cowCrazy
@cowCrazy
Oct 07 2017 08:04
@Supra01 I should look more carefully into your second step, also the return statement is met every first iteration of the loop, and I don't think that's what you want
@Supra01 oh sorry, you should look more carefully at your second step
Supra01
@Supra01
Oct 07 2017 08:19
Thank you @cowCrazy
if (sortedArr1.indexOf(sortedArr2[i]) < 0) {
      return false;
    }else {
      return true;
    }
CamperBot
@camperbot
Oct 07 2017 08:19
supra01 sends brownie points to @cowcrazy :sparkles: :thumbsup: :sparkles:
:cookie: 350 | @cowcrazy |http://www.freecodecamp.com/cowcrazy
Supra01
@Supra01
Oct 07 2017 08:20
I tried this but it's still tripping early
Is there a method I should be looking into
or is the logic I'm using just wrong
cowCrazy
@cowCrazy
Oct 07 2017 08:24
@Supra01 think of the case where you have ["aabbcd", "abc"], your test won't pass it, can you see why?
Supra01
@Supra01
Oct 07 2017 08:32
@cowCrazy "a" would would give me 0
@cowCrazy I see
Is there a method that will let me finish the iteration before returning
?
cowCrazy
@cowCrazy
Oct 07 2017 08:36
@Supra01 you would get back -1 casue it is not matching. you need a different method than you are using at the moment, something that can check the string per specific letter and not for a whole word
Aita Kane
@aita-kane
Oct 07 2017 08:45
Hello i'm new in the coding world and I want to know please what is the best and most secure langage that allows you to embed Registration system in your website ? Or if you guys know an already created system that is secure feel free to give it to me please
Supra01
@Supra01
Oct 07 2017 08:46
function mutation(arr) {
  // 1. Split and make both array values lowercase and reorder them
  var sortedArr1 = arr[0].slice().toLowerCase().split("").sort();
  var sortedArr2 = arr[1].slice().toLowerCase().split("").sort();
  console.log(sortedArr1);
  console.log(sortedArr2);
  // 2. Interate/loop through array check characters that don't match
  var result = [];
  for (var i = 0; i < sortedArr2.length; i++) {
    console.log(sortedArr1.indexOf(sortedArr2[i]));
     result.push(sortedArr1.indexOf(sortedArr2[i]));
     console.log(result);
  }
  return result.indexOf(-1) == -1;
}

console.log(mutation(["Mary", "Aarmy"]));
@cowCrazy Thank you again! I figured it out by passing the index results into an array and using indexOf again then returning true if -1 is not present in the result array.
CamperBot
@camperbot
Oct 07 2017 08:46
supra01 sends brownie points to @cowcrazy :sparkles: :thumbsup: :sparkles:
api offline
cowCrazy
@cowCrazy
Oct 07 2017 08:52
@Supra01 nice job, note in this case you don't need to split, sort, slice your strings :)
Supra01
@Supra01
Oct 07 2017 08:58
@cowCrazy Will do :smile:
Sandeep Chary
@dsandeepchary
Oct 07 2017 10:23
bot
Momozor
@momozor
Oct 07 2017 11:46
hello
Thanh Son Nguyen
@nguyen-thanhson
Oct 07 2017 12:09
Hey
Momozor
@momozor
Oct 07 2017 12:10
:wave:
Stephen James
@sjames1958gm
Oct 07 2017 12:25
Hello
Pethaf
@Pethaf
Oct 07 2017 12:27
Hello.
Georgia
@georgiawang5332
Oct 07 2017 13:06
Can you help get rid of it? I do not know which side has not been able to pass this question.
Could you please help me? (Please
you = everyone
Stephen James
@sjames1958gm
Oct 07 2017 13:12

@georgiawang5332
var LCM = array[array.length - 1];

and insted of LCM++
LCM += array[array.length - 1];

The LCM has to be a multiple of the largest number.
Also sort() without a callback wont always sort numbers correctly

Long Nguyen
@longnt80
Oct 07 2017 13:27
https://longnt80.github.io/punk-beer/
How can I made the Details button change the component from Product Listing to Detail?
I'm reading the React Router docs but can't figure it out yet
Momozor
@momozor
Oct 07 2017 13:30
Other than Heroku and AWS, where else to host your Python website for free?
Georgia
@georgiawang5332
Oct 07 2017 13:34
I find the question Thanksgiving @sjames1958gm
Stephen James
@sjames1958gm
Oct 07 2017 13:35
@georgiawang5332 :+1:
Georgia
@georgiawang5332
Oct 07 2017 13:35
Your site is cool @longnt80
Stephen James
@sjames1958gm
Oct 07 2017 13:40

@longnt80 You'll need to create the routes

  <Router history={hashHistory}>
    <Route path="/" onEnter={isLoggedIn}>
      <Route path="/todos" component={TodoApp} onEnter={requireLogin}/>
      <IndexRoute component={Login}/>
    </Route>
  </Router>

Then use the <Link> component to route to details

Long Nguyen
@longnt80
Oct 07 2017 13:51
@georgiawang5332 thanks
CamperBot
@camperbot
Oct 07 2017 13:51
longnt80 sends brownie points to @georgiawang5332 :sparkles: :thumbsup: :sparkles:
:cookie: 2 | @georgiawang5332 |http://www.freecodecamp.com/georgiawang5332
Long Nguyen
@longnt80
Oct 07 2017 13:53
@sjames1958gm I do have router and links in place. Let me push my code to git hub when I get back so you can take a look
Baha
@hijazi
Oct 07 2017 14:16
Hi, I submitted a code in the "Drop it" challenge, and the code seems to go in a loop, so that is causing the tab to freeze every time I open it, but the buggy thing is that the challenge in the map is marked Done.
Any body had this before?
this is a screenshot of the code:
https://ibb.co/nwmY3w
the problem I think is in slice(0) because it makes the loop endless
korzo
@korzo
Oct 07 2017 14:18
@hijazi add ?run=disabled to url
Baha
@hijazi
Oct 07 2017 14:18
great korzo, that's what I'm looking for
thanks
@korzo this worked and I could open the page, thanks
CamperBot
@camperbot
Oct 07 2017 14:20
hijazi sends brownie points to @korzo :sparkles: :thumbsup: :sparkles:
:cookie: 593 | @korzo |http://www.freecodecamp.com/korzo
korzo
@korzo
Oct 07 2017 14:21
@hijazi Glad it helped
Stephen James
@sjames1958gm
Oct 07 2017 14:22
@longnt80 ok
knight2
@knight2
Oct 07 2017 15:40
daily post.
{
    "name": "fcc-learn-npm-package-json",
    "dependencies": {
        "express": "^4.14.0"
    },
    "main": "server.js",
    "scripts": {
        "start": "node server.js"
    },
    "engines": {
        "node": "4.4.5"
    },
    "repository": {
        "type": "git",
        "url": "https://idontknow/todo.git"
    },
  "author": "Author"
}
submit link to freecodecamp challenge. challenge does not pass
FCC website says 'package.json should have a valid "author" key'
Look at code, has author key.
and the next test...
"package.json should have a valid "description" key
"
freeCodeCamp/freeCodeCamp#13095
[beta] managing packages with npm - entire section broken #13095
Open issue since february 02. ENTIRE SECTION BROKEN.
Darren
@DarrenfJ
Oct 07 2017 16:06
@knight2 oh yah there's a ticket out on that from a while back...
you can do the tests with the back-end tester and it seemed to work for me at the time
also: morning fCC
you can test your code against this; https://narrow-plane.glitch.me/
they just haven't figured out how to integrate it into the front-end ui
also: off for :coffee: and podcasts :D
code on team!
thanks to the regulars...
thanks @Manish-Giri @sjames1958gm @longnt80 @faraco @GitHub-Henry @dhcodes @daddycardona
CamperBot
@camperbot
Oct 07 2017 16:11
darrenfj sends brownie points to @manish-giri and @sjames1958gm and @longnt80 and @faraco and @github-henry and @dhcodes and @daddycardona :sparkles: :thumbsup: :sparkles:
:cookie: 593 | @longnt80 |http://www.freecodecamp.com/longnt80
:cookie: 382 | @faraco |http://www.freecodecamp.com/faraco
:cookie: 377 | @github-henry |http://www.freecodecamp.com/github-henry
:star2: 8524 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
:star2: 6630 | @manish-giri |http://www.freecodecamp.com/manish-giri
:star2: 1836 | @dhcodes |http://www.freecodecamp.com/dhcodes
:cookie: 374 | @daddycardona |http://www.freecodecamp.com/daddycardona
Stephen James
@sjames1958gm
Oct 07 2017 16:11
@camperbot Yo
@DarrenfJ Yo
Darren
@DarrenfJ
Oct 07 2017 16:13
also thanks @khaduch @heroiczero @Marmiz @Gersho
CamperBot
@camperbot
Oct 07 2017 16:13
darrenfj sends brownie points to @khaduch and @heroiczero and @marmiz and @gersho :sparkles: :thumbsup: :sparkles:
:star2: 1056 | @marmiz |http://www.freecodecamp.com/marmiz
:star2: 1837 | @heroiczero |http://www.freecodecamp.com/heroiczero
:cookie: 525 | @gersho |http://www.freecodecamp.com/gersho
:star2: 3348 | @khaduch |http://www.freecodecamp.com/khaduch
Henry
@GitHub-Henry
Oct 07 2017 16:57
@DarrenfJ thanks for the brownies
CamperBot
@camperbot
Oct 07 2017 16:57
github-henry sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2099 | @darrenfj |http://www.freecodecamp.com/darrenfj
Henry
@GitHub-Henry
Oct 07 2017 16:59
@DarrenfJ check this out. It works with Atom.io and VS Code
Ahmed Tarek
@ahmedtarek2134
Oct 07 2017 17:01
quokka is amazing
Momozor
@momozor
Oct 07 2017 17:04
thanks @DarrenfJ
CamperBot
@camperbot
Oct 07 2017 17:04
faraco sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2100 | @darrenfj |http://www.freecodecamp.com/darrenfj
Henry
@GitHub-Henry
Oct 07 2017 17:29
@ahmedtarek2134 it's a good tool
knight2
@knight2
Oct 07 2017 18:33
@DarrenfJ ah thanks, saw someone link to it, but thought it was them setting up testing for their own code, instead of a genral test for me to put my own link into
CamperBot
@camperbot
Oct 07 2017 18:33
knight2 sends brownie points to @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 2101 | @darrenfj |http://www.freecodecamp.com/darrenfj
John Gabriel Simmons
@sosmaniac-FCC
Oct 07 2017 19:40
I cannot figure out why specifically the x.domain is throwing a TypeError with D3 while y.domain is just fine: https://codepen.io/sosmaniac/pen/BwYezz?editors=0110
John Gabriel Simmons
@sosmaniac-FCC
Oct 07 2017 19:57
Hmm, so deleting a line of code and running the program only to then paste back the exact same line of code and have the code throw zero errors. What a strange error...
aRtoo
@artoodeeto
Oct 07 2017 20:14
hello fam. question why cant i get the value of test?

var test;

document.getElementById('one').addEventListener('click', function() {
    test = 1;
});

console.log(test);
Dylan
@dhcodes
Oct 07 2017 20:16
@artoodeeto because test within the function is different than test outside the function
aRtoo
@artoodeeto
Oct 07 2017 20:16
@dhcodes how can i access it sir?
Dylan
@dhcodes
Oct 07 2017 20:16
i believe
aRtoo
@artoodeeto
Oct 07 2017 20:17
hmm. thanks sir let me try
Dylan
@dhcodes
Oct 07 2017 20:19
dang, nvm
that doesn't work either
aRtoo
@artoodeeto
Oct 07 2017 20:19
@dhcodes sir doesnt work. it will give undefined
Dylan
@dhcodes
Oct 07 2017 20:19
one sec
Igor
@flipmotion
Oct 07 2017 20:22
Do callback
Dylan
@dhcodes
Oct 07 2017 20:22
@artoodeeto your original code may have been fine now that i read into it
but did you click the 'one' element before you console log the value change?
@artoodeeto here's an example:
let foo;
function change() {
  foo = 1;
}
change()
console.log(foo) // returns 1
so the question is @artoodeeto did you click the element to initiate the function before you console.logged the new value of test
aRtoo
@artoodeeto
Oct 07 2017 20:26
@dhcodes thanks sir. i got it now.
CamperBot
@camperbot
Oct 07 2017 20:26
artoodeeto sends brownie points to @dhcodes :sparkles: :thumbsup: :sparkles:
:star2: 1837 | @dhcodes |http://www.freecodecamp.com/dhcodes
Dylan
@dhcodes
Oct 07 2017 20:26
also, my bad for saying your original code wouldn't work
programming is hard lol
have a good day!
aRtoo
@artoodeeto
Oct 07 2017 20:26
@dhcodes its fine sir. it didnt really work lol
Dylan
@dhcodes
Oct 07 2017 20:26
well it did more than i thought lol
abdelmageed ahmeed
@abdelmageedahmeed
Oct 07 2017 21:22
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"/>
i put that code in my text editor but bootstrap did not work?
Gersho
@Gersho
Oct 07 2017 21:25
aren't you missing https at the start of your url ? @abdelmageedahmeed
abdelmageed ahmeed
@abdelmageedahmeed
Oct 07 2017 21:26
@Gersho thanks brother
CamperBot
@camperbot
Oct 07 2017 21:26
abdelmageedahmeed sends brownie points to @gersho :sparkles: :thumbsup: :sparkles:
:cookie: 526 | @gersho |http://www.freecodecamp.com/gersho
Ken Haduch
@khaduch
Oct 07 2017 21:58
@heroiczero @DarrenfJ - great to have regular visitors / helpers here in the room - thanks for the appreciation for your fellow chatters/coders!
CamperBot
@camperbot
Oct 07 2017 21:58
khaduch sends brownie points to @heroiczero and @darrenfj :sparkles: :thumbsup: :sparkles:
:star2: 1838 | @heroiczero |http://www.freecodecamp.com/heroiczero
:star2: 2102 | @darrenfj |http://www.freecodecamp.com/darrenfj
Mike
@MikeJSchorah
Oct 07 2017 23:01
WordPress vs Magento vs Shopify?
Gersho
@Gersho
Oct 07 2017 23:03
that depends what you want to build i guess?
Mike
@MikeJSchorah
Oct 07 2017 23:04
@Gersho A bowling supply ecommerce website
korzo
@korzo
Oct 07 2017 23:05
@MikeJSchorah It depends what exactly this site needs.
I would rule wordpress out and replace it with Prestashop
Gersho
@Gersho
Oct 07 2017 23:06
i don't really know much sorry ^^ have you tried taking a look at the site of the competitors ? but at least i think i can sat wordpress shouldn't be the way to go, while it has shop plugins it is not it's basic intent
Mike
@MikeJSchorah
Oct 07 2017 23:07
@korzo Prestashop? What's that?
korzo
@korzo
Oct 07 2017 23:08
@MikeJSchorah eshop application, like Magento, but simplier
StrategyIsKey23
@23beyblade
Oct 07 2017 23:11
hey any of you guys know why we use class="fluid-container"? thanks
korzo
@korzo
Oct 07 2017 23:12
Magento is very resource hungry and it's overkill for 90% sites
Mike
@MikeJSchorah
Oct 07 2017 23:12
@korzo Do you need to code with Prestashop or is it a drag and drop builder?
korzo
@korzo
Oct 07 2017 23:16
I think there are some drag&drop addons, but I never tried it.
But honestly, if you don't want to code or maintain the application, go with Shopify
Mike
@MikeJSchorah
Oct 07 2017 23:18
@korzo If I build a website for someone with Shopify, you're saying that I won't be able to charge as much as I would with WordPress?
Is SEO good with Shopify like it is with WordPress?
Gersho
@Gersho
Oct 07 2017 23:20

@korzo If I build a website for someone with Shopify, you're saying that I won't be able to charge as much as I would with WordPress?

they're all builders so it's not like you can charge much for any of them anyway, well that of course depends on the tech level of your client and your own morals ^^

korzo
@korzo
Oct 07 2017 23:20
@MikeJSchorah Do you expect to install Wordpress and magically be first in Google?
Mike
@MikeJSchorah
Oct 07 2017 23:21
@korzo First page or first spot? First page, yes, in 6 months
First spot... Maybe sometime in the next 10 years, LOL
korzo
@korzo
Oct 07 2017 23:22
Building ecommerce website on will be maintenance nightmare.
You will rely on a lot of plugins
Mike
@MikeJSchorah
Oct 07 2017 23:23
@korzo What will be a maintenance nightmare?
Gersho
@Gersho
Oct 07 2017 23:25
depends what is considered maintenance also, are you expected to make every trivial modification ? is this a one time no ties sale ? etc
korzo
@korzo
Oct 07 2017 23:26
@MikeJSchorah Because you'll have to update them often and pray nothing breaks. Also you have to check after upgrade, if everything is working.
If you make modification to some plugin, you have to reapply it after every update
Mike
@MikeJSchorah
Oct 07 2017 23:26
@Gersho Maintenance would be extra
@korzo With WordPress or Shopify or both?
korzo
@korzo
Oct 07 2017 23:27
Wordpress
Gersho
@Gersho
Oct 07 2017 23:29
yeah if you want to use a builder, you should pick one where the usage you want is a built in feature, it is more reliable that way (less stuff to update = less chance to break)
Mike
@MikeJSchorah
Oct 07 2017 23:32
@korzo And this is the WooCommerce we're talking about?
korzo
@korzo
Oct 07 2017 23:34
@MikeJSchorah Yes
piteto
@piteto
Oct 07 2017 23:34
WooCommerce gives me nightmares
updating websites at 3am so the customer doesn't lose business if it all fails...tedious backups, cPanel... uggh
korzo
@korzo
Oct 07 2017 23:36
@MikeJSchorah Last month I rebuilt site for client, who was initially using Woocommerce.
It was unusable after 2 years. there was like 30 plugins and nobody knew how it works. Also something was broken all the time.
Gersho
@Gersho
Oct 07 2017 23:37

WooCommerce gives me nightmares

if even piteto complains, it must be that tedious

Mike
@MikeJSchorah
Oct 07 2017 23:37
@korzo Ok, so Shopify is best for Ecommerce sites... is WordPress best for regular 5-Page business sites?
Gersho
@Gersho
Oct 07 2017 23:37
it's best for blogs
piteto
@piteto
Oct 07 2017 23:38
haha @Gersho
korzo
@korzo
Oct 07 2017 23:38
@MikeJSchorah If those sites aren't updated often, then no.
Use static site builder
Mike
@MikeJSchorah
Oct 07 2017 23:39
@Gersho And blogs give you great SEO...
piteto
@piteto
Oct 07 2017 23:39
wordpress taught me tons about linux firewalls, roaming botnets, password brute force attempts, and web security in general
Mike
@MikeJSchorah
Oct 07 2017 23:39
@korzo Like Wix/Weebly/SquareSpace?
Gersho
@Gersho
Oct 07 2017 23:39
in such case you make a blog and a shop, not a blogoshop hybrid
Mike
@MikeJSchorah
Oct 07 2017 23:39
@piteto Is it really that bad?
piteto
@piteto
Oct 07 2017 23:40
If you have a vps, install wordpress and check your firewall a few days later
it's horrible
Mike
@MikeJSchorah
Oct 07 2017 23:40
@piteto What if you just have a regular reseller account?
korzo
@korzo
Oct 07 2017 23:40
@MikeJSchorah Shopify is best for ecommerce, if it fits your needs and you don't want to code.
Mike
@MikeJSchorah
Oct 07 2017 23:40
Why do all of these jobs in the big cities want WordPress experience if it's so bad?? I don't get it...
piteto
@piteto
Oct 07 2017 23:40
It depends on the host @MikeJSchorah
Mike
@MikeJSchorah
Oct 07 2017 23:41
@piteto HostGator?
piteto
@piteto
Oct 07 2017 23:41
wordpress is great for the client - really easy to modify and set up additional users to modify on the go without having to pay someone
Gersho
@Gersho
Oct 07 2017 23:41
because like windows xp/IE6, if it's already here, you have to know how to maintain what was made 5 years ago
korzo
@korzo
Oct 07 2017 23:42
@MikeJSchorah Because there is a lot of plugins/themes for Wordpress and you can build site in days
But you'll end up with bad, hard to maintain site
Mike
@MikeJSchorah
Oct 07 2017 23:42
46 jobs in Philadelphia want WordPress experience, only 2 want Shopify experience...
piteto
@piteto
Oct 07 2017 23:42
Very true ^ and I don't know about Hostgator's ddos/brute force protection. You probably need to install plugins for that, which just slows down the site
Mike
@MikeJSchorah
Oct 07 2017 23:43
@piteto But Shopify is easier for the client to update? What about SEO?
piteto
@piteto
Oct 07 2017 23:43
SEO and Shopify are two different things
Mike
@MikeJSchorah
Oct 07 2017 23:44
@piteto I was talking about SEO with Shopify VS SEO with WordPress
Gersho
@Gersho
Oct 07 2017 23:45

46 jobs in Philadelphia want WordPress experience, only 2 want Shopify experience...

you also have to remember that "requirement " are often written by HR not by your direct superior

piteto
@piteto
Oct 07 2017 23:45
SEO is mostly about the text you use to present the content. The semantics of your code will help - I'm not sure what shopify does there
Mike
@MikeJSchorah
Oct 07 2017 23:45
@piteto From what I understand, WordPress has better SEO than Wix/Weebly/SquareSpace. Not sure about Shopify's SEO...
korzo
@korzo
Oct 07 2017 23:45
SEO has nothing to do with application.
As soon as you can edit template for given application
piteto
@piteto
Oct 07 2017 23:45
This is why there are professional copyrights, they come up with the long tail keywords you need for your google ranking
piteto
@piteto
Oct 07 2017 23:46
I think google also takes into account your overall presence on the web - twitter, instagram, facebook, social media influence
korzo
@korzo
Oct 07 2017 23:49
@MikeJSchorah When I mentioned static site generators, I was not talking about Wix and friends but https://www.staticgen.com/
As long as you understand SEO, application is not limiting factor.
This all "Wordpress is great for SEO" comes from the fact, that it has basic SEO out of the box
Eric Miller
@ericmiller777
Oct 07 2017 23:54
hey guys in react should i use const var or let for my jsx items?
Gersho
@Gersho
Oct 07 2017 23:55
i use the class / render() syntax
Eric Miller
@ericmiller777
Oct 07 2017 23:55
yes but shoudl it be like
piteto
@piteto
Oct 07 2017 23:55
you should try to stop using var in my opinion - doesn't matter if it's react, vanilla JS, jQuery, etc
Eric Miller
@ericmiller777
Oct 07 2017 23:55
const mydiv()
@piteto yes ive mostly switched to let
should it be let or const?
piteto
@piteto
Oct 07 2017 23:56
ES2015 makes var pretty much obsolete
Eric Miller
@ericmiller777
Oct 07 2017 23:56
whats more standard?
piteto
@piteto
Oct 07 2017 23:56
const for variables that can't be re-declared
Eric Miller
@ericmiller777
Oct 07 2017 23:56
hmm
piteto
@piteto
Oct 07 2017 23:56
use const if possible, else let
Eric Miller
@ericmiller777
Oct 07 2017 23:56
so probably const
Stephen James
@sjames1958gm
Oct 07 2017 23:56
@ericmiller777 Use const for variables that are not reassigned.
Eric Miller
@ericmiller777
Oct 07 2017 23:57
@piteto @Gersho @sjames1958gm thanks
CamperBot
@camperbot
Oct 07 2017 23:57
:cookie: 218 | @piteto |http://www.freecodecamp.com/piteto
ericmiller777 sends brownie points to @piteto and @gersho and @sjames1958gm :sparkles: :thumbsup: :sparkles:
:cookie: 527 | @gersho |http://www.freecodecamp.com/gersho
:star2: 8527 | @sjames1958gm |http://www.freecodecamp.com/sjames1958gm
Gersho
@Gersho
Oct 07 2017 23:57
class Main extends React.Component{
render(){
return (
<div>Hello</div>
)
}

}
this is the syntax i use
Stephen James
@sjames1958gm
Oct 07 2017 23:57
@camperbot Make your default choice const - then if you need to change it use let
@piteto I see you said the same :+1:
piteto
@piteto
Oct 07 2017 23:58
Yep, re-declared, reassigned, tomato potato :)