Details
-
AboutJust a guy that loves making things work. Also I like foxes
-
SkillsJS, C#, HTML + LESS, c++, and some other stuff
-
LocationDenamearc
-
Website
Joined devRant on 1/22/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
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
One of my least favourite parts of the world of programming is the "there's a usecase for everything" attitude. Like take this part of "You don't know Javascript" https://github.com/getify/...
> But var is still useful in that it communicates "this variable will be seen by a wider scope". Both declaration forms can be appropriate in any given part of a program, depending on the circumstances.
Now you would imagine that after this comment the author added a good example of this or at least had a reference to another part of the book where it showed this, but nope it goes on to include this note:
> It's very common to suggest that var should be avoided in favor of let (or const!), generally because of perceived confusion over how the scoping behavior of var has worked since the beginning of JS. I believe this to be overly restrictive advice and ultimately unhelpful. It's assuming you are unable to learn and use a feature properly in combination with other features. I believe you can and should learn any features available, and use them where appropriate!
Which again, "durr there's a usecase for this feature" or rather it's coming with basically an insult towards people who don't think you should use var without actually addressing anything. And what usually happens when someone tries to "there's a usecase for everything" is to either be really vague, or come up with some silly thing that you "might" do. -
Here's a fun fact (which actually will be accompanied with a source) about node.js. When you import or require a module it will be imported as a singleton. Or put another way, ```export const Foo = { };``` is one of the simplest* and most readable singletons you can have in that runtime. And of course here's the thing you always should be asking for when people make a claim like this https://nodejs.org/api/...
So why write this? Well some of you might feel inclined to write a medium (or other) post about "design patterns in Javascript" where you basically just translate the GOF book from Java to Javascript and now you have something that isn't just awkwardly translated Java code! -
God damn it wpf I just wanna bind an ObservableCollection<string> to an itembox and then have textfields inside that item box that modifies those strings and have the modifications stay there https://imgur.com/a/Un2nk9V !7
-
Anyone who can recommend some good programming streamers? Currently I'm mostly watching Tsoding and Zorchenhimer and I'm curious if anyone has any recommendations
Also both tsoding and Zorchenhimer are really lovely to watch. Tsoding does a lot of different mainly lowlevel things (like making a game in C or adding gamepad support to GRUB) and Zorchenhimer developes games for the NES and they can both be found on Twitch3 -
The one thing I need, a "LATIN SMALL LETTER REVERSED C WITH DIAERESIS" doesn't seem to exist but "LATIN SMALL LETTER C WITH DIAERESIS" the one thing that I don't need, does D:
Like there's a god dang sideways u with an umlaut (or diaeresis I guess) but not a reversed c̈? pls9 -
Whaaaaat! You mean to tell me that setting grid-column-gap and grid-row-gap to 1em will make them both 1em? I really did not realize this thanks for clarifying! Is this really a bridge???
https://markus.oberlehner.net/blog/...3 -
I hate the fact that it's not possible to find a keyboard with an ANSI left shift button and an ISO enter button. Well okay it kinda is, the JIS layout, but fuuuuuuck having a small backspace button as well.3
-
This is how you do it, holy shit. I should not have to opt out of shit like this but rather opt in. Fucking thank you cordova5
-
I'm doing my CV in Vue with Bulma and everything is all nice and neat. I have a nice and neat 'skills' section that you can see pictured, and it's nice and neat. However, what is not very nice and neat is Firefox (and chrome's) print to PDF thing which ignore the nice little semi meaningless dots that I have, which is so fucking asdfghjkl;27
-
"Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://19-" SHUUUUUUUT UUUUUUUUUUUUP FOR FUCKS SAKE
I fucking have app.UseCors(x => x).AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader()); in my startup. It's not supposed to tell me the CORS request did not succeed becuase THERE'S NOT SUPPOSED TO BE CORS WHEN I DO THAT.15 -
TIL if you try to add a user with ~invalid~ data you get fucking nothing!
Like it continues, like it would normally, but nothing gets inserted to the database and no exception is thrown.
Fukcing4 -
TL;DR: Forwards and backwards buttons on mouse broke. Me sad!
grrr, bought a corsair dark core mouse (on sale) to use with my laptop (in school) because I got really sick my other mouse being wired. It has worked really well up until like a month ago where the fucking forwards and backwards buttons magically stopped working and will instead just type the numbers 1 and 2. This also happens only in Linux because iQueue, their driver software, is windows only.
It works fine otherwise, but goooood is it hard to live without the forwards and backwards buttons :<1 -
You know when you have one of those days where you're really tired and just don't really want much bullshit, and because of that you get an unexpected token space? Well I do2
-
Yesterday I tried out VueJS and I gotta say it's really really nice!
I even modernized my site with it :v
https://panduro.guru/10 -
https://imgur.com/a/hGREhL5
So since I don't use VLC and I'm pretty annoyed by the fact that it needed to remind me it exists, I decided to purge it.Then not 5 minutes later I realize that, oh fuck, Konsole is missing. In those 5 minutes I had also installed Steam and thought that was what fucked it all up, then I reinstalled Konsole and somehow VLC was back.
Then I tried to just apt remove VLC instead and boom, Konsole was gone
So, sorry, but are you fucking kidding me!?1 -
Don't you just love it when someone adds jquery, jquery UI and the CSS for jquery UI, to run one function on one page in order to do something that's already built in to materialize?
Because I don't :v
https://github.com/inabahare/...7 -
VSCode doesn't (seem to) have the option to target specific sourcemaps, and ParcelJS doesn't have the option to specify the names of sourcemaps.
This fucks me over pretty hard since vscodes debugger expects the sourcemap to end in .js.map, but parcel gives me just .map. If the sourcemap doesn't end with .js.map vscode will just open the debug control panel pop up thing, wait a few seconds, and then close it again.
This has given me a new permanent temporary hack :v
https://github.com/inabahare/lewd2/...2 -
ParcelJS where have you BEEN all of my life!
Just tried adding it to a project, all I did was
"parcel watch src/app.js --target node"
and I can't believe it worked! Like holy crap5 -
So I decided to try out Kubuntu 18.10, aaaaand it doesn't work too well for me. Oh well, back to 18.04 :v
1/312 -
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
So in my groups project where we use ASP.NET Core MVC where we've needed to add identity. Now I've struggled with this soooo much only for today to get it to work.
The documentation for it (more specifically user roles) isn't very good, and most tutorials basically just do the same thing which has for me thrown exceptions left and right (and I don't even do anything special tbh) without any explanations. But today I finally got it to work, I can seed the database without getting told that there are no service for the RoleManager
and
it
feels
like
this
https://youtube.com/watch/...rant it literally feels like hardbass asp.net core mvc now it does dopamine levels high aaaaaaaaa it didn't work askjdfhasdjh1 -
"Hey, we're gonna add bootstrap to your project but bootstrap doesn't exist in your project. That's fine? Yeah it's fine."
Like, ffs asp.net core mvc.
https://i.imgur.com/eQVfE5w.png3 -
TL;DR: FFS Microsoft
So yesterday we were at the point in our project where adding a login system seemed like a good idea. This is an asp.net core mvc project and we use Materialize for our frontend.
So according to _the tutorials_ we could start a new project and add authentication in the prompt by pressing a button. As it created the project I thought it seemed nice and easy enough. After it had created the test solution I build it and, sure enough, in the top right corner there were a register and login <a>.
I checked them out and they were your bog standard form input input submit and all. Now I guessed I could look at how it's all programmed aaaaaaaaand
Nope.
I saw a new folder located at Areas/Identity/Pages which had a _ViewStart.cshtml which contained three lines. There were also a database migration and in Startup.cs there were some database stuff, but other than that? Nothing. So where on earth was the login and register form located? Shit like that is frustrating ya know.
But oh well it seemed to work and I switched to our examn project where I found it was possible to scaffold the login system in a way that seemed nice.
Except, for some reason bootstrap and jquery decided to return to our project. FFS Microsoft!1 -
Winforms.
Thanks to my school I was introduced to this shit and by George is it some of the most unintuitive crap I've ever used.
The drag and drop shit should be fine, but oh if ever you doubleclick on something it will add a [name]_click method, and if you think you can just remove it fuck you!
Then there's the fact that splitting stuff up is unintuitive as hell as well. That is, you can't. You can define areas you can show and hide, and then you can drag stuff into them. That should be fine but everything is still in the same page (and if you have stuff overlapping then you better not move it with your mouse because then it will belong to another of those things). Contrast that with the more ~~~complicated~~~ and ~~~not what we learn~~~ WPF which has frames where the content can be define in different files.
Oh but if thatt wasn't enough, the autogenerated code is horrible as hell.
I died a little inside when I learned someone decided to take it to the web as well D:
https://i.imgur.com/NL5ggIc.png6 -
This is not why I go to r/CozyPlaces AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA[and now imagine 4830 more A's]6