DEV Community

loading...
Pacharapol Withayasakpunt profile picture

Pacharapol Withayasakpunt

Currently interested in TypeScript, Vue, Kotlin and Python. Looking forward to learning DevOps, though.

Education

Yes

Last 250 comments

What if I don't use GET (and DELETE)?

About URL too long, I finally have seen it. With DELETE reque...

Which one is better? OOP or FL?

Why not both? Also, FP can avoid many errors.

What Javascript features are the most confusing to you?

WeakMap, WeakSet. I haven't even tried.

Are there any versions of Electron (official or not) that aren't Chromium based (and/or have higher performance)?

Try Ultralight. I haven't tried it, though.

How Good are You at CSS?

I suck at design, but I get most practical points with flex a...

What's the best Linux distro for Windows users?

I would recommend Ubuntu with default GNOME 3. Forget about ...

Snake Case vs Camel Case

I like snakecase / kebabcase more than upper / lower camelcas...

Why are C and C++ slow to build?

WoW, perfect SO discussion. Makes me think, why can't a lang...

Dark mode would be better if... (especially in dev.to)

It's ok to have what you like, but it is bad to assume that p...

One of the most important rules I learned after a year of learning frontend

Well tested both as a part and as whole. CI if possible. I us...

Webcomponents: It's really that easy!

Looks interesting. In the past, I used Stencil.js, though. Mi...

Dark mode would be better if... (especially in dev.to)

There should be a choice whether to make it device specific o...

Useful github commands

yum on macOS?

How to promisify node callbacks

