Details
Joined devRant on 3/17/2021
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
It’s kinda funny to think about, caring so much what other people think that you can’t express normal human emotions, or consume soy products 😂Call it stoicism, it’s just insecurity
-
Assuming ASCII encoding
-
This just reminds me there are a lot of people trying to keep humanity from destroying itself, and they are taken for granted. Maybe it’s a miracle we made it this far, 90 seconds to midnight.
-
The people that made it usually won’t like you calling their work shit, even if it is. Sometimes even suggesting rewrites can be a touchy subject.
I wouldn’t be too hopeful about rewriting it, but I’m also a fan of the side project. Even if no one ever sees it, it’s still cathartic. -
It’s like if you go to the doctor with chest pain and the doctor just gives you painkillers
-
The cat leaned against his shovel for a moment, sweat forming around straps of his hard hat. He reached under his bright orange vest to pull a cigarette and lighter out of his breast pocket. He lights it, takes a drag, and with a long exhale he says “fuckin rabbits man…” With the cigarette in his mouth he grabs the shovel and starts digging.
-
It’s not that hard to abstract something later as long as you recognize when you need it. It’s harder when you’re building on top of things that should have been abstracted.
-
@spongegeoff no I find it interesting
-
Described it to chatgpt and got this 2nd try. The first time was pretty good but it used a wildcard that didn’t account for the newly created folders.
#!/bin/bash
# Check if both parameters are provided
if [ $# -ne 2 ]; then
echo "Usage: $0 <folder path> <number of folders>"
exit 1
fi
# Assign parameters to variables
folder_path=$1
num_folders=$2
# Create folders
for i in $(seq 1 $num_folders); do
mkdir "${folder_path}/folder${i}"
done
# Move files randomly to new folders
files=$(find "${folder_path}" -maxdepth 1 -type f) # Get all files in folder path
num_files=$(echo "${files}" | wc -l) # Get number of files
for ((i=1; i<=$num_files; i++)); do
random_folder=$((RANDOM % num_folders + 1)) # Generate random folder number
mv "$(echo "${files}" | sed "${i}q;d")" "${folder_path}/folder${random_folder}/" # Move file to random folder
done
echo "Done!" -
In general I don’t mind paying for frontend templates or themes or other resources. They’re usually reasonably priced and only a one time payment. I used creative-tim for one project, I probably would again too but not currently working on anything.
-
@HerrNyani BusinessObjectEditViewModel sounds like you’re creating a data model for your BusinessObjectEditView, I’m not sure why you would need that. Looking at those names I’d assume there’s some functionality that is too tightly coupled and should be factored out
-
Oh yeah some practical advice: using object composition. The class can be described by the names of the classes that it’s composed of as well
-
It’s smelly IMO, it could mean you’re trying to make a golden hammer, or that the rest of the code base is overly complex and tangled forcing you to make something way too specific.
But sometimes you can’t do much about that. I just ran into this, and my pride wouldn’t let me write a long ass name, so I made it vague and then heavily documented it. -
Being scared, sometimes it isn’t a good enough reason not to do something. There’s a word for doing something in spite of being scared, it’s called courage.
I don’t have kids, I think I’ve also been afraid -
@Wisecrack we used to think the path of electrons in an atom were random until we discovered quantum entanglement, suggesting that there could be a pattern.
-
:) it got me a little interested, there’s a million dollar bounty on predicting primes. Maybe you’ve already looked at Eulers product formula and the Riemann zeta function?
-
This seems to prove that products contain the factors that produce them, and that products can be factors of other products, and that primes can be factors, but not products of anything other than 1 and itself. Am I missing anything?
-
At least 3
-
It can be your best option as long as the data lends itself to a flat schema. It’s more performant if you’re not doing lookups and/or joins.
It can simplify your stack when developing a restful backend; where you would be converting relational data to flat data, you’re now converting flat data to flat data.
You can actually make a restful backend with no code using couchdb. Which is nice because many people don’t know how to build restful backends. -
And your reward is more work…
-
@Demolishun that’s a bit quixotic
-
@Demolishun he would say that the cloud needs centralization, and should be made out of real servers
-
He has dialogues where he makes up his own buzzwords for the anti-patterns that he’s using
-
Other characters are completely stressed out, but he’s helped by clients that keep throwing money at him.
-
Just add a different column if it’s sql or kv if nosql. Much easier to query, and can be indexed.
-
Hmm if you consider the iterator pattern, an iterable data structure implements next and hasNext. Some pseudo code to iterate using a for loop might be something like:
for i=iter.next(); iter.hasNext(); i=iter.next()
But that’s not very readable, and it would be better to use a foreach or while loop.
I haven’t tried to iterate this way, but it might be cool to see if it works -
@AvatarOfKaine it’s a bit out of my depth, but from my understanding if you train a model to produce shit it will. It had to be told what is good code and what isn’t. Overall I’m impressed with the code quality it produces.
-
@AvatarOfKaine seems like a model could verify what it’s saying is true, that’s kind of what Twitter was doing before it went in the toilet.
I checked multiple times on this one because every other conversation I had has been spot on. It’s also a pretty lengthy response for something totally fabricated -
Be careful, you might end up founding the next Atari
-
@nitwhiz lol yeah I think that’s a plausible scenario that op is talking about, but I could be wrong. I’ve definitely met some developers where I wouldn’t put it past them to do that shit.