dpt - Daily Programming Thread

What are you working on, Cred Forums?


Previous Thread:

Other urls found in this thread:

aosabook.org/en/index.html
en.wikipedia.org/wiki/Russell's_paradox
librebook.xyz
en.wikipedia.org/wiki/Printf_format_string#Type_field
tour.golang.org
play.golang.org/p/pEfsLrsmIv
youtube.com/watch?v=guXgBe2wvEA
pastebin.com/63rYiScz
twitter.com/SFWRedditImages

OOP is the most practical way to write software.

Your feelings on OOP are not an argument.

Respect my feelings.

My feelings are that your feelings are not entitled to respect, and you must respect them.

If you want fast software, use C or a subset of C++. Use globals. Use arrays.

Why has every major language been moving towards non-OOP features?
What was the last significant OOP feature a major language adopted?

There are only three bad things about C:

a) Lack of namespaces.
b) Lack of generic programming. This can be worked around with macros and _Generic but it's iky.
c) You cannot hide the intrinsics of a structure from the user unless you use heap allocation.

They haven't.

Lambdas/closures are simply objects in disguise.

>FP is simply OOP in disguise
t. /dpt/ 2016

Well, let me tell you. OOP is just procedural programming with syntax sugar.

>i-it's just pretending to not be an object!

class Lambda {
R apply(T t);
}

// ...

Lambda = new Lambda {
String apply(Int t) {
return t.toString();
}
};

m8 you havent even scratched the surface

Name another bad thing then. And please nothing like
>hurr durr
>no bounds checking

Oh shit, I guess ALL functions are actually objects, so C is OOP

>I guess ALL functions are actually objects

In many languages, that is true.

Are you suggesting whether or not it's an OOP feature depends on which language it was implemented in?

...no RAII, no move semantics, no function overloading, terrible standard library, ...

Are bytes objects? Is assembly object oriented?

>no RAII
Can be worked around with compiler extensions. But I'll give you that.
>no move semantics
Useless without RAII
>no function overloading
I already listed this.
>terrible standard library
It doesn't even matter because I write against POSIX if not directly linux.

Can you shit stains argue over something more educational

I've read that more than 20% of CPU stalls nowadays are caused by TLB misses. Is this the end of virtual memory?

>he doesn't use templeOS
10x faster context switch
terry is the king

>Is this the end of virtual memory?
So what's the alternative

What is the best book to learn program structure in C.

real memory?

the format of the header still needs to be defined

>the OS
>having anything to do with TLB misses
hmmmm, I don't even know if you're wrong
I don't even know. If memory doesn't get faster this could be the end.

>null terminated "strings"
>array decay
>various syntax bullshit (eg = vs ==, & vs &&)
>pointer arithmetic
>hell, just massive overreliance on pointers and the heap
I'm pretty sure there's a lack of type checking going on with independent compilation of program units too. Wouldn't be hard to look up even more issues honestly.

terry calm down

for what purpose

how?

you need virtual memory so that programs don't have mess with each other's memory

maybe get better TLB caches?

Those are not problems of the same class. What you listed can be avoided by an experienced C programmer or can be implemented in code. For example write

struct str {
char *start;
size_t len;
};


and now you have pascal strings.

But no amount of training will give C namespaces or generic programming.

>>hell, just massive overreliance on pointers and the heap
in particular is caused by a lack of generic programming.

so I can learn proper program structure in C

Maybe don't write programs that could mess with each other's memory.

>you need virtual memory so that programs don't have mess with each other's memory
No you don't, fix your damn programs

aosabook.org/en/index.html

Any allocated memory constitutes some "object".

Move semantics are not useless without RAII. And POSIX won't give you better random numbers and data structures.

oh man, yeah let's make it so the programmer MUST know what's going on with every address in memory

programs wouldn't be portable, because computers have different memory and more importantly different programs using memory

you'd end up having to write a kernel to deal with virtual memory

computers without memory when?

I want to learn a lisp, which one is best? Are they even that different from each other?

>mixing and matching terms to try to protect your dying paradigm

No. Just write position-independent code.

thanks