There is also promisifyAll, but you will need some library (e...

Backend

Maybe, Heroku to clone Git; but you still need to create envv...

Script Looping mkdir

mkdir -p dir1/folder/folder2 Enter fullscreen mode ...

Do you use Redis?

How do you use Redis? Where do you host Redis?

What is the Dom, the Virtual Dom, and the Shadow Dom

I have been using this for a custom markdown renderer that in...

Dark mode would be better if... (especially in dev.to)

A point is browser extension is much harder to do on mobile.

Rate my understanding of REST

I would use PATCH to partial update. GET and DELETE should ...

Do you have a habit of over-engineer your projects?

It is hard to say. More of violating the YAGNI. Also sometim...

Do you pay for database storage?

I am considering paying for Backup Features (Postgres, rath...

Is C Most Underrated Programming Language?

Python and Node.js also have C binding, but I haven't seen an...

Markdown Badges for VSCode markdown-preview-enhanced users

Great thing about MPE is that you can enhance it. I have als...

Is C Most Underrated Programming Language?

It is possible, and probably also encouraged, to write C lang...

Is C Most Underrated Programming Language?

If I remembered correctly, he was unfortunate to die the same...

Privacy or Simplicity?

The problem with mobile phones is hardware drivers aren't ope...

Vue or React?

I think jQuery lived because of web browser wars; and ES6 and...

How to Deploy Web App For Free ?

Google App Engine If you need multiple languages, you can al...

Why Axios Is Awesome (and how to get started with it)

Also, const data = await fetch(url).then(r => r.json())...

Vue or React?

Next.js or Nuxt.js for rapid development. JSX is good; and R...

New VScode extension - connecting developers with the OSS community to solve code issues in real-time

How did you get my stats? GitHub? StackOverflow? BTW, my PyQ...

How to install gcc in Windows 10? (the easier way)

I got an error for compiling CGO. Fixed with TDM.

Code Smell 53 - Explicit Iteration

That is, if a convenient library function exists.

Code Smell 53 - Explicit Iteration

I also prefer to hide explicit iteration. Still, I had to use...

Code Smell 53 - Explicit Iteration

Depends on the programming language; but JavaScript in is da...

What CSS approach do you use in NextJS?

SCSS modules first.

What will you focus on in your tech-stack in 2021?

For backend, it would be Golang / Rust + PostgreSQL. For fro...

What sign-in methods do you use in your apps?

I am curious to whether to use Email or not? And email with p...

Why I Hate Frontend

Backend seems uncomplex until I step into sysadmin and securi...

Golang 101: ทำความรู้จักภาษาโกฉบับโปรแกรมเมอร์

ที่แปลก และไม่ชอบ คือ mutability, default value และ error han...

HotTea: v0.12a released. (AND I want feedback).

If you intended to use for browser, you should consider a CDN...

5 Website To Host Your Website For Free

if i recall correctly

How much effort do you put into commit messages?

I recommend commitizen with cz-emoji.

How much effort do you put into commit messages?

git commit -m update Seriously lazy sometimes.

Typescript: How I passed from find it useless to love it

I regretted a little when realized the lack of backward compa...

I finally have done it (without sudo) - the catastrophic command

I am on ext4. If I had to reinstall Linux, what should I cho...

Replacing FastAPI with Rust: Part 1 - Intro

What a teaser?! As a matter of fact, both writing openapi.ya...

Web Dev Performance tips

webp / webm browser support not universal...

Do you need SEO meta keywords?

Wow. What about 404 favicon and og:image? And description?

What the heck does the icon mean?

What about the middle vote icon here?

Markdown Editor for Common People?

How about non-Markdown? Do you need plaintext? Regarding mar...

Project with mixed NPM and YARN use

I would force either NPM or Yarn, and commit lock file. I h...

JAVA WITH NOTEPAD

And even ignoring most advanced features, NotePad is very lim...

Best domain for student developer?

Firebase hosting - .web.app

Makefiles and alternatives?

Makefile seems namespace-limited and unpredictable to me. I ...

How do you manage the content for your portfolio?

I used to build my CMS, but I currently use Git-based flat fi...

KDE vs GNOME

I have good experience with MATE, GNOME 2 and Xfce. Currentl...

What is {x:1} and why does it return 1 🤷‍♂️

Good linters will tell.

Firebase or Mongo ?

Firebase Firestore is severely limited in functionality in my...

Soft Deletion in Database

Golang's Gorm uses DeletedAt.

What is your favorite coding project you have done and why? ⏳

R stats projects are amongst the most interesting, but I have...

What determines the truthiness of an object in Python?

Truth be hold, Python is as cool as always because of magic m...

Emoji Inside Markdown?

A while ago, built this website; but it was actually to test ...

5 Website To Host Your Website For Free

Heroku has free tier. IIRC, you can host 5 dynamic sites wit...

5 Website To Host Your Website For Free

I followed Nuxt's recommendations. nuxtjs.org/faq/deployment...

5 Website To Host Your Website For Free

Seems to be WordPress targeted. Can I host something else, l...

5 Website To Host Your Website For Free

Firebase hosting is for dtatic sites that use firebase servic...

Do you use ORM? What about native SQL features?

The way I usually use ORM is to attach Properties / Methods t...

Do you use ORM? What about native SQL features?

You can do what you want, but the real strength of MongoDB li...

Is Next JS really that good?

Actually, prerendering actually means web browser snapshot; b...

Is Next JS really that good?

For me, Folder structure and magic Multiple pages, prerende...

What if I don't use GET (and DELETE)?

but the response should be still the same if no other manipu...

What if I don't use GET (and DELETE)?

From what I have found, Browser-side GET responses can be c...

What if I don't use GET (and DELETE)?

I don't really get it, but thanks for trying to explain. Any...

What if I don't use GET (and DELETE)?

Why would you bookmark an API request? Do API requests need ...

What web analytics tools do you use?

With a exception of MaxMind GeoLite2, it seems.

What web analytics tools do you use?

Plausible Analytics, which is albeit privacy-focused, it is n...

Do you use ORM? What about native SQL features?

I think ORM does translate to SQL queries, except that it isn...

npm displays badge for built-in TypeScript declarations

Does it have to be fair? Actually, TypeScript is not fair to...

Do you use ORM? What about native SQL features?

Which library, which language, in your case?

NPM or Yarn? Find the right package manager for you

I was a PNPM convert for a while, and now I am back to Yarn 1...

What database should i use?

Indeed, most RDBMS enforces integrity very well, and it would...

6 Open Source Tools to create inspiring presentations

How exactly do you usually embed slides? IFrame?

Git Submodules vs Monorepos

My monorepo is just for convenience, and does have disadvanta...

What database should i use?

Yes, I admit that $lookup is slow, in my experience. I expec...

What database should i use?

MongoDB supports database that stores container data structur...

What database should i use?

No, I was there because of the lower cost of entry. Generou...

What database should i use?

SQLite is in a different league from online database, where t...

What database should i use?

Not so generous, IMO. ...

What database should i use?

BTW, I don't really understand why database choice matters, u...

Consume RESTful APIs with fetch in Vue

Just be aware that fetch is not status code aware. Instead, i...

How much does Postgres cost?

I do consider that, but I am not sure if I am ready for sysad...

Moving away from Hugo

Recently, I use Next.js + loki.js + lunr.js. I wouldn't be su...

When your JAMstack goes beyond Static, what your hosting of choice?

They said they allow anything, but free tier is limited to S...

The rise of dark mode in UI design

I do like it dark, but not really black - more like dark gray...

How to keep your Firebase project safe and secure from everyone

Even if you don't use Firebase hosting, the config object is ...

Glued together my favorite libraries

Does it have auto reload for API server? (Nuxt can have Expr...

Importing SVGs to Next.js

Which one is the most optimized?

What awesome tools did you discover recently?

coolors.co/- Awesome color picker. svgrepo.com/ - for colo...

Choosing your web development stack

What stack do you use to build your blog?

Would you use python with braces

Why not? Actually, my feeling is Kotlin is even more flexibl...

Why do people code?

Automation Information / data manipulation and storage (isn'...

Where do you get your icons?

Yes, that's where I get more-than-one-color icons. aloud-com...

Where do you get your icons?

I struggled much more for non-monochrome icons...

Anyone else NEVER create a Node.js project at Git root?

"Think different" - Steve Jobs

Nodejs webscraping

Cheerio is not really related to jQuery, I think. It is just ...

Are one liners always pythonic?

One-liner is a joke. Isn't minified Javascript also a one lin...

When YOU make Static Site (with SSG), what additional APIs do YOU eventually have to use and how? (third-party or self-made)

What I already have are Remark42 comment on Google Compute ...

When YOU make Static Site (with SSG), what additional APIs do YOU eventually have to use and how? (third-party or self-made)

It's also a matter of static site hosting trying to sell thei...

When YOU make Static Site (with SSG), what additional APIs do YOU eventually have to use and how? (third-party or self-made)

Just plain puppeteer or playwright is enough. There is also ...

When YOU make Static Site (with SSG), what additional APIs do YOU eventually have to use and how? (third-party or self-made)

It's not like you can't prerender SSR if you really need to. ...

Need suggestion for web scraping using Node.js

node-fetch or axios to get html text. Then Cheerio, which ha...

Self-taught newbies, listen up 💾

After a while, I am more interested on how to make myself val...

how to connect php to sql ?

sudo apt install php${VERSION}-mysql?

Considering `??` vs `||`

Falsiness and || are sins in JavaScript. Carelessness can lea...

Deep merge Objects in Javascript with Mergerino

OP said merge, not clone. Also when stringify-parse'd, non-JS...

Deep merge Objects in Javascript with Mergerino

It is as easy as recursive function. However, what you mean b...

Is GraphQL a REST API?

You might be interested in this, as I used to. REST API has...

Need help regarding self-hosted WordPress (installing plugins, FTPS?, markdown editor, backup?)

My point is, I still want the database; albeit I prefer it re...

Need help regarding self-hosted WordPress (installing plugins, FTPS?, markdown editor, backup?)

Actually, I am getting an impression that classical CMS with ...

My new battery_warn.sh

It's what I always needed for Conky.

How can I make my Jar file executable on all computers?

If you use no build tools, just pure javacand java -jar, it s...

SASS vs CSS-in-JS vs Tailwind CSS

PurgeCSS clashes a lot with Stylesheet files I didn't make. I...

How can I make my Jar file executable on all computers?

My process was to use Gradle to create shadow JAR. Maven also...

SASS vs CSS-in-JS vs Tailwind CSS

Because I want to avoid PurgeCSS.

SASS vs CSS-in-JS vs Tailwind CSS

Why not write atomic CSS yourself, using the idea from Tailwi...

Learning the skills required to system administrate a remote Linux server from the Command-Line.

Better than WSL, IMO, is running a DigitalOcean droplet, usin...

How can I make my Jar file executable on all computers?

The solution is platform-specific. I believe you can find on ...

Is there any difference between git and github?

What exactly do you want to know / are confused? git is just...

Today I made my first pull request on GitHub! Here's how you can do the same!

Step 6: Wait for the Code Review. Unfortunately, it depends ...

Dear vanilla JavaScript users, which version do you use? Transpiler?

Vanilla? Not AngularDart or Overreact?

media attribute in link tag

I feel like it is equivalent to @media applied to the whole i...

How to generate Type Definitions for Distribution on NPM

I usually put declarationMap: true as well. Not sure if I ne...

Why Should We Use TypeScript

Dear vanilla JavaScript...

Setting up Arch Linux with KDE Plasma in Windows Subsystem for Linux 2

on a 10-year-old PC, a modern gaming laptop and a current-ge...

Start to learn Typescript and React

I might not able to tell much about React, but how do you pla...

Why Should We Use TypeScript

TypeScript is both helpful and fake. It doesn't provide run ...

The NPM guide I would have loved as a beginner

If you ever use npm init -y, you should also know there is np...

What DBs would you recommend to master in 2021?

As for CMS / existing software, MySQL seems promising. But h...

What External Display do you use with your computer?

Any idea if I can turn a second laptop into second screen? I ...

Clean Install vs Backup

I actually do backups, but never really restart from backups....

How does troll (tech) become cute?

Thanks, so it makes a cutie troll.

Negative zero in JavaScript

But, is it the only language that has negative zero? I thoug...

Which sites do you spend more time on than you should?

Nuxt

Which sites do you spend more time on than you should?

dev.to localhost:3000

Passwords are not secure! The solution for developers

Good to try to read, but you should really learn how to Markd...

What's the most math-intensive project you have ever done?

Most of the stuff I have to do in R language #rstats / Geospa...

How to humanize duration accurately in JavaScript, including weeks, months and years

A bug found. Missed by exact...

Cargo cult programming

Cargo Rust?

What's you favorite headless CMS?

Why headless in the first place? I feel it is just an overuse...

How To Write Comments

Is it only me, that I use /** */ everywhere, because of VSCod...

Which concept took you the longest to grasp?

Structuring the project in my first programming language I us...

Do you still use IDs for unique elements?

Markdown parser generates id, so that it can used for anchors...

Do you still use IDs for unique elements?

Can you use name? - w3schools.com/TAGS/att_input_name.asp

Do you Git Branch in personal projects?

Of course, if master has been stable, and I cannot break thin...

Please explain why I need software architecture

Apparently, my course is Informatics, not really computer sci...

Is fetch too low-level? Do you have a favorite wrapper?

I actually resorted to ky. I would probably also use ky-unive...

Please explain why I need software architecture

Actually, I'd look for benefit of Make sense of my own code...

NPM libraries: which are the good ones?

Looking at my recent repos, my current favs are pnpm better...

NPM libraries: which are the good ones?

One actually answers the question 👍

Please explain why I need software architecture

That maybe a point; but how do I get started? For example, E...

Please explain why I need software architecture

You are actually quite clear. Thank you.

Please explain why I need software architecture

Is the said "anti design" an absolute indicator, that the pro...

Why shouldn't you learn programming?!

People can change their minds. Intrinsic drive can be manipu...

JSON command line tools

Not to mention you can write your own CLI tool in your favori...

Shell (e.g. Bash) users before coming to Windows Terminal - which shell do you use?

Thanks. I totally forgot that I can do that, no matter cmd.ex...

How do YOU configure Git for Windows?

Please elaborate. So, you didn't configure correctly immedia...

Do you prefer Fetch or Axios?

Actually, it's just a fake typing. It depends on the "real" ...

Starting with TypeScript via JSDoc

If you want to have TypeScript warnings, not just typings, yo...

Have you built any projects with Electron?

SQLite is still the best database for Electron. However, for...

JavaScript or TypeScript first?

Don't forget to use // @ts-check, though. Anyways, having to...

บันทึกการติดตั้ง oh-my-posh

MesloLGS NF ที่ใช้ใน Powerlevel10k ใช้ได้มั้ย พอดีมี WSL ด้วย

JavaScript or TypeScript first?

Know some JavaScript; but consider not only TypeScript, but a...

Do you prefer Fetch or Axios?

axios integrates better with TypeScript interfaces, however, ...

Have you built any projects with Electron?

Yes, but not really successful, nor production level. It was...

How to flatten an array using recursion in Javascript

Why would you have unstructured data required to be flattene...

‘touch’ is not recognized as an internal or external command, operable program or batch file

git-bash is not OK? Otherwise, better yet, WSL.

KVision v3.17.0 is released (with IR backend support)

My experience with Kotlin/JS (for frontend), is compilation t...

How do change "org name" of a GitHub repo?

Found it. It's called "Transfer". Create an org "Transfer" ...

บันทึกการติดตั้ง oh-my-posh

ควรจะบอก หรือใส่ Tag นะ ว่า for PowerShell.

I made 100 high-quality illustrations, totally free. Use it anywhere without attribution.

My favorite license is DBAD. Not sure how well it really work...

Careful with dates in Javascript

I normally had to prevent parsing of numeric strings with /^-...

Quick Poll

TypeScript Kotlin Python is hate-love

Create our own iterable in JavaScript

Can I make it as easy as Python's def __iter__(self) and yiel...

What are the most generous free plans you know?

MongoDB Atlas is still good enough, flexible and powerful A...

How to write Godoc?

Thanks for official guide, but of course, I did come from oth...

Which JavaScript snippets do you use for analytics?

I am using Plausible. Some people might be using Umami. ...

Discussion: When do automated tests make sense?

For me, it is as important as Git branching, but more fine-tu...

DB Option

For ACIDity, it has to be SQLite. (better-sqlite driver is a ...

What authentication libraries do you use?

I was considering Cotter as well. Similar?

What's your favorite CSS approach?

<style scoped> (In Next.js, there is <style jsx&gt...

What authentication libraries do you use?

To add, I cannot use Passport.js, as I am not using Express.j...

WSL vs plain old VirtualBox

Thanks for your suggestion, and just tested. Multipass seem...

WSL vs plain old VirtualBox

It's an issue that is obvious to me. It usually hurts nothing...

GET FAMILIAR WITH THESE IMPORTANT HTTP RESPONSE STATUS CODE

My favorites cats and dogs.

What is IIFE?

IIFE is Iife. I use Iife to Prevent scope leakage, and all...

I Tried to Create HTML Alternative, Here's What Happened...

There is also QML, which does not use HTML, but it still uses...

varchar(n) - how big should n be?

So, there is TEXT type in Postgres (and obviously SQLite), wi...

Markdown to PDF: missing pieces from various approaches, and beyond HTML

You can -t context, as well, and you might get more features....

Which Terminal Are you using on Windows 10 Right Now?

vscode terminal on wsl with zsh and powerlevel10k.

Where do you store GitHub README.md assets?

Project's asset folder. Thanks for listing alternative approa...

Docker Development

Dockerfile should pull in files from the same folder by defau...

Is there a "missing" feature or extension that you would like to see in VS Code?

Markdown Preview Enhanced can do more than I have wanted, inc...

Have you moved from Wordpress to a Headless CMS ?

If you don't have too many pages / posts, a static site gener...

Preventing copying text in a webpage 😁

Whatever you may try, one can always use Puppeteer, DevTools ...

What tool would you use to create slides for a tech talk?

It depends, but if it really CSS heavy, I would consider Reve...

JavaScript Array.flat()

It should throw errors if arrays cannot be flattened (but it ...

What's your fav bundler: Rollup, Parcel or Webpack?

Why bother using Rollup for libraries? Why not just Babel?

What's your fav bundler: Rollup, Parcel or Webpack?

Actually, I haven't used it much, but I would try it in combi...

What's your fav bundler: Rollup, Parcel or Webpack?

esbuild is the future, now. My favorite is actually Webpack,...

Simple Slides with Markdown and Python

If you are planning to make it online anyway, you can a CDN, ...

Goodbye Google

I think Aurora Store has non open source APK's as well. For ...

Input[type='checkbox'] question. Is there a way to change the color of the checkmark?

You might try to access "shadowRoot".

5 Ways to Customize VS Code

Good summary and has depth.

Please ELI5 big data and privacy concerns, and possible black hacks

Why should I think I am a worthy target? Who might be targets...

Svelte for Sites, React for Apps

If you are talking about compiled Javascript (e.g. es5, minif...

What are your fallback search engines (or alternative ones)?

Why Yahoo Japan?

Tailwind but not purgeCSS, and be friendly with other frameworks

As long as you don't use Bulma or Buefy, that is. Purge CSS ...

If there is an input, there should be a form

A common pattern I use in Vue <form @submit.prevent="do...

How many email addresses do you use?

Having more than one email is pain, especially for identity p...

Building a basic website with Parcel

It's a known bug (in GitHub issues), and very common too; but...

Building a basic website with Parcel

But you did realize the solution? Either really install and i...

How to shuffle an array in JavaScript

I read the solution part of javascript.info/array-methods#shu...

How to shuffle an array in JavaScript

Is the first method really flawed? Also, rather than Math.ra...

October 15th, 2020: What did you learn this week?

wget vs cURL wget is not just GET request maker, but for dow...

Building a basic website with Parcel

Parcel is supposedly faster than Webpack, but may sacrifice c...

What was the most irritating quirk for you when you learned another language or stack?

Golang and R language. ...

Benchmarking JavaScript: is removeChild faster than innerHTML given thousands of DOM elements?

There is also dom.textContent = '' Enter fullscreen...

3.76% Python packages have no summary

The most common way to include it in the packages is to add ...

Would You Pay $1/month To Read Articles From Your Favourite Bloggers?

No, but I would pay 5 or 10 for selected Patreons. 1 is too ...

What are your fallback search engines (or alternative ones)?

DDG relevancy is so bad that I stopped using it. Adapting fo...

Looking for no framework, no "library" static site generator, with API data source, or should I go for SSR?

I completely forgot about *.eleventy.js; so yes, it is possib...

Pagination in Nuxt

My solution is But I didn't use Nuxt Content (and I didn't...

Is it possible to convert Chrome Extension to Electron-like?

What do you mean by using even Golang?

What Pizza🍕

repl.it?

Is sudo just sudoly safe?

So, is it possible to ban sudo? (But not ban sudo -u admin, w...

Electron JS

idk, but indeed, if I had to recommend, I would say Electron,...

Electron JS

If you need Webview, Electron might be the best. There is al...

What are your favorite coding challenge sites?

I love Exercism in that I learnt how to actually run code on ...

Does 'not using Chrome' to you also mean 'not logging-in to any Google services'?

I just love choices, and encourage healthy consumer-benefit c...

Does 'not using Chrome' to you also mean 'not logging-in to any Google services'?

I use Brave Browser, and used to used DuckDuckGo; but I chang...

5 reasons for Linux

Real reasons Low resources. Very safe on older PC's. Never ...

What search engines have you used in your apps?

Rather, one would have to ask, what features do I really want...

What search engines have you used in your apps?

lunr.js - Only flat file CMS and serverless functions are eno...

Alternative to Bootstrap??? 🤔

If I had to go most radical, I would say, normalize.css or...

Apache Cordova in 2021?

React Native / NativeScript? Or, Flutter? Xamarin?

BeautifulSoup is so 2000-and-late: Web Scraping in 2020

Why not just simply lxml with xpath? (Who says we have to use...

How do *you* pronounce sudo?

Why not saa-daa, for Substitute User Does?

loading...