loading...

All 221 Comments

re: 15 Command-Line Tools to Make You Better at Shell & CLI
I was not interested in this list of tools, but I respect it.
re: gitignore.io is great!
Each developer on a project can have a different IDE and it i...
re: gitignore.io is great!
I don't want to distribute a list of my private files and dir...
re: Input Validation: Client-side or Server-side?
Server side or combination of both.
re: How do you 'Save for later'?
I use trello.com
re: My top terminal commands
They are very useful for working with huge files.
re: My top terminal commands
vim - to edit anything sed - to filter and update awk - t...
re: SQL Injection!!!
addslashes don't prevent SQL injection. php.net/manual/en/fu...
re: Is "C Programming language" Still Worth Learning in 2021?
You need to define short functions and macros. The parenthese...
re: Is "C Programming language" Still Worth Learning in 2021?
Compare the number of parentheses in the Lisp application and...
re: Is "C Programming language" Still Worth Learning in 2021?
Lisp uses a garbage collector. It is also used at the hardwar...
re: Is "C Programming language" Still Worth Learning in 2021?
It's funny. First using i, then increment i, then use i as a ...
re: Is "C Programming language" Still Worth Learning in 2021?
The same goes for Lisp or Forth.
re: Is "C Programming language" Still Worth Learning in 2021?
This is one of the reasons I write prototypes and tests. I'll...
re: How do you backup your projects?
I use GitHub, GitLab and BitBucket for my projects. Google Dr...
re: What are Git Hooks?
pre-push from the video (modified): #!/bin/sh ref=$(git sy...
re: What are Git Hooks?
pre-commit #!/bin/sh # Make sure the email is set properly...
re: How do you keep notes?
Trello with 50+ boards.
re: Bash tip of the day: lazygit
Usually I don't want to select all files, especially if I wan...
re: Bash tip of the day: lazygit
I am not lazy. First I run git status to see what has been mo...
re: Bash tip of the day: lazygit
Why . at the end of git add?
re: Minimizing Keystrokes, Maximizing Productivity  -  Bash Scripting
Don't use git add ., use git add --all instead Try basename....
re: Git Explained: Tips and Tricks
s/alist/alias/
re: VSCode vs Vim
Vim for all cases. He works like I'm dictating commands to hi...
re: Red, Green and Refactor in TDD
codecademy.com/articles/tdd-red-gr... Test specify what you ...
re: How do YOU learn NoSQL (not MongoDB)?
What can't SQL do? What do you expect from NoSQL? What is you...
re: Stop setting the language of your website based on user location
What is object navigator?
re: Makefiles for automation and better dev-UI
$ cat parse_makefile.sh #!/bin/bash echo "Hello to the $1" p...
re: How to Keep Home Directory Clean?
I have some directories with >2k source files. No problem.
re: How to Keep Home Directory Clean?
81 No problem, 27 items are visible only.
re: Get, set... STOP!
Yes, I prefer activate and deactivate. It's no setting boolea...
re: Get, set... STOP!
I am a getter and a setter hater. I hate anemic domain model....
re: Makefiles for automation and better dev-UI
I use Makefile similarly, but for some actions I chose git al...
re: PHP For JavaScript Developers
Setters are unnecessary in PHP. Use immutable private attribu...
re: JS projects version and Our custom Git tools 😎😛💪
Why ignore the branch master?
re: Using the Fluent Interface Pattern to Create JavaScript Objects
Where is the behavior of the created object?
re: Why Not PHP?
PHP is a modern programming language.
re: URL Rewriting
Yes, when URL is example.com/post/12 , redirect it to index...
re: URL Rewriting
I don't rewrite URLs, just redirect to index.php
re: Is a Redis ORM a Horrible Idea?
There are three ways: Normalize database (break JSON and ...
re: Quick And Dirty Java Makefile
I have integrated Vim and Makefile. When I invoke make from...
re: Make a password manager with python: Making the basic mechanisms
It's too complicated. Use a database (eg SQLite) instead.
re: Productive Tools🚀 For Web Development😎
paletton.com/
re: How do you organize development projects on your computer?
I have main directories: Project gitlab prototype for d...
re: Melatonin Busting Glasses
Use blue background on your monitor.
re: 5 Minutes Vim: CtrlP considered harmful
I always write a space after the comma. If a comma is follo...
re: Readable Code
Of course, broader the scope, the longer my names become. B...
re: 5 Minutes Vim: CtrlP considered harmful
I use <space> for switch into insert mode. A comma is...
re: Let's progress together with the Linux Shell
PERCENTAGE=$(($INDEX * 100 / $TOTAL))
re: Automate typing with Vim macros
:let i=1|g/^#/s/$/\=' '.i|let i=i+1
re: Readable Code
I use namespaces for split words, Interactor\Controller\Vie...
re: Readable Code
What is "Thoughtful naming"? Short and simple or long and com...
re: Node vs PHP
No frameworks - some thin boilerplates only. PDO for databa...
re: Node vs PHP
Vanilla MVC.
re: Node vs PHP
I prefer PHP.
re: Node vs PHP
Yes, PHP is considered as a programming language. NodeJS to...
re: PHP Code Syntax highlighting (pretty printing) for CLI.
I use Vim syntax highlighter.
re: Bash Script Tool Kit
$ NAME="Jimmy McBride" $ echo $NAME Jimmy McBride $ ech...
re: gig: a gitignore generator
Global .gitignore curl -s "https://www.gitignore.io/api/v...
re: gig: a gitignore generator
This is not good for make .gitignore, but it is good for ma...
re: Do not write cheap code, make code cheap
Beware use public class Book extends BaseBook It soun...
re: Common casing types in programming
UpperCase with underscores
re: Common casing types in programming
Kebab-case is useful for Lisp, XML and XSLT for naming elem...
re: Execute command line commands from inside vim
:r !grep word file :r !sqlite3 data.sqlite "select value fr...
re: Read me first
Yes, I mean global variables.
re: Read me first
I don't like side effects configure_find_command() { if...
re: PHP seo_friendly_url Example For Slugger
Use tripple "`" for enclosure source code.
re: Three tools to help you become a better web developer
Git is perfect for private use too ESLint is for Javascrip...
re: Linux Checklist for Beginners
$ man woman No manual entry for woman
re: 20 Intriguing, Unusual, and Goofy Programming Languages
Lisp doesn't belong here. Lisp is a regular programming lan...
re: Shell script that finds all files which correspond to a given template
ls dir1/*test* ls dir2/*fi*
re: PHP REPL - Interactive Editing Tool For Learning PHP (Hot Reload)
.vimconfig for PHP setlocal makeprg=php\ % map <F9>...
re: Gitignore Revisited
I put my own .gitignore into .git/info/exclude. It's good f...
re: Concept of the Day: Homoiconicity
S expression in Lisp may be program, input data, output dat...
re: What are your Favorite Text-Processing Tools?
XML and XSLT. CSV and AWK.
re: Bash: Rename specific files in a folder
Use command rename.
re: Is anyone else interested in #esolangs?
I like Waduzitdo.
re: What's Your Favorite PHP Test Automation Tools?
PHPUnit
re: Stop Using YAML
YAML is good for simple use, like Windows INI. It is good f...
re: 4 levels of vim editor commands
Level 6 :)
re: SOLID PRINCIPLES: To start with Object-oriented programming
SRP: <?php declare(strict_types=1); class Book implem...
re: Git Branch + Commit Templates
Yes, but ... why? This is unnecesary duplicity.
re: Git Branch + Commit Templates
Why is branch_name part of the convention?
re: Vim quickies/ cheatsheet
de is good for delete word from cursor to end. It is good f...
re: How to stop naming Java classes with the "Manager" suffix
They are a bunch of functions.
re: How to stop naming Java classes with the "Manager" suffix
Manager is one of many empty and useless words that should ...
re: A php abuse
What is wrong?
re: SOLID Programming (Part 1): Single Responsibility Principle
This code is not DRY. content.split() is repeated and make ...
re: How to exit Vim
Ctrl-Z ... shell commands fg
re: Why static typing matters
I don't use IDE -> I don't need static types.
re: Whats your favorite programming language?
Extensible Stylesheet Language Transformations. Language fo...
re: Whats your favorite programming language?
PHP and XSLT.
re: Writing Good Unit Tests: A Step By Step Tutorial
OK, thanks.
re: Writing Good Unit Tests: A Step By Step Tutorial
Why is longitude and latitude splitted into two variables? ...
re: Free learning resources for programmers
Where is PHP?
re: Setting private properties in tests
How do you get the property name? It is private and may cha...
re: How to write Unmaintainable Code
Names i and j are good for local integer indexes. I use sho...
re: Setting private properties in tests
Use mocks instead.
re: How to write Unmaintainable Code
What is a comment?
re: Let's write HTML like a pro 😎
github.com/mattn/emmet-vim
re: What are the differences between production code and test code?
The difference is in purposes. Production code is for fulfi...
re: "Damn! Now I have to use Vim"
I use Vim for all projects, including compiling and running...
re: Differences between "null" and "undefined" keywords?
anna = {} bill = {} anna.age = null bill.age = null consol...
re: What is a Unit in unit testing
You must isolate dependencies. When test failed, where is ...
re: What is a Unit in unit testing
All No
re: Why does two small for-loops run faster than a big one ?
BigInt is slower.
re: Which unproductive activities are typically mistaken for productivity?
Use phone, use notifications.
re: Function vs Object
OOP: mjölnir.smash() // mjölnir is an object FP: mjölnir....
re: Is Object-Oriented Programming "Dangerous"?
My data are also immutable in my applications, I pass param...
re: Javascript for() {} Loop - Simplified
let x = ['Dillion', 45, 'Megida']; for (currentElement of x...
re: Is Object-Oriented Programming "Dangerous"?
Developers who hate on OOP don’t know how to use it. I perce...
re: Tests in pre-commit hooks and alternatives
Tests in pre-commit hooks is a very bad way. You need to co...
re: IDs vs Classes: a CSS Specificity Chapter
ID is identifier of one object in document. Class is a cate...
re: Writing a searchable “database” with pure HTML, CSS, and JS
Use JSON or w3schools.com/html/html5_webstorag...
re: PHP... yay or nay?
This is not against SOLID principles. Simply I don't use it...
re: 7 Ways to Get the Most Out of Pair Programming
We use pair programming on one project. We change positions...
re: How to Bookmark commands in Terminal
I use symlinks, CDPATH and aliases. This is enought.
re: PHP... yay or nay?
String is not an array.
re: PHP... yay or nay?
Please add comment "Never do this!" into this part of code....
re: PHP... yay or nay?
This code will generate big problems in future. Never use i...
re: PHP... yay or nay?
PHP is way better than it used to be. OOP is perfect, databas...
re: Do you feel comfortable learning in your own language or do you prefer English? (For non English-native speakers)
I am native Czech speaker. I have been using Czech language...
re: Git 001 ~Add Alias to .gitconfig~
[alias] ci = commit co = checkout up = push ...
re: Tips For Validating HTML Form Inputs
User can bypass client-side validation.
re: Tips For Validating HTML Form Inputs
This is a first validation - on client. You need make a sec...
re: 10 More Git Tricks That You Should Know
Add all private untracked files to .git/info/exclude help....
re: PHP - Elegant method call
This is a wrong way in my opinion. You need split data stru...
re: PHP - Elegant method call
$something = Something($params); Edit: Sorry, the right...
re: Elegant code in PHP
My code for this: <?php $doc = new \DOMDocument('1.0'...
re: Elegant code in PHP
@if, @else , @endif - they are components of your new imper...
re: PHP - Elegant method call
Better way: $sendmail = new Sendmail(); $sendmail->han...
re: 10 rules to code like NASA (applied to interpreted languages)
60x80 is enough for a class.
re: Important Abbreviations
Add links to an external dictionary, eg: TCP/IP: Transmi...
re: Imaginary Language Features
Use decorator.
re: My Git tips for a better life in your console
I recommend using git-aliases instead.
re: A Series of My Unfortunate Mistakes (When Writing Tests)
Write tests first! Nice article.
re: Anyone using VIM here?
Vim daily. Without VS Code.
re: A short example of how types can make your life easier
All items of enums are objects: ab = Audiobook('mp3') eb...
re: Unlimited git repositories
Other Git placement options: Secondary HDD or SSD, USB flas...
re: How to crawl website using #bash script?
use quotation marks around the variable name: wget "$url"....
re: Why switch is better than if-else
I got rid of all "else" in my programs. They are shorter, ...
re: How to crawl website using #bash script?
An unusable script with too much mistakes. Pure wget is bet...
re: The 7 most important software design patterns
Singleton is good pattern for create NullObject. Observer ...
re: Code Smell: No AND in Function name
I use method names: drink(), add(), find(), insert(), updat...
re: Easily Merge Multiple Java --classpath Arguments
An alternative to the for loop is the while loop with the s...
re: The Git Rebase Workflow
rebase master->feature merge feature->master
re: Are CSS and HTML programming languages?
No. HTML is a markup language, CSS is a style language.
re: How to Produce Readable Code
actions on objects: user.get(), user.add(), post.modify(), ...
re: I created a .gitignore command-line generator !
Create an alias to Git to write: git ignore -h ...
re: How To Enforce Conventional Commit Messages Using GIT Hooks
I prefer to explain the pattern when validation fails. Goo...
re: //TODO: Write a better comment
interface AccountDAO { suspend fun insert(account: Acco...
re: Using isset() and empty() hurts your code
Deep structures are unwanted in OOP. Maybe you use it for r...
re: IDE's vs Text Editors!
source code editor build tools debugger I'm using editor...
re: Please, do not pollute project's .gitignore
Look for .git/info/exclude too. It is good for project spec...
re: Storing permissions ~ AoaH Nine
$username = 'myName" OR "1';
re: How did linguistics influence programming?
Naming things: class, object, variable - nouns function, ...
re: What tense do you use in Git Commit messages?
Imperative for simplicity and for non-english readers.
re: How to use git efficiently
Where is a branch bugfix?
re: Basic Text Formatting in PHP using printf() with decimals, prices, strings, and dates
$date = date("m/d/Y"); echo $date;
re: Up your git game with --patch
Thanks for your article!
re: How to Get the Git Directory
$ git config --global alias.pwd '!pwd' $ git pwd
re: Up your git game with --patch
You changed (destroyed) functionality in first hunk - you d...
re: How I Backup/Sync my Dotfiles & Apps
$ cat .gitignore * !.gitconfig !.gitignore !.bashrc !.zshr...
re: Help Me Name My New Computer
I use the names of heroes, constellations, stars and satell...
re: Security holes in PHP
This is not vulnerability PHP. This is bad manipulation wit...
re: Security holes in PHP
Use complex SQL or transaction.
re: Security holes in PHP
Some example? I have no problem with this.
re: Shellscripting: Functions
#!/bin/bash for i in $@; do echo "$i" done $ ./args.sh...
re: My Git Aliases
gs has an unpleasant collision with GhostScript.
re: PHP XML Reader Example
When using large XML with a DOMDocument... $doc = new \DOM...
re: Don't return associative arrays!
Don't return errors. Use exceptions.
re: Fun with Bash
data.csv name, usage (mb), allocated (mb), CPU %, contai...
re: Do you use the Pomodoro Technique?
pomodorostrt='sleep 1500 && notify-send "Your pomod...
re: Demystifying vim
V will get you in select mode. It's little diferent from vi...
re: Repository-Specific Ignored Files in Git
I have two git macros for edit these files: git ignore and ...
re: Demystifying vim
Fix the indentation: gg=G for whole file =G from actual...
re: 25 Tips for New Developers: Advice from a (Mostly) Self-Taught Software Engineer
I'm not native English. This discussion is the best course ...
re: Security Tips for a PHP Application
XSLT is the best template framework.
re: A quick guide to squashing Git commits
create new branch for feature/bug edit, test, commit, repe...
re: 3 Common Mistakes that Python Newbies Make
Eliminating else made my source code cleaner and faster. I ...
re: 3 Common Mistakes that Python Newbies Make
Negative comparisons are needed to eliminate else from sour...
re: 3 Common Mistakes that Python Newbies Make
This is a bit faster, because the first condition is met mo...
re: Why Git Alias
In my ~/.bashrc is included: alias gita='git add' alias ...
re: Why Git Alias
My aliases in ~/.gitconfig ci = commit -v co = checkout un...
re: SSH Shortcuts
$ alias example='ssh example' $ example 'command paramete...
re: How to read dot files with PHP?
.htconfig.ini [MySQL] dsn = "mysql:host=localhost;dbname...
re: Just enough bash to be dangerous
I don't like ask the user. The best answer is the one I wil...
re: An automatic interactive pre-commit checklist, in the style of infomercials
The problem with these three questions is that the develope...
re: An automatic interactive pre-commit checklist, in the style of infomercials
Instead of querying, I use automated tests.
re: Managing Your Personal Sprints w/ Trello
I like Trello. I have over twenty boards for diary, ideas, ...
re: I Want Scalar Objects in PHP
<?php class Name { private $name; function __c...
re: Upload stuff on git push when branch is not master
current_branch="$(git symbolic-ref --short HEAD)"
re: The Shell Introduction I Wish I Had
alias bashrc='vim "$HOME/.bashrc" && . "$HOME/.bash...
re: What are the most used commands in your shell history?
1 117 12.4468% ll 2 113 12.0213% xmllint ...
re: Need help with editing a massive file
xmllint --xpath "//*[local-name()='image']/*[local-name()='...
re: On esoteric languages
I used it as part of my application. It was very simple, Tu...
re: On esoteric languages
I wrote my own esoteric language and used it commercially....
re: How do you organize source code on your computer?
~/CompanyName/ProjectName # Day Jobs ~/Customer/CompanyNa...
re: convert JS Object to CSS in command
:'<,'>s/\([A-Z]\)/-\l\1/g
re: Vim practical example
Bash$ xargs open https://db-provider.com/dashboard.html#dat...
re: Vim Is The Perfect IDE
Too much plugins for too little benefits. I do not traverse t...
loading...