>Move semantics are not useless without RAII.
Go on.
>And POSIX won't give you better random numbers and data structures.
It gives me many libraries that probably blow everything in the C++ standard library out of the water.

anime ruined my life tbqh

you shouldn't be programming if you can't solve this desu

see You can literally just have it work like this:
a%x + b
The program can't modify a or b

Try the San Francisco lisp first, it's well-known and easy to reproduce.

42

THE MEANING OF LIFE

Assuming it's contiguous that is

That's basic algebra, not programming. Or is that your point?

I didn't make it up. Even the C standard says that.

10
4
2
do the math, fucking faggot

cringe

I was able to solve this in my head. AMA.

No, it's the answer to life, the universe, and everything. Learn to read.

its ~21 you mongoloids stick to haskell

Isn't it more of a security issue? If my program has access to all of the memory, i have the opportunity to be more or less malicious with that information. This used to be a problem in the past, and would be even more so now with computers being more interconnected.

Is the C standard object oriented?

Thank you family

So, how is elementary school going?

Everything is OO
including the universe

>mixing and matching terms to try to protect your dying paradigm

I unironically have a masters in math.

Not if you have hardware support for limiting the address range that a program can access.

congratz, Thomas, you mom is so proud

No. No encapsulation or inheritance.
You _can_ jump through some hoops to achieve that, but it would be easier to just use an OO language.

Glad to see all those years of tuition really paid off.

More proof that OOP is just syntax sugar.

What does it feel like to have an IQ of 90?

No shit

University is free here and all of our PCs were running Debian.

Is it free because nobody would pay for it?

The standard, itself, is an object, sure.

Sounds like you're on the path to redeveloping virtual memory.

Can an object contain other objects?

Does the object of all objects contain itself?

I'm making my own terminal emulator, because every single one is shit.

Set up rendering with cairo/pango and XCB as renderer, picture is current progress.

so program x can acces Y chunk of memory

if it needs more memory, does it ask the hardware?

Or does the hardware delegate maximum amount of memory a program could need?

Free is a codeword for taxpayer money.

Duck you.

Not even close.

will it support custom background images

...

Yes.

>Can an object contain other objects?

Yes.

>Does the object of all objects contain itself?

en.wikipedia.org/wiki/Russell's_paradox

>I'm making my own terminal emulator, because every single one is shit.
That's great. I always wanted to make one too.
>Set up rendering with cairo/pango and XCB as renderer
This is where you fucked up. Not only are cairo and pango garbage, but the X11 terminal emulator market has already been cornered. The wayland terminal emulator market is where you should invest.

You're allowed to swear on Cred Forums.

am I an object?
who am I objected to?
am I a piece of memory?!?

what language is best to program the semen fluid pump in my bad dragon dildo?

i can only truly get off whilst having 5 gallons of synthetic dragon cum pumped into me

I don't like Wayland and I'm never going to use it.

How are cairo and pango garbage exactly? From what I researched they seem to be fast when used properly.

The arguments are entirely contrived. You always give a poorly structured program and say "oh well, looks like OOP is bad!" despite the problem being user error.

Keep in mind, I never said that OOP was the greatest, or that OOP is infallible, but its detractors have consistently shown they have no fucking idea what they're talking about.

In closing, multiparadigm is the way to go.

>repostan because i'm slow as fuck

quick rundown of a bunch of random features present in oop langs:

>classes/methods
essentially a special syntax for structs + functions. not bad if you want to express that something is a function that manipulates the state of a certain type, shouldn't be used if the function is actually stateless, as this gets rid of the visible uniqueness compared to stateless functions.
more languages should allow you to convert freely between T.foo(A, B) and foo(T, A, B).

>encapsulation
pretty useful thing, probably the most useful thing in most oop languages. many languages that don't call themselves oop have similar mechanism (header files for instance).
encapsulation that cannot be broken (neither by reflection nor by switching a header file or something similar) provides a more stable api but less flexibility than weak encapsulation.
for most things, strong encapsulation is more useful than weak encapsulation, but not for things like modding or scripting.
encapsulation modifiers in most languages are too complex. package-private/public are the two most useful ones, all the others aren't particularly practical.

