I actually use repeat(iterations,index_name(optionall),);
. No need for i++ or ++i for loop in many cases.
- 0 Posts
- 13 Comments
I had this problem only once. Luckily, I do not need recursion. I know my way using iterative process.
Not what I’m saying. Just saying if I need speed, I’d use a naturally faster language.
Numpy is good for that. But, I gravitate toward naturally faster langs where I don’t need to import a library for speed. I use Python for simple, dumb scripts.
Reptorian@programming.devto Programmer Humor@programming.dev•When you look at code you wrote last year9·1 month agoSometimes, I just rewrite my code until it is good enough. Other times, I leave it to my memory, so I can figure it out later. And others, I’m just not happy about it, like the times I did bigbin2dec and it would only work well with something like thread-ripper.
I use it for scripting too. I don’t need Python as much as before nowaday.
Reptorian@programming.devto Programmer Humor@programming.dev•(How to trigger programmers (and make them irrationally angry)41·2 months agoUh, that would be infuriating to see. (Yes, I can see tabs in KDE Kate)
Reptorian@programming.devto Programmer Humor@programming.dev•(How to trigger programmers (and make them irrationally angry)14·2 months agoWhat if you use tabs for indentations and space for alignment?
What if you prefer a DSL? I use G’MIC for image processing tasks.
Reptorian@programming.devto Programmer Humor@programming.dev•The state should be purely passed through function inputs and outputs1·2 months agoI use states, but no classes. G’MIC is my main language. I do appreciate the functional way of thinking after writing in it for so long. States are just variables that defines the mode of something, right?
Reptorian@programming.devto Programmer Humor@programming.dev•What's stopping you from writing your Rust like this?1·2 months agoI dislike Python as well, but it has it place. I only use it for quick code tests before doing it in other languages.
Reptorian@programming.devto Programmer Humor@programming.dev•Python has a library for everything but..1·7 months agoI’m just glad I have other options than just Python. Am not afraid of writing my solutions either. I rarely use Python these day.
Yeah. repeat() is unique to a few language. I think just Scala, and G’MIC has it. I use the second one. It’s more convenient than say
for(p=0,p<5,++p,);
. Sometimes,repeat(5,);
suffice.