Skip to content

Instantly share code, notes, and snippets.

View lreverchuk's full-sized avatar
🎯
Focusing

Lyubomyr (Lou) Revechuk lreverchuk

🎯
Focusing
View GitHub Profile
@jpswade
jpswade / laravel-best-practices.md
Created August 17, 2022 15:54
Laravel Best Practices

Laravel Best Practices

These are best practices, rather than coding standards.

Coding Standards should be guidelines that we should be aiming to stick to, relating to the way code is written and its readability.

Coding standards can be and should be defined by automation tools, such as phpCS and StyleCI.

Best Practices, however, are recommendations that may help with security, performance, or architectural patterns that are solutions to a commonly occurring problems.

@rob-p
rob-p / rust_and_cpp.md
Last active August 15, 2025 20:29
Some thoughts on Rust vs. C++

This is an interesting question, and I think the answer depends on what your primary goal is. Istvan makes good points in favor of straight-forward C (integrated with Python) for building tools that are easy for others, without a ton of experience in programming languages, to modify etc. However, if your primary goal is to make efficient and robust tools for others to use, then let me offer a somewhat different perspective.

The language in which one develops a project has important implications beyond just the speed and memory profiles that will result. Both C++ and Rust will allow you to write very fast tools, making use of zero-cost abstractions where feasible, with predictable and frugal memory profiles (assuming you choose the right algorithms and are careful in designing the programs). However, two important areas where I see these languages diverging are safety and maintainability. By safety, I mean minimizing the types of nefarious memory and correctness bugs that can easily slip into "bare-met

@advaith1
advaith1 / top bots.md
Last active August 27, 2025 22:05
The top Discord bots ranked by server count
Rank Bot Approximate Server Count Library
1 MEE6 21,300,000 Custom Python
2 Rythm 14,900,000 JDA
3 carl-bot 🅱️ 12,100,000 Pycord
4 Dyno 10,600,000 Eris
5 Midjourney Bot

Interview Questions

Node.js

Q1: What do you mean by Asynchronous API? ☆☆

Answer: All APIs of Node.js library are aynchronous that is non-blocking. It essentially means a Node.js based server never waits for a API to return data. Server moves to next API after calling it and a notification mechanism of Events of Node.js helps server to get response from the previous API call.

Source: tutorialspoint.com

@bansalankit92
bansalankit92 / apache_kafka_interview_questions.md
Last active August 15, 2025 20:28
50 Apache Kafka Interview Questions and Answers for all experience level

(Q.1) What is Apache Kafka?

Apache Kafka is a publish-subscribe open source message broker application. This messaging application was coded in “Scala”. Basically, this project was started by the Apache software. Kafka’s design pattern is mainly based on the transactional logs design. For detailed understanding of Kafka, go through,
Kafka Tutorial.

(Q.2) Enlist the several components in Kafka.

The most important elements of Kafka are:

  • Topic – Kafka Topic is the bunch or a collection of messages.
  • Producer – In Kafka, Producers issue communications as well as publishes messages to a Kafka topic.
  • Consumer – Kafka Consumers subscribes to a topic(s) and also reads and processes messages from the topic(s).
@marcoandre1
marcoandre1 / PyQt-installation.md
Last active August 15, 2025 20:29
Install PyQt with pip command on windows 10

About

Installation guide to PyQt4 and PyQt5 on windows 10. Works with Python 3.7.3 32-bit and Python 3.7.3 64-bit (tested)

Installing

  1. Verify that python is installed and runnning by typing python --version on the command line.
  2. Verify that you have not installed PyQt before pip list.
  3. pip install PyQt5 this will install PyQt5.
  4. pip install pyqt5-tools this will install the designer.exe in your Scripts folder.
@ruimaranhao
ruimaranhao / python-guide-ist.md
Last active August 28, 2025 12:07
A guide of best practices to developing in Python (meant for the first year students of Instituto Superior Técnico, U.Lisboa).

A Guide of Best Practices for Python

A guide of best practices to developing in Python (meant for the first year students of the Instituto Superior Técnico, University of Lisbon). Do you want to have a hard-cover book on this, check this list out.

Inspired in Steve Sloria's gist.

In General

"Beautiful is better than ugly." - [PEP 20][]

@staltz
staltz / introrx.md
Last active August 30, 2025 02:27
The introduction to Reactive Programming you've been missing