TechieChimp · @TechieChimp
1 followers · 32 posts · Server techhub.social

Learned about attaching debuggers to running processes early on, but understood its real value when dealing with a project's tangled startup scripts.

๐Ÿ”— Read about it here:

medium.com/@_init_/how-to-atta

Ever encountered a similar situation? Let's chat!

#tdd #fastapi #python #softwareengineering #codingtips

Last updated 1 year ago

TechieChimp · @TechieChimp
1 followers · 26 posts · Server techhub.social

Through numerous open-source projects, I've seen two patterns in integration tests:

1๏ธโƒฃ Manual Intervention: Docker commands can be a hassle to remember.
2๏ธโƒฃ Boilerplate Overload: Useful automation, but with loads of boilerplate code.

There's an interesting alternative using the pytest-docker plugin. Curious? More in my blog post:

medium.com/@_init_/how-to-simp

#docker #python #softwareengineering #codingtips

Last updated 1 year ago

๐Ÿš€ **Master Repetition with R's replicate() Function!**

**Example 1: Simulate Dice Rolls**
die_rolls <- replicate(20, sample(1:6, 1, replace = TRUE))

**Example 2: Generate Random Data**
random_samples <- replicate(10, rnorm(5))

**Example 3: Evaluate Expressions**
sum_of_squares <- replicate(5, sum((1:5)^2))

spsanderson.com/steveondata/po

#OpenSourceCommunity #opensourcesoftware #OpenSource #innovation #Technology #RStats #r #productivityboost #codingtips #rprogramming

Last updated 1 year ago

Frank Hรคnel · @frankhaenel
14 followers · 28 posts · Server fosstodon.org

@smach @rstats ๐Ÿ“ข Exciting read! ๐Ÿ’ป "Code snippets" are like productivity boosters for developers! They are indeed time-savers and make coding a breeze. ๐Ÿ“Š

#codingtips #productivityhacks #rstudio #datavisualization

Last updated 1 year ago

Nova · @Sup3rN0va
11 followers · 32 posts · Server techhub.social

Any advice for assigning for substitutes. Say I have a recipe for a meringue with a certain amount of powdered sugar, a certain amount of egg whites, and a certain amount of lemon juice. If I'm vegan, I may substitute the egg whites with aquafaba. I know that 2 tbsp of aquafaba is a substitute for 1 egg white. However, aquafaba can also be 3 TBSP: 1 whole egg and 1 TBSP : 1 yolk. It may be for baking, or emulsion, or binding, or more. There's just so many different ways it can go and I'm overwhelmed with trying to figure out how to assign values in an intelligent way so that I can use it later on in altering recipes. And this is just aquafaba. This isn't even to mention all the millions of other ingredients and their substitutes. For example eggs as a basic ingredient can be substituted with many things such as aquafaba, applesauce, yogurt, banana, tofu, chia, and then there's even mixtures of more than one thing, like oil+H2O+baking powder.

#coding #ratios #codingtips #techsupport

Last updated 1 year ago

The `rep()` function allows you to efficiently repeat elements of a vector or a specified value. Its syntax is straightforward: `rep(x, times, each)`. The `x` parameter represents the element to be repeated, `times` determines the number of repetitions, and `each` (optional) specifies how many times each element should be repeated before moving to the next.

#DataManipulation #codingtips #repetition #rprogramming

Last updated 1 year ago

CodePen.IO :verify: · @CodePen
242 followers · 2236 posts · Server hello.2heng.xin

RTโ€‚Jordan Dey
Say goodbye to the limitations of font-weight! ๐Ÿ‘‹
With GRAD properties for font variable, you can achieve a superior bold experience that gives your designs more depth and character.
@CodePen: codepen.io/DeyJordan/pen/yLRXQ
t.co/TYgS3ri1x0

:sys_twitter: twitter.com/DeyJordan/status/1

#css #typography #webdesign #frontend #codingtips

Last updated 2 years ago

JIMMY JOSE · @hacker_hash_6
1 followers · 35 posts · Server universeodon.com
JIMMY JOSE · @hacker_hash_6
1 followers · 34 posts · Server universeodon.com
JIMMY JOSE · @hacker_hash_6
1 followers · 33 posts · Server universeodon.com
JIMMY JOSE · @hacker_hash_6
1 followers · 32 posts · Server universeodon.com
JIMMY JOSE · @hacker_hash_6
1 followers · 31 posts · Server universeodon.com

