Details
-
SkillsJavaScript, NodeJS
Joined devRant on 4/25/2018
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
-
Why are cookies such a disaster in JavaScript?
I would assume given the modern Internet landscape that storing data for your website is downright essential. So how did these people fuck up cookies so bad in JavaScript?
You may say "Yeah it sucks but cmon it's just one topic and it can't be that hard". No. It's a fucking mess that deserves no mercy, and your passive attitude is the reason making cookies is the way it is now.
It's so bad, that you need to do a .split command to print out the value of the cookie. It's like storing data was a passive afterthought, like "Hey bob how should we deal with storing literally any website data in JavaScript?", "I dunno Joe who cares just make a .cookie property or some shit idk"
The problem stems from the fact that there's only document.cookie. That's it. It's not like document.getElementById where you can use functions like .classList or .style or whatever. Why can't it be like this:
// Add cookie. Take notice at how easily you can add multiple cookies
document.cookie.add("key=value; key=value", "expires=UTC", "path=/")
// Store the value of a cookie in a variable
let x = document.cookie.call("key");
// Delete cookie
document.cookie.delete("key")
See how much nicer that looks? And I literally made up that syntax in like 2 minutes, so I can't even imagine how quick the official cookies property was thrown together. I know there are libraries that do this and localstorage sort of has a syntax like this, but this shouldn't be an issue at all. There is no technical or ethical excuse why it's such a goddamn mess. It's 2019. Fix your shit JavaScript.12 -
Is there any Windows/Windows10 software that can block distracting websites, folders and apps? Something like https://play.google.com/store/apps/... but for Windows. It can be a .exe software or a Windows 10 app, as long as it gets the job done.1
-
I had this post saved on Reddit for too long. Apparently someone found an alternative darknet (kind of like tor), but it used .alien domains.
I did some searching and found nothing. Either this person is making this up, or he found something very interesting that nobody knows about.
Anybody know what he's talking about? Who knows, this could be something that's well known but I'm just searching for it the wrong way.9 -
Terms of Services be like:
<p style="font-size: 8px">You may or may not for of but not limited to change or modify (to change) variables in the elebrate infrastructure of specialized collections of design principles. Failure or success to accomplish some in a way will claim you unliable to the set of collective governing rules according to section 771 of the legal code"</p>1 -
Xfinity commercials: "We connect your 10G 60GB WiFi Network to data centers around the world, transmitting data at double the speed of light, and use alien-crafted network towers to bring you the data you want so fast it breaks the space-time continuum sending you the data before you even ask for it"
Xfinity reality: "Welp, time to reset the router again"3 -
Idk if it's a weird compression issue or what but when I mod an apk using apktool and recompile it, sign it and use it, the app runs unusably slow. Is there any way to fix this?2
-
How the fuck is Wordpress taking up 28% of the Internet?
Okay so, I installed it in a DO droplet. ALL I was expecting was an easy yet customizable platform with some themes that work. THATS IT! But I couldn't even get that.
Most themes are fucking horrible and if you're a Wordpress theme dev you should be embarrassed of your work. Every fucking theme there is freemium, yet advertised as free on every single fucking site on the Internet so you can't even find actually free ones. Free themes don't fucking exist unless you get them from some outdated GitHub repo in which the theme will look like horseshit anyway.
I get the work that goes into these themes, but you mean to tell me out of the 7 billion people on this planet, not 1 FUCKING HUMAN made a "free" wordpress theme that's actually usable? If you get a freemium theme, you can't do jack shit with it. It either has a ton of weird buttons and settings that are vague and annoying trying to figure out, or it has no customization at all.
What a load of bullfuck. Idk if Drupal has the same issues (because I haven't tried it yet) but if it does then someone PLEASE actually put this thing called "effort" into your CMS, ruthlessly advertise the fuck out of it and hopefully crush wordpress like the bug it is.13 -
Should I learn Bootstrap or SASS, or both?
I hear good things about both of them and already know HTML + CSS, and would like to use them to organize my code and make more advanced websites easier.
Should I choose one over the other, or use both?7 -
What do CLI libraries for Python suck?
Why do CLI libraries for Python suck so bad? You think with a language like Python and its community, someone outta get it right. But I guess not.
This is what a CLI module should look like:
```
import cli_maker
frame = cli_maker.frame()
def frame(frame):
print("Hello World!", color=green)
```
I won't even tell you what the output of that is because even you and your blind grandmother should know. Why can't people understand Python was to make people's lives EASIER???? It's fucking insulting how these people aren't even trying.
There aren't even good tutorials either. The documentation for these things sucks horse ass from a funnel. Most of them are from 2012 and feature a 4:3 powerpoint of someone with a bad mic either making things too complicated or only explaining like 1/16th of what the library actually does.
If you're bored this weekend, make an actually humanly-usable CLI library for Python. If you have common sense, you'll gain monopoly on the entire CLI-Python-Library market in a fucking day.rant python3 python curses cli python2.7 tutorials urwid tui programming language programming npyscreen7 -
These commentsjoke/meme programming recursive code meme coder coding joke programming language funny tech recursion8
-
Should I learn Crystal? A programming language with similar syntax to Ruby but is almost as fast as C?
https://crystal-lang.org/
I want to use it for making fast, production-ready web apps using web frameworks like Kemel and Amber. I'm wondering if anyone here knows Crystal and if it lives up to the hype, and if so what tutorials should I use to get started.question programming ruby kemel crystal web development ruby on rails web programming language amber nginx16 -
Python be likejoke/meme atom sublime random meme python3 sublime text memes troubleshooting python semicolon syntax
-
Programming:
1%: Creating cool things.
105%: Spending two hours trying to figure out some error when all that was wrong was that you forgot to put a semicolon somewhere;rant error help coding style code programming language javascript programming errors python3 traceback python11 -
Just a suggestion: Can we PLEASE stop using dead memes here? Like seriously, impact font in 2018??5
-
Stackoverflow Law: "Downvote or be downvoted!"joke/meme web social network devrant complaint macos linux devrant is awesome rant stackoverflow questions7
-
I just got done learning Python and can do some stuff with it, and would like to move on to JavaScript.
Any good places to start? Right now I got a free starter course for it on Udemy and have been messing around on Sololearn and FreeCodeCamp. I'm looking for decent introductory points/books/tutorials that could help me get a better introduction of the language.question internet typescript coding getting started programming web javascript ecmascript js websites web development8 -
Is this some kind of language?
I found this in a dev community for Amino Apps.
I don't know if they're just randomly typing on a keyboard or if this has any meaning. I can see patterns in it as I go through the quiz which leads me to believe it's some kind of text encryption method, or a placeholder text bot.3 -
Only Google & Facebook sign ups? Fucking ew.
If you're a web developer and you create a login system like this, please commit rm -rf /21 -
How do I open .srv files? I found this in an APK and I wanna see what it does, but can't extract it.
It seems to be compressed data but after converting to zip, tar.gz and 7z, it won't extract anything. I can't find anything about .srv files or the youtube.srv file anywhere.13 -
Which is better: VueJS vs ReactJS?
I'm trying to develop a social networking platform and need a JavaScript framework for organizing le code.
I know I don't want to use Angular because I heard it's difficult and is constantly changing. So it boils down to Vue and React. Which one do you prefer and why?12 -
I'm looking for a shape drawing tool for Linux. I need something that makes it easy to draw a lot of different types of simple shapes, so I can export them to PNGs to open in GIMP and build upon. In GIMP you can only create rectangles and circle shapes, and even trying to do that is a nightmare.
I searched through the sea of Linux photo editing programs and found nothing. On Windows I would use PaintDotNet, but that's not available on Linux and Pinta has the same problem as GIMP when it comes to shapes.
I tried using Libreoffice Draw and Inkscape but Libreoffice Draw was confusing and Inkscape still didn't have very good shape drawing tools. Is there anything else out there?4 -
I'm looking for a pen-testing toolkit for Linux. I tried using Kali, Parrot, Backbox and Blackarch and all failed to work.
Kali and Parrot wouldn't install due to the outdated installer looking for cdroms despite me installing from a USB. Backbox was an unpolished buggy mess and blackarch wouldn't even connect to the Internet.
I figure it'd be a better idea to install my favorite Linux distro and install some kind of pen-testing toolkit. I'm using it to test my websites for vulnerabilities so I prefer something with tools based around that, or at least has the capability for it.16 -
Is there an alternative to katoolin? Aka a tool for installing all Kali pen-testing tools on other distros.
Katoolin hasn't been updated in a year or so and I can't get it to work. If you want to know why I'm not just using Kali/Parrot/any other pen testing OS, read my last post and please take my advice.5