Swas.io – Blog

Showing Page 1 of 3 · Total 15 articles

WordPress Plugin Unit Test with BrainMonkey and PHPUnit

on June 16, 2018 • underWordPressPHPPHPUnit

So I am almost completely rewriting the codebase of EForm Plugin. While doing so, I took the opportunity to rewrite the Unit tests and use the latest PHPUnit (7.2). The problem was, official way of doing things does not (still) work with PHPUnit 7 and it loads all of WordPress and does real database stuff. This results in Integration tests and not Unit tests. I really hated that WordPress…

Keep VSCode tabs open by default

on June 07, 2018 • underVSCode

When you open a file in Visual Studio Code with a single click it by default enters in a preview mode. If you do not change the file content, and open another file, the first one will be closed and second one will replace the tab. Of course you can just double click the file in the sidebar to keep it open, but in cases when you are opening from command palette ( or ) having to double click…

Beautiful UI 1.2 for VSCode with minimal themes

on June 07, 2018 • underVSCode

I am glad to announce Beautiful UI 1.2 for Visual Studio Code . It has 5 new color themes. 4 of them are minimal color theme inspired by Subliminal from Dan Abramov . See them below. Minimal Yellow VSCode Color Theme Minimal Green VSCode Color Theme Minimal Purple VSCode Color Theme Minimal Blue VSCode Color Theme Also I really liked the background and foreground color of the minimal themes…

Some swag for my laptop

on June 07, 2018 • underGeneralSwag

Just got some stickers from JustStickers today. The only site which sells some swags for developers like us. Just sharing my wishlist incase someone would like to make some and let me know 😉. The react sticker could have been more rounder , cut along the spirals. Wish I had Babel stickers. The stickers could've been a little more glossy. Pretty Awesome 💥🎉.

Iterable Numbers in JavaScript with Symbol.iterator

on June 05, 2018 • underJavaScriptES6

Kudos to Samantha Ming for her thoughts on printing ranges natively on JavaScript. This looked really promising and cool. So I though about implementing within a custom class and without generators so it can run without regenerator-runtime in Nodejs. This is what I came up with and it doesn't have any side effects mentioned by the original article. The purpose of the class is to create a…