Code Monkey home page Code Monkey logo

devoter's Introduction

Hi there ๐Ÿ‘‹

I'm a Senior Frontend Developer working from Warsaw, Poland.

๐Ÿ’ป I enjoy working with...

  • React
  • TypeScript
  • all things frontend-related
  • Rust

๐Ÿ† My popular repositories

๐Ÿค Open source contributions

๐ŸŽˆ Fun projects and work

๐Ÿ  Outside of work, I enjoy...

  • weightlifting ๐Ÿ‹๏ธ
  • reading books ๐Ÿ“•
  • snowboarding ๐Ÿ‚

๐Ÿ“ Fun facts about me

  • When I was younger, I used to dance traditional Polish folk dances ๐Ÿ•บ

devoter's People

Contributors

gelio avatar kosmag avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

devoter's Issues

bug #1

Here polls are moved by one (1st row refers to 2nd poll, etc), thus real 1st poll is never shown, and 3rd row refers to empty poll.

New poll's ID is counted wrong

When a new poll is created the ID of a new poll is done via counting rows, which is a bad solution.

The correct one is to first insert a row, then run a SQL query: SELECT LAST_INSERT_ID(); which returns simply the ID which is needed.

Before using that please first check in phpMyAdmin what's the name of the column with the last ID. Or use AS to name it, but I don't know if it works. Here's an example of what I have in my mind with the AS:

SELECT LAST_INSERT_ID() AS id;

And then you can probably refer to id as it was a normal query.

Error reported as a number, not as an object.

When an error is reported there should be an error object (array) in the array which contains code and message keys as indicated in the API-info.

Here's an example:

$output = array();
$output['error'] = array(
    'code' => 2,
    'message' => "There's something wrong with data sent"
);

Fix SQL Injection

While parsing numeric parameters double-check them to avoid SQL injection (especially in scripts showing polls)

IP checking needs to be normalized

Scripts need to check the IP of a user in the same way. No different methods can be used, because it causes malfunctioning.

I'd suggest you use this. It seems to be working.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.