Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[post/talk] Random cool PHP tips #226

Open
TomasVotruba opened this issue Jan 9, 2018 · 14 comments

Comments

Projects
None yet
1 participant
@TomasVotruba
Copy link
Owner

commented Jan 9, 2018

Done

More

  • workflow
  • daily duties
  • pit falls
  • how to report issues
@TomasVotruba

This comment has been minimized.

Copy link
Owner Author

commented Sep 10, 2018

  1. think of myself as testing groupa nd not testing on users

i thought adding features is goal to creat great productc, every PR makes the code bigger, thus powerful, thus tool useful - the similar way the more people follows you on social media the more suscccesful you are; if you've read deep work, you know how easy is to fall for this now-clear misconscretipn
until one person tried to install your package, it might have zilion feature but stlil not valuable
once I've tried this on real people and install and use it - they call it user testing in UX and I really love it

  • here is the tool
  • try to use it
  • go
  • observce in silce and collect feedback
    that way I found out poele are much lazier then me and what the most - the are NOT me; they have no idea how to use it, why it's build that way, or how to extend it and where in the docs or cod etoo look
    exception not with just errors, but a solution
    nothign optional, don't make the use thinkg - use it or this
    less optins is better - 9x % of peole go for detalus - see organs example
@TomasVotruba

This comment has been minimized.

Copy link
Owner Author

commented Dec 21, 2018

{
    "require": {
        "rector/rector": "dev-ux"
    }
}

To install some package branch, ux here

@TomasVotruba

This comment has been minimized.

Copy link
Owner Author

commented Dec 31, 2018

image

@TomasVotruba

This comment has been minimized.

Copy link
Owner Author

commented Jan 1, 2019

@TomasVotruba

This comment has been minimized.

Copy link
Owner Author

commented Jan 1, 2019

@TomasVotruba

This comment has been minimized.

Copy link
Owner Author

commented Jan 23, 2019

I'll do it this X - never works :D

do-not-promise-do


image

@TomasVotruba

This comment has been minimized.

Copy link
Owner Author

commented Jan 26, 2019

It's ok so say "I can't continue this work"

php/php-src#1795 (comment)

That way we - others - know that we can continue on this and it would not be duplicated work

php/php-src#3747

@TomasVotruba TomasVotruba changed the title [post] 15 tips to maintain Github repository [post] Random cool PHP tips Apr 5, 2019

@TomasVotruba TomasVotruba changed the title [post] Random cool PHP tips [post/talk] Random cool PHP tips Apr 7, 2019

@TomasVotruba

This comment has been minimized.

Copy link
Owner Author

commented Apr 7, 2019

@TomasVotruba

This comment has been minimized.

Copy link
Owner Author

commented Jun 23, 2019

Simple speedup PHPStan:

"phpstan": "git diff --name-only | grep \\.php$ | xargs vendor/bin/phpstan analyse --error-format symplify",

checky onyl changed files; @todo needs to check staged files as well

@TomasVotruba

This comment has been minimized.

Copy link
Owner Author

commented Jul 3, 2019

X. How to get to any file location quickly in PHPStorm

  • open file
  • hit alt + home
  • left
  • control + enter

It opens in the left :)

@TomasVotruba

This comment has been minimized.

Copy link
Owner Author

commented Jul 3, 2019

X. How to delete current file in PHPStorm

@TomasVotruba

This comment has been minimized.

Copy link
Owner Author

commented Jul 5, 2019

X. How to duplicate file with differnt name copied from code

  • copy file name (A) in code, e.g. fixture in test case
  • copy file in left (B)
  • insert new file (B)
  • control shift
  • pick insert previous name (A) :)
  • ✔️
@TomasVotruba

This comment has been minimized.

Copy link
Owner Author

commented Jul 16, 2019

phpstorm

  • convert all to spaces/tabs
  • copy 2 items, then ctrl + shift + V to paste one of them
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.