Trending Feed

Front End Developer

The start-up guides, tutorials and documentation in general for Firebase are pretty outstanding.

There is 1GB database storage for the free tier as compared to Supabase's 500MB. Not that I think there is anything wrong with Supabase, I intend to try it out someday.

Also if you are doing any sort of personal front-end project, even using a free cluster from MongoDB can be a lot of work and setup, with Firebase (specifically Fire store and Google Authenticator) the implementation of BaaS is quite easy to get up and running.

It's pretty easy to understand the Fires store security rules as well, and if you ever have a hard time trying to figure something out, there is good community support and YouTube tutorials for most topics.

READ MORE
3 upvotes2 comments1K views
Marc Scholten
Marc Scholten
May 16th 2022 at 6:55PM

You might also want to check out https://stackshare.io/thin-backend Thin offers unlimited projects on the free tier which might be useful.

Reply
Jack Heaton
Jack Heaton
May 16th 2022 at 8:17PM

Interesting, thank you

Reply

Firebase is the go to solution for a backend environment for any iOS or Android mobile app. It's easy to setup and integrate. As well as containing a wide range of services to meet lots of different needs. The free service tier give you enough headroom to let you experiment and test before committing to the service.

READ MORE
4 upvotes1.8K views
Needs advice
on
FlaskFlask
and
DjangoDjango
in

I'd like to make a web app using Python as a primary language and PostgreSQL for data management. Using those two I can do all the back-end and control functionality, but presenting it as a webpage is still a slight challenge.

I could do everything with pure HTML5, but I would like to try a framework to speed up the process and make it more maintainable. Django and Flask seem the two most popular frameworks for Python web development, but I'd like to hear your opinions on the matter (I'm also up to trying any other Python-based framework that is an 'industry standard if there is such a thing).

I intend to do styling myself, and being able to create dynamic and responsive websites is a must-have.

