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 - "object"
-
wife: why don't you react to things I say (she means why don't I go crazy when she says crazy shit)
me in my head: after 7 years in IT I have learned not to react when people above you say crazy shit.2 -
Just read this in German craigslist:
I make your new fancy website...only 99€...no wordpress, cuz thats for blogs only...
I program object oriented in HTML/CSS!7 -
What my friend wrote on Instagram: "I should be studying oops"
What I read: "I should be studying object oriented programming s"4 -
In database course we should be thaught "database", not "MySQL"
In object-oriented programming course we should be thaught "object-oriented programming", not "Java"
And so on and so forth8 -
The person who found this toilet paper company, probably was a programmer. Also probably the best way to describe Array with an Object4
-
FML. All those "train your own object detection" articles can go burn in hell. Not even TFs pertained models work!10
-
"Why can't I just get the terminology right in my head"
java: map.
javascript: object?
python: dictionary!
ruby: HASH!
php: aSsoCiaTiVe aRrAy14 -
Our lecturer writes "extends Object" behind every class in Java. I don t want to live on this planet anymore3
-
Playing Warcraft and similar games prepared me for understanding Classes and Instances in Object Orientation later.5
-
"Imagine everyone is an object. You are an object, you are an object, you are an object." My lecturer said while pointing to random students in the class. Oh how I wanted to quip "So you think girls are just objects?" 😂13
-
The end is near, everyone duck for cover while I drop an unbelievable project on you!
I present to you.......
Object Orientated HTML or “OOH”
https://github.com/Michaelkielstra/...
~ Disclaimer
This is not mine, just scary as hell to stumble over 😱8 -
If you need to learn/teach object orientation, these are my approaches (I hate that classic "car" example):
1) Keep in mind games like Warcraft, Starcraft, Civilization, Age of Empires (yes, I am old school). They are a good example of having classes to use, instantiating objects (creatures) and putting them to work together. As in a real system.
2) Think of your program as an office that has a job to do, or a factory that has something to deliver. Classes are the roles/jobs and objects are the workers/employees. They don't need to be complex, but their purpose must be really (really, really) well defined. Just like in a real office / factory.
3) Even better (or crazier), see your classes and objects as real beings, digital creatures in a abstract world, and yourself as a kind of god, who creates species (define classes) with wisdom. Give life when it is the time for them to come into the world (instantiate object) and kill them when they are done with their mission (dispose an object). Give them behavior, logic, conditions to work with, situations where they take action, and when they don't. Make them kinda "smart". Build them able to make decisions and take actions based on conditions. Give them life. Think on your program as an ecossystem. There must be balance, connection, species must be well defined and creatures must work together to achieve a common objective. Don't just throw code and pray for it to run. Plan it.
-----
When I talk about my classes like they are real beings, and programs as mini-worlds, some people say I am crazy, some others say that's passion.
It is both! @__@3 -
Overhearing first year software dev students argue that object oriented programming is pointless and makes no sense...
You're gonna have a bad time...7 -
this hurts. it really hurts. hey can you make x using <buzzword> with <buzzword> for less than minimum wage?
how about i hit you in the x using my <hard object> with <harder object> for free?2 -
i had this weird dream. i invented a programming language that was connected to the physical world. every time an object was instantiated during runtime, a 3D printer would print this object immediately in real time, into the void of a confined space without gravitation (like a physical stack, but not like a stack). if this object was passed objects as function parameters of its methods, these little objects were printed as well and temporarily moved into the orbit of this object, orbiting it like electrons or little moons.21
-
Even during games, I find bugs in it...
Just found NULL in FIFA GAME.
Wonder which object failed to pass it's value2 -
I'm truly and deeply bothered by
import {Object} form "module"
instead of
import { Object } from "module"
What's worse is that I'm bothered by the fact that I'm bothered about this as I'm normally able to laugh away discussions about syntax A being better than syntax B.6 -
Introducing a new javascript functionality:
Relation operators
These help you determine if object is related to other object and in which way (parent, child)
In screenshot a demonstration done on numbers1 -
On Python,You create a gun module, a gun class, a foot module and a foot class. After realizing you can't point the gun at the foot, you pass a reference to the gun to a foot object. After the foot is blown up, the gun object remains alive for eternity, ready to shoot all future feet that may happen to appear.1
-
Some people just don't get object orientated programming. What kind of mental Frankenstein object is that you've created? It's part customer, part calculator and part tractor!2
-
To the people that create compilers.
Is it so goddam hard to tell me which fucking object is Null?13 -
...i just remembered why I have a MasturbatorPattern repository on my bitbucket, why is it named that way, and what it does.
It's one of the core abilities of that magical AI i've mentioned in my previous rant. And it's called that way, because of how it works:
The Agent has some objects (as in, class instances) available to it, and wants to get some other kind of object. So it inspects by reflection ("touches") all objects around itself, inspecting their public functions, building up a plan/path/tree of "this function takes the object I have as input, and returns this other object which this other function of other object takes as input and returns this different object, which...." etc, etc, until the final function returns the object the Agent wanted to get in the first place.
And then it goes and "does" all those functions, in that order piping the parameters through.
So first it touches them (second layer of metaphor - linux finger command), and then it does those which output (ejaculate =D) something useful to it.
Therefore, MasturbatorPattern =D
Not sure if my sense of humor is just weird or outright unfunny.8 -
I sometimes put "[Object object]" in input forms, in hopes of making the devs debugging it lose their freaking minds.8
-
In my current project my team lead created a revolutionary framework, which is capable to automate any manual work..
Here is its source code..
public class AutomateFW {
public Object automate(Object manualWork) {
// Call jr developers and assign them work :)
callFreshers(manualWork);
}1 -
Conversation I had with a coworker today:
me: When transferring an object from C++ to QML you have to set the parent of the object. If you don't QML thinks it can just delete this object.
coworker: So if you don't set the parent of the object then the orphans get Anakined?
me: Yes1 -
I realized how overly complicated I wrote certain object oriented code a few months ago and now I have to work around it...
I over engineered it... I became the very developer I hate5 -
How I felt when discovering object oriented programming. I still have a long way to go but I'm starting to get it.2
-
Biggest annoyance in Ruby: nil is an object, nil's class is NilClass, NilClass's class is Class, Class's superclass's superclass is Object, and Object's superclass's superclass is basically BasicObject1
-
Basic OOPS Question -
A unit of computer information that contains data as well as all the procedures or operations is called:
(1) A method.
(2) Encapsulation.
(3) An object.
(4) An OOP
(5) None of these
This question is a bit confusing to me.. what do you guys think? 🙄19 -
I always wanted to have an array where I could store an object at index 694307084175882649501.
And now I can!!!13 -
So we had a class that should have 2 states 0 or 1, you think my coworker would be smart enough to represent it with a Boolean? NO!
Represent the state inside the object as an int then when using the object in a function creates a Boolean that determines the state of the object and after the function done it's job THEN call another function that takes the object and the Boolean and change the int state inside the object depending on the Boolean.
Wouldn't it have been whole lot easier to just you know..... Make the state a Boolean from the start.
When I saw this I knew I was witnessing a miracle of the human mind. God bless!
Ps: it wasn't connected to any kind of API nor server and there are never more than 2 states. It's just some local sequential code so don't assume it had a logical reason it's just a fuck up.5 -
TIL that Python's "everything is an object" mentality allows you to do
def some_function():
some_function.variable = "abc"
print(some_function.variable)
> abc9 -
Dear JavaScript,
"TypeError: Object(...)(...) is undefined" is not a helpful error message.
Sincerely,
Me11 -
Functional programming vs object oriented programming.
I don't believe one can replace the other I just want to know some other people's opinions.40 -
Just published vscode extension to auto transform object accessors to nullable / safer accessors (&& chain).
search for “vscode-oat” in marketplace.
Looking for feedbacks :)10 -
Users.applyAll(u -> u.watchOut(true), u -> u.setCry(false), u -> u.setPout(false));
Users.each(u -> u.tell(He.getName() + " is coming to " + TownRegistry.getCommonName()));
List<Object> list = He.composeList();
He.validate(() -> list);
He.validate(() -> list);
List<Object> naughty = He.filter(He.UserType.NAUGHTY, () -> list);
List<Object> nice = He.filter(He.UserType.NICE, () -> list);
He.with(naughty, nice).arrive(TownRegistry.next());
Users.each(u -> u.setStateObserver(User.State.SLEEPING, He.asObserver()));
Users.each(u -> u.setStateObserver(User.State.AWAKE, He.asObserver()));
He.subscriptions().monitorEvents(s -> s.type == He.EventType.BAD);
He.subscriptions().monitorEvents(s -> s.type == He.EventType.GOOD);
He.subscriptions().each(s -> He.advisor(He.EventType.GOOD).advice(s));5 -
me: *Tries a little change before going to sleep*
git: error: invalid object xyz
me: sure, fuck you too -
Started learning Javascript. Came across many weird things. Like 'this' refers to the object in which the function is but when it is used inside a function which is inside another function it starts referring to the Global Object???Seriously?? I don't get it😕😵😢
But still I am starting to love Javascript along with its weird parts😁2 -
Idea: Hiding a 3D object in an image by making a list how often every color appears and then displaying that as density information in a 256³ cube (aka using a 3D histogram to encode a 3D object)15
-
When you mad with your manager so make all object names in your code the names of the seven dwarves.1
-
NullDeveloperException : When the coffee pot is empty and developer is not set to an instance of an object anymore.
Productivity.dispose();3 -
I'm not qualified to say anything here, I'm a junior as well, but something general that I picked up:
Not everything needs to be object oriented.
Writing 5 functions and calling it a day is often much better than needing 13 classes and 4 interfaces.5 -
Attracted by Python's powerful built-in libs, I learned it by myself. However, its naming convention is confusing me. It even can't correspond to itself in an object. For example, a dict object has a method named has_key and a method named popitem. So I need to check up on the function names frequently.6
-
If anyone has an object (Domino's) recognition program lying around you might be able to get free pizzas for life.
https://youtu.be/wTdiNmgZ90A3 -
Pun :
My C# developer friend Alfred getting a divorce because his feminist wife didn't like him treating her as "Object".
Now she's gonna "Dispose" him after "Using" him for her benefits.
😋3 -
who invented goddamned dynamic typing
its over one hour and i cant find myself in this goddamn object
GODDAMN JS1 -
I just wasted 2 hours trying to figure out why the properties of a destructured object returned undefined, even though everything was fine in JSON format. Tried to request data on the frontend from my server with a database attached. Tried accessing each object of my array separately, it worked. In a loop: dataArray[index].propertyX ... undefined??
Turns out I used the wrong property names to access the info inside each object.
🤦1 -
We spent a lot of time creating these CSS animated pop-ups that described parts of the product. They looked great, but the client called and said they were "flickering" on her computer. We debugged and could not for the life of us figure out what she meant by flicker. The code was so simple that we couldn't imagine how it could be flickering. It was just a jQuery fadeIn(). It worked fine for us in every browser we tried. So we just gave up. The next day, the client called back and said,"Hey, it looks great. You fixed the flickering. How did you do it?" And our dev replied, "Uh, we set the flicker to 0".6
-
The best kinds of comments:
/**
Gets user CC info datas.
*/
public Object getUserCCInfoDatas() {}
If you really want to outdo yourself:
/**
Gets user CC info datas.
@param someshit Outdated docs ftw
*/
public Object getUserCCInfoDatas(String unrelatedToDocAbove) {}
Honestly, no documentation is better in some cases. At least I can't be angry about their shitty quality... And they don't waste my time.1 -
Traceback (most recent call last):
File "me.py", line 1, in <module>
AttributeError: 'Dave_Elec' object has no attribute 'social'1 -
Additional information: Cannot implicitly convert type 'void' to 'object' <- when you've been playing Ascension so much, you are asking yourself what kind of hero you need to convert it to 'object'... FML, my brain has farts..4
-
Don’t use an array with index to get a value without checking the length. Don’t use an object without checking for null.
-
IsIdentical(object l, object r {
if (l.m_Lorum == r.m_Lorum)
if (l.m_Lorum2 == r.m_Lorum2)
if (l.m_Lorum3 == r.m_Lorum3)
if (l.m_Lorum4 == r.m_Lorum4)
if (l.m_Lorum5 == r.m_Lorum5)
if (l.m_Lorum6 == r.m_Lorum6)
if (l.m_Lorum7 == r.m_Lorum7)
if (l.m_Lorum8 == r.m_Lorum8)
if (l.m_Lorum9 == r.m_Lorum9)
return true;
return false;
}
//FML..
Just do this:
return (l.m_Lorum1 == r.m_Lorum1 &&
l.m_Lorum2 == r.m_Lorum2 &&
l.m_Lorum3 == r.m_Lorum3 &&
l.m_Lorum4 == r.m_Lorum4 &&
l.m_Lorum5 == r.m_Lorum5 &&
l.m_Lorum6 == r.m_Lorum6 &&
l.m_Lorum7 == r.m_Lorum7 &&
l.m_Lorum8 == r.m_Lorum8 &&
l.m_Lorum9 == r.m_Lorum9);13 -
In salesforce, the baseclass of "Object" is SObject and the baseclass of an apex class is object.
Whoever named this smoked too much.8 -
Comp Science teacher - “What is an object?”
Kid sitting next to me - “Women”
That was nice considering I am one...8 -
Object Orientation is not a feature, it is an unneeded layer of complexity over a dying paradigm, Imperative Programming7
-
A simple object mapper for CosmosDB SQL API
Cosmonaut is an object mapper that enables .NET developers to work with a CosmosDB using .NET objects. It eliminates the need for most of the data-access code that developers usually need to write.3 -
I'm having such a bad day, that an exception object passed on to my catch block itself caused a NullPointerException.1
-
My girlfriend dumped me after I named a class after her.
She thought I treated her like an object !!4 -
Analogy: Assume a JVM is a kingdom, Object is a king of the kingdom, and GC is an attacker of the kingdom who tries to kill the king(object).
When King is Strong, GC can not kill him.
When King is Soft, GC attacks him but King rule the kingdom with protection until resource are available.
When King is Weak, GC attacks him but rule the kingdom without protection.
When king is Phantom, GC already killed him but king is available via his soul.
So Phantom ref is basically GC saying "Omaewa mo shindheru" and the object saying "Nani???"1 -
NullPointerException: Object reference not set to an instance of an object.....ummm what was null?
How much longer must we wait for a language that tells you the variable name that was null?2 -
I hope that in the future we will have a different way to learn new languages than creating a 'hello world!" object 😂7
-
In office I work on a RedHat VM on a windows m/c.
At home I work on elementaryOS VM on a macbook.
My shortcuts are fucked. -
$ python
>>> class Object:
>>> pass
>>> self = Object()
>>> self.attr = val...
>>> * copy paste code from some class
<Ctrl>+d
Testing ☑️ -
“The problem with object-oriented languages is they’ve got all this implicit environment that they carry around with them. You wanted a banana but what you got was a gorilla holding the banana and the entire jungle.”
—Chris Scalfani, from https://medium.com/@cscalfani/...4 -
Q: "Babe, what's wrong?"
Women: "Nothing, its just fine"
Compilers: "Object reference not set to an instance of an object"6 -
You know what's better than a Bucket Object that wraps an arraylist?
A BucketBucket Object which wraps an array of buckets which each wraps an ArrayList.
FML1 -
Super inconsistent function naming in PHP.
And how some things are object-oriented and some are functions.3 -
Since becoming an "Architect", I've come to learn "Architect" simply means siphoning your will by eliminating all opportunities to actually write code ...
public class Architect {
static final boolean inMeeting = true;
private int will;
public static void main(String args[]){
Architect me = new Architect();
if(me.inMeeting){
while(meeting.active){
me.reactToEvents();
}
}else{
me.writeCode();
}
}
public void reactToEvents(){
if(new Random().nextInt() % 3 == 0)
will -= this.hit(this.face, this.palm, Force.CONSIDERABLE);
else
will -= this.hit(Office.desk, this.head, Force.MODERATE);
}
public int hit(Object object, Object with, Force force){
object.useForce(force);
object.moveTo(with);
return new Random().nextInt();
}
}1 -
Coding JavaScript... Makes an object, creates a method, Uses 'this', 'this' points to the object... Good...
Calls another method, uses 'this'... Now 'this' points to the window object...
Why... WHHYYYYY... :'(3 -
Python be like:
TypeError: 'callable_iterator' object is not callable
and also:
TypeError 'callable_iterator' object is not subscriptable
Why the fuck did you name it "callable iterator" if you can't call it, or iterate it.4 -
hey node what type is this?
> typeof []
'object'
but then
> Object.defineProperties.call([])
Uncaught TypeError: Object.defineProperties called on non-object
so is [] an object or not?13 -
I've always sucked at OOP and OOD, _in part_ because I have never encountered a good, common sense, relatable real-world example or analogy of why one would use protected or private variables/objects/functions over public. I watch tutorials and it all just sounds like static in my head and the explanations are just like "well, it's obvious you want to do blah blah blah because reasons."
Maybe it's just painfully obvious to everyone but me and my tiny brain just isn't capable of understanding. But if anyone has the example or analogy that made OOP click for you, please share.7 -
Absolute best way to get a object of the current User in Symfony?
Yeah, just retrieve the current user.
Oh, we are not yet done, get the username and perform a DB query to get a user object.
Glad this answer has -34 on stack overflow...2 -
Wow, function overload is worst than garbage! Is more like toxic waste!
If you run out of names for functions just name them:
DoThatStuff1(int, string)
DoThatStuff2(object, int, string)
instead of:
DoThatStuff(int, string)
DoThatStuff(object, int, string)
Your coworkers and future you will thank you!8 -
the company I work for has code that's very procedural which makes cringe as I strongly prefer object oriented.1
-
I really love Django, but I feel like Python is not object oriented enough. I'm thinking about Play (the Java web framework). Any other suggestions?10
-
C would say to other languages:
"I am imperative
not functional
nor object oriented but
I am faster than you"2 -
Sometimes I just wish Core Data would die.
I logged the managed object context of each object being touched and they're all identical. 😑😑😑😑😑😑1 -
Interface is the most misleading term in .Net. It's not an "interface" when an object requires a set of objects defined by another object! It's a template if anything! I'd even accepted CookieCutter or Mold.
-
when someone called you ask about your oops experience and you didn't get it for 5 mins that it's Object Oriented Programming.
-
-we have a huge nested object to represent this functionality.
- just save it in the DB under "settingsx" column as a stirng. No need for different columns
We had to parse it multiple times in the client and the server.
After a year in the company, I've managed to convince the team leader to move to json object at least2 -
object fucking reference fucking not set to an instance of a fucking object....WHYYYYYYYYYYYYYYYYYY!!!!!!!!!1
-
I gotta say. Zig generics / comptime code gen remind me of old (pre-prototype) JavaScript code where you construct an object using parameters and return that object to be used as a class (except in this case it's actually turned into a class at comptime instead of an object masquerading as class)28
-
When you decide to learn JavaScript and you make a object and realize it is a method, nothing like Java objects😑9
-
Why are ranters in general only inserting an image instead of quoting or linking the object of the rant?4
-
Object detection using MobileNets-
GitHub Link-https://github.com/geekysethi/...
Results-https://youtube.com/watch/...2 -
my old game had this flow every time a client places an object:
Client A creates a new generic object, and attaches texture paths (yep, global paths are allowed), and... lua code as strings to it.
Client A sends the entire object list to the server
Server receives it, replaces it's own object list
Server copies the entire object list and sends it to all clients
Client A and Client B both receive the object list and replace their versions.
All clients see that the object contains some code as strings
They compile and store it, and then run every frame. UNSANDBOXED.
any client could make all other ones execute any code and i was proud of my idea! -
C is a procedure oriented language
C++ is a object oriented language
Then my question is the what is java?16 -
Spent hours debugging and realise Object should have been object. Thanks documentation and Unity error messages!!1
-
It just hit me that despite being possibly the most object-heavy language out there, JavaScript actually wasn't even properly object oriented for the longest time. No language-level support for Encapsulation, Inheritance, and without a strict class system, it can never really have polymorphism or abstraction.
Since literally everything is an object, it's impossible to make it object oriented 🤯6 -
Admittedly as an engineer my SQL knowledge is minimal and I develop database driven web applications on a daily basis. Most programming languages have object-relational-mappers that handle things for me. I have a unified object store with easy querying and SQL is handled form me. You don’t have to be an expert in every technology to be an engineer.rant engineer orm sql engineering software development object oriented programming software engineering database8
-
Has anyone actually ever seen evidence of SOLID principles being 100% adhered to, as opposed to people just saying they're using them correctly then you look at their code and they're clearly not.
I can count more than one responsibility here...1 -
As a mainly object oriented programmer (java and c# mainly) having to do projects in c becomes a challenge..
-
Why would you do this?
public Array multiContent;
I'm working on a legacy c# app, trying to understand what the developers were doing here1 -
Who the fuck thought that in react useState should return an array and not an object. It makes me wanna make a wrapper that would instead return {current, set} = useSaneState('fuck you') because what the fuck does it have to do with arrays. And an object with shit.current would be consistent with useRef.
Also, vue is just superior in naming and coding standards.6 -
The code I'm working in always has problems with stuff like "Object obj=new Object();" or "List stuff=new List;" without type specification, but now I found the summit: "private void methodName(Type parameter) *throws Exception*"
-
In an object/dictionary/map config object where multiple source paths are mapped to destinations, which structure makes more sense to you (and why)?
1. { "src/path.ext": "dest/path.ext" }
2. { "dest/path.ext": "src/path.ext" }
Could also be a URI redirect map4 -
Should a validator change his object during validation?
I want to validate the address of a person with Google geolocation api. That needs one request against their api. After then I would need the lat lng in the person object. So I would need to request again. So should the validator update the object directly when it got checked? Or is there a better solution?2 -
Okay so theres something stopping me from understanding how Object Oriented Programming works. im sorry ahead of time this will get messy..
SO in this case we will use python. well what if the object has more than two functions? like the __init__, func1, then func2 and func2 does something else but doesn't get called or would you have to call of of them like class.func1(), class.func2().
I just don't understand when it comes to how the functions interact or effect each other. and how they would work when you dont call that specific function. I see the use of oop i just cant wrap my head around certain things..15 -
WTF!! Function that returns multiple outputs!! Why not make a datetime object and return the whole fucking object!!1
-
"object doesnt support this property or method"
THANKS EXCEL VBA!
VERY USEFUL
Who wants information about the line, the object name, type, or any other useful information? Yeah sure, i will track that object by placing Debug.Print till i find the line that causes this.
(its a bit my own fault, i found out how to solve the problem (or thought so) and wrote like the entire code without testing it inbetween)4 -
Dear God, why are punishing me by another bug report related to Edge?
Console dock freezes commonly for MINUTES, literally. It doesn't support objects, so every object is very usefully converted to "[object Object]" string. And now I am discovering that change event on input is magically not firing?
What a day. This would be solved in Chrome or Firefox in a matter of minutes, for a same time Edge doesn't even manage to render a page with dev tools opened FFS...2 -
Me: Keep the abstractions in check. Go too far and you'll end up with something called 'thing' or 'object'!
C#: Hold my beer 🍺🍺🍺7 -
i want to make an object from data from multiple related tables in my database,
do you know a better way?7 -
Not slapping someone when they call an object a thing or worse a thingy, it's like working with basic Starbucks bitches
-
NEED AN URGENT HELP HERE!!!
As much as I try to stay away from the satanic language that is javascript, I have to read up on it if I need to pass this semester.
Guide me towards the different types of objects in javascript, anyone?
Here's what I know so far- js treats everything as an object, but what I don't know is that are there categories? [the "everything" referring to the primitive data types]14 -
i am so excited learning. now i'll start refactoring my plate of spaghetti into object portions. both are new topics to me.
-
Does anyone know any good object-object property mapping library for JavaScript / Typescript? Similar to AutoMapper in C#?2
-
Okay so this has been bugging me. I know object oriented is important and helpful and good over all, but how much do people in the field with jobs use it. And this applies to any language I'm just curious.7
-
Working on a C# ASP.net application backend.
I need to send it from front a simple object but the controller doesn't fill the object in backend.
Time to debug (for at least 2 hours) before seeing that I forgot to JSON.stringify the data before sending it to the API...
F*CK !1 -
Java trainer: "...object orientated..."
Jesus Christ! Get it right, pronunciation matters! And you're teaching it to beginners! -
Can somebody please explain to me how in the fuck does :
{
"src" : "./template.html",
"format" : "plain",
"input" : {
"noun" : "World"
},
"replace" : "templateExampleSkeleton"
}
Result in:
format: "plain"
input: "[object Object]"
replace: "templateExampleSkeleton"
src: "./template.html"
When put through JSON.parse()???12 -
my requirements:
1. Able to create object with an event i.e click
2. Able to drag and move the object
3. Able to label it (for circle : inside it, for arrow: mid length)
4. Able to make double circle when specified event occurs,
5. Able to draw arrows from one object to other object or to self, and can also label the arrow.
Which technology stack should I use for this kind of requirements. doesn't matter desktop or web-applications.7 -
When someone calls me VincentNwonah and expects me to answer. but I'm a programmer and VincentNwonah is a different object from NwonahVincent. ;p
-
JS has
dynamic object literal keys
String object literal keys
Why aren't template literal keys allowed, and _why_ isn't there a proper error message for them?7 -
"Object reference not set to a reference of an object" is the single least helpful exception ever.
Also, I still hate Visual Studio. Sorry.9 -
R
Dot can be used for variable name just like underscore. And to confuse, R has object oriented also2 -
In C# I want to use 'using' on any damn temporary object I please, but it only works with objects that implement idisposable..6
-
an invaluable object made by your people within the borders of your country: *exists*
uk: oh, for me? you shouldn't have.2 -
I am in a slump. I keep writing spaghetti code. Is there any platform where I can practice Object Oriented principles?1
-
Does anyone use Winston JSON? or know what the perfomance impact is vs standard text logging? (serializing an object to JS)?6
-
So here the function that does same thing as new operator in javascript:
// we define our function Person that assigns properties to THIS that points to some object
const Person = function(name, lastName) {
this.name = name;
this.lastName = lastName;
}
// in Person prototype property we define our functions
Person.prototype.getName = function() {
return this.name;
}
Person.prototype.getLastName = function() {
return this.lastName;
}
// function that simulates new operator
// first argument is a function that would act as constructor
// second argument is an arguments that would be passed to constructor
function New(func, ...args) {
// with Object.create() we create a new object and assign [[__proto__]] from "func" prototype property
let object = Object.create(func.prototype);
// here we're calling "func" with THIS pointing to object
func.apply(object, args);
// then we return it
return object;
}
let person = New(Person, "Name", "LastName");
console.dir(person);
// so this is how prototype OOP works in javascript6 -
ok I think a lot of my frustrations in rust stemmed from assuming struts are like objects and therefore can contain conceptually similar things in them that in your head would seem like the same "object", and that methods should be derived therefore and such
but in reality in rust struts are for conforming to borrowing rules and it doesn't care about your conceptual organization I guess. if you try to organize things like the structs as objects then you get borrowing issues on some occasions and then I would get stuck trying to figure out how to put a method on a struct when I need to drop borrowing to do some task and whatever
the solution is to throw out your human notions of organization
so I guess it's more bare-bones to how the machine thinks about stuff (well how the borrowing is coded in the language) and doesn't care how a human does (like notions like object orientated design)
this is odd to me in a modern language but at least I've crawled out of my brain damage with enough drug-use now that I can have such epiphanies I guess. I feel so slow. I swear this should've been massively obvious and easy to grasp in like a few days before for me. rip
instead it was 2-3 years of ~5 months of actually deep coding 😒
also I can blame people saying rust can do everything, like that you can do object orientated design in it. they're being dishonest and it's harmful to the learning process if you're acting like that 😩. stop being a cult, you'll literally be more popular4 -
I am a Java developer.
My girlfriend broke up with me because she thinks I treat her as an 'Object'.2 -
I worked on an application to determine drop height of an object based on shock experienced by the object using sensors.
-
Is WordPress' use of God objects really such a big problem? I mean, sure wp_query is used for every possible purpose and is the most mutated piece of horror every. But what is the harm?1
-
Do anyone know How to creator a css object with javascript Code and be able to charge properties of it?10
-
Bing image creator just refused to give me a picture of Baba Yaga doing pair programming with Zmey Gorynych.
This makes no sense.1 -
When the Verilog95 RTL coder tells you your debugger for object oriented SystemVerilog is primitive #stickuphisass
-
if (object != null)
{
WorldClock.clock.remove(object);
object.removeEventListeners(
SomeType);
object.dispose();
object = null;
} -
So I have a xaml object that is designed for pagination on web pages, and the current page must be at least 1.
But the web service used for the data that go with that object starts its pagination at least at 0.
So everytime I must assure that the xaml object has 1 and the web service has 0 for the first page.
That's not hard, but that's the kind of thing that's annoying, why doing it that way -
VMware 6.5 web GUI programmer fail. Probably forgot to access a specific name property of the object.3
-
Unity3d context, my collegue said:
DRAGONBALL FORWARD!
While working with object orientations.
Let that sink in for a moment. -
Today, on "Trying to get property of non-object" we'll talk about Laravel and what happens when you did not enough research...
-
“Object-oriented programming is an exceptionally bad idea which could only have originated in California.” - Edsger Dijkstra
-
Not saying that JS is my favorite language but I like JSON.stringify(object)
Because:
1. console.log(JSON.stringify(object));
2. let clone = JSON.parse(JSON.stringify(object));1 -
Changed the nodejs template engine because i though its unable to parse nested object. After the second engine had the same error i checked the properties of the mongoose "populated" object and its mongooses fault.. wasted 4-5 hours of debugging just because of a missleading console.log ... FUCK!1
-
Just spent the last 8 hours writing Mockito doNothing().when(...) scenarios on mocked objects.... Then I realized mocked object methods already do nothing
-
Any C# Devs around that could tell me what the difference between Type and object is please? I'm really stuck for googling it.19
-
If you are required to do a custom Object Detector for Mobile.
Would rather use Tensorflow, Theano, or PyTorch to train the model?1 -
Newbie here ! What do experience pro grammars think of the recent wave of “OOP is garbage” comments on the internet ? Is OOP truly on the decline ? Or is it that OOP should be a feature of a language while coding rather than a “everything is an object” mentality.5
-
Can someone please explain me why the fuck the following doesn't work in C#?
Dictionary<string,object> mex=Json.Deserialize(data.ToString())as Dictionary<string,object>;
if(mex.ContainsKey("sessionId") && mex["sessionId"].ToString()!=tkn.GetSessionID())
the previous condition is NEVER true, but the following:
Dictionary<string,object> mex=Json.Deserialize(data.ToString())as Dictionary<string,object>;
if(mex.ContainsKey("sessionId") && mex["sessionId"]!=tkn.GetSessionID())
will actually work as expected.
tkn.GetSessionID() returns a string, of course
and mex["sessionId"] is always an object that contains a string in form of a number, like 152, 552, 6246 and so on and no, it won't ever contain any blank or other character
Fuck this fucking shit from C#8 -
TypeScript has two levels of private values (at least in the beta):
private foo = false; // Cannot be accessed outside the object in TypeScript
#bar = false; // cannot be accessed outside the object in both TypeScript and JavaScript.2 -
I started studying JUnit and Mockito and I really don't understand. All the docs and the tutorials around are like "if call this method, then return this object. If the object returned is the one that I expected then test passed". But isn't it obvious that the returned object is the one that I expected? I fucking told it to return that object4
-
God is the master programmer, Discuss citing various object oriented design concepts that he used. 😂2
-
I have a dream that one day whenever you pass / assign / apppend an object you can choose to pass by value or reference, regardless of the object being a primitive or a container (list, vector etc.) object
So I could stop waste my time and bang my head to my desk over such dumb problems this shit induces because language designers found making list to be passed by reference fun
I know such behavior is inherited from C's logic, and I don't give a fuck about any further explanation I might already know. What can be explained doesn't mean that's logical.
You give the choice to pass by value or reference for every object the same way or you do not at all, but no mixed shit.
Just, shut up and make it happen.4 -
Have an object that uses a macro to define its function bodies. I needed to interface to that object in a different way. So I wrote and object that calls functions on that object and presents a different interface. I used macros to define the function bodies...
-
Jackson has this adorable option of an array sintax to represent every object on a JSON where the first element of the array is the classpath of the type and the second is the object itself and someone thought it would be nice to use this notation on a REST API...
why? -
Me: GUI team needs help from backend team to add UIDs to a (shitty) object in (their in-house shitty) db.
Backend:
Backend can display these (shitty) objects properly, why can't GUI use the entire object as composite primary key? Backend can't just add some random UID to fix GUI display bug.1 -
Sorta just had a realization but wanted to confirm if that's how it works.
@Bean adds the object to global objects collection?
And @AutoWired in a object returned in like @Bean ClassA classA() { return new ClassA(); }
Gets the instance from these global collections?
In which case Spring is just a way to use global variables/singletons... Isn't that like bad?14 -
Saw a discussion on object lifetimes in C++.
I was wondering: Is this an object existential rumination?
What does it mean for an object to exist if it can live and die?1 -
Follow this link to generate random object in dart for free for your unit test
https://object-generator.trader-app.net/...6 -
Ok see this "trend" of adding a number 2 to a class name. To denote the new version of an object, surely I'm not the only person who thinks this is horrible. E.g Entity2, Renderder2 etc. It just creates a really bad API, I understand it's needed for backwards compatibility, but honestly there must be a better way....5
-
Anyone here ever build something with vuforia and tried to implement a static object in your scene to move around?
So like you start the program and there is a 3D AR object in front of you. That object should not change position when you move.
I have been searching for about 4 hours now and havent made any progress and im just questioning if it is even possible to do, so if any of you understand the problem please add your 2 cents