HNHacker News
TopNewBestAskShowJobs

yagodragon

1,305 karma · joined November 2, 2016

submissionscomments
yagodragon··on VueJS turns 10 years old
Going through the same migration from nuxt 2 to nuxt 3. Can you share more details? Did you also move from vuex to pinia ? If so, how did you manage the API change (dispatch, commit) scattered through the codebase. I'd love to learn more
yagodragon··on Xstate: State machines and statecharts for the modern web
I'm also exploring xstate for a similar use case and would love to know more about your experience with it. I'm particularly interested in understanding the level of customizability you allowed in your implementation.

My use case involves implementing various user flows in my app and I'm currently weighing the benefits of using xstate versus react-router.

Also, I'm curious about how you integrated graphql into this project. Could you share some details on that?

Lastly, I wanted to ask if you stored all the different configurations on a database or on git? If you used a database, how did you manage different schema versions?

yagodragon··on Discuss HN: Software Careers Post ChatGPT+
As a developer, I legit feel crippling anxiety and might need professional help.

People saying it's not intelligent, really don't get it. It looks like it's working exactly like the human brain. We, humans, also pretend to know what we're talking about and often talk with authority without really understanding what's going on. When you apply for a react.js position you pretend to be a js God when in fact you know shit, just enough to be able to stitch things together to make them work.

The rate at which technology, languages and frameworks change also doesn't give you the ability to master your craft. In fact, mastering a specific tool/framework is risky for your career because of new tools emerging every 3-5 years. Every company uses a variation of react,vue,python,go,java,ruby whatever, it's impossible for the human brain to keep up and be good at everything. We can only scratch the surface of the complicated mess of a tech stack and that's exactly what gpt3 is extremely good at right now. So yeah, I fear a lot...

I can't imagine how good this is gonna be in 5-10 years. I legit feel scared and anxious. How can we prepare for this future?

yagodragon··on Ask HN: Getting into AI?
I'm in a similar situation. I have 1,5 year of experience working in a web dev full-stack job, but the FOMO is so strong with all the advancements in AI. I fear my skills won't be future-proof and eventually AI is going to take my job. These thoughts are taking a toll on my mental health and as a result, I can't focus on improving my skills because of the constant fear of me losing the hype train / making the wrong career decision.

Is this fear justified? How should I proceed? Is software development dead? So many questions and uncertainties...

yagodragon··on Six programming languages I’d like to see
I'd say Dart[0] fits the description.

[0]https://dart.dev/

yagodragon··on Why Ruby on Rails Is Still a Good Choice in 2022?
I don't know Ruby on Rails but i would love to learn it at some point. At my job we're creating some internal tools that are 95% CRUD and we're using JavaScript for everything. Vue.js/Nuxt.js/Vuex with express.js(on docker) and a shitty "headless" CMS (strapi) with MongoDB for backend. It sucks. We're writing hundreds of LOC every day just to create some simple forms. Our tech stack is so fragmented that makes it difficult to make changes and cooperate in our team. A simple thing like a <select> or <datalist> html element is re-implemented in a vue.js UI library and across 3 different files in Vuex. On the backend the story is even worse. Strapi is very limiting and it's not designed to be extended with custom business logic so we have to rely on custom solutions from scratch. Rails appears to be the best solution to our problems but our CTO only likes Javascript i guess...
yagodragon··on Django 4.0 alpha 1 released
What might surprise him/her even more is that PHP is actually better than js/react at anything web related. Symfony and Laravel are amazing frameworks. You get frontend scaffolding and admin generation,fast templating languages, authentication, authorization, databases, great tooling. On top of that PHP 8.0 improved the type system and these frameworks are quickly adapting to use types everywhere.

When it comes to web applications tho, Django is not as pollished as Laravel/Symfony. There is no webpack integration (or any other npm frontend tool). built-in authentication is very basic, hosting is a pain.

The thing is a haven't written a single line of code in Django, but modern PHP and it's ecosystem looks more fun from a front-end, JS developer's perspective

yagodragon··on Is 2021 the Year of the Linux Desktop?
Dual monitor setup is a huge problem with linux distros. I haven't found yet any DE that works out of the box. I'm really looking forward to KDE with official stable wayland support, until then 2021 is not the year of linux desktop
yagodragon··on Flutter 2
We're all complaining about how js is a bad language, tooling is a mess, and how the web is fundamentally built for documents and makes it hard to create app-like experiences. Now, Google comes and creates a whole new UI toolkit from scratch, couples it with a very beautiful SDK and component framework and offers a far better programming language than js could ever be but we're still nagging. I was also pretty disappointed with the demo at flutterfolio.com that is supposed to show how great Flutter 2.0 for the web is. It's not that good but it's gonna get there eventually, given the hype around wasm and <canvas> technologies. Not to mention that Flutter is already better and easier to use than the existing native tools for both Android and iOS. I believe Flutter is an extremely ambitious project and I appreciate that Google is really trying to give an answer to the problem of cross-platform UI development.
yagodragon··on Monolith First (2015)
I recently got introduced to the Laravel framework in php. I think it's probably the best implementation of a monolith web framework right now. Php is very simple if you come from c/java and the framework provides you with so much functionality out of the box.
yagodragon··on Show HN: SleekDB – A NoSQL Database made using PHP
I love it! I like how it's just pure php and purposefully built for small size I/O needs. The documentation also looks great, so I might actually give it a try. Has anyone used it?