Bonus points for tips on what web server environment to use. (I've done Apache2 in the past but I think it may be outdated)

READ MORE
6 upvotes980 views
Replies (3)

I recently came across a training course on using Django and React together. That got me thinking about how to serve up the project and remember that Heroku had a great interface for serving up my Django/Python App so I would think it should work. Figured I would throw in my 2 cents, not sure if it helps.

READ MORE
3 upvotes658 views
Recommends
Flask
Django

Hi flashing-blinkenlights,

Python has an excellent ecosystem with a number of mature server-side web frameworks, a wide variety of libraries, and a lot of learning resources to boot.

Flask and Django are both great frameworks for producing web applications, but they have different strengths. Judging from your description of your project, you need a Python-based server-side web framework with an easy-to-use ORM, and for that reason, I would recommend that you look into Django as it's a "batteries-included" kind of framework. Also, it has a great admin tool built-in that makes it very easy to produce a UI for managing the database entities you create directly from within the browser.

In case you, at some time, would like to evolve your platform to be REST API-driven to some degree (e.g., for consumption by external parties), Django also has the "Django Rest Framework" plug-in, which provides all the tooling and documentation needed to produce well-behaving and secure REST APIs.

As for the choice of webserver running in a reverse proxy configuration, you can use Apache HTTPD for sure. Very popular these days is a rival webserver called "Nginx," which performs well and with a lot of momentum.

For quickly and easily getting a Django app running in production, I can recommend considering Heroku, at least in the beginning. It offers a path of very low resistance, and you don't need to worry about the reverse proxy config either.

I hope this helps, and good luck with your project. 馃檪

Best, Thomas

READ MORE
2 upvotes78 views
View all (3)
Tech lead @ AccountIQ at Bambora

We searched an effect monad to replace scala.concurrent.Future and move our tech stack away from 'Scala as better Java'.

The requirements for the replacement were:

  • Battle-tested & documented;
  • Type-safe;
  • Fiber-safe (not leaking concurrent resources).

ZIO was picked for the following reasons:

  • ZLayers (with zio-magic) that enabled us to structure the application & do DI in a functional way;
  • Typed error channel for safer handling of business-logic exceptions;
  • Built-in Scheduler and retries / cancellation;
  • Steeper learning curve when compared to cats-effect.
READ MORE
4 upvotes1.8K views

Render is just a simplified frontend for AWS. You don't save any money in the long run and it closes a lot of doors for you if you want to use Infrastucture as a service like Terraform or Pulumi. If you only have one service you want to deploy and you're sure your stack won't grow then maybe I could recommend Render.

READ MORE
3 upvotes2.7K views
Senior Software Engineer at KMW Reisen GmbH

We use Redis as common in-memory cache for our distributed php processes. Since it also provides message-queue functions and was already in our stack, we didn't use an alternative like RabbitMQ for async handling. We have a multi-instance setup (configured via Ansible) on our maschines. High-Availaibility is configured via Redis Sentinel and HAProxy. The HAProxy-HAProxy setup is also responsible for SSL encryption. We could not use twemproxy since not all commands our application uses are supported.

READ MORE
4 upvotes3.1K views
Needs advice
on
PostgreSQLPostgreSQL
and
Cloud FirestoreCloud Firestore

I am having a mid size React Native project, I work with SQL databases but I am thinking about moving to NoSQL, I tried to learn NoSQL databases like Cloud Firestore but I faced issues at building the relation between models, also I noticed that the data is being duplicated in many places, should I stick with SQL databases like PostgreSQL or try again with Firebase.

READ MORE
4 upvotes2.5K views
Replies (4)
Full-stack Developer && Software Engineer at Self-employed

Moving from a SQL database to a noSQL database is a really big deal, congrats 馃憦! In the current industry having handy knowledge of both is really important and I would recommend continuing to learn Firebase even if it feels a little unnatural.

When using noSQL databases you have consider the idea that the models you work with are individual documents. The data in the documents can be duplicated, re-referenced, and completely dissimilar to each other-the only thing differentiating two documents is an ID value. It's normal for data to be duplicated if you don't perform operations on the same document you already created. You stop unnecessary duplication by wrapping your document creation in a function that checks for a certain value (say if you don't want a username value to appear twice you would check if your collection of documents already has one with a username value and then throw an error).

Creating relations in a noSQL database would be done by referencing a different document in another collection (typically with the aforementioned ID value) and then going and finding that document in that collection. Say you want to find a user's posts. In the User document you would have an array of references to different documents in a Post collection, and then you would go to the Post collection and find each document that has a matching ID number to the ones stored in the User's references.

All in all, you have to realize you are working with two completely different ways of storing and relating data, similar to learning a new and completely different language. If you stick too it and don't try to force SQL onto noSQL then you will get the hang of it and it will be very rewarding.

READ MORE
6 upvotes1 comment2.1K views
Jens G眉nther
Jens G眉nther
May 18th 2022 at 4:36AM

Ray, without the context of the question your reply is 100% correct.

Reply
CEO at digitally induced GmbH

Postgres is a solid choice over Firestore. The structure of the database schema will definitly help you avoid duplicated data issues. If you want to have an easy to use react integration for postgres, check out Thin Backend

READ MORE
4 upvotes980 views
View all (4)
Principal Software Engineer at AtCore Tech

LXD based on Linux Containers is simple to install, use and is extremely flexible. I automate all my solutions using the Pylxd module which allows complete control over LXD container creation and configuration including networking and proxies etc.

LXD supports cloud-init which makes templating the base package, user and configuration painless.

Each LXD instance is a full Linux instance so setting up multiple tasks/processes via the standard systemd of each instance is quick and easy.

READ MORE
5 upvotes2.6K views
Web Designer & Developer at Self-employed

This will be weird. I have pretty aggravating ADHD that makes project organization and planning tricky. I was finding myself torn on how to sort my React components and the resources they require in a manner that made sense to me, but it resulted in a lot of projects being re-initialized repeatedly because "it's not quite right".

Vue destroyed that anxiety with its single-file component (SFC) model and composition API. When a single .vue file can pack its relevant requirements into a script, template, and style tag, I no longer need to consider how dependencies need to be organized. I just write exactly what the component needs into the file, and save it wherever I require it.

As for static assets, Vite helped with this by defaulting root paths to the /public folder, keeping my imports short and my assets away from my code.

My current portfolio project uses /src, /src/components, and /src/modules for the Vue parts, and /public contains my logos, images, stylesheets, etc. The level of specificity has helped me compartmentalize my tasks and make the development process feel manageable and digestible, no matter how large it gets.

READ MORE
10 upvotes1 comment9.8K views
Jack Heaton
Jack Heaton
May 13th 2022 at 4:20PM

I was looking into using Vue, and also have experienced similar feelings about project organization in React (and Next.js for that matter).

Thanks for sharing this, it's a helpful take!

Reply

I've used JS in one form or another in almost every web app I've worked on for the past 10 years. Usually frontend but have also used it in a server-contexts like with nodejs.

Projects:

  • Robot control system (front and backend)
  • Personal websites
  • Validation software frontends
  • Workspace microservice (nodejs)
  • Many more
READ MORE
6 upvotes11.8K views
CTO at WebBoss Ltd

I was looking for a new IDE that could do everything I needed in one place easily. I needed GIT and FTP integration, plus MySQL to manage and view databases. I found PHPStorm to be the best for all this after trialling a few different platforms (like Sublime Text), and preferred the way PHPStorm worked and functioned.

READ MORE
7 upvotes1 comment13.6K views
Richard van Beelen
Richard van Beelen
May 1st 2022 at 6:11PM

PHPStorm is the best choice, on the left side you have your local project, on the right side your online project incl. your database. At the bottom of your screen terminal options for both local and server. You can easily drag and drop files from the local project to the server on the right.

Adding new tables or columns to your database is very easy, add, edit and view databases and tables as you are used to with PHPMyAdmin. What also makes PHPStorm great is the immediate display of errors with a clear explanation, it helps you to replace the wrong codes automatically, it also gives you advice or a better and cleaner way. Very useful especially if you want to get your PHP project ready for PHP 8.1+, at the bottom of the screen you can easily switch between PHP versions and see immediately what can be improved.

PHPStorm is definitely recommended, with PHPStorm you do not need other programs and tools like Filezilla, PHPMyAdmin, git tools, PowerShell / Putty, ect. anymore. Everything is there and ready to use right after installation, you can however install additional plugins like Tabnine. You don't really need more, PHPStorm is so great that it makes things much easier and your projects will be developed much faster.

The only drawback compared to VScode is that PHPStorm demands a lot from your computer in terms of memory, but this also varies by project and setting. PHPStorm is the best choice for any PHP developer/scripter but also for developers/scripers for both JS/NodeJS, HTML, CSS/SCSS and even Python.

For those who haven't explored PHPStorm yet, give it a try. Of course everything takes some getting used to at first but eventually you will discover the power and luxury of PHPStorm, it will really save you a lot of time and you won't want anything else, good luck!

Reply
Software Engineer at Mixtape Bot
Migrated
from
NGINXNGINX
to
TraefikTraefik

With Traefik, I can now proxy services with 4 simple labels on a Docker container. I don't have to copy files and replace the URL anymore. With Traefik, I also don't need to restart it to add/update/remove proxies, which is really nice, as with Nginx I would have to do that every time I made a change.

READ MORE
6 upvotes1 comment14.5K views
Charlie Nguyen
Charlie Nguyen
April 20th 2022 at 12:16PM

good news, thanks!

Reply
Lead Application Architect at TekPartners

Full disclosure; I worked for both Telerik and Infragistics in Developer Relations for these projects. From my point of view, neither is a clear "winner" in this space. Kendo has some nice features and Ignite doesn't have and vice versa. We ended up picking Kendo because we needed to settle on one of these, and most of our clients already owned Kendo because it came with some other Telerik product. That's it. It could have very easily gone the other way, but Telerik kinda won the ground war here, so...

Having said that, the only tool we really use is the grid (the rest of them are no better than Flowbite/HTML5/etc. controls. And even then, we really need to be leveraging the advanced functionality of the grid before telling the client they'll have to buy a support license.

READ MORE
4 upvotes1.7K views
Security Software Engineer at Pinterest

Security team builds services, solutions and tools for teams within Pinterest to manage accesses of critical production resources as well as facilitate adding authentication, authorization and accounting within critical production micro-services. Issuing identities to > 130k AWS EC2 instances, using them to make authentication and authorization decisions high bandwidth critical traffic flow conditions while services communicate in a mesh, requires a great deal of performance and stability. GoLang provides exactly that. Also primary engineering skills in Security team need not to be fully familiar with complex programming logic requires in Java/Kotlin while avoiding the pitfalls on runtime failures or uncertain behavior using Python in production leads us to GoLang

READ MORE
8 upvotes28.8K views
Needs advice
on
Vue.jsVue.jsReactReact
and
AngularJSAngularJS

I love Node.js and MongoDB (A database that goes well with Node). I will use it for embedded systems and backends for web apps. I have questions for frontend JS:

  1. Which front end JavaScript framework is good for web apps

  2. Which front end JS framework is good for PWAs(progressive web apps)

Backstory: I experimented with Javascript. Built lots of things with it. I want to organize my Javascript toolset by seeing which tool is useful when(e.g. use Angular for enterprise, use Vanilla for fun, etc.)

READ MORE
5 upvotes20.4K views
Replies (4)
Recommends
Vue.js
React

I have a view that Angular js changed its design patterns too frequently and messed up while trying to be too obsessive. Vue 3 is simple powerful, high performance and brings the composition API that also brings overall simplicity. It can be done using pure JavaScript and in my view that's a plus point in development, if you are experienced developer and avoid type mistakes etc..

Most other frontend frameworks support Vue. For e.g. Ionic..

The server side rendering can bring magic of SEO friendly sites while being single page application.

READ MORE
8 upvotes19.1K views
Recommends
Vue.js
AngularJS

I've been using AngularJS and Vue.js extensively and can recommend AngularJS in a more enterprise environment and Vue.js for personal projects. AngularJS has, in my humble opinion, a lot of boilerplate code, which is useful keeping things organised in a team setup. Vue.js has a more minimalistic approach.

READ MORE
6 upvotes19K views
View all (4)
Head of R&D & Partner at SYNDIKAT7 GmbH

Primarily for the exchange between a frontend client and a backend system. Powerful tools for integration into frontend applications (written with React or Angular, ...), a possibility for exposing a playground, self-documented API, powerful query language (for instance, the app decides which information is needed). You can do this also with Jersey or other similar solutions but (most of the time) then you need to define your own query language on top of HTTP.

READ MORE
5 upvotes17.6K views
Founder at BinksDev Software

The tool I was hosting was a relatively small NodeJS application which utilized the Spotify API - it was meant to be very low maintenance, but still required intervention (to renew certificates, restart the Node app when it crashed, etc). It was also using old NodeJS frameworks that were either deprecated or very outdated.

I made the decision to migrate the service to Google Cloud Run, and change the underlying database from MySQL to RavenDB, for performance and ease-of-use reasons. The move was relatively easy - the only challenge was around migrating from old libraries I was using to perform REST requests, and of course adjusting from a password authentication system to client certificates

I chose to migrate to RavenDB for their advanced dashboard, which allows you to monitor databases, queries, and cluster node performance. Working with RavenDB has been a much smoother and user-friendly experience compared to MySQL.

Hosting the application in Cloud Run, rather than on a dedicated Linux VM, meant that costs were drastically reduced (from 拢10/month for an AWS EC2 micro instance to 拢0 for Cloud Run). The serverless architecture means you're only paying when a request is made to the URL - for a small service such as mine, this was a life saver.

Best of all? I get advanced monitoring statistics from Google Cloud, showing me exactly how many requests I get per day, how much memory/CPU is used, and how many container instances are active to serve traffic. When an error occurs, Cloud Trace keeps track of the exception, the line it occurred on, and how many times the error has been seen.

I knew this migration would lead to a low-maintenance solution that I was hoping for, but I didn't realize how low maintenance it would truly be - I haven't needed to even look at the service since it was migrated, aside from checking I allocated enough cores/memory to the containers.

READ MORE
5 upvotes20K views
.Net Developer at Exe Software
Needs advice
on
Next.jsNext.js
and
.NET Core.NET Core

I'm looking to develop a website. My current plan is to use ASP.NET Core 5 web api for backend and React for front end. But not long ago I hear of Next.js and that it is capable to have all backend inside Next.js. If so, is it still worth using .Net + React (or some other combination of frameworks).

READ MORE
6 upvotes17.6K views
Replies (5)
Sr. Site Reliability Engineer at OneDegree

Knowing the requirement of the website and the resource you have will help you find the best tech stack.

If you are very familiar with ASP.NET and some Javascript, but you are eager to build a website quickly, I will suggest you to go with your first plan, even vanilla Javascript or jQuery for the front end side.

In the other hand, you are willing to learn Javascript deeply and try the most famous React.js Framework Next.js, and you are not in a hurry to build this website, I will suggest you to use Next.js for both front end and back end, it is stable and community friendly that you can discover a lot of resource.

READ MORE
5 upvotes16K views
Recommends
Next.js

My personal opinion: Next.js. It's so easy to use if you already know React. Its backend abilities are awesome, with better support for SSR (server-side rendering) than any cross-language framework combo could do. It's fast, reliable, and can tightly integrate with any backend you could want. If you're also really set on .NET, you could create a .NET backend and use Next.js to make the API calls and server-side render the results for better SEO. I've used it multiple times, and it has never disappointed. However, as a disclaimer, I've never used .NET, but I love React.

READ MORE
4 upvotes7.3K views
View all (5)
Chose
ES6ES6
in

ES6 bring us many cool features. Arrow function allow us to write a pure function instead of traditional function which play a role of class constructor. Promise and async make it possible to write async code with sync way. Many other features I can't list all here, but as a modern front-end developer, use ES6 in our development is a necessary thing.

READ MORE
5 upvotes26.5K views

I have to start automation from scratch for a webapplication that is developed using angular framework. I'm planning to create a framework with python for selenium, and use python with selenium for creating test scripts, but not sure how much time it might take and what challenges are there. So I'm looking for any existing framework/tool that can help me in E2E testing of my application.

READ MORE
2 upvotes26.6K views
Associate Director Engineering at Sunstone Eduversity

We did a lot of POC on this topic, Had multiple discussion between our developer a lot of R&D , Then we made our mind. Flutter community is going better day by day, and a support of calling native code is going to help you achieving anything that you can't do in flutter. Hot Reload is really hot. And one of the good reason is it's web support.

READ MORE
3 upvotes29.2K views
Freelance Developer at Correira Web Services

I chose stack overflow because I am on this website 24/7 while working on any project. The community is the best and they have almost any issue you can think of! The discussion and examples are great for working through and understanding the why behind the answers rather than simply working code being spit back at someone who asks a question.

READ MORE
8 upvotes1 comment33.6K views
Catalin Radoi
Catalin Radoi
May 2nd 2022 at 9:57AM

What would be the alternatives? :)

Reply
Machine Learning Engineer at FLO HEALTH, INC.

We train and deploy various ML algorithms to personalize the user experience in every part of the Flo app. While our first models were trained and served in a custom way, it quickly became hard to manage all the complex datasets and entities we deal with.

Therefore we鈥檝e adopted the Tecton Feature Store. Tecton is one of the most advanced Feature Stores on the market. It allows to quickly explore and experiment with new features and datasets offline, while making it easy to serve the exact same data in real-time in a high-load environment.

The key benefits of using the Tecton Feature Store:

  • A clear and unified feature definition framework - less place for bugs and inconsistency between training on historical data and real-time serving

  • The feature definition code is covered with tests, the feature availability and freshness is monitored

  • Online data serving is easy to run and manage - every feature service becomes an API endpoint that is launched with a single command

  • Time-travel - we鈥檙e able to obtain the exact historical values of every feature we store and serve - this makes it easy to debug models retrospectively

  • Features are reusable in multiple problems - we can collaborate across different domains, while keeping the same standards for ML engineering for the whole company

Tecton runs on our own AWS infrastructure, using Spark and DynamoDB as offline and online storages accordingly. Tecton was our first step on our way to a scalable, reliable and efficient ML infrastructure at Flo.

READ MORE
8 upvotes31.3K views
Needs advice
on
PythonPythonJavaJava
and
C langC lang

Actually, I'll add, C++ and C# as well.

Well, I'm into Computer Science since 1996, so I understand a bit of everything plus a lot of different OSs, I study 10 hours per day every day. However back in the 90s we didn't have books or universities about programming, all were passed through if you knew somebody in that profession. Which I did and in that time, he showed me .NET and MySQL, and that offered a lot of jobs also Java. Today you have a lot of options but I'm already discarding new languages as I believe they will jot succeed.

My always dream was to create game, and software. I don't understand all programming concepts and I'm studying all languages at the same time, so I'm heavy loaded. But that keeps me more aware.

I made a choice: use Python for everything but if you want performance, apps, security, compatibility, Multiplatform. What should I choose? The real question here is: which language should I go 100% and that language will teach me all I need about programming BUT without getting lost in that language forever (I discard any Assembly possibility) and one that has full documentation, support and libraries.

In my experience: I found a lot of info for python and java. But hardly I have ever found anything for C lang, C++ and, what about C# (it's only for Windows, is it easy, I saw a lot of documentation). Thanks!!

READ MORE
8 upvotes19.9K views
Replies (3)
Recommends
Python
C++

Python can be linked with C++ both language are similar in many places (using same libraries or concepts to build libraries) - except memory and static types. C++ is more assembler and have different syntax (need 3x-4x coding more).

If you do engineering it is perfect stack - Java is to slow in coding (4x more code) and little faster than Python - whatever it is hard to mix Java/C++ what is easy Python/C++.

In the most program you do not need super performance but if you need C++ is the best and have rich Object Language much richer than Java and more poor than Python. Python is true object language - everything is object.

Whatever sometimes more important is framework than language for specific use.

READ MORE
3 upvotes2 comments14.6K views
Prakhar Vatsa
Prakhar Vatsa
March 26th 2022 at 6:49PM

I mean C++ is a superset of C, so might as well use C, am I right? It's just a case of simple bike, automatic car or manual car. python is simple bike, used for town based biking, like for going to school, etc. java is automatic car(like the memory management), while c is manual car(oil changes, motor changing, etc.). It's like comparing honda civic to bugatti chevron. Bugatti chevron is fast and all, but it isn't general purpose, it's purpose is for racing. honda civic is general, and that's what this guy is looking for, i think.

Reply
Cezary Wagner
Cezary Wagner
March 28th 2022 at 11:57AM

You can use C++/C with Python. Current C++ is not the old one so memory management can be automated whatever memory management in Python and C++ is different. You need understand how both behaves. Pointers, references, stacks, core types - in Python it is simple. Same with int in Python is one type in C++ 8 types for int with overflows.

Reply
Recommends
Python
Cython

I would go with Python, it is fast to code, readable and very powerful without giving you too much to think about (e.g. memory management). If you're looking for speed, Cython is a fairly good way to get there, since Python is a C-based language it can be compiled to C using Cython and will get you a very significant boost in speed! You can also make use of C libraries if you prefer. The only downside to Cython over Python is that it is compiled and not interpreted, which can make debugging a pain (but you might find yourself doing most of the debugging in Python before switching to Cython). C languages are a bit of a pain to read up on (API, libraries etc.), but Stack Overflow has you covered in most cases!

READ MORE
3 upvotes1.6K views
View all (3)