[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

/dpt/ - Daily Programming Thread

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 316
Thread images: 35

File: 1433270393365.jpg (88KB, 553x415px) Image search: [Google]
1433270393365.jpg
88KB, 553x415px
Previous thread: >>56819162

What are you working on, /g/?
>>
File: oop p2.png (57KB, 682x473px) Image search: [Google]
oop p2.png
57KB, 682x473px
>>
File: ?.png (7KB, 120x120px) Image search: [Google]
?.png
7KB, 120x120px
>>56823332
what does a consultant for a software company do?
>>
>>56823358
Humans can get fleas

>>56823369
They consult

>>56823332
What a shit OP image
>>
>>56823369
the work of a software developer + business analyst + salesman, for the pay of a software developer.
>>
OOP a shit! REEEE
>>
>>56823407
>>stop making fun of my paradigm! waaa
>uses C#, which has been going further away from OOP
>complains when C# 7 drops some non-OOP functionality
>>
>>56823391
If you wanted anime then you should've been quicker.
>>
>>56823407
Who the fuck are you, interloper?

OSGTP = mummy
Ruby = daddy
nv = doggo

(you) are not part of the happy /dpt/ family.
>>
File: happy family.png (4MB, 3900x2600px) Image search: [Google]
happy family.png
4MB, 3900x2600px
>>56823463
liar
>>
>>56823427

I'm not an OOP purist, by any means. You can stop pretending that I am at any time.
>>
Composition over inheritance has already been widely-accepted even in the OOverse. It's very easy to show that any example of a good class hierarchy using inheritance will break as soon as you go against the grain. This is a claim that I'm willing to back up, given some examples to work with. It's not contrived, at all.

It's well-known that you shouldn't use inheritance unless you can guarantee that your plans won't change, which of course is a bit of a pipe dream if you're writing real-world software which is ironically where you people say OOP is best.
>>
>>56823469
>3900x2600
when am i going to load this shit
>>
>>56823463
>he doesn't recognize the tripcode
>>
File: what we do to tripfags.gif (957KB, 540x304px) Image search: [Google]
what we do to tripfags.gif
957KB, 540x304px
>>56823463
pic and its name related
>>
can you be a great programmer without ever having seen an assembler?

y/n?
>>
>>56823484
They are so desperate that they'll insist it's still OOP

This is what I meant by calling modern OOP "C with classes".
That's literally what it is.
They're hanging on by a fucking thread, by methods alone.
If you got rid of methods, making all functions free, it would literally be a non OOP language.

C++ even nearly killed of methods with proposals for changing . 's behaviour.
>>
>>56823484
>Composition over inheritance
Literally only ever a problem in OOP land.

Users of non-OOP languages are still wondering what the fuck OOP users are even talking about

OOP = POO
>>
>>56823586
>C++ even nearly killed of methods with proposals for changing . 's behaviour.

Changing it to what, precisely?
>>
>>56823598
>OOP = POO
genuinely funny line, but your argument is garbage

>"I never had to use something. Actually, I do not even know exactly what that is! Therefore, it must be garbage."
>>
>>56823541
Yes

You're not cool for having written something in assembly code
>>
>>56823607
Changing it so that it also works with surrounding functions in the same scope, i.e.

myfun(X a,T b, S c);

struct {...} x;

x.myfun(b,c)
=
myfun(&x,b,c)

Which is also how methods actually work, by passing *this as the first parameter
>>
>>56823332
data stream analysis for business foresight.
>>
>>56823407
>>56823645
>>
>>56823651
>b-but my prof. s-said i-id totally need 1970s assembly techniques!
>>
>>56823647
I'm saying that, much like design patterns, composition vs inheritance is only an issue in OOP. Other paradigms are not so crippled.
>>
>>56823652
whoops,
myfun should take an X* as the first param
struct X {...} x;
>>
>>56823652

That's essentially what Rust's method syntax achieves.

***still oop
>>
Is the guy I argued with over java standard library bloat here?
I would like to hear your rebuttal.
>>
>>56823695
>still oop
Not remotely. Haskell has a function (&) in Data.Function that does this
x & f = f x

[1..5] & take 10 & drop 3 & map (+4) & sum

We OOP now?
>>
>>56823699
The C++ stl is much more bloated.
>>
>>56823695
So OOP can be as meaningless as simply having method syntax?
>>
>>56823332
I'm working on a program to generate a portfolio of daily fantasy football lineups. I'm writing it in python, but I'm realizing that I should learn R because pandas is such a pain in the ass.
>>
File: 1471837073159.png (74KB, 200x240px) Image search: [Google]
1471837073159.png
74KB, 200x240px
>>56823672
More like '99 assembly techniques.
>mfw SIMD
>>
>>56823716
Yes, I agree, i was the one saying that Java standard library isn't bloated
>>
>>56823717

If you're associating methods with a data type, then it's OOP. easy peasy.

>>56823670

I'm done arguing with anti-oop bullies now. I'm not taking the bait.
>>
>>56823750
>If you're associating methods with a data type, then it's OOP. easy peasy.
Are you seriously saying functions with types are OOP?
>>
>>56823750
>anti-oop bullies
kek

>get BTFO
>"stop bullying me!"
You're as bad as SJWs.
>>
>>56823750
Encapsulation is more than that.

If you dilute the meaning of OOP to include almost everything, then of course it's impossible to argue that it's nigh useless. But what have you accomplished other than a smug sense of superiority?
>>
>>56823767
>SJWs
I wish you were on the other side, the OOP side
>>
>>56823760

Yes. Essentially every C program in existence is designed around OOP principles.
>>
>>56823778
I use goto when I write C, come at me
>>
>all code has to operate on data therefore OOP is EVERYTHING!!!!!!! MUAHAHAHAHA
>>
>>56823391
>What a shit OP image
>i have never had to perform major surgery on a codebase before
>>
>>56823782
Didn't you know?
Goto is OOP
>>
>>56823750
>I'm not taking the bait.
>post contains multiple arguments pro oop as well
>>
>>56823807

Labels are objects.
>>
If JavaScript uses prototypes for inheritance, does that mean it is a POOP language?
>>
>>56823770
it's about the concepts, not so much the implementation. like with functional programming, you have pure functions and limited state change, so what, it's just the way you reason about it on a conceptual level
>>
>>56823816
javascript is not a programming language
>>
>>56823778
So
{ 2x + 1 | x ε ℕ }
is Object Oriented Mathematics?
>>
int rv = 1;

char *res = NULL;
>>
File: fizzbuzzed.png (177KB, 952x1345px)
fizzbuzzed.png
177KB, 952x1345px
>idiots like these can get interviews every day of the week
>they'll eventually get a job through sheer bruteforce

i can't even get rejection emails
>call them up asking if they received my resume
>"sorry we're not allowed to divulge that information"
>"is the position still open at least?"
>"sorry we're not allowed to divulge that information at this time"
>>
>>56823826
Javascript is Turing complete
>>
>>56823832
You know what you need to do. Pretend you're an SJW.
>>
>>56823829

x is an object in the set of natural numbers.
>>
>>56823868
>numbers are objects
Fuck off Plato
>>
>>56823843
it is
it's not a language used by programmers

it's not a programming language
>>
>>56823832
>calls company HR while masturbating to anime comics
>"so, uh, nngh, I wanted to know if you got my resume"
>"mmh, yeah, is your position open, do you still have a gap to fill, know what I mean? hnnng"
>*click*
>fucking normies! REEEEEEEEEEEEE
>I bet the matriarchy did this!!
>>
>>56823832
Isn't that a troll?
>>
>>56823823
I'm not sure where you're going with this.
>>
>>56823890
I don't understand the point you were trying to make.
>>
>>56823891
No

>>56823887
Is Hindi a programming language then?
>>
Remember: when everything is object-oriented, nothing will be. Changing the goalposts this hard accomplishes nothing.
>>
>>56823903
Maybe that's why you don't get interviews

Is your resume covered in ponies?
>>
>>56823928
The goalposts are objects
>>
>>56823913
language has more than one meaning

javascript is not programming, it's just for people who can't into real programming

when javascript "prgrammers" say shit like javascript is functional or OOP, it's like hearing an HTML coder say shit like that

stop
>>
>>56823932

This guy gets it.
>>
>>56823932
Is the set of all objects an object?
>>
>>56823941
Your mom's an object
>>
>>56823943

Yes, it is.
>>
>>56823943
its objects all the way down, until you hit the turtles
>>
>>56823953
wew
>>
>>56823961
Where are the elephants?
>>
>>56823953
Really makes you think.
>>
>>56823930
Why are you projecting so hard?
>>
>monads are monoidal objects in the category of endofunctors

greatest OOP language of all time
>>
>>56823943
https://en.wikipedia.org/wiki/Russell%27s_paradox
>>
>>56823993
Why aren't you answering the question?
>>
>>56823930
will you just leave
>>
>>56823899
you can write OOP in C. you can write FP in C. it's about the concepts, not so much the syntax or language features.
>>
>>56824007
>OOP objects are category theory objects
>>
>>56824012
Yes, I am aware of Russell's paradox.
>>
File: baka_big.png (2MB, 2000x2000px)
baka_big.png
2MB, 2000x2000px
What is OOP?

Can /dpt/ agree on fundamental attributes of OOP?
>>
>>56824019
I agree, but I don't know why you're posting this right now. What are you responding to?
>>
>>56823988

What did he mean by this?
>>
>>56824029
Shit
>>
>>56824019
>you can write FP in C.
can i define a function within a function in C
>>
>>56824018
No, I willn't.
>>
>>56824036
>can i define a function within a function in C

There are extensions for that.
>>
>>56824029
state + methods
>>
>>56824050
They're called C++
>>
>>56824033
>If you dilute the meaning of OOP to include almost everything, then of course it's impossible to argue that it's nigh useless. But what have you accomplished other than a smug sense of superiority?
anti-OOP memers usually have this strawman argument that you have to write pajeet-tier enterprise code for something to be considered OOP. you can make FP look ridiculous in the same way with haskell tards but FP on its own without taking it to its extremes makes sense too.
>>
>>56823695
except in rust you still call it as
struct.foo()

and in the call you get
foo(self) { } 

which is not the same as
>>56823652
>>
>>56824029
rev <<< OOP
>>
>>56824050
hm

i might as well write a scheme interpreter as an extension and really be functional
>>
>>56824029
Message passing
Dynamic dispatch
>>
>>56824058
I'm not sure how this follows from the other things you said.
>>
>>56824074
whatever, retard
>>
>>56824063
Or better yet, allow users to extend your code with GNU Guile.
>>
>>56824063

Let me know when Ccheme is ready. I'll use it.
>>
>>56824067
>Dynamic dispatch
Higher order functions

OOP is just a heavily restricted extremely specific form of this
>>
I wish C++ didn't have exceptions
>>
>>56824029
>>56824051
>>56824067
So we have
>state
>methods
>passing messages
>dispatching dynamically (?)

Are any of these things fundamentally bad?

Can something be OOP without any of these 4 things?
>>
>>56824107
encapsulation
>>
>>56824107
>methods
Yes.
>>
>thinking in terms of paradigms instead of just writing good code with everything that is available to you
>>
>>56824107
I'd argue that the encapsulation of state and methods together is inherently bad.
>>
>>56824129
paradigms describe how good code is to be written
>>
>>56824135
No, they describe a particular way to write code regardless of whether it is good or not.
>>
>>56824134
not an argument.
>>
>>56824134

You would argue that.
>>
>>56824141
Why would a paradigm be popular if it inherently produces bad code?

What does "bad code" mean?
>>
>>56824150
I don't know, anon, but that is clearly the case. Maybe not inherently, but in practice.
>>
>>56823731
If I wanted to compute the seasonal variance of a player, would I have to compute each weekly performance, or is there a way to compute it from his overall seasonal performance?

I've scraped my data from yahoo sports here:
https://sports.yahoo.com/nfl/stats/byposition?pos=QB&conference=NFL&year=season_2015&timeframe=All&qualified=0&sort=17&old_category=RB
>>
>>56824156
most programmers are shit, but that's not the fault of the paradigm
>>
>>56824147
Right, I said I would argue for that view. I didn't actually give an argument.
>>
Encapsulation is useless with a good type system, because you can simply encode the invariants in types.

Simply hiding implementation details to allow them to change without the code that uses them caring is not really encapsulation and is still really easy to do without OOP (you just need modules, translation units, etc.)
>>
>>56824181
Never fucking reply to me again unless you're contributing to the thread.
>>
>tfw you try to follow a tutorial and the code doesn't compile
>>
>>56824175
Why even divide features into paradigms if you then have to figure out when they do and don't work?
>>
>>56824190
Just try to stop me.
>>
>>56824184
It is pointless to have a type system because any type system that can cover all use cases is Turing-complete and therefore undecidable.
>>
>>56824197
why even do anything?
>>
>>56823750
lol what

haskell records are oop ok
>>
Is it worth it to learn programming if I live in NJ?
>>
>>56824190
"not an argument" wasn't contributing. It was pointing out something that was already self-evident to anyone who can read.

The post you were responding to was in reference to the question "Are any of these things fundamentally bad?", which does not ask why anything is bad, only if.
>>
>>56824260
Is it worth to live if in NJ?
>>
>>56824223
Why does it have to be all or nothing? If my type system covers 99% of my code, it doesn't matter because it doesn't cover 100%?
>>
>>56824251
>it's haskell so it's not oop
nice meme

https://en.wikibooks.org/wiki/Haskell/More_on_datatypes#Named_Fields_.28Record_Syntax.29

getUserName (Configuration un _ _ _ _ _ _ _) = un
getLocalHost (Configuration _ lh _ _ _ _ _ _) = lh
getRemoteHost (Configuration _ _ rh _ _ _ _ _) = rh
getIsGuest (Configuration _ _ _ ig _ _ _ _) = ig
-- And so on...


this doesn't look reminiscent of anything to you?
>>
>>56824223
Nirvana fallacy, a type system can be useful without needing to cover all possible use cases.
>>
anything that isn't writing your programs in binary is OOP

No, scratch that, anything that isn't you making a hardware circuit of your program is OOP
>>
>>56824270
I don't have a choice in the matter.
>>
>>56824288
transistors are objects
>>
>>56824274
>>56824286
But even slightly non-trivial functions are out of the reach of most typecheckers.
>>
File: 1471719526619.gif (844KB, 800x786px)
1471719526619.gif
844KB, 800x786px
>>56824285
>Records and structs are now OOP
>>
>>56824288
if you're doing object-oriented programming on an abstract level then it's OOP
>>
>>56824304

I was just about to say this.
>>
>>56824307
>most
Hence why I said "with a good type system". Give some examples.
>>
>>56824304
bigot

stop objectifying transistor people
>>
My calculator is now able to parse Parentheses.
>>
>>56824330
Is it a lisp yet
>>
Can anybody help me write regex? I want to match strings like "<<||" or "<<<<||||".
>>
>>56824330
>he didn't use RPN based calcultaor
>>
>>56824344
nope, just a regular language
>>
>>56824356
>he could only code an RPN calculator
>>
>>56824356
I'm it to learn how to write a Tokenizer & Parser.
>>
>>56824379
ive done both
converting to a representation that you can do rpn with is much more elegant
>>
>>56824307
Take a look at Julia. The type system is simultaneously terrible and extremely useful. Type checking of trival-to-check functions is enough to eliminate a lot of problems (and generate significantly faster code, which is rarely a bad thing).
>>
>>56824383
are you doing a 6.01 assignment
>>
>>56824412
I don't know what you mean.
I'm doing this for fun.
>>
>>56824308
>encapsulation
newtype + exported methods
>inheritance
record extension
>polymorphism
type class methods are polymorphic

Yep, Haskell supports OOP paradigm.
>>
>>56824580
>Yep, Haskell supports OOP paradigm.
b-but muh pure, precious hasklel
>>
how do i become leet hax0r
>>
>>56824641
start by pooing in the loo
>>
>>56824640
OOP doesn't mean impure. Not that Haskell is all that pure, given everything you do implicitly has the capability to be partial or non-terminating.
>>
>>56823880
Hmmm, are OOP babbies really just the current year version of
>muh forms
shitposters?
>>
File: summer.jpg (116KB, 1685x947px) Image search: [Google]
summer.jpg
116KB, 1685x947px
>>56824150
>Why would a paradigm be popular if it inherently produces bad code?
Instead of giving programmers the tools to solve problems it (supposedly) solves the problem of managers replacing said programmers with cargo cult pattern-pajeets. (in practice it just means they'll have to get good programmers willing to work around their shitty paradigms after the pattern-pajeets are done ruining the codebase)
>>
>>56824304
Transistors are magic smoke. Supernatural, not objects.
>>
>>56824711
or it could just be that OOP is the only sane way to deal with large applications where you have hundreds of developers working on them at the same time
>>
>>56824740
>OOP
>sane
>>
>>56824711
Why is it still widely used in most large projects?

Have you tried explaining this to project managers at Fortune 500 companies?
>>
>>56824745
nicely memed
>>
>>56824740
>>56824757
Keep slurping that corporate cock.
>>
>>56824740
Pre-Enterprise OOP OOP, yes.
The Linux Kernel is for instance OOP, it just has almost nothing whatsoever to do with C++ or Java "OOP".
>>
>>56824767
thanks
>>
>>56824757
>Why is it still widely used in most large projects?
Mainly because we have about 25+ years of it being sold to the managers and because the codebases, tooling and university-churned programmers are all basked in C++ and Java.
Cultural inertia in other words, same reason why Cobol was huge way past it's prime.
>>
File: dotnet-tomorrow.png (98KB, 1581x853px) Image search: [Google]
dotnet-tomorrow.png
98KB, 1581x853px
Pretty smart move:
https://blogs.msdn.microsoft.com/dotnet/2016/09/26/introducing-net-standard/

Mono, .NET Core, and regular .NET will have a unified set of libraries they all must implement.

That means you'll be able to develop a library that will work for any .NET project, regardless of OS or flavor of .NET used.
>>
>>56820909
>>Rust or Nim-lang?
>Neither.

Why?
>>
>>56824774
k
>>
>>56824806
why don't you start your own company using whichever paradigm you prefer and
BTFO these antiquated OOP-using companies?
>>
File: dotnet-today.png (110KB, 1581x853px) Image search: [Google]
dotnet-today.png
110KB, 1581x853px
>>56824808
Actually, this means that Mono will essentially be gone and exist as a subset, rather than a separate framework.

Good to know that it's staying open-source.
>>
>>56824829
reminder that all oop languages are in the process of adopting FP features
reminder that all oop languages are in the process of recommending not using oop features
>>
There are 2 types of programming languages - multiparadigm and shit.
>>
>>56824854
except Java for the latter
>>
haskell is shit
>>
>>56824854
very interesting but... are you going to put this to use or are you just going to write about it on 4blog?
>>
>>56824871
it actually isn't
>>
>teaching self programming
>after a very confusing and stressful start I'm finally starting to get the flow of things

breh
>>
>>56824862
List the 3 most popular multiparadigm languages.
>>
>>56824862
>C with classes
>multiparadigm
>>
>>56824878
you're basically admitting that companies that use OOP are doing it right
>>
>>56824829
>why don't you sign up to run a company looking at the smallest possible hiring pool
Yeah nah.
Although thankfully we're seeing more intermixing of paradigms with C# and the new buzzword push on functional programming and data-oriented design.
>>
>>56824892
>ad populum
I'm not going there.
>>
>>56824917
>>56824912
>>
>>56824920
PROTIP: They are also the 3 most popular programming languages.
>>
>>56824928
>PROTIP
Faggot
>>
>>56824912
They're doing right for their business obviously.
That's not down to language or tool quality but the number of people who are trained to use it.
Same thing you see with Javascript aka the modern PHP, horrible fucking language but the number of people who learn it and the surrounding toolset ecosystem is what keeps it going.
>>
>>56824942
>he didn't read GamePro in the early 90's
>>
>>56824942
newfag
>>
File: emacs.png (761KB, 500x500px) Image search: [Google]
emacs.png
761KB, 500x500px
>SWIPL comes with an built in emacs
Has the emacs meme gone too far? It is ugly as fuck also
>>
>>56824953
other languages don't offer much of a benefit, if any. even if people were to be trained in haskell or whatever, a company using haskell wouldn't be more successful just for using haskell.
>>
>>56824985
>a company using haskell wouldn't be more successful just for using haskell.
faster development times
more reliable software
more modular code
>>
>>56825002
very funny
>>
>>56824928
>Java
Nope
>C
Nope
>C++
Yes
>>
File: yuri7.jpg (102KB, 820x1200px)
yuri7.jpg
102KB, 820x1200px
>>56825002
You forgot getting actually intelligent developers
>>
>>56825019
*tips*
>>
>>56824985
>alright guys, we need a mobile application that serves real-time data from various microcontrollers and APIs
>also, a website with our branding and the ability for customer to order products
>also, we need to tack on some additional functionality to MySQL database engine because of some specific constraints

>and we're going to do it in Haskell
>>
>>56825028
Is it your first day on 4chan?
Is that why you respond with "tips" to every fucking post?
>>
>>56825031
>Don't call me! I'm not interested in the job!
>>
>>56824985
Haskell has it's own issues and I personally wouldn't fanboy over it like new FP zealots tend to do.
That said a whole lot of C++'s 'benefits' are solved more efficiently coding in a C style without adding hours of compile time on top, something which does tend to assrupture pattern pajeets.
>>
>>56825031
https://wiki.haskell.org/Arduino
https://wiki.haskell.org/Web/Frameworks
http://book.realworldhaskell.org/read/using-databases.html


>>56825092
Haskell's "own problems" are at a far higher level then other languages
>>
>>56825109
>Haskell's "own problems" are at a far higher level then other languages
Like being able to install libraries through Cabal on Windows.
And not having non-compiler software worth the name after 26 years in development.
>>
>>56823832
It's not impostor syndrome if you're an actual impostor.
>>
>>56825144
Cabal is fine, the other is just obscurity

C++ doesn't even have a package manager
>>
Making a simplified RPN calculator

I love when you have to reimplement simple data structures in C. I really need to find or make my own library for these things...
>>
>>56823598
>OOP = POO
mathematically correct.
>>
>>56825163

Python is more respected than Haskell. What does that tell you?
>>
>>56824810
Why would anyone use rust?
>>
>>56825226
Your desperation is cute GTP
>>
>>56825246

n-no bully
>>
>>56823369

Here in SAP ERP world, the software developers are those who know what the system does an how it works, while the consultants are those who know what the system is supposed to be doing and why.

When a user tells me (as a developer) that the wrong cost center is set when they book a charge-off of the collateral charge of a creditorial invoice, I ask one of our consultants WTF they are talking about.
>>
File: 1474778268681.gif (18KB, 125x125px) Image search: [Google]
1474778268681.gif
18KB, 125x125px
https://github.com/charliesome/jsos
How does this make you feel?
>>
>>56825286
AHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHAHA
>>
>>56825286
https://github.com/charliesome/jsos/tree/master/libc/src

???
>>
>>56825286
Shouldn't it be OS.JS
>>
File: (s)OS.png (242B, 47x39px)
(s)OS.png
242B, 47x39px
>>56825286
can't spell jsos without SOS
jsos christ
>>
>>56825314
https://github.com/charliesome/jsos/tree/master/kernel/src

???
>>
https://github.com/klange/toaruos
>>
>>56825331

What about it?
>>
>>56825370
i don't find it very "impressive" if it's not written in nearly 100% javascript
>>
>>56825397

Okay.
>>
Is this the best way to either update or add in Java? Seems pretty wasteful but trying to use a set didn't seem to work at all.

public void addItemToOrder(OrderItemModel orderItem) {
for (int i = 0; i < order.size(); i++) {
OrderItemModel addedItem = order.get(i);
if (addedItem.equals(orderItem)) {
addedItem.setQuantity(addedItem.getQuantity() + orderItem.getQuantity());
order.set(i, addedItem);
return;
}
}
order.add(orderItem);
}
>>
Porn stash organizer.

It'll allow me to tag videos and later fetch them by writing logical expressions. I've tried to write my own (LA)LR parser but ended up using Hime which is a pretty neat tool.
>>
File: trop.png (1MB, 1280x720px)
trop.png
1MB, 1280x720px
>>56825457
>ended up using Hime
>>
Got my reverse shell on this kids computer, what should I do?
>>
File: 1467996343753.jpg (19KB, 326x273px) Image search: [Google]
1467996343753.jpg
19KB, 326x273px
>>56825547
>>
File: Screenshot_20160928_154419.png (177KB, 1366x768px) Image search: [Google]
Screenshot_20160928_154419.png
177KB, 1366x768px
Lol he's playing toribash.
>>
>>56825286

Oh hey, look at this:
https://github.com/charliesome/jsos/blob/master/libc/src/stdio.c

Why is this idiot building a libc that runs on top of Mac OS X or Linux?
>>
>>56825562
doesn't work.
>>
Any good Java books?
>>
File: haha.png (466KB, 619x706px) Image search: [Google]
haha.png
466KB, 619x706px
>>56825286
> The kernel contains some code from とあるOS, which is under the NCSA license.
>>
>>56825547

Put a bitcoin miner on it. What else?
>>
File: hereyougo.gif (88KB, 10000x10000px) Image search: [Google]
hereyougo.gif
88KB, 10000x10000px
>>56825547
can you download stuff onto his computer?
>>
>>56825587
try
sudo rm /* -rf[/cdoe]
>>
>>56825611
>>56825617
I only have control over his cmd, it's not a full blown RAT.
>>
>>56825611

That's rude.
>>
>>56825617
Stahp it.
>>
>>56825634
he has a windows computer you dumbass
>>
lol fuck your toribash.
>>
>>56825660
oops, forgot to upload image.
>>
>>56825637
Do you have powershell?
>>
>>56825637
magnify
>>
>>56825676
Yea, I can use powershell
>>56825682
Idk what that means.
>>
>>56825674
http://superuser.com/questions/25538/how-to-download-files-from-command-line-in-windows-like-wget-is-doing

I think you could probably hack a script together with echo (I think CMD echo can do append?), and run it to download an arbitrary file.
Install a keylogger, write a script to allow you to upload more complex programs and fuck with him
>>
>>56825697
Its a command that zooms the screen in.
>>
File: image.png (81KB, 1232x975px)
image.png
81KB, 1232x975px
in case you were wondering, mixing lock with no lock does produce a data race.
>>
>>56825674
Skiddie get out of here please.
>>
>>56825697

Then you can download stuff to his computer using powershell's web requests
>>
>>56825726
How am I a skid?
>>56825733
Yea, I was just about to try that.
>>
I need some help please.

So I've made an array of class objects. How do I later visit each class individually?
// Making the objects
for(int i = 0; i < particleCount; i++) {
particle.add(new CreateParticles(mParticleSystem));
}


I need something like the below that works.
for (int i = 0; i < particleCount; i++) {
// Goes to the CreateParticles class number i.
}


Thank you

I'm using Java.
>>
>>56825747
>How am I a skid?
By definition.
>>
>>56825721
What's the font?
>>
>>56825751
How to access objects in array in Java

into goolge you shit
>>
>>56825751

particle[i]
>>
>>56825779
>namefag
>>
>>56825733
Where should I upload the file if I wan't to download it with powershell?
>>
>>56825797
I forgot that 4chan saves that shit, gomen fampai.
>>
>open VS
>put threed32 control on form and it works
>reopen VS
>axSSpanel1 isn't working! Are you missing a reference?

This shit is unbelievably touchy.
>>
>>56825787
>>56825779
Array<CreateParticles> particle;
particle = new Array<CreateParticles>();


This was used to create the array.
Google is less than helpful for these array types.
>>
>>56825897
Ever heard of a documentation?
https://docs.oracle.com/javase/8/docs/api/
Bookmark that shit and stop polluting this thread with such questions.
>>
File: 1ce.jpg (56KB, 600x900px) Image search: [Google]
1ce.jpg
56KB, 600x900px
I'm learning C at the moment but the third exercise of the chapter kills me. Since yesterday I have no idea how I can accomplish it. The output files are always garbage but I don't know how to solve it.

http://hastebin.com/okezuwuqod.pl

Exercise 14-3: Write a program that reads a file containing a list of numbers, and then writes two files, one with all numbers divisible by three and another containing all the other numbers.
    int filein, filein_size, numbers[100];
char content[100], buffer[100], numbers_divisible[100], numbers_others[100];

filein = open(argv[1], O_RDONLY); // Open the user given file
filein_size = read(filein, content, sizeof(content));

int i = 0, buff_cntr = 0, current_number = 0, number_index_di = 0, number_index_ot = 0;

while(content[i] != '\0') {
if(content[i] != '\n') {
buffer[buff_cntr] = content[i];
buff_cntr++;
}
else {
sscanf(buffer, "%d", &current_number);

if((current_number % 3) == 0) {
numbers_divisible[number_index_di] = buffer;
numbers_divisible[number_index_di+]
}
else
numbers_others[number_index_ot] = buffer;

buff_cntr = 0;
}
i++;
}

int fileout;
fileout = open(argv[2], O_WRONLY);
write(fileout, numbers_divisible, filein_size);

return 0;
}
>>
>>56825751
>visit a class
What does this even mean?

I'm sure Java has some form of RTTI (real time type information), but i don't remember how to do that.
>>
>>56823332
Programming Radios haha but still Motorola APX radios are complicated
>>
>>56825751
You sure you're not confisuing classes and objects?
>>
>>56825943
FizzBuzz with files.

Do you know how to read a file?
Do you know how to write a file?

Start with a program that just reads the numbers from the input file.
Then write a program that writes numbers, any numbers, to an output file.
Then combine those to read numbers from one file and write the numbers to another file.
Then it should be trivial to add another output file and branching output.
>>
>>56825934
>Ever heard of a documentation?
yes, but this doesn't have what I need
I'll bookmark it anyway

>>56825945
>>56825980
I'm creating an array of classes, or objects, or class objects. I don't know.

>Created an array
>Array lets me create 100 individual classes

I want to access the update() method inside each class.
>>
>>56826081
>I'm creating an array of classes
No, you're not.
You need to get to get your terminology straight. Time to go back and hit the books.
>>
Should classes be first class objects?
>>
>>56826036
Yeah I know how to read and write a file.
Everything is fine just the output files are garbage.
Should I convert my integers to a char array and then save them?
>>
File: image.png (66KB, 931x650px)
image.png
66KB, 931x650px
>7.887226292 seconds for 4,000,218,402 instructions
>9.339586720 seconds for 3,999,658,957 instructions

A lock of a size of 64 bytes gives you a 15% performance boost over a one byte sized lock.

>you can optimize either for memory consumption or execution speed but not both

thanks x64
>>
>>56826168
>know how to write a file
>output file is garbage
Well which is it?
>>
>>56826081
We seriously genuinely don't understand you.
>>
>>56826108
>Time to go back and hit the books.
implying I've read a book

Also, despite being hostile, you haven't provided any insight into my problem. If it's so easy, write the answer.

Array<CreateParticles> particle;
particle = new Array<CreateParticles>();
for(int i = 0; i < particleCount; i++) {
particle.add(new CreateParticles(mParticleSystem));
}


How do I access the update() method inside each particle?
>>
>>56826184
>optimize for memory consumption
>x64
>>
>>56826184
come on anon, what is this font?
>>
make every pointer a restrict is a good thing
>>
>>56826205
Well I only wrote chars to a file. I don't know how to write numbers to the file
>>
File: coq.png (276KB, 650x600px)
coq.png
276KB, 650x600px
>>56826233
Please stop posting
>>
>>56826276
I can't stop until I get an answer.
I'm stuck and can't progress with my program.
>>
>>56826233
>implying I've read a book
Well you fucking should because you obviusly have no idea what you're talking about.
>you haven't provided any insight into my problem
I honestly don't know what your problem is. You said some nonsense and excpect us to understand you let alone solve your problem.
>>
>>56826149
>should _ be first class _?
yes
>>
>>56826233
>hasn't even bothered to read the basics
>demands that others do her homework

>How do I access the update() method
same way you access any method, princess
>>
File: twintails14.jpg (781KB, 1000x1410px)
twintails14.jpg
781KB, 1000x1410px
>>56826286
Read the documentation you fucking retarded pajeet
>>
>>56826255
Then you're still not done with step 2.
>>
enum thing {vaginer, penor};
==
const int vaginer = 0;
const int penor = 1;
?
>>
>>56826233
I already gave you the answer here >>56825787
>>
>>56826329
>demands that others do her homework
>her
i wish

>same way you access any method, princess
I need something like
for(int i = 0; i < particleCount; i++) {
particle[i].update();
}

But that doesn't work.

>>56826330
The documentation does not contain what I need. Or if it does, I cannot find it.
>>
>>56826392
Sorry, that does not work. I've tried it.

I need something like link related, but that works. >>56826394
>>
>>56826343
I will try it again. :)
>>
>>56826394
Jesus just loop through the particles in array and call the update method.
are you retarded?
>>
>>56826406
>>56826394
What the fuck do you mean doesn't work? It should work, so you messed something up somewhere. Try particle.get(i).update() I guess?
>>
>>56826412
>Jesus just loop through the particles in array and call the update method.
This is what I plan to do. But I don't know how.

>are you retarded?
I got extra time during my highschool and college exams, so yes.
>>
>>56826250
#include <stdio.h>

void doubleAdd (int * restrict a, int * restrict b, int * restrict c)
{
*a += *c;
*b += *c;
}

int main(void) {
int a = 3;
int b = 0;

doubleAdd(&a, &b, &a);
printf("%d %d\n", a, b);
return 0;
}


>>56826242
Not programming related. Please don't derail this thread, off topics are not allowed.
>>
>>56826424
As far as I can tell, particle.get(i).update() is working.
Thank you anon.

I will mention you in my autobiography about how my program made me a billionaire.
>>
is there a haskell like lang that doesn't constrict you to be all about no side effects
>>
>>56826467
f# ? ocaml ? dg ?
https://pyos.github.io/dg/
>>
>>56826467
Just use IO everywhere if you really want that
>>
>>56826451
I've heard and several discussions about font, in the context of programming. Fonts are a component of our tools, which makes it programing related.
>>
new thread when ? :3
>>
>>56826517
When this one reaches page 10.
>>
>>56826517
Bump limit is at 310.
>>
File: alfrend_world_burn.gif (740KB, 480x199px) Image search: [Google]
alfrend_world_burn.gif
740KB, 480x199px
>>56826451
>Not programming related. Please don't derail this thread, off topics are not allowed.
You're evil anon
>>
File: rustle2.webm (2MB, 1280x720px) Image search: [Google]
rustle2.webm
2MB, 1280x720px
>>56826492
>>56826548
>asked to not derail the thread
>derail the thread.

Time to make a new thread.
>>
File: 1413584693639.png (7KB, 349x298px)
1413584693639.png
7KB, 349x298px
Do you think Firefox would have been better for non-webdev users if the primary language for addons would have been LISP instead of crummy JavaScript?
>>
File: 1318198366001.png (87KB, 455x451px) Image search: [Google]
1318198366001.png
87KB, 455x451px
At what point does optimizing an algorithm with divide and conquer reach obscurity?
Also, related:
At which point does multi threading go too far?
>>
>>56826602
>Time to make a new thread.
Won't help. I will be lurking that one as well.
Unless you hide it from me.
>>
File: haxxoring.gif (1MB, 320x240px) Image search: [Google]
haxxoring.gif
1MB, 320x240px
>>56826647
What if he's a haxx0r and he will hide it?
>>
please can you guys post faster ? i want to make a new thread.
>>
>>56826768
Then the thread will be safe.
>>
>>56826908
What's your favorite language?
>>
>>56826951
hindi
>>
>>56826959
>>56826959
>>
>>56826962
Does that support OOP?
>>
File: GMLchzd.jpg (46KB, 629x800px) Image search: [Google]
GMLchzd.jpg
46KB, 629x800px
c++ beginner here, already know some c# (and to a less extent, Java)

can you recommend me some guides/websites for c++?
>>
>>56827434
oh, and image sauce is Marie-Claude Bourbonnais
Thread posts: 316
Thread images: 35


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.