On a side note, for small projects everyone preaches about serverless js functions and firebase, but a can't imagine how sleekdb + a micro framework like slim + modern php 8 is actually bad

yagodragon··on Thinking about software engineering
What would be the best programming language matching his criteria(flexible, concise, static types, DSLs)?
yagodragon··on Alternative lightweight UI library to modern day frameworks
Right now Next.js might be the hottest front end framework but I'm looking for something simpler to build SPA's. I'm not interested in SSR or SSG at all. Mithril.js looks very promising as it provides you with everything you might need to build a simple web app out of the box. The only other frameworks that do that is Angular and Ember, but they're both declining in popularity especially Ember. On the other hand React.js has CRA that is very complicated and doesn't even come with routing out of the box. Is there any other good and modern SPA framework out there?
yagodragon··on What React Gets Wrong
Serious question. Is there an alternative to create-react-app for SPAs? I know Next.js is the hottest framework right now but i'm only interested in client-side rendering
yagodragon··on Kivy: Cross-Platform Python Framework for UI Development
Flutter provides an amazing developer experience. Dart is a great and modern programming language and built specifically for the needs of this framework. Everything just works out of the box. It's backed by google, it's completely open source, it doesn't need any native dependencies. It's a better version of Qt,RN, NS
yagodragon··on GTK 4.0 Released
Flutter[0] is also very promising. It's like Qt but simpler and more productive. I've already used it in mobile apps and it's great.

[0] https://medium.com/flutter/announcing-flutter-linux-alpha-wi...

yagodragon··on Sponsoring Open Source Developers
I'm very curious. Could you explain what is so special about clojurescript and why wouldn't it be possible to build your business with react and typescript?
yagodragon··on Microsoft Fluent UI System Icons
It's very interesting they made a flutter version and not JS
yagodragon··on 2020's fastest-rising tech jobs? Programming language PHP leads the way
For me, it was the learning material and the community. I'm a CS student and i wanted to learn a tool to simply create web apps and bring some ideas to life. I quickly realized that JavaScript is the future of web development so i jumped into it. I don't believe i'm dumb but learning node.js and express almost made me hate web dev. My degree hadn't prepared me for things like ORMs, authentication etc and every tutorial i stumbled upon didn't help me made sense of how all these things work together. At that time, i thought PHP was a joke until i saw laravel and how popular it got. Then i purchased a laracasts subscription and i was shocked how good it was. It just made me a better developer. I don't know if learning PHP in 2020 was eventually a good decision but i'm learning about things like SOLID and TDD while in Node.js i would be stuck trying to install body-parser just to make the simplest thing in web dev, accept an http request.
yagodragon··on If Not SPAs, What?
We've come to the point that being able to run code and render html on a server is considered a new feature (aka SSR and serverless functions). I recently watched the Next.js conf and i couldn't help but giggle.

-Do you want functions?

Use our proprietary platform

-Do you want to store content?

Use cloudinary, aws

- Authentication?

Auth0,firebase

- Database?

Use FaunaDb and our super cool new query language that nobody knows and cares about.

> Congratulations. You've built your new webapp on Jamstack. Now you have to manage large bills across hundreds of 3rd party services, vendor lock-ins. Also good luck trying to reproduce all that on a development machine or organize your code.

On the other hand you can just: laravel new project-name --jet and deploy on a single linux machine or heroku and you get:

-Robust and customizable Auth, password reset, 2fa

-A serious db like PostgreSQL and an orm

-SSR by default with 0kb bundle size!

-Any css tool you need

-Easy APIs, tokens and permissions

-Truly open source.You have full control of your code and data

So yeah it's just a command but yikes, who uses PHP in 2020, right?

yagodragon··on If Not SPAs, What?
Seriously, after all these years of JavaScript,SPA,react,redux craze, we're back at PHP, css and minimal js all over again. None of those new js frameworks allow you to build custom web apps faster than Laravel or Rails. I'm really curious about what kind of side projects all these people are building with e.g. next.js alone. Is there any kind of web app that doesn't need authentication, authorization and database access?
yagodragon··on Graphical User Interface Using Flutter in Embedded Systems [pdf]
- Flutter has built-in hot reload that enables fast iterations when designing an app. When you need to reset state though you have to reload the app which takes some time but it's not horribly slow.

- The performance of production builds is really good, better than any other cross-platform solution including web apps, PWAs, react native. I've got flutter apps running great on my cheap, old (circa 2015) phone with android 6.0. That's also a huge benefit of flutter, it can target older phones because it doesn't have many dependencies on native widgets etc, it just need a canvas to render.

- Dart not being a successful alternative to js(dart2js compiler), doesn't mean it's a bad language. In fact, Dart 2.0 was a serious update and the language now is great, with sane defaults and a nice standard library. I can't imagine any serious developer who knows at least one popular programming language like java,js,c# that would have problem with Dart. It's very easy to get used to it a couple of hours

