So today I were working on a python + django platform.
I made some bigger architectural changes some months ago and then stopped working in the platform until last week, so right now I don't really remember what was already changed or what was still broken.
So today I passed my coding time implementing unit tests for the multiple application endpoints and fixing some non working code.

More submissions by drmargarido for Codething A Day

Almost finished removing all the mocked data calls by real database data with the main logic of the system.

Today I replaced more mocked data with information about the current user organization.
Touched a bit my helpers because of the lapis request context.

Added portuguese districts in the database.
Replaced multiple data mocks with real database data.
Implemented logic to fetch and create the main database models.
Fixed problem where I was loading multiple forms in the lapis initialization, instead of loading it in the request, which would make database calls and slow down every request.

Changed the register_organization controller to register a organization instead of a user and then write the session of the organization owner.
Added data correction if the organization fails to create after the organization user is already generated.
Updated the data constrains in the organization database table.
Added data to the database using the migration system.
Added new helper function for map.

Added all the needed fields for the job_offer creation in the model.
Created roles checking decorator.
Applied the role checking in the needed endpoints.

Fixed the calls to create the current user session after login and registration.
Changed the redirection when the user is not authenticated to go to the 404 page.
Added check of the current user role in the job offers creation.

Implemented checking if the user is logged and display a 404 page if he doesn't has access, using decorators in the wanted endpoints.
Added roles constants.
Implemented controller to create job offers.

Today I built a simple UI to use with my reminder tool.
So I can easily search, insert entries and merge files from other pcs.
Used the iUP widgets from PUC-Rio with lua. Its really nice and simple.

Fixed sessions last details, now sessions are working as expected.
Implemented logout endpoint , logic and triggered the logout by clicking the leave option in the ui menu.
Limited display of the round user icon if the user is not logged.
Created models for the category and skill database tables.

So yesterday I implemented a salt for my users, but I was using bcrypt algorithm which already has an internal salt, so it was not needed =D . So today I removed the salt.
Created a lua lib to strip the non-ascii characters from strings - github and luarocks.
Implemented sessions in the platform im building. Now im finishing the user login.

Read data from /dev/urandom and made logic to get only the printable characters.
Implemented salting of the users password when they are created.

I was thinking the need of a salt, and how to implement it in order to protect the users password in the case of a leak. A friend sent me this link - Salt Implementation

It was a very nice read, tomorrow I will try to start it's implementation in my lapis user model.

Added listing of own answers,
Implemented voting in the people answers.
Deploy to the world :)

Implemented some backend logic for a forum. From menus selection, filtering, regular CRUD operations in models.

  • Added logic for roles and newsletter registering in the User model.
  • Added creation of common users.
  • Added extra validations with default values in the user.
  • Added user creation when starting the creation of a organization.

I read about the haskell language having tons of really cool features, so I decided to take a bit and look at them. So the end of my day were checking haskell tutorials and testing the language base concepts.
Haskell tutorial I followed

It's really nice, some concepts really unlike the stuff I usually use. In the future I may try to implement something with it to check how the program behaves.
Would like to also try Rust programming, looks fun too. :D

Added validator to the forms to allow the comparison of 2 fields when in validation.
Implemented user creation with encripted password.
Started the creation of organizations.

Today I made just little changes, I added logging to errors detected by the validation in my forms, which uses the lapis validation.
Since lapis already gives me all the feedback about the invalid fields, it was really simple to make :) . Lapis is very nice.

Today I worked in the web platforms.
Read documentation given by clients and prepared requirements, tasks and all of that to the next work days.

In the Lapis application, made my forms use the table information to make automatic validation in the backend when the form post is received.

After the yesterday thoughts, today I added events to my ECS architecture:

  • Added event listeners registration and events triggering of logic to the world and to the systems.
  • Implemented system to check when the game ends, by listening to the action of a mine being pressed.

Codething A Day

Do weird, fun stuff. Channel _why.

joined 2,212 days ago

2024-11
2024-10
2024-09
2024-08
2024-07