Absortio

Email → Summary → Bookmark → Email

Thread by @marcelpociot on Thread Reader App

Extracto

@marcelpociot: There are some great recommendations if you're looking for music to get in the flow 👇

Contenido

More from @marcelpociot

Marcel Pociot 🧪 Profile picture

Nov 17

Let's try something new!

I saw this in my timeline today.
You can run JS code right from your GitHub issues by mentioning "robobun" followed by the code.

So obviously, my initial reaction is: It would be cool if we could make this work with PHP 🤯

Let's try and build this 🧵

First of all, we need a GitHub username that we can mention...
Tinkerwell is already taken...
So is "artisan" (obviously).
phptinker is still available - let's go with that.

Here's the (blank) GitHub user
github.com/phptinker

Read 30 tweets

Marcel Pociot 🧪 Profile picture

Aug 23

At @getsendstack we tried a lot of existing content/email/markdown editors. We wanted something that we would absolutely LOVE to use ourselves. But nothing really felt quite right. There were always too many trade-offs that we had to make.
Follow me into the WYSIWYG rabbit hole🐰

Pure Markdown editors are cool, but have you ever tried to link an image in a pure markdown editor like EasyMDE?
I know, markdown is for a technical audience, but come on...we should get a better UX than this, right? Image

Alright, so what about editors such as editor.js?
Well...unfortunately it's kinda the same issue.
Just go to editorjs.io and try to add a link to the existing image – it simply doesn't work. Image

Read 10 tweets

Marcel Pociot 🧪 Profile picture

Mar 22

We all know console.log – but there's a lot more to the DevTools console than you might know!

Measure time, count code calls, group logs, display objects in a table, and even style your log output using CSS!

👇

Use console.count to quickly increment a counter, every time your code gets called.

console.dir allows you to output all properties of an object...

Read 7 tweets

Marcel Pociot 🧪 Profile picture

Jan 13

Developers, get to know your terminal!
Here are some 🔥 tips for bash and ZSH users that will make you more productive.

🧵

Do you ever need to create a new folder via CLI just to cd into it right after?
No need to – just use the "mkcd" or "take" command in ZSH 🚀

Custom aliases are shortcuts to commonly used shell commands. Here are some of my favorites

Read 9 tweets

Marcel Pociot 🧪 Profile picture

Jan 12

Blade, the powerful template engine in @laravelphp has some amazing features that will help you save keystrokes and time.

It offers custom directives, if conditions, view components, and much more...

Here are some of my tips 🧵

Make use of the built-in "includeWhen" and "includeUnless" directives to get rid of those ugly if conditions. Image

If you need to pass data from your Blade view to JavaScript, there's no need to manually encode it. Say hello to the json directive. Image

Read 9 tweets

Marcel Pociot 🧪 Profile picture

Jan 10

🚀 Over the years I've written a lot of Eloquent queries in @laravelphp

Here's a collection of tips on how you can improve the performance/readability/maintainability of those queries.

🧵

Use the "chunk" or "cursor" method when looping over large datasets

I see this little mistake being made quite a lot.
Don't use the "count" method on your Collections – let the database do the counting instead!
Same goes for any collection method that could be performed on the database instead.

Read 9 tweets