> there are objective facts about it that are bad, and yet so many people love it.

can you elaborate more about those facts?

yagodragon··on Graphical User Interface Using Flutter in Embedded Systems [pdf]
Couldn't agree more. For me Dart is basically a better version of js + java. Flutter is also the greatest GUI framework right now and their tooling is excellent. Every time i'm working on a flutter project i feel at home because i can be sure everything is gonna work out of the box. I only care about my code and nothing more.
yagodragon··on Java Turns 25 – Whats Next? [pdf]
Java might be the most successful programming language. It is a solid choice among many different fields. It is used on huge infrastructure projects (Apache Foundation), governments, big tech companies such as amazon, ibm, google, apple for many large scale services. It can do web, ml, GUIs, it's still strong among academics. On top of that it offers a great programming experience with excellent IDE support and it's ecosystem is huge. Even if you don't like the language itself , you can choose between Kotlin,Scala,Clojure that run on the JVM.

I think that Java is seriously being downplayed by HN crowd.

yagodragon··on ‘CSS X’
> I still think we need something open and decentralized that competes with the App store and Play store, but one that offers apps that use basically the same APIs and technology that the native apps use.

Take a look at Flutter(which is similar to swiftUI). I know Google is behind it but it's so damn good. The JS community spends so much time creating new tools on top of older tools to achieve simple things that should be trivial in 2020. Meanwhile, flutter is typescript+react+webpack+component library + a bunch of npm dependencies(because dart has a proper standard library) + advanced styling/layout and animation primitives inside the programming language + amazing IDE support + compiler that generates optimized AOT native code.

Flutter Web is a huge bet though because it completely throws away every web tech and builds UIs on top of <canvas>. That way you get the same API's you get on mobiles. The results are not good right now but alongside Microsoft's Blazor they are the only technologies competing with the broken web landscape.

yagodragon··on PHP 8.0.0 beta 2
I think it is possible that PHP is still the best choice for web development in 2020.

I'm coming from an academic background and i was looking to learn a new backend language to create simple CRUD type, web applications. I already know c/c++, java, js and some python but after research it seems that Rails, Laravel and Django are the best options for this kind of projects as javascript on the backend is still a mess. So i've made a little comparison between them to choose what to learn.

Rails: It might be the best full stack web development framework from what i'm gathering, but it's declining fast and Ruby has a small market share outside the US.

Django: It's been always the 2nd or 3rd best option. Django 3.0 is going async which looks great on paper but in reality it needs work. It doesn't have a built-in asset pipeline for modern js development on the front-end. It needs plugins for basic stuff like social, api auth etc. Python has libraries for almost everything but the web is not always a first class citizen.

PHP: It is by far the most popular backend language. Libraries are tailored for web development and are probably well maintained because they are used by huge projects(wordpress, magento etc). For the same reason it won't disappear any time soon because it handles most of the information on the web and also billions of dollars in online commerce. Symfony has the most contributors than any backend framework and Laravel is probably the easiest framework to create an MVP with. Developers love Laravel and the community is huge. PHP is also improving and adopting new language features with a more advanced type system.

So the real question is why shouldn't someone learn PHP in 2020 ?

yagodragon··on Understanding null safety in Dart
I believe Dart is a more exciting language than Go. It's the most well designed scripting language out there, that can also be AOT compiled into native binaries. It's a better JS and a better Java at the same time. It would be also a killer language for backends and simple websites. Just imagine a better node.js built around Dart's excellent tooling.

What made Go more successful than Dart was a mix of decisions, luck, and momentum. On an alternate reality, Dart would swap places with Go. Dartium VM would have replaced Javascript on the Web and everyone would have been happy. Go would be seen as an obscure language with missing features that doesn't really do anything better than java/C#/C++

yagodragon··on The accidentally resilient design of Athens apartments
Have you ever lived on a different country? Despite it's ugliness, Athens is a vibrant and diverse city that never sleeps. Everything you need to do is close to your home. Jobs, night life, shops, bookstores, etc even a walk by the sea near mikrolimano. It's an interconnected community of human randomness that depicts the randomess of the real life.
yagodragon··on The accidentally resilient design of Athens apartments
You can't design a new city from the ground up and make it perfect. Cities grow organically over the time. Athens is one of the oldest inhabitated cities in the world. Growing up in Athens I really hated this ugly architecture but now I realize that nearly every little neighbourhood has it's own piece of history and every street is so full of life. I wouldn't trade that with any lifeless good-looking residential area on a European country
yagodragon··on Prisma Raises $12M Series A
Have you tried jupyter notebook + pandas dataframes? You just import a csv and you can explore, clean, manipulate data and make any sort of calculation using a real programming language. On top of that you can use something like seaborn and create visualizations. Then you click print pdf and you're ready. It almost feels like cheating.

You can say all you want about how fast,optimized and superior SQL is, but the python experience is way better for almost any time you need to make sense of some data.

Page 1 of 3Next →