It offers me to simplify this condition statement: export const siteUrl = isVercel ? vercelUrl : netifyUrl;
With this : export const siteUrl = [vercelUrl, netifyUrl][isVercel];
It's can't handle NextJS and TalwindCss for now.
Eslint + conventional code analysis tools are way ahead of this app.
I'm a Ph.D. candidate at Binghamton University researching compiler design and program analysis to enhance system security. To quote Pastor Manul Laphroaig, "I'm building my own bird feeder!"
The second statement isn’t simplified. And you have to create a copy of the two values for vercelUrl and netifyUrl to make the array to be indexed.
Ternary expressions really aren’t bad once you understand the syntax, and they are used in a lot of languages, so you’ll be seeing them again in the future.
You welcome, I know that this feature is "beta", more like "alpha" tbh. TailwindCss could be considered as anti-pattern, some devs advocate against it.
But Next.js should work out of the box.
A software engineer with 4+ years of experience who loves working with JavaScript and loves refactoring to the point that I look weekly into old codebase of mine and refactor some parts of it!
Web Dev full-stack [LAMP] since 2005, but much heavier on the JS stuff these days.
Jack of all Stacks, Master of some.
Always looking to learn new things. Always glad to help out, just ask.
Location
Atlanta, GA
Education
B.S. in Biochemistry 2004, M.S. in Computer Information Systems 2007
Web Dev full-stack [LAMP] since 2005, but much heavier on the JS stuff these days.
Jack of all Stacks, Master of some.
Always looking to learn new things. Always glad to help out, just ask.
Location
Atlanta, GA
Education
B.S. in Biochemistry 2004, M.S. in Computer Information Systems 2007
Tried it on my project.
It offers me to simplify this condition statement:
export const siteUrl = isVercel ? vercelUrl : netifyUrl;With this :
export const siteUrl = [vercelUrl, netifyUrl][isVercel];It's can't handle NextJS and TalwindCss for now.
Eslint + conventional code analysis tools are way ahead of this app.
The second statement isn’t simplified. And you have to create a copy of the two values for vercelUrl and netifyUrl to make the array to be indexed.
Ternary expressions really aren’t bad once you understand the syntax, and they are used in a lot of languages, so you’ll be seeing them again in the future.
Thanks for the feedback.
You welcome, I know that this feature is "beta", more like "alpha" tbh. TailwindCss could be considered as anti-pattern, some devs advocate against it.
But Next.js should work out of the box.
How would you rate the documentation in my recent project? github.com/skywarth/darkest-PR
Do you think it's good, easy to read?
Looks great.
Looks cool but doesn't serve the purpose at least from my own POV.
A typical readme should contain less text and more focus on how to get started instead of jargon, but overall cool!
Thanks for the suggestions Amr, appreciated.
I'm pretty sure articles like these are called "spam" ?
Why?
2/3 of the post is an advertisement for mimrr....isn't it obvious?
They sponsored the article.