Skip to main content
Commonmark migration
Source Link

To be honest, it looks like a mess to me and it's difficult to read. Your naming convention is also off. They don't appear to do what you (or any other programmer) would think it does by looking at the name of your methods (not to mention your variables too).

  • Method session_exist() is not what it seems. It's not checking if a session exist, but it's rather checking if a session parameter exist. I would rename that to parameterExist().

  • Method create_session() does not create sessions. It sets session parameters. I would call it setParameter() instead.

  • Method insert_value(), what does it even do? :|

    So you're taking in a session name (?) and an array of data. Then you're checking if the session name is an array? And if it is you push the data array that's passed in to it? Is there any difference beween create_session() and insert_value()? I'm confused.

So you're taking in a session name (?) and an array of data. Then you're checking if the session name is an array? And if it is you push the data array that's passed in to it? Is there any difference beween create_session() and insert_value()? I'm confused.

  • Why does your class contain a sessionID property?

    Why does your class contain a sessionID property?

    It looks like your using it to eh, differentiate between session objects? If that's the case the object itself can serve for that. Unless you have some other intentions for it I would just get rid of it and it's setter and getter.

It looks like your using it to eh, differentiate between session objects? If that's the case the object itself can serve for that. Unless you have some other intentions for it I would just get rid of it and it's setter and getter.

I could go on and on, but this should be enough to let you realize other obvious problems that are an issue with your code.

To be honest, it looks like a mess to me and it's difficult to read. Your naming convention is also off. They don't appear to do what you (or any other programmer) would think it does by looking at the name of your methods (not to mention your variables too).

  • Method session_exist() is not what it seems. It's not checking if a session exist, but it's rather checking if a session parameter exist. I would rename that to parameterExist().

  • Method create_session() does not create sessions. It sets session parameters. I would call it setParameter() instead.

  • Method insert_value(), what does it even do? :|

So you're taking in a session name (?) and an array of data. Then you're checking if the session name is an array? And if it is you push the data array that's passed in to it? Is there any difference beween create_session() and insert_value()? I'm confused.

  • Why does your class contain a sessionID property?

It looks like your using it to eh, differentiate between session objects? If that's the case the object itself can serve for that. Unless you have some other intentions for it I would just get rid of it and it's setter and getter.

I could go on and on, but this should be enough to let you realize other obvious problems that are an issue with your code.

To be honest, it looks like a mess to me and it's difficult to read. Your naming convention is also off. They don't appear to do what you (or any other programmer) would think it does by looking at the name of your methods (not to mention your variables too).

  • Method session_exist() is not what it seems. It's not checking if a session exist, but it's rather checking if a session parameter exist. I would rename that to parameterExist().

  • Method create_session() does not create sessions. It sets session parameters. I would call it setParameter() instead.

  • Method insert_value(), what does it even do? :|

    So you're taking in a session name (?) and an array of data. Then you're checking if the session name is an array? And if it is you push the data array that's passed in to it? Is there any difference beween create_session() and insert_value()? I'm confused.

  • Why does your class contain a sessionID property?

    It looks like your using it to eh, differentiate between session objects? If that's the case the object itself can serve for that. Unless you have some other intentions for it I would just get rid of it and it's setter and getter.

I could go on and on, but this should be enough to let you realize other obvious problems that are an issue with your code.

deleted 7 characters in body
Source Link
Kid Diamond
  • 2.6k
  • 16
  • 35

To be honest, it looks like a mess to me and it's difficult to read. Your naming convention is also off. They don't appear to do what you (or any other programmer) would think it does by looking at the name of your methods (not to mention your variables too).

  • Method session_exist() is not what it seems. It's not checking if a session exist, but it's rather checking if a session parameter exist. I would rename that to parameterExist().

  • Method create_session() does not create sessions. It sets session parameters. I would call it setParameter() instead.

  • Method insert_value(), what does it even do? :|

So you're taking in a session name (?) and an array of data. Then you're checking if the session name is an array? And if it is you set that array topush the data array that's passed in to it? Is there any difference beween create_session() and insert_value()? I'm confused.

  • Why does your class contain a sessionID property?

It looks like your using it to eh, differentiate between session objects? If that's the case the object itself can serve for that. Unless you have some other intentions for it I would just get rid of it and it's setter and getter.

I could go on and on, but this should be enough to let you realize other obvious problems that are an issue with your code.

To be honest, it looks like a mess to me and it's difficult to read. Your naming convention is also off. They don't appear to do what you (or any other programmer) would think it does by looking at the name of your methods (not to mention your variables too).

  • Method session_exist() is not what it seems. It's not checking if a session exist, but it's rather checking if a session parameter exist. I would rename that to parameterExist().

  • Method create_session() does not create sessions. It sets session parameters. I would call it setParameter() instead.

  • Method insert_value(), what does it even do? :|