>inheritance
good if you never override anything (also known as type embedding, as introduced by go). quickly breaks shit with overriding, and should rarely be used in languages that allow you to override (c# doesn't allow overriding by default, which is a good alternative, in java you'd have to make everything final to provide a good api).
if you let a method be overriden, the method essentially needs to be frozen and its implementation should never change.

>abstract classes
suffer from any issue inheritance with overrding suffers from.

>interfaces
essentially a collection of function types with stronger typing thanks to method names. there's absolutely nothing wrong with interfaces, they're a great and intuitive way to abstract things.

>multiparadigm
Multiparadigm is the special snowflake word for "C + Classes + Lambdas + whatever we can find"
Multiparadigm is in many cases worse than the paradigms it tries to emulate

>In closing, multiparadigm is the way to go.
Wow, this OOP drone actually knows some things.

>Multiparadigm is the special snowflake word for "C + Classes + Lambdas + whatever we can find"

Yes, that's correct.

Whatever language the dragon dildo provides an API for.

Or assembly.

Sounds like you need to write a drive.

Use C/C++

What is the difference between interfaces and traits?

interfaces / traits aren't even OOP

Show me how multiparadigm languages make pure functional programming easier. Or how they aid reasoning about memory and indirection in a procedural style.

simple solution, just
>>>kys

It seems to me noone on /dpt/ has any idea what they're talking about when discussing OOP, or any design paradigm.

if i never discovered anime my life would have been so different

It's kind of funny that you can dismiss C++ completely by mentioning:
- STL allocators
- iostreams
- That unordered_map implementation

I take it this is your first post on the matter.
You definitely haven't been part of the conversation before.

That's not such a simple solution as you'd think.

t. Someone who's tried and failed to go through with it.

horse = 10
4xhorseshoe = 8 horseshoe = 2
2xhorseshoe - 2x boot = 2 boot = 1

1+10+2 = 13

How to dismiss C++ in two point:

1. It doesn't have designated initializers.
2. >rule of five

did you become a tranny after

don't think there's a significant one

i just named a bunch of features that people associate with oop.
encapsulation is present in non-oop languages as well.

I didn't say they make anything easier, it's just nice to have a lot of features. If you're an expert in functional programming and are as smart as John Backus then you probably don't need anything else. For the rest of us mere mortals, it's helpful.

tfw no tranny c programmer *f

this

Horse = 10
Horse Shoe = 4
Boots = 2

oh fuck, wait

You've failed to mention that in both of the examples I gave, multiparadigm is LITERALLY worse.

1) You cannot do pure FP in a multiparadigm language (or at least any known language calling itself multiparadigm).
2) You cannot perfectly reason about memory or indirection in a multiparadigm language (or at least any known language calling itself multiparadigm).

Not to mention the other issues that come with multi-paradigm languages.

still mucking around with algorithms in go
will probably work on my blog engine later in the same. the standard library gives you a good portion of what you need for this
if i have time i want to start reading the dragon book

nah

a r i n

Correct.
I don't claim to be very knowledgable onf the subject, but you guys sound like i used to sound like 2-3 years ago.

You guys are confusing the paradigms with the language features to simplify application of the paradigm.
And that guy who keeps spouting "multiparadigm" isn't actually saying anything.

No, i started on antidepressants.
They help maybe a little.

>isn't actually saying anything
you've found yet another way of saying "doesn't agree with me"

>confusing paradigms with language features
Gee, I wonder why.

This is a non-argument, though. I never claimed that multiparadigm languages would assist with pure functional programming. By its nature, pure functional programming is not multiparadigm, it's purely functional.

If you prefer purely functional languages, then please continue using purely functional languages.