Remember I said I was going to have to manage the meetings at the same time? Well, today was the first UHEHUEUEUHE day.

The bright side is that both are only once a week.

The downside is that both are on the same day. But I'm calm that I'll be able to manage, because the front ones leave the classes recorded, so it's easier to follow.

And now they are in soft skills (about emotional, what you want for your life and etc. And I think it's important, I just don't think it's relevant to me because I already work on it constantly)

Tomorrow I want to try to erase the classes that were already available last week to start this week's classes on Wednesday.

We'll see.

I wish you have a great week, good opportunities and take care

#Coding #codinglife #codingisfun #codingbootcamp #codingmemes #creativecoding #codingforkids #codingdays #codingpics #htmlcoding #learncoding #codingquotes #codinglove #codingtips #codingclass #linux #coder #programming #JavaScript #programmers #webdeveloper

Last updated 2 years ago

JIMMY JOSE · @hacker_hash_6
1 followers · 29 posts · Server universeodon.com

I was solving a coding problem and I was like why tf is this not working help, so I gave up and went to the solution and I had done everything right! Except... my if statement looked like this:

let limit = 0;
if (rarity = "common") {
limit = 1;
}

instead of...

let limit = 0;
if (rarity === "common") {
limit = 1;
}
Lmao I went from "I am stupid how can I not solve this problem" to "lmao ok i am stupid but not in the way i thought"

Lesson: I need to stop doubting myself, oftentimes the devil is just in the details

#Coding #codinglife #codingisfun #codingbootcamp #codingmemes #creativecoding #codingforkids #codingdays #codingpics #htmlcoding #learncoding #codingquotes #codinglove #codingtips #codingclass #linux #coder #programming #JavaScript #programmers #webdeveloper #programmer #softwareengineer #computerscience #software #MachineLearning #softwaredevelopment #programminglife

Last updated 2 years ago

JIMMY JOSE · @hacker_hash_6
1 followers · 26 posts · Server universeodon.com
JIMMY JOSE · @hacker_hash_6
1 followers · 25 posts · Server universeodon.com
CodePen.IO :verify: · @CodePen
232 followers · 2185 posts · Server hello.2heng.xin

RTโ€‚Jordan Dey
Five lines of code for a colorful gradient effect ๐ŸŒˆ๐ŸŒˆ๐ŸŒˆ
I made a @CodePen to show what we can do with loops๐ŸŒ€
Take a look : codepen.io/DeyJordan/pen/BaOXN
t.co/EQz9fVhcOL
<div class="rsshub-quote">
Jordan Dey:โ€‚Why use loops with just , when you can use them with too? Loops can save you a lot of time ๐Ÿ”„
Check out this demo using a helper for spacing
t.co/wW4CMq4t8D
</div>
:sys_twitter: twitter.com/DeyJordan/status/1

#scss #webdevelopment #frontend #css #codinglife #codepen #codingtips #webdesign #programming #css3 #html #html5 #javascript #webdeveloper #webdev #sass

Last updated 2 years ago

Rick Donato · @rickdonato
25 followers · 26 posts · Server hachyderm.io

๐Ÿ Python Tip: Learn how to clean up your 'else if' statements to improve code readability and maintenance in our previous post over at: packetcoders.io/python-tip-how

#python #codingtips #cleaningcode #NetworkAutomation

Last updated 2 years ago

SpaceC · @space_continuum
0 followers · 5 posts · Server toot.community

art.png
art2.png
art-final.png
dkfjsdfjioksd.png ๐Ÿ˜ญ๐Ÿ˜ญ๐Ÿ˜ญ

Does this look familiar?
Let me show you an awesome tool called GitHub Desktop

youtube.com/watch?v=gih91MlvJZ


#git #GitHub #code #coding #programming #programmer #codingtips #programmertips #art #arttips

Last updated 2 years ago

Oleg Sinavski · @sinavski
10 followers · 9 posts · Server sigmoid.social

Check out my latest blog post on the dangers of side effects for Python coders! Learn why side effects make your code fragile, slow, hard to use and debug, and more.

medium.com/gitconnected/all-da

#Python #programming #sideeffects #codingtips #coders #techblog

Last updated 2 years ago

Siwat · @siwat
109 followers · 1100 posts · Server mstdn.social

RT @maoberlehner
๐Ÿคฏ A colleague just introduced me to @typescript Template Literal Types, and they're game-changing!

In the example code, we use them to ensure a string consists of a number followed by the "px" suffix.

#codingtips

Last updated 2 years ago