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
Search - "devrant rewrite"
-
FUCK MY BOSS WHEN HE SAYS HE DIDNT SEE ANY UI CHANGES AFTER NOT SLEEPING FOR 24HRS TO GET THE ENTIRE BACKEND REWRITE DONE. I WENT OVER THE ACTUAL CHANGES WITH HIM 100 FUCKING TIMES! I GET THIS MESSAGE AFTER FINALLY GRABBING SOME FOOD "What did you do, you said you were going to work on the site??" FUCKFUCKITYFUCKFUCK!!! FUCK YOUR MONEY AND YOUR JOB!!!! AND WHILE IM AT IT FUCK WEBDEV!!! 🖕FUCK YOU GUYS🖕 IM GOING HOME
/rant Thank God for devRant32 -
INTRODUCING:
---
SYNTAX HIGHLIGHT BOT
---
I have lots of ideas.
This was one of them.
Last week I was playing around with https://carbon.now.sh and found it quite cool!
Then I thought: https://carbon.now.sh supports Twitter. Cool. But what about devRant?
So yeah, then I got the idea: A devRant Bot that generates https://carbon.now.sh images!
Now, 4 days and 800 lines of code later, the bot is ready!
I even had to rewrite the notification checking code 4 times, because none of them worked perfectly...
But on the other hand, the final solution is so good that I want to keep it a secret for now ;D
---
HOW TO USE:
All you need to do is to mention the bot!
Example:
<rant>
@highlight
console.log('Hello World!');
</rant>
The bot then generates your syntax highlighted code (as an image) and posts it as comment a few seconds later.
Everything before the "@highlight" will be ignored!
Example:
<rant>
Look at this code:
@highlight
function add(a) {
return a + 1;
}
</rant>
Here, "Look at this code:" will not be included in the syntax highlighted code.
If the comment text ends right after the "@highlight", the bot wont reply, btw.
---
THEME SELECTION:
That's not all!
You can even select the theme for your syntax highlighted code!
Just go to my other rant and read the instructions!
The theme will be used for every image the bot generates for you!
Link:
https://devrant.com/rants/2178551
---
Feel free to ask any questions in the comments!
My creator (and father thanks to @rutee07), @Skayo, will try to answer all of them!
P.S.: Speaking of @rutee07: I'm a girl. (Also thanks to him)167 -
THE TIME HAS COME, LADIES AND GENTLEMEN.
I finished the avatar editor on the rewrite. It works so well.
After trial and error in design, API reversing and more, I've finally done it.6 -
This is the best (and most complicated) piece of UI I have ever made in my entire life.
Though now, I have the final main UI design.
Any tweaks that you think might work?18 -
Hey everyone. I decided to rewrite python's abs() function, as it's really slow. Here is my new and improved version. It's up to 500% faster!!!
def abs(int=None):
if not int is None:
try:
lnt = math.sqrt(int);
lnt = math.pow(lnt, 2);
return lnt;
except Exception as E:
lnt = int/-1;
return lnt;
else:
raise ValueError("oopsie whoopsie! uwu we made a fucky wucky!!1 a wittle fucko boingo! the code monkies at our headquarters are working VEWY HAWD to fix dis!!");
Edit: devrant fucked up the indention.
Here is a hastebin instead:
https://hastebin.com/iyajuyoxuq.pl7 -
A added bonus of writing in UIKit and in Swift is the automatic macOS support. Yes, this is the devRant rewrite working on macOS, fully featured. And while this still requires some work and some fixes involving window resizing and how to handle image resizing, this is surprisingly usable for almost no dedicated macOS code!
(This post was sent using the AltRant client on macOS)11 -
!rant
Today it happened.
My devRant rewrite crashed for the first time in about 3-4 months.
I believe I have created a safer and stabler devRant, even though it’s literally in alpha.
DAMN.16 -
Sorry for not posting in days, I have been really busy refining the devRant rewrite.
I came here to suggest you a song that undeniably slaps, and if anyone disagrees, well, they’re wrong lol
https://youtu.be/BfFe-65MDMM
Thank me later6 -
Worst?
When I had to restart my entire progress on the devRant iOS rewrite because I had to switch from SwiftUI to UIKit.
Best?
It took me less than 3 weeks to come to the point in development where I abandoned SwiftUI. The app was already pretty fucking big but I managed to remake it completely in less than 3 weeks. It is my single most proudest achievement that I ever got. I didn’t give up and I powered through. I think it’s safe to assume that I am decent in iOS app development :D6 -
I was given 6 whole months to rewrite some old monolithic web app exactly 5 months ago today. Now I have to show my boss the progress I've made. How do I explain him that I wasted my time in this order:
1.- heavy procrastination
2.- try new frameworks to work with, pick one, start writing the app, regret and start over again using a different framework.
3.- devrant
4.- existencial crisis and self doubt.
Now all I have are a bunch of incomplete buggy modules and a mental breakdown.8 -
GREAT PROGRESS TODAY!
I already made the login part of the devRant rewrite and I can reliably log in and out of the app.
From here, it’s just API requests, JSON parsing and just fitting the data to templates.
...and the avatar system.
Fuck.2 -
Yaaaay, cells now size themselves correctly on the main feed! (Profile view still needs some work but it’s also improved some)9
-
I am in the planning phase of a rewrite for our devrant bot, is there anything you would like to see?6
-
We got a relatively cheap logic analyzer (we is me and my dad) and we tried finding the drivers for it.
Their website was a dead-end and it didn’t come with any disk or something. Somehow, Seleae’s website had a suitable driver, and it is completely unrelated to the product we bought.
(Seleae is a company that sells god-tier logic analyzers)
WHAT THE FUCK, SPARKFUN?!
Also, regarding the devRant rewrite project I am currently searching for some nice (and practical at the same time) design for the profile view.8 -
Just found out that if you spam the different types of notifications that you want to see in my rewrite of devRant you cause an instacrash.
Multithreading is both a blessing and a curse.2 -
I can’t believe I used UILabels instead of UITextFields for rant and comment cells in my devRant rewrite... Now I have to remake those cells again. Fuck.6
-
Data wrangling is messy
I'm doing the vegetation maps for the game today, maybe rivers if it all goes smoothly.
I could probably do it by hand, but theres something like 60-70 ecoregions to chart,
each with their own species, both fauna and flora. And each has an elevation range its
found at in real life, so I want to use the heightmap to dictate that. Who has time for that? It's a lot of manual work.
And the night prior I'm thinking "oh this will be easy."
yeah, no.
(Also why does Devrant have to mangle my line breaks? -_-)
Laid out the requirements, how I could go about it, and the more I look the more involved
it gets.
So what I think I'll do is automate it. I already automated some of the map extraction, so
I don't see why I shouldn't just go the distance.
Also it means, later on, when I have access to better, higher resolution geographic data, updating it will be a smoother process. And even though I'm only interested in flora at the moment, theres no reason I can't reuse the same system to extract fauna information.
Of course in-game design there are some things you'll want to fudge. When the players are exploring outside the rockies in a mountainous area, maybe I still want to spawn the occasional mountain lion as a mid-tier enemy, even though our survivor might be outside the cats natural habitat. This could even be the prelude to a task you have to do, go take care of a dangerous
creature outside its normal hunting range. And who knows why it is there? Wild fire? Hunted by something *more* dangerous? Poaching? Maybe a nuke plant exploded and drove all the wildlife from an adjoining region?
who knows.
Having the extraction mostly automated goes a long way to updating those lists down the road.
But for now, flora.
For deciding plants and other features of the terrain what I can do is:
* rewrite pixeltile to take file names as input,
* along with a series of colors as a key (which are put into a SET to check each pixel against)
* input each region, one at a time, as the key, and the heightmap as the source image
* output only the region in the heightmap that corresponds to the ecoregion in the key.
* write a function to extract the palette from the outputted heightmap. (is this really needed?)
* arrange colors on the bottom or side of the image by hand, along with (in text) the elevation in feet for reference.
For automating this entire process I can go one step further:
* Do this entire process with the key colors I already snagged by hand, outputting region IDs as the file names.
* setup selenium
* selenium opens a link related to each elevation-map of a specific biome, and saves the text links
(so I dont have to hand-open them)
* I'll save the species and text by hand (assuming elevation data isn't listed)
* once I have a list of species and other details, to save them to csv, or json, or another format
* I save the list of species as csv or json or another format.
* then selenium opens this list, opens wikipedia for each, one at a time, and searches the text for elevation
* selenium saves out the species name (or an "unknown") for the species, and elevation, to a text file, along with the biome ID, and maybe the elevation code (from the heightmap) as a number or a color (probably a number, simplifies changing the heightmap later on)
Having done all this, I can start to assign species types, specific world tiles. The outputs for each region act as reference.
The only problem with the existing biome map (you can see it below, its ugly) is that it has a lot of "inbetween" colors. Theres a few things I can do here. I can treat those as a "mixing" between regions, dictating the chance of one biome's plants or the other's spawning. This seems a little complicated and dependent on a scraped together standard rather than actual data. So I'm thinking instead what I'll do is I'll implement biome transitions in code, which makes more sense, and decouples it from relying on the underlaying data. also prevents species and terrain from generating in say, towns on the borders of region, where certain plants or terrain features would be unnatural. Part of what makes an ecoregion unique is that geography has lead to relative isolation and evolutionary development of each region (usually thanks to mountains, rivers, and large impassible expanses like deserts).
Maybe I'll stuff it all into a giant bson file or maybe sqlite. Don't know yet.
As an entry level programmer I may not know what I'm doing, and I may be supposed to be looking for a job, but that won't stop me from procrastinating.
Data wrangling is fun.1 -
I needed to do some maintenance on some of the text views in my app because they were sticking to the center and not to the leading edge (aka left).
This is harder than it sounds like.1 -
All app/web layout designers, I need your help with layouts for my app. I am struggling with a very specific thing: image sizes. What are the general guidelines for touch devices and windowed programs? Should I eyeball the max width and height? What if it's on desktop and I am making the window larger / smaller?
Any help is absolutely appreciated, I had perfect success in all of what I worked on in the app until now except this. I just can't get it right.5 -
The infinite profile view is coming along nicely! Right now, I am still building the infinite scroll view but it shouldn’t take long. When I’m done with that, I’m starting to implement minimum functionality. Then, the avatar editor.