So you're taking in a session name (?) and an array of data. Then you're checking if the session name is an array? And if it is you set that array to the data array that's passed in? Is there any difference beween create_session() and insert_value()? I'm confused.

  • Why does your class contain a sessionID property?

It looks like your using it to eh, differentiate between session objects? If that's the case the object itself can serve for that. Unless you have some other intentions for it I would just get rid of it and it's setter and getter.

I could go on and on, but this should be enough to let you realize other obvious problems that are an issue with your code.

To be honest, it looks like a mess to me and it's difficult to read. Your naming convention is also off. They don't appear to do what you (or any other programmer) would think it does by looking at the name of your methods (not to mention your variables too).

  • Method session_exist() is not what it seems. It's not checking if a session exist, but it's rather checking if a session parameter exist. I would rename that to parameterExist().

  • Method create_session() does not create sessions. It sets session parameters. I would call it setParameter() instead.

  • Method insert_value(), what does it even do? :|

So you're taking in a session name (?) and an array of data. Then you're checking if the session name is an array? And if it is you push the data array that's passed in to it? Is there any difference beween create_session() and insert_value()? I'm confused.

  • Why does your class contain a sessionID property?

It looks like your using it to eh, differentiate between session objects? If that's the case the object itself can serve for that. Unless you have some other intentions for it I would just get rid of it and it's setter and getter.

I could go on and on, but this should be enough to let you realize other obvious problems that are an issue with your code.

added 72 characters in body
Source Link
Kid Diamond
  • 2.6k
  • 16
  • 35

To be honest, it looks like a mess to me and it's difficult to read. Your naming convention is also off. They don't appear to do what you (or any other programmer) would think it does by looking at the name of your methods (not to mention your variables too).

  • Method session_exist() is not what it seems. It's not checking if a session exist, but it's rather checking if a session parameter exist. I would rename that to parameterExist().

  • Method create_session() does not create sessions. It sets session parameters. I would call it setParameter() instead.

  • Method insert_value(), what does it even do? :|

So you're taking in a session name (?) and an array of data. Then you're checking if the session name is an array? And if it is you set that array to the data array that's passed in? Is there any difference beween create_session() and insert_value()? I'm confused.

  • Why does your class contain a sessionID property?

It looks like your using it to eh, differentiate between session objects? If that's the case the object itself can serve for that. Unless you have some other intentions for it I would just get rid of it and it's setter and getter.

I could go on and on, but this should be enough to let you realize other obvious problems that are an issue with your code.

To be honest, it looks like a mess to me and it's difficult to read. Your naming convention is also off. They don't appear to do what you (or any other programmer) would think it does by looking at the name of your methods (not to mention your variables too).

  • Method session_exist() is not what it seems. It's not checking if a session exist, but it's rather checking if a session parameter exist. I would rename that to parameterExist().

  • Method create_session() does not create sessions. It sets session parameters. I would call it setParameter() instead.

  • Method insert_value(), what does it even do? :|

So you're taking in a session name (?) and an array of data. Then you're checking if the session name is an array? And if it is you set that array to the data array that's passed in? I'm confused.

  • Why does your class contain a sessionID property?

It looks like your using it to eh, differentiate between session objects? If that's the case the object itself can serve for that. Unless you have some other intentions for it I would just get rid of it and it's setter and getter.

I could go on and on, but this should be enough to let you realize other obvious problems that are an issue with your code.

To be honest, it looks like a mess to me and it's difficult to read. Your naming convention is also off. They don't appear to do what you (or any other programmer) would think it does by looking at the name of your methods (not to mention your variables too).

  • Method session_exist() is not what it seems. It's not checking if a session exist, but it's rather checking if a session parameter exist. I would rename that to parameterExist().

  • Method create_session() does not create sessions. It sets session parameters. I would call it setParameter() instead.

  • Method insert_value(), what does it even do? :|

So you're taking in a session name (?) and an array of data. Then you're checking if the session name is an array? And if it is you set that array to the data array that's passed in? Is there any difference beween create_session() and insert_value()? I'm confused.

  • Why does your class contain a sessionID property?

It looks like your using it to eh, differentiate between session objects? If that's the case the object itself can serve for that. Unless you have some other intentions for it I would just get rid of it and it's setter and getter.

I could go on and on, but this should be enough to let you realize other obvious problems that are an issue with your code.

Source Link
Kid Diamond
  • 2.6k
  • 16
  • 35
Loading