ProgerHub
4.86K subscribers
137 photos
2 videos
64 files
301 links
Ads & contact: @crazydev93

A channel with programming news and tips and tricks, nice for beginners but also for experienced programmers. πŸ’»
Download Telegram
5 webdev tips you may want to know πŸ”₯ #3

Just a quick word before we start. I'm currently trying to grow a community over on twitter where I share technical tidbits I learned working in this industry for about 6 years now.
A practical approach to structuring Golang applications

This article will describe the common approaches which are used for structuring Golang applications. Golang does not have an official guideline to structure the project, so it is an opinionated guideline to structure Go applications.
It's time to save money!
Find top software and tools lifetime deals.
Follow here πŸ‘‰ https://t.me/toolslifetime

Forward to your friends ⏩
Flutter is better than React Native - http://amp.gs/jGq3l

#flutter
Events in Solidity smart contracts

The Ethereum blockchain logs events that are useful and can be queried. As smart contracts perform actions they can emit events to the logs in the blockchain environment. Click here for a step by step guide on how to add and emit events in your smart contract. System Logs are not part of the actual blockchain since they are not required for consensus.

- Events are declared using the β€œevent” keyword
- To emit an event in a function use the β€œemit’ keyword
- Events are recorded in the transaction log of the block chain
- Events are cheaper to store then state variables
- Smart contracts cannot directly access the event logs

https://cryptomarketpool.com/events-in-solidity-smart-contracts/
In Django a database index is automatically created on the ForeignKey. You can disable this by setting db_index to False. You may want to avoid the overhead of an index if you are creating a foreign key for consistency rather than joins, or if you will be creating an alternative index like a partial or multiple column index.

#django #python #tips
This page documents the time-complexity (aka "Big O" or "Big Oh") of various operations in current CPython. Other Python implementations (or older or still-under development versions of CPython) may have slightly different performance characteristics. However, it is generally safe to assume that they are not slower by more than a factor of O(log n).

https://wiki.python.org/moin/TimeComplexity