-
Recent Posts
Categories
Subscribe via RSS
-
Join 31 other subscribers
Author Archives: lzzluca
Intigriti challenge 0422
For a while now, the monthly XSS challenge from Intigriti is one of my favorite appointment: every month I make sure to have at least a good look at it. Some months there are clues on the code that click … Continue reading
Intigriti challenge 0222
Recently I was happily busy solving the February 2022 Intigriti XSS challenge: this post wants to be a description of the chain of thoughts that brought to the solution.I am going to anticipate the solution, which looks like this: https://challenge-0222.intigriti.io/challenge/xss.html?q=%3Cstyle%20onload=eval(uri)%3E&first=alert(document.domain) … Continue reading
Lint only touched files with Webpack
Recently I had to add a linter on a project in which the codebase was never linted before. I am talking about a big codebase in which a team have worked on it for years already. Obviously, the amount of … Continue reading
Be careful with your fix!
I think many times the code grows wrong (also) because of some wrong solutions… Little example: yesterday I was sending an email by Gmail, an attachment was included to the mail. Correctly, I wasn’t able to send the mail (clicking … Continue reading
Code readibility: little zoom on Implements from MooTools
I would like to spend a few lines about the Implements feature, from MooTools. Like many other frameworks / toolkits, MooTools provides utilities for DOM manupulation, effects, etc… but what i really enjoy is the way it provides writing code, … Continue reading
Posted in Code readibility, Javascript, MooTools
Tagged code readibility, extends vs implements, implements, javascript, modules, MooTools, OOP, reuse
Leave a comment
Vim hot stuff: marks
In the (new) “vim hot stuff” section, i would like to post about those Vim’s features that, when you meet them the first time, you think: “UAO! That is cool! How did i survive without it so far?”. The best … Continue reading
Posted in Tips, vim hot stuff
Tagged buffers, lines, mark, multiple, range, select, selection, vim, visual mode
Leave a comment
Git: how to rewrite the branch history
Quick tip for those git users that, like me, make a lots of commits in their working branch and want to keep only the last one, before send the branch to production. Yes, the idea is to use this method … Continue reading
Posted in Programming, Tips
Tagged git, github, github rewrite history, history, rewrite, rewrite history
Leave a comment
Coding tips: accessing the data structure
I think it is really important keep the code more general and flexible as possible; one rule, that i would like to introduce here, is to use the right level of abstraction when accessing the data structure elements, trying to … Continue reading
Posted in Javascript, jQuery, Programming, Tips
Tagged abstraction, centralize, coding, common approach, data structure, delegate, good practice, javascript
Leave a comment
A “Class” function to define classes in Javascript with MooTools like syntax
Updated the 08/02/2013 I really enjoy to organize my Javascript code as objects and get profit by using inheritance. “Approaching Javascript as Javascript and not as Java”, i read that so many times; Javascript is / can be OOP and … Continue reading
Posted in Javascript, jQuery, My code, Programming
Tagged class, inheritance, javascript, jQuery, MooTools, OOP, pattern
7 Comments
A quick digression about the constructor property in Javascript
When i think about the constructor, i think about the function called when a class is instantiated. Well, that is true about Java but i would like to write about the constructor in Javascript. For me is a challenge write … Continue reading