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 - "type"
-
Why do APIs return an error with HTTP 200 (success) as the response type?!
It's like saying:
"Hey, congrats! You've successfully failed."25 -
Type it in, type it in, type a bigger number in. Oh how fun it is to break other people's software!8
-
When typing analytics.google.com into a browser always type more than 4 characters before hitting enter.9
-
There are two types of people :
1. People who do backup
2. People who will start doing backup
Yesterday I advanced from type 2 to type 1 :-/9 -
USB-C (or Type C) origin story:
Manager: okay let's see your presentation
Developer: bring usb-key
* Inserts key *
* Nope *
* Flips key, tries again *
* Nope *
* Flips key, tries again *
* Nope *
Developer: ahhhhhh , NEVER AGAIN!
5 months later
"USB forum publishes new specification"11 -
I really like JS, but sometimes it's just incredibly stupid.
NaN stands for Not-A-Number
typeof NaN
> 'number'
why are you doing this to me8 -
Submitting long written text on browser.
Novice:
1. Type
2. Submit
Experienced:
1. Type
2. Ctrl+a Ctrl+c
3. Submit4 -
I realize not everyone took keyboarding in high school but...
WHO TF CALLS THEM SELF A DEVELOPER AND CAN’T FUCKING TYPE?!?!10 -
To all the programmers calling “ToString()” on variables that are already of type String....
Please stop.24 -
I'm working with a customer named Clint.
I realize now that over numerous tickets I started mistyping his name... just every god damn time.
Guess what letter I left out?
Nice guy for not correcting me ... extra fast ticket response for him now.7 -
Talked to long time friend a while back.
I think he freelances now and does some kind of web design stuff.
He said, he hates java, and I asked what he hates about it:
" Those stupid variable types, I only use VAR in PHP to get around that stupid stuff. And what is this Oop anyway?".
😵 Dude? The fuck?8 -
Finally got rid of all those cables, just one usb-type-c-cable to plug in my whole office. Love it!8
-
NCIS Logic. Type "dir" and "find . ." Into full screen cmd and full forensics investigation complete.8
-
I never had problems with punctuation marks during coding, especially the notorious semicolons because I've always used an IDE, ain't gotta time to waste on compiler errors.
But today I meet my nemesis, a fucking comma wasted an hour of my precious time, causing my unit tests to fail in Python, my unit tests where expecting a list and the actual value is a tuple, it turned out that there was this trailing comma - which I don't know where the hell it came from - at the end of a function call that returns a list.
I only noticed this freaking comma after Pycharm indicated a conflict between the returned type and the expected type and underlined the culprit, that small invisible fucker 😬.
Thank you Pycharm and type hints in Python 3.
this is why, my fellow devs, you have to use an IDE.
PS: For those of you who aren't familiar with python, a trailing comma at end of a variable turns it into a one element tuple.
1, = (1,)1 -
A classmate of mine once asked me for a phone charger.
*I would lent it to you, but I don't think you have a type-c*
*No, I have a samsung*8 -
Lemon juice
Water
Vodka
Limoncello
Splash of gin (I used Bombay)
Sugar/replacement to taste
Ice
Tastes like traditional lemonade, but this one is a great remedy for burnout/reality.
Highly recommend!random without her effort i couldn’t type hard lemonade done right alcohol helps i’d like to thank autocorrect for this post reality rehab root drinks again root has a reality problem7 -
Did not expect this from Google. Seems like you're hiring real linguistic pros.
Now this is not the only thing I didn't like, they're very disorganized & the interviewer got sick & two of three interviewers were so cocky.. bad bad vibes
On the other side, a small local company is giving warm & good vibes, seems more accommodating even with lower pay.. their website sucks & the tech director was honest & smiling.
So yeah, Fuck You Google
..|.5 -
Python Dev Learning C#: I'll just wait until I run the program to see what type the function returns.
Me: Static typing means you know that before the code even compiles!
Python Dev: Sometimes I forget that all functions explicitly say what they can return.4 -
Open terminal.
Type "telnet towel.blinkenlights.nl"
Press enter. Sit back and enjoy.
Thank me later.11 -
MAD scientist time! Can the USB type C port on Nvidia RTX tuning card used as a standard USB port? Eg charging your phone, or read USB flash drive🤔36
-
OSC, or open sound protocol, does not have a Boolean type. instead, the Boolean true has type true and the Boolean false has type false.
what.
well.
at least the problem wasn't in my code? -
When you encounter a bug in your code while writing a test and you have absolutely no idea what's wrong...
...and then you see it's a type problem. -
There are 2 types of bosses:
Type 1: Who think you are avoiding work
Type 2: Who are not your bosses -
Dear dongle manufacturers, I love USB-C, I think everyone does; it is the bomb... But.... But but but, please stop charging so much extra for it, I can get a USB-A to Ethernet adaptor for $12 AUD but it's going to cost me at minimum $49 AUD for the same branded dongle, even has the same internal chips... Why... Just... Why!17
-
This weekly is getting really popular with so many rants coming in.
Shows the extent to which real coders/programmers/developers are tormented by the incompetent education system.
Here is my two cents:
Students should be taught to build their logic on paper before jumping on to their keyboards.2 -
After coding in c++ for a week now, whenever I type '#' in todoist, my fingers automatically type #include.
And then I correct my mistake. Annoying, but cool -
Have you ever experienced the 4th type of headache? 😱joke/meme programming comic coder programming joke programmer life meme headache programming life coding programmer programming fun funny1
-
Today's rant: JavaScript's type system.
I realized halfway through that I can't happily call JavaScript a "programming language" so just assume
alias programming="scripting"
I'm sure it's not actually as frustrating as it seems to me. Thing is, I'm used to either statically-typed languages or dynamically-typed languages that actually make sense. If I were to try to add an integer to something I'd forgotten was a string in Python, it'd immediately tell me "look, buddy, do you want me to treat this as a concatenation or an addition? I have no idea the way you've got this written." I've found that mistakes are a common thing with dynamic typing. Maybe I'm just not experienced enough yet, maybe it's really as stupid as it looks. JavaScript just goes "hey look I'm gonna tack all of these guys together and make a weird franken-string like '$NaN34.$&' because that's absolutely what we want here!" Then I run my webpage and instead of a nice numeric total like I wanted, good old JavaScript just went "Yep, I have no idea what I'm doing here I'm just gonna drop this here and pretend it's right." Now absolutely I do not expect my programming language to make correct assumptions and read my mind, otherwise JavaScript would be programming me and not the other way around. But it could at least let me know that I had incompatible types going on rather than just shamelessly going along with what it's doing. Good GRIEF, man, some of the idiosyncrasies of the EMCAScript language definition itself just make me want to punch a horse.6 -
When you have been heavily using 1 language for 6 months, then start a project in another - where da fuq did all my memory muscle go!4
-
I hate debugging document oriented data types..
Can't even sysout easily like primitive data types.
Need a debugging duck.1 -
Me, rueing typescript: "Dammit, Typescript!"
Typescript's cheeky response: Type 'string' is not assignable to type "Dammit"
ಠ_ಠ -
[Type : Joke]
Happy holidays!
Find out whether Santa has passed your country!
https://santatracker.google.com/tra...5 -
Having a static class in C# with 20 variables of generic type: ArrayList with zero documentation to know type of array content 😒1
-
Serious question: why write in coffee or type script instead of normal JavaScript? Speed? Ease? Familiarity?1
-
The most interesting part of learning Jekyll is trying to remember how to type 'Jekyll' correctly...
-
20 years ago, in China, they sold a so-called learning-machine which is a modified version of super Nintendo with a full sized keyboard, you could use it to learn how to type, and play Nintendo games. somehow it supports basic, and the manual book have printed a full code to create a stupid game with you could move a super Mario character with arrows, me and my step brother spend a whole day typed the 40+pages of code and enjoyed the game for 5 mins. BTW you can not save your program. after that I think it is so cool to create vedio games by programming.
-
Turns out that one can use the ‘var’ keyword to declare a variable in Java 10. Finally Java’s being more like JavaScript 😊6
-
:first-of-type works with classnames but :last-of-type does not. who thought this would be a good idea??2
-
user... user... user... USER...USE!!!! why do I always type user when wanting to type user!!! USE!3
-
How did they manage to come up with such a bug? The only things there should be numbers or an arrow, not meaningless Hebrew letters.1
-
Working with a SOAP endpoint. I know it is some .NET server due to the style of stacktrace on exceptions. Nice, a framework where I can expect some type safety granted by static types. I build some xsl to transform the SOAP wsdl files into classes and structs to interact with the endpoint. Works out perfectly.
Plottwist!
Elements which are defined in the xsd/wsdl with maxOccur=unbounded and minOccur=0 should represent a simple collection of this type. Therefore does my implementation expect a collection of this type. But no. The shipped SOAP client in my stack ignores the definition and simply deserializes the SOAP response into T and not a collection of T.
Where the duck are the types when they are defined all over the place?2 -
I just spent about 4 hours debugging a PHP bug because of its weak type declaration. Some please point me to another language, Im done with PHP.12
-
After the fun I had with the XEN Orchestrator UI ( https://devrant.com/rants/2554182/ ) I build an exporter that normalizes XEN / Proxmox API output and writes it into a nice spreadsheet.
Took PHP 7.4 for a spin. Sweet jesus, lot of nice stuff.
Been nearly a year since I did something larger than small scripts in PHP, but felt really at home again.
The type hinting and arrow functions made writing the exporter a breeze.
DTOs with typed properties spared me quite a bit of headache when normalizing the different APIs...
Utilizing *sort with fn arrow function is a pretty nice and concise one liner with the spaceship operator.
And I have now a nice spreadsheet...
Thanks at the PHP folks.2 -
Budding Developer here...
I've tried to teach myself Web Dev over the past 10 yrs on/off... Sad. But now I'm actually in a developer role moved up from IT helpdesk a year ago.
In the past year I've learned SQL, SSRS, SSIS, database concepts, and.... VB6. I am a master at none due to having to cram so much in a year while taking on various projects, issues, and learning the organizations software infrastructure and processes. I also taught myself current HTML, CSS, and basic Javascript. Learning the different basic concepts with each.
Over the past couple months I've been given a new project and now learning ASP.NET and C#. Actually trying really hard to get adept at these as I'm finally doing Web Developing in my role...
I am also dealing with multiple major family issues and a near 2 yr old that we cosleep with that still doesn't sleep through the night.
Why the crap is it so easy to convert an enum to a string but takes 50 functions to convert a string to an enum???
Cast, convert, parse... Why so much logic???
When the online teacher says type why do I have to rifle through 7 different meanings in my head before I know what kind of type he's referring to??4 -
I need cyclic data structures but algebraic data types are my first love and tying the knot is impossible with the eagerness F# has. The interfaces and classes I abandoned C# for are the ones I am now writing in F#. What a job well done on my part in avoiding mutability :(6
-
I don't know what to do because union and sum types both totally suck but I need them for my scripting language
Union types are fun and intuitive because they can be used with type refinement but they're not hierarchical thus bad for generics.
Sum types (or tagged unions) are great because they're hierarchical and can be nested properly but they need ugly type matching constructs.
The positive thing is I'm not making a systems language anymore so I only wanna jump of a bridge every second day5 -
What do you guys think about the new "type inference" (var type) feature that will be introduced with Java SE 10? I know that C# already has that construct. It's pretty controversial among my peers... 😅4
-
Some compilers give an error message on forgotten type casting. From that it shows good typing style casting. So you also avoid clerical errors that can lead to the program crash in the worst case. With some types it is also necessary to perform type casting comma on others Types, however, do this automatically for the compiler.
In short:Type casting is used to prevent mistakes.
An example of such an error would be:
#include <stdio.h>
#include <stdlib.h>
int main ()
{
int * ptr = malloc (10*sizeof (int))+1;
free(ptr-1);
return 0;
}
By default, one tries to access the second element of the requested memory. However, this is not possible, since pointer calculation (+,-) does not work for a void pointer.
The improved example would be:
int * ptr = ((int *) malloc (10*sizeof (int)))+1;
Here, typecasting is done beforehand and this turns the void pointer into its int pointer and pointer calculation can be applied. Note: If instead of error "no output" is displayed on the sololearn C compiler try another compiler.1 -
"stacktrace"
Universe.SolarSystem.Earth.Microsoft.Dynamics.Platform.Integration.Services.OData.Query.DataAccessor.GetQueryableCollection(Type instanceType, Boolean isCrossCompany)1 -
So I got an error in my xaml page, saying it can't add object of type A
okay but I asked for type B. -
I can't use this keyboard to program:
Got a transparent touch LED keyboard because I thought it was cool, turns out the lazy chinese programmers have used a really long debounce time of ~100ms in its firmware to prevent duplicate keystroke detection.
Which means, I can't type as fast as I want on this thing! 😭 -
What do you think of personality types and which do you think is the most prevalent in the developer community?4
-
When you find that some devs decided that UserProfile.description:String entity field requires a CLOB data type.........8
-
*plugs in Sun Microsystems Type 6 keyboard*
Okay, several questions:
- Why is my Compose acting like Super?
- Why does Meta no longer exist?
- Why does Menu no longer exist?
- Why is Num Lock stuck on?
$ sudo dpkg-reconfigure keyboard-configuration
> Sun Microsystems Type 6
Thats better. -
print(type(signal))
print(type(-signal))
print(type(-1*signal))
returns....
<class 'numpy.ndarray'>
<class 'numpy.float32'>
<class 'numpy.float64'>
ffs.2 -
Like this
```
((Type.ClassType) typeElement.getSuperclass()).asElement().baseSymbol();
((Symbol.ClassSymbol) typeElement).baseSymbol();
//((Type.ClassType) typeElement.getSuperclass()).asElement().getEnclosedElements().get(2);
((Type.ClassType) typeElement.getSuperclass()).asElement().getEnclosedElements().get(8);
//mirrorToElement(typeElement.getSuperclass());
Type type = (Type) typeElement.asType();
//Symbol symbol = ((Type.ClassType) typeElement.getSuperclass()).asElement().getEnclosedElements().get(2);
Symbol symbol = ((Type.ClassType) typeElement.getSuperclass()).asElement().getEnclosedElements().get(8);
//new Types(((JavacProcessingEnvironment) processingEnv).getContext()).memberType(type, symbol);
((JavacTypes) processingEnv.getTypeUtils()).types.memberType(type, symbol).getReturnType();
//((Type.ClassType) typeElement.getSuperclass()).asElement().getEnclosedElements()
``` -
We don't talk enough about type 2 error! So many papers everywhere are just pure trash because they don't account for it, and people are so fucking oblivious about it, they don't even catch the obvious ones. Even researchers and publications which are supposed to properly review their articles simply fail to ask the obvious "Did you measure the segment which doesn't fit either of your variables?"6
-
Trying to put translation in a drupal 8 project with
Content type => Paragraphs type => paragraphs type.
Wtf i need to translate in witch level OMG.
😭🔫1 -
<!-- KHAN!!!!!!! -->
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="all-ie-only.css" />
<![endif]--> -
Typescript is my new favorite and my grudge is the stupid scoping of type assertions. I have an async function that checks whether a variable is set and awaits a change event if it's undefined. This function is working javascript but invalid according to typescript, because it relies on the exact type changing while the function is running. I had to convert it to a mess of promises to bypass this because (and this is the best) the callback-based syntax of identical meaning will reset all type assertions, even locals that are never written after the callback's creation.8
-
There are two types of developers in the world.
Type 1:
if(isLoggedIn) {
}
Type 2:
if(isLoggedIn)
{
}
Be in Type 1, you can't save world but at least you can save one line in file.2 -
Angular and is best friend RxJs are too over engineering and far from the concept of 'keep it simple, stupid'
But just a moment they're both use typescript to design there interfaces ... maybe that is the fucking reason for that !2 -
Wish the Objective-C compiler had better type checking. There's no reason for it to not error out when I'm migration a property from one type to another.
-
Those of you working with .NET, do you prefer C# casting syntax:
(Type)variable;
Or VB casting syntax:
variable as Type;3 -
So, the PowerQuery type system appears to be a Joke.
For those you that aren't familiar with PowerQuery, it's the ETL language that is used in PowerBI, and some other parts of the MS PowerPlatform. It was formerly known as the M Language.
The language has a type system, that includes records (think hashes) and tables, which are, for practical purposes, a list of records.
The wonderful M language specification document states that:
"Any value that is a record conforms to the intrinsic type record, which does not place any restrictions on the field names or values within a record value. A record-type value is used to restrict the set of valid names as well as the types of values that are permitted to be associated with those names."
Except that the restriction is only to the set of valid names, and the language interpreter doesn't throw an error when I place a number into a text field, but also doesn't do any sort of implicit conversion. This is all hunky-dory, until you then try to load the data into the Tabular Model that underlies the query engine, which does expect the values to be of the type that is specified, and it throws an error.
But PowerBI, in its infinite wisdom, doesn't actually *record* the error, it merely tells you the error exists, and tells you to go back to the query editor to list the errors thrown up by the powerquery engine. Which, as previously stated, doesn't throw up an error for this instance.
So I've spent all afternoon trying to work out why my queries aren't loading, because I have an error that doesn't exist. fml.
[You can follow this issue on the communtiy feedback site here: https://community.powerbi.com/t5/... ] -
typedef bool Bool;
Class Description
{
public:
inline Bool IsTypeA() const { return IsType(TYPE_A); }
inline Bool IsTypeB() const { return IsType(TYPE_B); }
inline Bool IsTypeC() const { return IsType(TYPE_C); }
Bool IsType(DescriptionType T) const { return (T == Type()); }
DescriptionType Type() const { return m_Type; }
private:
DescriptionType m_Type;
}
I can't make this shit up3 -
If someone tries using "multipart/form-data" as only content type for their PUBLIC API ENDPOINTS again I am going to find them and choke them to death.
And if your documentation says you are using something else (application/x-www-form-urlencoded) I am doing it twice.
JSON apis should be standard.
EDIT: I had to fire up BurpSuite proxy, after almost an hour I accidentally switched the body type - voilà1 -
Brain fart.
In Java and many other languages there are basic types, like char and String. So why does Java have char and String, but not a digit type?
A number is basically a series of digits. For modular arithmetic it is very useful to be able to extract the 3 in the number 1234, it's just the 3rd digit in a number.
Base 2, base 10, base anything could be supported easily too. E.g. a base 2 digit would be:
digit d = 0b2; // or 1b2, but 2b2 would be a compilation error
A number would then be some kind of string of digits.
Any thoughts on this?9 -
There's two types of developer.
Type 1 :
def function() {
// code
}
Type 2 :
def function()
{
//code
}
So, which one are you? I won't judge if you're not type 1.4 -
After a month off from developing. I got butterfingers, can't type string with typing an extra 'h' into it. Surprised I didn't type with my thumbs instead.
-
I can't find it on my damn motherboard!! Does tuf b550 plus have usb 3.1 gen 2 port for front panel usb type c?
Is there an adapter I can get?
:( nothing sadder than not being able to finish your build to your satisfaction.17 -
String good =
"I'll never give up type systems!!"
+ " Do you hear me?!"
+ " Never!";
bad =
"Can't believe it made it all the way into prod."
% NaN + 3 / '11' -
Do you type with palms down or up?
If you write with palms up (correct posture) how long it takes until your hands are a bit tired?4 -
What's harder than trying to name a variable is to think of a memorable but easy to type password to a system that resets expires every 3 months with history checks.2
-
<Dream type="pipe">
GitHub-flavoured Markdown in devRant... maybe even with syntax highlighting...
</Dream>4