Car car = new Car();

Car car = new Car();

Anus Alien Shirt $21.68

Black Rifle Cuck Company, Conservative Humor Shirt $21.68

Anus Alien Shirt $21.68

  1. 1 month ago
    Anonymous

    gay op = new gay();

    • 1 month ago
      Anonymous

      lel

      troony crab language?

      snibbeti snab

  2. 1 month ago
    Anonymous

    In C# that's just
    var car = new();

    • 1 month ago
      Anonymous

      no, it's not

      • 1 month ago
        Anonymous

        Yes it is. It's a relatively new lang feature.

        • 1 month ago
          Anonymous

          >it's relatively new bloat

    • 1 month ago
      Anonymous

      Yes it is. It's a relatively new lang feature.

      No, it's not.

      You have to write
      Car car = new();

      The new operator has to know the type of car.

      • 1 month ago
        Anonymous

        in beef this is just
        Car car = .();

        • 1 month ago
          Anonymous

          >Car car
          in Lisp this is just caar

          • 1 month ago
            Anonymous

            >saar

    • 1 month ago
      Anonymous

      No it's not, moron.

      var is not magic, it infers the type from the assignment at compile time. Hover your mouse over the "var" keyword in an IDE and you'll clearly a type assigned to the variable.

      It's either:
      var car = new Car();

      or
      Car car = new();

      But certainly not both at the same time.

    • 1 month ago
      Anonymous

      I would write "var car = new Car();"

      javagays cant even do that

      • 1 month ago
        Anonymous

        Var is such lgbt positive nuword

      • 1 month ago
        Anonymous

        yes they can

      • 1 month ago
        Anonymous

        You literally can do that with that syntax in Java. You should throw a final in front of everything though.

    • 1 month ago
      Anonymous

      No, it's not dumbass. (I saw other anons calling you out and joined in, I have no idea why I am on DA)

    • 1 month ago
      Anonymous

      I have no idea why this post doesn’t have at least fifty replies calling the guy a moron kek

      • 1 month ago
        Anonymous

        99% of DA is nocoders, just PC gayming RGB kids and AI troons

      • 1 month ago
        Anonymous

        It was just a joke. You guys are clueless.

        • 1 month ago
          Anonymous

          >i-it was a joke!!1

          • 1 month ago
            Anonymous

            It was, though. How would the compiler know what to use?

          • 1 month ago
            Anonymous

            kek just own your mistake, man, it's just a post number, I don't know who you are

          • 1 month ago
            Anonymous

            Just accept that you didn't reached my level of jokeness. Humbleness is a gift.

          • 1 month ago
            Anonymous

            I believe you, well done

      • 1 month ago
        Anonymous

        because C# is for morons so the example is funny on its face

    • 1 month ago
      Anonymous

      aha what are you like

    • 1 month ago
      Anonymous

      yodelling

    • 1 month ago
      Anonymous

      Ha ha .. What a great joke .. Limmy-esque ..

    • 1 month ago
      Anonymous
    • 1 month ago
      Anonymous

      very funny, and I imagine you're surprisingly down to earth to boot

    • 1 month ago
      Anonymous

      KEEK

    • 1 month ago
      Anonymous

      Var Car Bork Bork

    • 1 month ago
      Anonymous

      kek, lmao, good one lad, underated post, gem, etc.

    • 4 weeks ago
      Anonymous

      why this should not work though?
      why var cant grab car as a class name(if class with same name does not already exist) then uppercase first letter and create class with the name Car and initiate default constructor with the same name? what the problemo?

      • 4 weeks ago
        Anonymous

        Trying to infer type from variable name is a losing battle

      • 4 weeks ago
        Anonymous

        the absolute state of DA

      • 4 weeks ago
        Anonymous

        saaaars why not work saars, wat da problem saaar!!!!

        • 4 weeks ago
          Anonymous

          >proceeds to hurl vindaloo at the screen

    • 4 weeks ago
      Anonymous
  3. 1 month ago
    Anonymous

    Car, err := NewCar( )
    >captcha: 82jdk

    • 1 month ago
      Anonymous

      let c = match(new_car()) {
      case let err: error =>
      log(err);
      return;
      case let c: car =>
      yield c;
      };

      • 1 month ago
        Anonymous

        troony crab language?

        • 1 month ago
          Anonymous

          bnuuy language actually

          • 1 month ago
            Anonymous

            so troony schizo language

          • 1 month ago
            Anonymous

            languages can't have genders

          • 1 month ago
            Anonymous

            don't be a bigot

        • 1 month ago
          Anonymous

          No. Rust would just be:
          let car = Car::new();

    • 1 month ago
      Anonymous

      beautiful

  4. 1 month ago
    Anonymous

    Car car = new Car()(Car);

  5. 1 month ago
    Anonymous

    public interface MotorVehicle {
    void build();
    }

    public class Car implements MotorVehicle {
    @Override
    public void build() {
    System.out.println("Build Car");
    }
    }

    public abstract class MotorVehicleFactory {
    public MotorVehicle create() {
    MotorVehicle vehicle = createMotorVehicle();
    vehicle.build();
    return vehicle;
    }
    protected abstract MotorVehicle createMotorVehicle();
    }

    public class CarFactory extends MotorVehicleFactory {
    @Override
    protected MotorVehicle createMotorVehicle() {
    return new Car();
    }
    }

    • 1 month ago
      Anonymous

      https://i.imgur.com/P6y1P1Z.png

      Car car = await _carService.CreateCarAsync();

      bots

      • 1 month ago
        Anonymous

        Bot bot = await _botService.CreateBotAsync()

        • 1 month ago
          Anonymous

          >_
          disgusting

          • 1 month ago
            Anonymous

            _ = postBuilder.InTheTrashItGoesSingletonDotNetBeanFactory();

      • 1 month ago
        Anonymous

        Not gonna lie, former Trump voter here. This is fricking hiIarious watching Trump crash and burn. But in all seriousnessException in thread "main" java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOfRange(Unknown Source)
        at java.lang.String.<init>(Unknown Source)
        at java.io.BufferedReader.readLine(Unknown Source)
        at java.io.BufferedReader.readLine(Unknown Source)
        at org.ctr.TopicParser.dump(TopicParser.java:23)
        at org.ctr.TopicParser.main(TopicParser.java:59)

    • 1 month ago
      Anonymous

      Good morning sir

    • 1 month ago
      Anonymous

      ```
      class MotorVehicle a where
      buld :: a -> IO ()

      data Car = Car

      instance MotorVehicle Car where
      build _ = putStrLn "Build Car"

      data MotorVehicleFactory a = MotorVehicleFactory {
      createMotorVehicle :: IO a,
      create :: IO a
      }

      carFactory :: MotorVehicleFactory Car
      carFactory = MotorVehicleFactory {
      createMotorVehicle = return Car,
      create = do
      vehicle <- createMotorVehicle carFactory
      build vehicle
      return vehicle
      }
      ```

      • 1 month ago
        Anonymous

        You need to define insurance

      • 1 month ago
        Anonymous

        newbies can't read pinned threads.

      • 1 month ago
        Anonymous

        new gay doesn't know how to use DA markup

        • 1 month ago
          Anonymous

          Maybe he's paranoid about "don't abuse code tag" rule

    • 1 month ago
      Anonymous

      >unable to process due to parsing error
      >defaulting to daily gen 1 yaris

    • 1 month ago
      Anonymous

      SOVL

    • 1 month ago
      Anonymous
    • 1 month ago
      Anonymous

      I like this but I'm not an Indian. Is there something wrong with me?

    • 1 month ago
      Anonymous

      Nothing wrong with this in projects that scale. I'm sorry you homosexuals are only used to making useless one-shot, one-file scripts. Try learning a framework some day.

      • 1 month ago
        Anonymous

        >Try learning a framework some day.
        i'm learning spring and i want to kill myself

      • 1 month ago
        Anonymous

        why do Indians always pretend they know what scale and big enterprise software looks like? this is code for corpo drones making dumbass moronic shit because they can't be trusted to not frick things up. it's fine for that purpose but that's it

      • 1 month ago
        Anonymous

        https://spectrum.ieee.org/lean-software-development

    • 1 month ago
      Anonymous

      Utterly deranged

    • 1 month ago
      Anonymous

      Repulsive

    • 1 month ago
      Anonymous

      Good morning sir.

    • 1 month ago
      Anonymous

      That kind of shit is only useful for business logic service classes that can have a lot of implementations and properties.

    • 1 month ago
      Anonymous

      what's the purpose of MotorVehicleFactory.create method if there's createMotorVehicle which is being implemented in CarFactory class?
      Or is it some convoluted round-about way to force to use MotorVehicle.Factory.create method?

      • 1 month ago
        Anonymous

        createMotorVehicle just instantiates the class, create initializes it with business logic

    • 1 month ago
      Anonymous

      i love enterprise slop

    • 4 weeks ago
      Anonymous

      weapon of durgasoft

  6. 1 month ago
    Anonymous

    Car car = await _carService.CreateCarAsync();

    • 1 month ago
      Anonymous

      https://i.imgur.com/Px2xe3L.gif

      Bot bot = await _botService.CreateBotAsync()

      what's the use case for async factory?

      • 1 month ago
        Anonymous

        If the memory is being allocated on another machine

    • 1 month ago
      Anonymous

      SOVL

      car = Car()

      souless

  7. 1 month ago
    Anonymous

    Automotive bmw = new Car();

    • 1 month ago
      Anonymous

      That’s an error chud

  8. 1 month ago
    Anonymous

    let car : Porsche = new Car() as unknown as Porsche

  9. 1 month ago
    Anonymous

    auto car = std::make_unique<Car>();

    • 1 month ago
      Anonymous

      your car comes off a production line, the same as everyone else's
      your car is not unique

      • 1 month ago
        Anonymous

        >your car comes off a production line
        We call that a CarFactory

  10. 1 month ago
    Anonymous

    Car* car = new Car();

  11. 1 month ago
    Anonymous

    auto car = new Car(AUTO);

  12. 1 month ago
    Anonymous

    char* pCh = static_cast<Car*> (operator new (sizeof(Car{}*~~;
    new (pCh) Car{};

    • 1 month ago
      Anonymous

      >placement new
      nice, how rare are those in the wild?

  13. 1 month ago
    Anonymous

    >Create a new object of type "Car"... called "car"... with the Car class's constructor, which is called "Car()".
    What don't you understand?

  14. 1 month ago
    Anonymous

    big ol corp can do seven year old ford, if you are pornstar

  15. 1 month ago
    Anonymous

    In Forth this is just Car new
    in every other language you have to repeat yourself at least once, for the variable name, but they save on the trifecta default constructors and type inference.
    in Nim you can associate a parameter name with a type:
    type
    Point = object
    x, y: int

    using p: var Point
    using sp: Point

    proc up(p) = dec p.y
    proc down(p) = inc p.y
    proc left(p) = dec p.x
    proc right(p) = inc p.x
    proc up(p, sp) = dec p.y, sp.y
    proc down(p, sp) = inc p.y, sp.y
    proc left(p, sp) = dec p.x, sp.x
    proc right(p, sp) = inc p.x, sp.x
    meanwhile, this was never that important for software quality or programmer ergonomics. It's just an easy to encounter annoyance that program language designers obsess over.

  16. 1 month ago
    Anonymous

    In Haskell thats just
    ` Data Car = Car`

  17. 1 month ago
    Anonymous

    var car: TCar;
    begin
    car = TCar.Create
    end.

  18. 1 month ago
    Anonymous

    el coche de mi padre

  19. 1 month ago
    Anonymous

    Should actually be
    auto car = std::make_unique<Car>();

  20. 1 month ago
    Anonymous
  21. 1 month ago
    Anonymous

    let car = (()=>{return new Car()})()

  22. 1 month ago
    Anonymous

    Everyone else's code is so wasteful and unnecessarily complex.
    (car)

  23. 1 month ago
    Anonymous
  24. 1 month ago
    Anonymous

    base type, name, assignment operator, allocation specifier, dynamic type.
    Literally 0 redundancy.

    >b-but it all has the same name
    would you prefer
    BaseCar mycar = new LamboCar();

    • 1 month ago
      Anonymous

      or i guess you'd prefer
      Car myvehicle = new Lambo();

    • 1 month ago
      Anonymous

      or i guess you'd prefer
      Car myvehicle = new Lambo();

      How could this possibly ever work fricking Black person

      • 1 month ago
        Anonymous

        https://en.wikipedia.org/wiki/Polymorphism_(computer_science)

        • 1 month ago
          Anonymous

          so this is what you Black folk mean by "polimorphism"??? its just default member values in structs of the same size? lmao thats just embarrassing how you act snart because of that.

          • 1 month ago
            Anonymous

            thats not at all what it is
            try reading the wiki article i linked

      • 4 weeks ago
        Anonymous

        are you moronic?

  25. 1 month ago
    Anonymous

    ```php
    $car = [
    'brand' => 'Lambo'
    ]
    ```

    • 1 month ago
      Anonymous

      Second newbie.

      • 1 month ago
        Anonymous

        I'm haven't been wasting my time posting meme code on DA lately, i apologize

        • 1 month ago
          Anonymous

          >ESL
          >newbie
          >claims to not waste time while wasting it.
          Your mother would be disappointed if she knew about your existence.

          • 1 month ago
            Anonymous

            [...]

            to not waste time while wasting it.
            he claimed to not have been wasting time *recently*

            who's the ESL homosexual now, homosexual?

  26. 1 month ago
    Anonymous

    Woman hoe = new Woman(Man owner);
    if ( hoe.cry() == True) {
    hoe.owner.rape() = True;
    }

    Inb4 some homosexual starts complaining about "==True" being useless - I know.

    • 1 month ago
      Anonymous

      also line 3 can be "hoe.owner.rape(True) ;"
      But these jokes kinda get lame if you use proper code.

    • 1 month ago
      Anonymous

      Can i then conplain about
      >Man owner
      you only pass the argument, the type is specified in the method signature.
      Or can i complain about true being wrongly written in uppercase
      Or can i complain about your disregard of visibility modifiers, since you access everything as public?

      • 1 month ago
        Anonymous

        For the second point - I have been using python for the past 6 months a lot and .... at this rate I do nto even write If-s like normal but "if not boolean:" and all Booleans are with capital letters.
        Visibility modifiers: well you see in python i do not need to deal with that shit too....
        Damn it my code is in semi python/java - it has no indentation but follows python syntax while being really close to java.
        And I know what you will say: But why not then write it as "(name: str) -> None:" so it is more "real code-like" thus abiding by your first point: well, i was lazy.

    • 4 weeks ago
      Anonymous

      >sets return value of a function to True
      you are beyond moron, stick to rape fantasies in your head

  27. 1 month ago
    Anonymous

    Car car = ServiceCollection.GetService<ICarFactory>().Build();

    • 1 month ago
      Anonymous

      Oh, shoot sorry. Let me fix that:

      ICar car = await ServiceCollection.GetService<ICarFactory>().BuildAsync();

      • 1 month ago
        Anonymous

        waiwaitwait. sorry. I'm so stupid, sorry.

        using var factoryContract = await ServiceProvider.GetService<ICarFactoryPool>().RequestFactoryAsync();
        var car = await factoryContract.BuildAsync();

  28. 1 month ago
    Anonymous

    auto car = new();

  29. 1 month ago
    Anonymous

    hehe. "auto". vroom vroom.

  30. 1 month ago
    Anonymous

    aCar := Car new

  31. 1 month ago
    Anonymous

    car = Car()

    • 1 month ago
      Anonymous

      frick off python shitter

  32. 1 month ago
    Anonymous

    import CarPy
    var car = CarPy.model("Bugatti")
    car.CarPy.color("Copper")

  33. 1 month ago
    Anonymous

    car = Car.new

    • 1 month ago
      Anonymous

      resident evil 5 mob

  34. 1 month ago
    Anonymous

    val car = Car()

  35. 1 month ago
    Anonymous

    int* israelite = galloc(zyklon);

  36. 1 month ago
    Anonymous

    let car

    $120k per year + free coffee.

  37. 1 month ago
    Anonymous

    how do I initialize used cars?

    • 1 month ago
      Anonymous

      myCar.sell(getKBBValue());

  38. 1 month ago
    Anonymous

    Why isn't new polymorphic, the type is right there

    • 4 weeks ago
      Anonymous

      Car myCar = new();
      var yourCar = new Car();

  39. 1 month ago
    Anonymous

    Car car = new Car.Car();

  40. 1 month ago
    Anonymous

    In C90 this is just
    #define VEHICLETYPE_CAR 0
    #define VEHICLETYPE_TRUCK 1
    typedef struct tagVEHICLE
    {
    int vehtyp;
    int vehrang;

    union
    {
    struct
    {
    int stolenamt;
    } car;
    struct
    {
    int killedhookers;
    } truck;
    } data;
    } VEHICLE;

    int vehicle_drive(VEHICLE* vehicle)
    {
    switch(vehicle.vehtyp)
    {
    // ...
    }
    }

    VEHICLE* vehicle = (VEHICLE*)malloc(sizeof(VEHICLE));
    vehicle->vehtyp = VEHICLETYPE_CAR;
    vehicle->data.car.stolenamt = 1;
    vehicle_init(vehicle);
    vehicle_drive(vehicle);

  41. 1 month ago
    Anonymous

    In Java it's just
    public class Car {
    private Engine engine;
    private int wheels;
    public Car(Engine engine, int wheels) {
    this.engine = engine;
    this.wheels = wheels;
    }
    }

    public class CarFactory {
    private static Car uniqueCar;

    private CarFactory() {}

    public static Car getCar() {
    if (uniqueCar == null) {
    uniqueCar = new CarBuilder()
    .withWheels(4)
    .withEngine(new Engine())
    .build();
    }
    return uniqueCar;
    }
    }

    public class CarBuilder {
    private int wheels;
    private Engine engine;

    public CarBuilder withWheels(int wheels) {
    this.wheels = wheels;
    return this;
    }

    public CarBuilder withEngine(Engine engine) {
    this.engine = engine;
    return this;
    }

    public Car build() {
    return new Car(wheels, engine);
    }
    }

    public interface IEngineable {
    void ignite();
    void start();
    }

    public class Engine implements IEngineable {
    private bool isIgnitionOn;
    private bool isStarted;

    public Engine() {
    this.isStarted = false;
    this.isIgnitionOn = false;
    }

    @Override
    public void ignite() {
    this.setIsIgnitionOn(true);
    }

    @Override
    public void start() {
    if (this.getIsIgnitionOn()) {
    this.isStarted = true;
    }
    }
    }

    public class LegacyEngineAdapter extends Engine {
    private LegacyEngine legacyEngine;

    public LegacyEngineAdapter(LegacyEngine legacyEngine) {
    this.legacyEngine = legacyEngine;
    }

    @Override
    public void start() {
    legacyEngine.ignite();
    }
    }

    public class Main {
    public static void main(String[] args) {
    Car car = CarFactory.getCar();
    car.setEngine(new LegacyEngineAdapter(new LegacyEngine(*~~;
    }
    }

    Sorry if my classes don't respect beans sirs, imagine the get/set.

    • 4 weeks ago
      Anonymous

      >interface IEngineable
      CShart false-flagger detected

  42. 1 month ago
    Anonymous

    gentity_t *e = G_Spawn();
    e->s.eType = ET_VEHICLE;
    e->classname = "car";
    e->think = car_think;
    e->nextthink = level.time;
    e->die = car_die;
    VectorSet(e->mins, -16, -16, -16);
    VectorSet(e->maxs, 16, 16, 16);
    e->model = "models/vehicles/nicecardude";
    e->s.modelindex = G_ModelIndex(e->model);
    G_SetOrigin(e, org);
    trap_LinkEntity(e);

  43. 1 month ago
    Anonymous

    (make-instance 'car)

  44. 1 month ago
    Anonymous

    (put-on 'ick 'eck)

  45. 1 month ago
    Anonymous

    local car = car:new();

  46. 1 month ago
    Anonymous

    .myForm ..$% ,

    $($ %)%

    (Run) (b1) ([addr]) (b2)

    $b1
    %b2

    <addr, exp_addr>
    ...

    view

    lock exp_addr

    unpack

    unlock field_name

    brute 'new-name'

    release

    lock exp_addr

    unlock filed_age

    brute 26

    release

    lock exp_addr

    pack

    ......

    <{Core}>

    <!>
    *Person person

    person => person()

    person . Data => Person::Make('todor', '25', 1412)

    Run(expression(person . Data))
    <>

    <@>
    function *[person-bit-288] Person::Make(*String name, *Integer age, *Integer value) {

    *[person-bit-288] descriptorResult => default

    *[person-bit-288] descriptorValue

    descriptorValue => {}

    (descriptorValue ^ ['field-name']) => physical<*little-end-bit-array>(name)

    (descriptorValue ^ ['field-age']) => physical<<*number-numeric-numeral, *inclusive-nullable-indexer, *little-end-integer-bit-16>>(age)

    (descriptorValue ^ ['field-value']) => physical<<*number-numeric-numeral, *inclusive-nullable-indexer, *little-end-integer-bit-16>>(value)

    exit with *[person-bit-288] and descriptorResult*
    }
    <>

    <#>
    <Person>

    <Data *[person-bit-288] />

    <Make *[person-bit-288] />

    </Person>
    <>
    <\>

    begin global physical-descriptor person-bit-288

    begin indexer-0

    tabulation-a ordinal-1 *little-end-bit-array-256 field-name: system::unset
    tabulation-b ordinal-2 *number-numeric-numeral *inclusive-nullable-indexer *little-end-integer-bit-16 field-age: system::unset
    tabulation-b ordinal-3 *number-numeric-numeral *inclusive-nullable-indexer *little-end-integer-bit-16 field-value: system::unset
    end
    end

  47. 1 month ago
    Anonymous

    Is this the thread for esteemed sars to show off?

  48. 1 month ago
    Anonymous

    The Car car = new Car(); is such a shit example. Just use something you'd actually encounter in the real world like User or Account

    • 1 month ago
      Anonymous

      or like anything usable at all.
      for instance, I know it will be a bad example, but in c++ you usually write classes
      to abstract or hide away implementation details when code should run on different platforms
      for example, windows and linux.

    • 1 month ago
      Anonymous

      AVPlayerLayer avPlayerLayer = new AVPlayerLayer();

      • 1 month ago
        Anonymous

        how do they see themselves in that picrel?
        surely there has to be some elaborate over-complicated interface for all that stuff.

      • 1 month ago
        Anonymous

        >EntertainmentProviderViewController
        made me lol

  49. 1 month ago
    Anonymous

    Car car = new Car(new Car(new Car(new Car(new Car(new Car(new Car(new Car(*~~*~~));

  50. 1 month ago
    Anonymous

    let car = null;

  51. 1 month ago
    Anonymous

    const car = createCar();

  52. 1 month ago
    Anonymous

    // Car.java - Definition of the Car class
    public class Car {
    private String make, model, color;
    private int year;

    // Default constructor
    public Car() {
    this("Unknown", "Unknown", 0, "Unknown");
    }

    // Parameterized constructor
    public Car(String make, String model, int year, String color) {
    this.make = make;
    this.model = model;
    this.year = year;
    this.color = color;
    }

    // Method to set the color of the car
    public void setColor(String color) {
    this.color = color;
    }

    // Method to display the car details
    public void displayDetails() {
    System.out.println("Make: " + make + ", Model: " + model + ", Year: " + year + ", Color: " + color);
    }
    }

    // Main.java - Main class to demonstrate the use of Car class
    public class Main {
    public static void main(String[] args) {
    // Creating Car objects using constructors
    Car car1 = new Car();
    Car car2 = new Car("Toyota", "Corolla", 2021, "Blue");
    Car car3 = new Car("Honda", "Civic", 2022, "Black");

    // Displaying details of each car
    System.out.println("Car1 details:");
    car1.displayDetails();

    System.out.println("Car2 details:");
    car2.displayDetails();

    car2.setColor("Red");
    System.out.println("Car2 details after color change:");
    car2.displayDetails();

    System.out.println("Car3 details:");
    car3.displayDetails();

    // Creating a list of cars
    Car[] cars = {
    new Car("Ford", "Mustang", 2020, "Yellow"),
    new Car("Chevrolet", "Camaro", 2019, "Green"),
    new Car("Dodge", "Challenger", 2018, "Orange")
    };

    System.out.println("List of Cars:");
    for (Car car : cars) {
    car.displayDetails();
    }
    }
    }

  53. 1 month ago
    Anonymous

    Vehicle myVehicle;

    Vehicle car = new Car();
    Vehicle jet = new Jet();
    Vehicle bike = new Bicycle();

    myVehicle = car;
    myVehicle.transport(work);

    • 1 month ago
      Anonymous

      what's the use case of israelite and bike though

      • 1 month ago
        Anonymous

        *jet
        hahah holy shit my /misc/ack side is corrupting me
        j -> e -> automatic muslce memory w

        • 1 month ago
          Anonymous

          >be talking about fossil combustible aircrafts in the company group chat
          >accidentally type "gas israelites"

          • 1 month ago
            Anonymous

            please tell me you also accidentally press enter

          • 1 month ago
            Anonymous

            it's only natural that you only read what you wrote after you sent it

          • 1 month ago
            Anonymous

            right unless you're me (ESL) and you want to check for some moronic ass mistakes

      • 1 month ago
        Anonymous

        >what's the use case of israelite

        • 1 month ago
          Anonymous

          the use case of israelite is soap sir

      • 4 weeks ago
        Anonymous

        >what's the use case of israelite

  54. 1 month ago
    Anonymous

    Car car = new SUV();

    or was it

    SUV car = new Car();
    ?

  55. 1 month ago
    Anonymous

    car = create_car(car_props)

    def create_car(car_props=None):
    car = Car()
    for prop in car_props.keys():
    car.prop = car_props.get(prop)

  56. 1 month ago
    Anonymous

    Car * car = (Car *)malloc(sizeof(Car));
    car->init();

    //do stuff

    car->deinit();
    free(car);

    • 1 month ago
      Anonymous

      >xhe casts the return value of malloc

    • 1 month ago
      Anonymous

      >deinit before free
      moron?

      • 1 month ago
        Anonymous

        deinit doesn't deallocate it explicitly, it cleans up whatever init did or whatever other state you had (which could be anything, there might be globals init touches)

        • 1 month ago
          Anonymous

          Good to know. I was just being gay

    • 1 month ago
      Anonymous

      >calls through uninitialized memory
      ngmi

      • 1 month ago
        Anonymous

        thats what the init is for baka

        • 1 month ago
          Anonymous

          you don't seem to understand~

          • 1 month ago
            Anonymous

            the function isn't stored in unitialized memory, only member variables are
            that's not how data store works even for classes/objects in C++ land
            the function itself is known at the time its called

          • 4 weeks ago
            Anonymous

            >the function isn't stored in unitialized memory
            The only way what you're doing could possibly not lead to absolute undefined behavior is if Car::init() was a non-virtual method in C++. Guess it's possible, but using malloc() directly in C++ is the worst sort of code smell unless you're doing something horribly low level, and it's full of awkward edge cases.
            As I said, ngmi

          • 4 weeks ago
            Anonymous

            >The only way what you're doing could possibly not lead to absolute undefined behavior is if Car::init() was a non-virtual method in C++.
            no shit, why would you assume a function is virtual by default?
            > Guess it's possible, but using malloc() directly in C++ is the worst sort of code smell unless you're doing something horribly low level, and it's full of awkward edge cases.
            This is moronic and I can tell you don't have a job

          • 4 weeks ago
            Anonymous

            >The only way what you're doing could possibly not lead to absolute undefined behavior is if Car::init() was a non-virtual method in C++.

            This has nothing to do with unitialized memory lol, that's not how that works. The compiler knows the pointer type and knows which function to call. The VTBL indexing doesn't depend on the contents of the data.

          • 1 month ago
            Anonymous

            >troony doesn't understand the basics of instruction/data separation in compiled code
            Many such cases.

      • 4 weeks ago
        Anonymous

        you don't seem to understand~

        So are you a pajeet or a zoomer? In truth, they're indistinguishable I suppose in terms of technical understanding. I just don't get why you would put your imbecility on such public display.

      • 4 weeks ago
        Anonymous

        you don't seem to understand~

        >Mr... morono

      • 4 weeks ago
        Anonymous

        lol please go back to school before saying moronic shit

    • 1 month ago
      Anonymous

      >no defer
      >no custom allocators
      >function pointer indirection for basic lifetime functions, even though the compiler has the type information to avoid this
      severe jai deficit

      • 1 month ago
        Anonymous

        pointer indirection for basic lifetime functions, even though the compiler has the type information to avoid this
        indirection won't happen in this case if the class if a base class and there's nothing else to stuff in the VTBL
        precisely because the compiler *does* know this

  57. 1 month ago
    Anonymous

    let car = Car::new();

  58. 1 month ago
    Anonymous

    createCar ()
    {
    declare -a arrayCar
    arrayCar=( "$1" "$2" "$3" )
    echo ${arrayCar[@]}
    }

    createCar "Renault" "Twingo" "Blue"

  59. 1 month ago
    Anonymous

    PROGRAM MAIN
    VAR
    fbCar : FB_Car;
    VAR_END
    fbCar(Start := TRUE)
    PROGRAM_END

    • 1 month ago
      Anonymous

      That Start True bit looks like a penis.

  60. 1 month ago
    Anonymous

    let brain = "let";

  61. 1 month ago
    Anonymous

    Poster op = new homosexual()

  62. 1 month ago
    Anonymous

    >Zig
    var allocator = std.heap.page_allocator;
    const car = allocator.alloc(Car);

    >Rust
    let car = Box::new(Car {...});

    • 1 month ago
      Anonymous

      how big should a box be to be able to store a car inside?

      • 1 month ago
        Anonymous

        Big enough.

    • 4 weeks ago
      Anonymous

      >mutable allocator
      >page allocator
      >no error handling
      >incorrect usage of Allocator.alloc
      >doesn't initialize the memory
      Ziglet detected.
      var gpa: std.heap.GeneralPurposeAllocator(.{}) = .{};
      defer _ = gpa.deinit();
      const allocator = gpa.allocator();

      const car = try allocator.create(Car)
      defer allocator.destroy(car);
      car.* = .{ ... };

      • 4 weeks ago
        Anonymous

        in python it's just
        car = Car()

  63. 1 month ago
    Anonymous

    val car = Car()

  64. 1 month ago
    Anonymous

    in Java this is just
    var car = new Car();

    • 1 month ago
      Anonymous

      Oh shit does Java have var keyword now?

      • 1 month ago
        Anonymous

        they should have went with sar instead. sad

      • 1 month ago
        Anonymous

        had it since java 9, which was introduced 8 years ago

        • 1 month ago
          Anonymous

          too new for me. Still writing Perl 5.8.8 and C89.

    • 1 month ago
      Anonymous

      very souless, kotlin/android ruined java

  65. 1 month ago
    Anonymous

    let car:Car = constructor["constructor"]`_${"return new Car()"}```

  66. 1 month ago
    Anonymous

    I fricking hate redundant BULLSHIT syntax
    I fricking hate BULLSHIT arbitrary symbols

    Car car = new Car();

    The return type of the constructor is obviously a Car type. Calling the constructor for an object instance make the 'new' stupid and moronic and redundant.
    Every language has stupid pedantic BULLSHIT like this.

    car is Car

    was car previously defined? NO? Then it's a new variable.
    were arguments provided? No? Then it's using the default constructor.

    Anytime there's a reliance on convoluted syntax, it means the language compilation is LAZY and the language devs are moronic.

    • 4 weeks ago
      Anonymous

      name your preferred language so I can laugh at your idiocy even harder

    • 4 weeks ago
      Anonymous

      >I fricking hate redundant BULLSHIT syntax
      there is none, see

      base type, name, assignment operator, allocation specifier, dynamic type.
      Literally 0 redundancy.

      >b-but it all has the same name
      would you prefer
      BaseCar mycar = new LamboCar();

      >The return type of the constructor is obviously a Car type
      would be a car child as well, how is the compiler to know?

      >Calling the constructor for an object instance make the 'new' stupid and moronic and redundant
      in some languages this indicates allocation type (heap vs stack) in others like java where everything is heap allocated it still is necessary for the compiler to differentiate between the class reference and a new object initialization

      >Every language has stupid pedantic BULLSHIT like this
      in the example there is actually none, but sure redundancy exists, but i really isn't such a big deal.

      • 4 weeks ago
        Anonymous

        >would be a car
        could be a car child*

    • 4 weeks ago
      Anonymous

      >was car previously defined? NO? Then it's a new variable.
      I hate pythongays so much, you morons not only tolerate this bug-inducing behavior but actually try to convince others it's a good thing

    • 4 weeks ago
      Anonymous

      >redundant
      you have code, you have a spec, you have tests, you have static checks. Why have all this redundant stuff, which all describes what the program does, when the code already perfectly describes what the program does?
      Likewise, why did businesses every use double entry bookkeeping? The redundancy's in the name! A single entry should be enough!
      And why does DNA have a double helix? A single helix should be enough! Code has mistakes? Accountants make mistakes? Life on Earth is constantly coping with reproductive mistakes? Well, God is LAZY and reality is moronic.

  67. 4 weeks ago
    Anonymous

    Import Car from ../car
    class CarComponent {
    car(): Car {
    const car: Car = new Car();
    return car as Car;
    }
    }

  68. 4 weeks ago
    Anonymous

    CarFactory carFactory = new CarFactory();
    auto car = carFactory.newCar();

  69. 4 weeks ago
    Anonymous

    OO slop
    into the trash they belong

  70. 4 weeks ago
    Anonymous

    $car = new stdClass;

  71. 4 weeks ago
    Anonymous

    auto car = Car1;
    manual car = Car2;

    • 4 weeks ago
      Anonymous

      i fricking hate anime posters

      • 4 weeks ago
        Anonymous

        NYAAAAAA

      • 4 weeks ago
        Anonymous

        You picked the worst possible place to hang out if that's the case.

  72. 4 weeks ago
    Anonymous

    function Car() {
    console.log("Car Created")
    }
    const car = () => Car() ? Car() : null
    console.log(car())

  73. 4 weeks ago
    Anonymous

    Car car = new();

  74. 4 weeks ago
    Anonymous

    Car *car = [[Car alloc] init];
    Bus *bus = [[Bus alloc] initWithDataObj:car];

  75. 4 weeks ago
    Anonymous

    car = Car.__new__()

  76. 4 weeks ago
    Anonymous

    Car create car

  77. 4 weeks ago
    Anonymous

    raku:
    my Car:D car .= new;

  78. 4 weeks ago
    Anonymous

    default {
    state_entry () {
    llMakeCar();
    }

    car_created(key id) {
    llOwnerSay("honking: " + llKey2Name(id));
    llRegionSayTo(id, 1, "do_honk");
    }
    }

    kill me

  79. 4 weeks ago
    Anonymous

    For me it's

    // TypeScript

    interface Car {

    }

    namespace Car {
    function toString(): string
    }

    export {
    type Car,
    Car
    }

  80. 4 weeks ago
    Anonymous

    auto car = Car();

  81. 4 weeks ago
    Anonymous

    I like heapy cars. What can I say?

    • 4 weeks ago
      Anonymous

      you can say "I am very sorry. It's obviously much better to put cars on the stack, where they will be faster and will benefit from move semantics."
      use the heap for slow non-moving things like Rock rock = new Rock();

      • 4 weeks ago
        Anonymous

        My cars are transformers. Decepticons, if you will.

Your email address will not be published. Required fields are marked *