too many features can be bad for working in a team, though
imo the base of the language (standard tooling, lang spec, standard library) should be relatively restrictive in terms of what it provides (not in terms of what's possible with them) to avoid too much fragmentation like in the c++ community (or even the haskell community).
e.g. the standard library shouldn't provide 8 ways to do error handling.
with lots of choice, the lines between things that each programmer defines himself to judge when to use what become rather blurry, resulting in a mess when trying to cooperate (very strict style guides can fix that, but again, if there are a billion different style guides, the same problem arises at a larger scale).

exactly 21

the final equation has you multiplying the horse with the shoe

>2-3 years
>still has any interest in the OOP argument and paradigm bullshit discussions

incredible

I just gave two examples of paradigms which CANNOT be part of a "multi-paradigm" language.

Pure functional doesn't mean only functional it means pure as in no side effects.

why aren't you developing in 9front?

Oops, posted this in the wrong thread:
>

>I don't claim to be very knowledgable onf the subject, but you guys sound like i used to sound like 2-3 years ago.
user you're projecting pretty hard

>You guys are confusing the paradigms with the language features to simplify application of the paradigm.
a paradigm is defined by a set of language features, including features that make the usage of other features easier.

*the second paradigm isn't just procedural, it's a kind of "flat" procedural / very low level

>you've found yet another way of saying "doesn't agree with me"
No, i'm saying i CAN'T dissagree with you because you're not saying anything. You're just spouting meaningless words.

This is still not an argument. I never said anything about pure FP.

>Pure functional doesn't mean only functional it means pure as in no side effects.

I know.

yooa tho

That's not an argument.

she's never rounded all the bases, has she?

2 + 10 * 4 = 42

What? Software is a highly relevant subject, so design strategies is a relevant subject, so design paradigms are relevant as codifiers of design strategies. And hanging around /dpt/ it's hard to avoid the OOP bullshit.

is relevant for this
if you've got a feature that sucks in most cases and is slightly more useful than the alternative in rare cases you should probably drop it for the sake of simplicity.
again, being able to override something imposes very strict limitations on the methods in regards to providing a stable api.
barely any api can fulfill these limitations (which api *never* changes its implementation?), and as such, the feature is almost useless

>I never said anything about pure FP
Aside from you constantly forgetting that pure FP isn't the only thing to suffer from "multiparadigm" languages, here are more examples:

>the more ideal syntax features for procedural and fp languages are at odds
>low level / data-oriented programming is antithetical to OOP
>introducing lots of varying features intended for completely different, independent uses leads to lots of non-trivial unintended interactions
>language features introduced "just for x" will also affect yz.


There is literally no good reason given for multi-paradigm other than "b-but it's all of the paradigms". No, it's none of the paradigms.

librebook.xyz

liberate knowledge

librebook.xyz

also, overriding breaks one of the two core aspects of encapsulation: hiding implementation.
(the second aspect is reducing invariances caused by state)

how do you anti-oopers feel about go

What's wrong with it being a clusterfuck, exactly?

I could argue it either way myself honestly. The devil is in the details though. "Too many ways to do one thing is bad" could be taken to the extreme and you'd end up with brainfuck. It's hard to pick an exact cut-off point for when a language or a part of a language goes from being feature rich to bloated.

What do you mean, my third point?
It ties in with 4, but examples are type system stuff.
Adding OOP style members and methods changes the nature of what types are

That's what i'm saying.

Type systems are overrated anyway.

this

42

>a paradigm is defined by a set of language features
The hell it is.

I'm having trouble using libpng in a C program on ubuntu


I already downloaded it and I have .o files but they don't show up in "build options > linker settings > link files"

to be clear my goal is to get "#include " to work but I really don't know how

thinking of meme'ing a version of this into lisp

>but what's wrong with wav?
Except that it contains some redundancies, and with the header extensions it can be a little messy: i don't know. That's what i asked what linux nerds like to use. They can usually find fault in anything designed by MS.
Apparently applefags don't like to use wav.

imo go gets oop itself mostly right, since:
>methods are nothing but syntactic sugar, any "class" can be used like a regular composite type and any method can be used like a regular function)
>type embedding instead of inheritance
>public/package-private only
>structurally typed interfaces (although this is a matter of opinion, nominally typed interfaces are good in other regards, although i prefer structurally typed ones)

that being said, there are some things that suck:
>go allows people to write data oriented code by providing pointers while still having a GC. this doesn't work as nicely as one might like together with oop (*T and T have different method sets)
>public/package-private being defined by the first letter of the name is neat for readability in the long run (because you can always distinguish things in the caller), but rather annoying when writing things at first (normally when you start writing something you aren't sure about which parts of the API to expose, this results in way more code changes when finishing the API)
could probably think of some other annoying things as well.

hey der hardford her

bad static < dynamic < good static

===

1 person said wav is the prefered format of linux users... that 1 anonymous person doesn't necessarily represent the linux community

of course, but i consider inheritance with overriding to be such a feature.
when in doubt, leave it out.
you can always add things later when you realize that it's actually needed, removing something because it's mostly harmful is impossible, though.

There is nothing good about go (the lang). It is a clusterfuck of bad design, limited thinking, and poor choices.

>===
My favourite part is the way you say this as if it in any way justifies that fucking image

true enough, but it's the only reply i got

Universal equality is a bad idea.

Haskell gets equality more right than JS, or Java.

I use Fedora and I prefer wma

>1
windows media autism?

it's okay if you think that, user

I know it's okay to think that, because it's the truth.

printf has all these %d and %s keywords, how many are there and what do they mean exactly?

it's okay if you think your opinion is the truth, user

Nobody knows and 151

go is objectively bad.

it's okay, user

Hey, don't mess with beginner programmers, that's not nice

They'll learn not to come here with beginner questions. I think that's a useful lesson.

Where does the static linking meme come from?

I'm gonna come in your mom with beginner questions.

How is it a meme?

It makes your code run faster and means you don't have to distribute shared libraries or ask users to install them in order to use your program.

What meme is that?

No you're not.

sensibleness

Those are called specifiers, google them since its a long list


t. salty user who no one helped in the past

The meme is that dynamic linking is bad and that humanity should return to a paleo diet I mean static linking.

>*T and T have different method sets
do they? i might be misunderstanding this but i thought calling a method on a pointer passed along the call to the referenced thing

en.wikipedia.org/wiki/Printf_format_string#Type_field

We should stop the bullying.

what IDE are you using? codeblocks?

nah, I don't justify that image, JS sucks IMO... but still, you have to know how to use it

fuck you, queer like cuck

...

920482.8132252117

try this: tour.golang.org
report back when you finish it, tell us what you think

I thought it was 42, but I hadn't noticed the pairs vs single boots/horseshoes, so, yeah, 21

The meme comes from having to set up 400 external dependencies
>could not find fuckyourmom140.dll

You don't know the extend of the meme: sta.li.

48

Was that supposed to be hard?

this is true until interfaces get involved.
play.golang.org/p/pEfsLrsmIv

user...

Fine, find my flaw then.

lrn2pedmas

Well you're missing a parens so.

...

...fuck me

>2 + 10 x 4 = 48
also, did you notice that you are being shown only one boot / horseshoe in the last formula?

...

this is facebook-tier
why would you spend your precious moments on earth like this

anyway, to go back on topic
OOP sucks

...

Currently working on a program that takes users input and converts it to BrainFuck.
Being a first year uni student I think that I've bitten off more than I can chew.

22
is this supposed to be difficult?

does anyone here know verilog?
how do i force a wire to be a '1'?

Is thinking of RAII as a kind of static GC alright?

write a function that returns the average of two ints in C and you'll know how much OOP sucks

No, it is not.

Yes.

>Cred Forums - Technology

Wat?

ints are objects. Summation and divisions two of its methods.

Lets say i accept the notion of primitive datatypes as objects, what's your point?

Your post is an object. This post holds a reference to it. It will be garbage collected once the thread gets pruned or deleted.

thanks. i'm playing around with this. i've only been at it a week but i guess i understand the model even less than i thought

i think i understand why the first call works although i didn't realize interfaces were so permissive
in the second i would expect foobar to receive a copy of Bar{1} which would then be modified. the caller would never see it

Still, what's your point?

What's the best book for learning Java?

The Baristas Handbook.

Thinking In Java is pretty good.

Something hard you can really smash your head against
Gotta lose as many brain cells as possible

Thanks

youtube.com/watch?v=guXgBe2wvEA

Reminder to unroll your for loops

How come Java is so popular yet I very rarely see/use any programs written in Java? What do Java devs actually do?

just found this toy I did years ago. Tear it apart

pastebin.com/63rYiScz

>they'll never realise this is \dpt\, not /dpt/
>mfw all these linuxfags are toasting windows bread

itt retards

you shouldn't be programming if your programming language can't solve this desu
:- use_module(library(clpfd)).

puzzle(Vars) :-
Vars = [Horse, Horseshoe, Boot],
Vars ins 0..sup,
Horse + Horse + Horse #= 30,
Horse + 2 * Horseshoe + 2 * Horseshoe #= 18,
2 * Horseshoe - 2 * Boot #= 2.

?- puzzle([Horse, Horseshoe, Boot]), Sum is Boot + Horse * Horseshoe.
Boot = 1,
Horse = 10,
Horseshoe = 2,
Sum = 21

The real /dpt/ is here

they write java ide's and tools to help with writing java

>prolog
He asked if you could solve it, not your language

>maki
perfect

>He asked if you could solve it, not your language
I'm not doing xir homework. I said if you're programming language a shit, you shouldn't be programming.

>frogpost made WAY before bump limit
No it fucking isn't

>i was just pretending to solve it

that would be possible, yes, but the faq explains it:
"Even in cases where the compiler could take the address of a value to pass to the method, if the method modifies the value the changes will be lost in the caller. As an example, if the Write method of bytes.Buffer used a value receiver rather than a pointer, this code:

var buf bytes.Buffer
io.Copy(buf, os.Stdin)

would copy standard input into a copy of buf, not into buf itself. This is almost never the desired behavior."

>frogthread not linked in /dpt/
>all the replies are "java, css or html?"
Too good to be true

>he can't average two ints in C
noob

why would you not use pointers and references anyway

for data locality, to allow programmers to write their program in a data-oriented manner.

Minecraft.

If you'd read your SICP you'd know that objects are just lambdas and closures in disguise.

brainlet

It depends. What kind of OOP? Java or for example Smalltalk?

Figured it out, just had to add a flag

How big is gosper's hack?

I have a 10000x10000 png I made from the exact algorithm written in the Art of Computer Programming by Don Knuth and it is pretty much solid

I wish more languages had something like gofmt by default.

>What are you working on, Cred Forums?
A HappyPanda esque thing with gallery dumping capabilities.

no constexpr

C++ has clang-format

>reverse image search yields nothing

>2016
>Not programming kernels in C++

-lpng or something? I thought about that when I saw your post, but... short attention span for forums and stuff
always remember to add those, plus remember that those go at the end of the command line

stupid frogposter nobody's giving you the sauce

Is it bad if I want to stick my finger in that top girls butt?

Id' say it would be bad if you didn't want to.

I thought you were allowed to post pepe after it was declared a neo-nazi symbol

Jap women are gross.

that's where shit comes out

Sadly it isn't used by as many people as in Go, which defeats the main purpose.

Fuck off niggerlover.

No guarantee that an expression is constant and should be evaluated at compile time can be killer. When we will have compile time data structures?

posting pepe has always been allowed, doesn't matter if the hill shills don't like it

And?

"no". Black women are the most beautiful.

this

I'm sick of OOP programming and of OOP programmers tirelessly preaching about how good it is.

It has this amazing ability to spew crap all over a code base and the only thing you can do is watch it get filled to the fucking brim with dependencies and unnecessary abstractions and complications that makes you want to drive your fist through the fucking screen.

I am sick of listening the same people that think that pointers are scary and that assembly is voodoo talk to me about what is good practice and that procedural programming sucks compared to OOP.

They literally have no intrinsic knowledge of how the computer works but will still act all smug about it and look down on anyone who doesn't agree with their narrow point of view.

Fuck.

This is the worst possible taste anyone could possibly have.
Congratulations.

but he says it's stupid and he won't give me any sauce

the editor plugin for go that i use automatically runs gofmt upon every save. i was pissed at first but now i kinda like it

Fuck off you stupid fucking frogposters
This isn't r9k, it's not pol and it's certainly not reddit

inb4 >this isn't x, it's not x and it's certainly not x

I don't think so. Black women are near the top in terms of beauty, and that's almost universally agreed upon.

did these people at the beginning of the thread not understand what's virtually mapped memory

Really having a hard time understanding Go. It's like if C and Python had a miscarriage.

the ones arguing against it or the ones arguing for it

>Really having a hard time understanding Go
go is easy

go is fucking trash

Are we going to have one of these threads again

>RAII
>STL
>Implying that these are good things

I'm just having fun.

Yup, just behind

-white women
-latin women
-asian women
-men

What's procedural programming?

Which style do you guys prefer?

nice, reminds me of ancient greek architecture and pottery

Right.
It doesn't make me throw up.

The left. Anti-aliasing is disgusting.

progrm is executed in order

I want to like left but right is easier to read

btw right one is DejaVu Sans Mono bolded, left one is ProFont Regular

The style that doesn't force me to wrap everything i do in try catch blocks.

Okay /dpt/ please don't castrate me for this I'm still learning and this is just a little side project for my own enjoyment.
So here's a bit of code from my project
List ascii = new List();

Console.Write("text to ascii >>: ");

string input = Console.ReadLine();
input.ToLower();

foreach(char c in input)
{
Convert.ToInt32(c);
ascii.Add(c);
}

for (int i = 0; i

Where's the option that doesn't involve python?

And OOP is what? Program is executed randomly?

the problem is it's 0 indexed and you do

Yes, that's what OOP stands for -- (O)ut of (O)rder Programming.

Holy shit thank you, I'll try that out now.

< Count -1

Just compiled and executed sucessfully, many many many many many thanks user

Is there any point to learning rust or ocaml after learning c and lisp?

right

function does not necessarily equal method
I learned this the hard way in Typescript

Here are all the options.
I really can't decide which one to use.
Only ProFont Bold looks like shit.
Help me decide /dpt/

almost. poorly written OOP is horrible unreadable spaghetti code

meant with pic related

just look at a rust to understand how they guarantee safety as a learning exercise no need to actually invest much time in it unless you really want to program in rust

youll be able to constrast with C

>poorly written OOP
That's why you write proper OOP and it'll be perfectly understandable.

Poorly written anything is horrible unreadable spaghetti code. Ever seen a state machine implemented in Haskell?

Top Right is objectively easier on the eyes and clearer.

>What are you working on, Cred Forums?
A social network over p2p. A bit like twitter meets Cred Forums (OP of each "tweet" is anonymous, but you get them through the people you are following).

The DHT is basically kademlia with a few changes.

top right

>muh profont
faggot

>only really enjoy writing in C but can't find any work

>what is "C with classes"-style C++

Rust has (for now unofficially) rustfmt

Try to contact your lord and savior Lennart Poettering. Maybe he can give you a job at RedHat.

So is poorly written procedural, when you trow in enough branching, loops and function calls.

New thread:

1. Have a coding style
2. Reject all patches that don't follow it

I know! I know!

"C++ with classes" is shit

still better than C

>get job
>codebase is entirely in boost

kek

One horse is equal to 10
One horseshoe is equal to 4
One cowboy boot is equal to 2
2+10*4= ?
Use pemdas
Multiplication comes before addition
10 multiplied by four is forty
Forty plus two is equal to forty two.
If you are incapable of getting this answer, you deserved special ed more than I did.

>One horseshoe is equal to 4
>One cowboy boot is equal to 2
Wrong. Two horseshoes is equal to 4. Therefore 1 horseshoe is equal to 2. Some thing with cowboy boots. Notice how in the last line you're only give 1 boot instead of a pair. So it's 1 + 10 * 2.

Looks like you deserve special ed more than you do.

No, a horseshoe squared, and a cowboy boot squared

sick troll image

so it's actually 21 like said but couldn't bother to explain

So each cowboy boot is 1.414 then. Doesn't make you any less wrong.

I'm not

3 horses = 30 => 1 horse = 10
1 horse + 4 horseshoes = 18 => 1 horseshoe = 2
2 horseshoes - 2 boots = 2 => 1 boot = 1

1 boot + 1 horse * 1 horseshoe = 21

genius

this only proves that OOP sucks