Leave these fields empty (spam trap):
Name
You can leave this blank to post anonymously, or you can create a Tripcode by using the float Name#Password
A subject is required when posting a new thread
Subject
Comment
[*]Italic Text[/*]
[**]Bold Text[/**]
[~]Taimapedia Article[/~]
[%]Spoiler Text[/%]
>Highlight/Quote Text
[pre]Preformatted & Monospace text[/pre]
1. Numbered lists become ordered lists
* Bulleted lists become unordered lists
File

Sandwich


project ideas by Nathaniel Dondermit - Mon, 03 Feb 2014 12:09:38 EST ID:QEm/xrR8 No.30872 Ignore Report Reply Quick Reply
1391447378167.jpg -(725395 B, 2047x2047) Thumbnail displayed, click image for full size. 725395
Hello, I'm 2nd semester studying C# at an Institute and I want to have a side project to practice what I'm learning in a fluent and practical manner, besides the stuff I do for class. I'm not very good and something that would start off simple going into not so easy / medium difficulty would be nice, but any fun idea would work.

Perhaps an exercise book or something?

Thanks for any contributions :)
5 posts omitted. Click Reply to view.
>>
Clara Hanningsin - Tue, 03 Jun 2014 16:40:45 EST ID:5Mbyzmad No.31858 Ignore Report Quick Reply
>>31857
I meant the other way around of course. Client/server is much easier.
>>
Rebecca Horringtit - Tue, 03 Jun 2014 18:12:36 EST ID:FaQqdZHU No.31860 Ignore Report Quick Reply
Genetic algorithms to solve some interesting problem
>>
Clara Hanningsin - Fri, 06 Jun 2014 22:43:38 EST ID:5M822B0h No.31882 Ignore Report Quick Reply
>>31860
What I was describing was basicly using an algorithm to solve a chat/im/game protocol login challenge or encryption pattern. But i'm sure that is quite obvious.
>>
Ebenezer Bobblefoot - Sat, 07 Jun 2014 15:47:14 EST ID:FaQqdZHU No.31888 Ignore Report Quick Reply
>>31882
http://en.wikipedia.org/wiki/Genetic_algorithms
>>
Charlotte Shakebury - Mon, 09 Jun 2014 10:13:32 EST ID:gLfws0AG No.31890 Ignore Report Quick Reply
Redo your picture with processing.


help me smoke a bowl in c++ by Reuben Besslehall - Fri, 23 May 2014 02:30:45 EST ID:wSqgP47U No.31778 Ignore Report Reply Quick Reply
1400826645197.jpg -(138004 B, 1920x1080) Thumbnail displayed, click image for full size. 138004
Hi,

I'm a C++ noob. Why doesn't my code evaluate Sum against the value int 420?
Why does it not take the input? It's only using the default value of 0.
hope these code tags work
<code>

#include <iostream>

using namespace std;

int main() {
cout << "Enter two numbers: " << endl;
int v1 = 0, v2 =0;
int Sum = v1 + v2;
Comment too long. Click here to view the full text.
6 posts omitted. Click Reply to view.
>>
Emma Smalldock - Tue, 27 May 2014 23:48:04 EST ID:7alaund4 No.31814 Ignore Report Quick Reply
>>31804
>is ugly. use C's printf

Don't do this. printf is less secure and easier to fuck up than cout if you don't know what you're doing.
>>
Nigger Fazzledock - Wed, 28 May 2014 02:36:51 EST ID:kv8bxsSs No.31815 Ignore Report Quick Reply
1401259011594.png -(608065 B, 720x404) Thumbnail displayed, click image for full size. 608065
>>31814
>printf is less secure
cout isnt web scale
>>
Basil Sapperford - Sun, 01 Jun 2014 13:15:32 EST ID:7alaund4 No.31845 Ignore Report Quick Reply
>>31815

Enjoy your buffer overruns and undefined behaviour, then.
>>
Rebecca Givingped - Tue, 03 Jun 2014 18:43:57 EST ID:lXqzOnGg No.31861 Ignore Report Quick Reply
#include <stdio.h>

int main(){
int a, b;
scanf("%d %d", &a, &b);
printf("The sum of %d and %d is %d\n", a, b, a+b);
if (a+b == 420) printf("C is better than C++\n");
}
>>
Faggy Poshdune - Fri, 06 Jun 2014 22:51:19 EST ID:IOTJ+82v No.31883 Ignore Report Quick Reply
1402109479586.jpg -(3438 B, 133x200) Thumbnail displayed, click image for full size. 3438
probably because your so fat


re: Programming Question - screenshot tool by Albert Crundlechetch - Mon, 26 May 2014 03:30:26 EST ID:NldFcJih No.31799 Ignore Report Reply Quick Reply
1401089426947.jpg -(88283 B, 600x400) Thumbnail displayed, click image for full size. 88283
I want to make a tool that takes screenshots. I dont know what 'language' im looking for. This needs to be a little better than hitting F12 in paintshop pro, and it sounds simple enough ????? (????)

Ive only programmed in language that don't even qualify. So where do I start .
3 posts omitted. Click Reply to view.
>>
Reuben Drillygold - Tue, 27 May 2014 14:52:52 EST ID:CjiZuQru No.31811 Ignore Report Quick Reply
You could always install Greenshot...
>>
Sophie Puttingdock - Thu, 29 May 2014 03:25:40 EST ID:Msvl44MA No.31825 Ignore Report Quick Reply
1401348340199.jpg -(94382 B, 600x419) Thumbnail displayed, click image for full size. 94382
>>31811
>over '20 language plugins'
>Microsoft Office plugin, Jira plugin, Dropbox plugin
>plugin
>'light-weight' screenshot software tool

Why would I need this. This is too complicated
>>
Phyllis Himblehood - Sat, 31 May 2014 18:41:35 EST ID:CjiZuQru No.31842 Ignore Report Quick Reply
>>31825
I personally consider pressing prntscrn and then clicking 'save to file' not in the category 'too complicated'.
>>
Phyllis Pankinbick - Sun, 01 Jun 2014 04:58:22 EST ID:Msvl44MA No.31843 Ignore Report Quick Reply
1401613102073.gif -(890038 B, 300x225) Thumbnail displayed, click image for full size. 890038
Enjoy using greenshot and its 300 menus then.

I cant even hit printscreen without having this massive bullseye show up and take an extra step of dragging over the entire screen.
>>
Nell Navingridge - Tue, 03 Jun 2014 13:04:20 EST ID:CmcHTLaD No.31856 Ignore Report Quick Reply
>>31842
If that's all you need, there's easier ways to do that.

I agree with >>31825 that a lightweight screenshot program doesn't need all that shit. But I don't mind selecting an area because I hardly ever screenshot a full window/screen.


What would a car look like... by Shit Ciddlewell - Thu, 29 May 2014 12:54:14 EST ID:N+MeFrD2 No.31830 Ignore Report Reply Quick Reply
1401382454206.jpg -(63609 B, 578x325) Thumbnail displayed, click image for full size. 63609
... if it were designed by someone who never drove and had no knowledge of the basic engineering of an automobile.
7 posts and 2 images omitted. Click Reply to view.
>>
George Bovingstock - Sun, 01 Jun 2014 16:10:17 EST ID:rRheCN7V No.31846 Ignore Report Quick Reply
>>31844

>boohoohoo PHP has multiple methods for accomplishing the same task you shouldn't be allowed to do that!
>Citing quotes from the PHP 2 manual as justification for some of his arguments (Current version is 5)
>Complaining about the @ warning suppressor doing the job it was designed to do
>Obviously has never heard of xdebug but complains about PHP debugging being "too hard" anyways

Yeah I'd take what this guy says with a grain of salt. Looks like he's one of those perl dorks that expects every language to have more than 25 years of codebase behind it immediately, otherwise its immediately written off as "badly designed." Smells like he didn't wanna take the time to build up a proper toolchain for doing PHP dev (this is by design...PHP isn't a one size fits all language because *gasp* people have different development styles) and so he whines about PHP not doing what he thinks in his own mind it should be doing.

I'll agree with him that the syntax of function names and arguments orders isn't very intelligently thought out ... but that's why you go to php.net and immediately see the full documentation for the function in question instead of whine to the internet. PHP might not be very smart to use for some sort of high criticality application with tight process control, but I can get a rough prototype of what I want running and out the door while you're still getting your development pipeline configured and set up in a more formal language/framework.
>>
Jack Drittingstit - Sun, 01 Jun 2014 21:46:48 EST ID:vhgZIlcV No.31848 Ignore Report Quick Reply
>>31846
So, what are your counter-arguments for:
== and ===
:? being left associative
ridiculous coercions

@ does what it was designed to do. However silencing an error shouldn't be something you want to do so often, that a language should let you do it in one chacater. Maybe they should've first implemented a sane (in)equality comparison.

Saying that a linter exists does not mean the language itself isn't broken. It means someone applied a band-aid. Or in some cases possibly a tourniquet and a splint.

And ending up with actually constructive conversation: Yes, PHP might get you done faster than Java, but how about python? To me it seems relatively light for fast prototyping and reasonably well thought out (well, excluding the 2 vs 3 fight and its reasons).
>>
Nell Serrypure - Mon, 02 Jun 2014 16:15:10 EST ID:CjiZuQru No.31851 Ignore Report Quick Reply
>>31846
The article mentioned isn't recent but there are quite a few points he makes are still valid. Such as the ?: example where the evaluation ends up outputting the incorrect result, the inconsistencies in the (in)equality operators and a few more. I even tried out a few examples on writecodeonline.com and they are still true.

Inconsistencies in the language behavior makes writing deterministic(and thus predictable) software incredibly difficult. And when it is difficult to write deterministic software one easily introduces bugs or worse, security holes leaking sensitive information such as passwords or credit card data.

Most programmers learn to program on their own by writing tons and tons of software. A beginning programmer in PHP has ample opportunity to learn bad coding habits that are difficult to unlearn. This does indeed lead to programmers that have different styles and preferences. But those styles and preferences aren't necessarily a good thing if they result in low-quality software. If too many programmers with different preferences work on the same piece of software it will end up being nearly impossible to maintain. By restricting freedom a language can enforce certain standards that lead to both more maintainable code and less defects.

But language discussions are always the same: everybody screams, everybody flicks off the other side, sometimes a few curse are thrown around and then goes back to using their own language/framework of choice feeling all superior thinking their code is the bomb.
>>
Jack Sundleware - Tue, 03 Jun 2014 07:17:33 EST ID:ZMQnkpih No.31853 Ignore Report Quick Reply
>>31848
>@ does what it was designed to do. However silencing an error shouldn't be something you want to do so often

Error handling in PHP is just fucked in general. Between the mix of having functions return null/zero on failure vs throwing exceptions, the set_error_handler that only handles some errors and the seeming inability to get basic information after a failure without leaving normal flow leads to an absolutely maddening experience.

>Yes, PHP might get you done faster than Java, but how about python?

One thing I will say about PHP is that it is very fast and easy to throw something online. Getting a server environment going with apache and python is a bit of a pain in the ass and you're likely not going to even have the option in shared hosting environments. Being "the VHS" of server-side web languages is a pretty killer feature.

>>31851
Excellent post.
>>
Isabella Gemblehark - Thu, 05 Jun 2014 14:00:38 EST ID:2PLGUfus No.31875 Ignore Report Quick Reply
>>31851
Bad habits like which? I think it'd be beneficial to everyone to list them.


android app by Fanny Niggerlock - Sun, 01 Jun 2014 21:54:54 EST ID:3ZEO0NyM No.31849 Ignore Report Reply Quick Reply
1401674094948.png -(374236 B, 425x394) Thumbnail displayed, click image for full size. 374236
Few nights ago I was really high and made this pointless application. It generates random "words of wisdom" and results can be quite fun. I really shoud be doing something with more sense

https://play.google.com/store/apps/details?id=cat.space.devinetruthofrandomness
>>
Fucking Puddlestock - Mon, 02 Jun 2014 15:27:35 EST ID:FaQqdZHU No.31850 Ignore Report Quick Reply
Seems legit


Blight - A Tox Client by Priscilla Sozzleridge - Sat, 10 May 2014 21:11:11 EST ID:f8Tifq2B No.31712 Ignore Report Reply Quick Reply
1399770671131.png -(23141 B, 814x609) Thumbnail displayed, click image for full size. 23141
Perhaps you are already familiar, but to those who don't browse the future's technology board on an hourly basis, I'm writing a program called Blight, which is a GUI client to the Tox library. Tox is a GPLv3+-licensed library that enables distributed, encrypted, P2P instant messaging and voice and video chat.

Blight is written in Racket and utilizes the wrapper libtoxcore-racket (which I also maintain). Currently, Blight will run on any system that can install Racket and compile Tox (I have yet to setup Windows builds, but that shouldn't bee too difficult to figure out). It's in very early development - any help would be greatly appreciated - but after the developers working on the Tox core complete some major changes to the codebase, I hope to get text chat working.

If you'd like to take a look at Blight, it has a GitHub repo over here: https://github.com/lehitoskin/blight
The Tox repository is located here: https://github.com/irungentoo/ProjectTox-Core

People have been suggesting I keep the codebase as functional as possible (if purely functional is not an option, since racket/gui is object-oriented), one of the ways is to remove set!'s, which I have mostly done. There are still set!'s in the code and they are for the loop I use to obtain the Tox ID from data-ptr and place it into my-id-hex as well as save the tox information to the tox data file. I'm not sure how to go about obtaining the Tox ID without using set! to append more data to my-id-hex while iterating through data-ptr.
>>
Simon Forryford - Sat, 10 May 2014 21:49:54 EST ID:2PLGUfus No.31713 Ignore Report Quick Reply
>>31712
That's a pretty cool shindig. Are you looking to make a CLI based version as well or just pure GUI? I think hitting the *nix neckbeards could help you in terms of getting it testerd.
>>
Ian Dobbersat - Sat, 10 May 2014 21:53:44 EST ID:+7jdeaAb No.31714 Ignore Report Quick Reply
>>31713
There are several clients for Tox, including a CLI in C.

But this one is in Racket and aims to be a GUI.
>>
Priscilla Sozzleridge - Sat, 10 May 2014 22:18:38 EST ID:f8Tifq2B No.31715 Ignore Report Quick Reply
>>31713
CLI has already been taken care of with Toxic.
>>
Nell Blibberpadging - Sat, 31 May 2014 17:45:17 EST ID:xpuLtmon No.31840 Ignore Report Quick Reply
E76C1C9029322D243D12A95C69A5DA3E0A73A5AFFD421604721F6E1CD41BEF3978EA35AEF6C0


security and AI by Henry Panninglot - Thu, 17 Apr 2014 07:57:50 EST ID:QTrEIfu8 No.31551 Ignore Report Reply Quick Reply
1397735870317.jpg -(705009 B, 1024x767) Thumbnail displayed, click image for full size. 705009
its what Interests me the most
what should i learn/start with to get into this?
2 posts omitted. Click Reply to view.
>>
Edward Guppertatch - Sat, 19 Apr 2014 08:21:38 EST ID:mQxGqmde No.31565 Ignore Report Quick Reply
>>31559
>hacker retreat
that was 500$/month last time i checked
nb
>>
Edwin Clidgeforth - Sun, 20 Apr 2014 16:28:46 EST ID:SVZjhRzL No.31575 Ignore Report Quick Reply
http://www.metacademy.org/ has all AI/Machine Learning "roadmaps for learning" online you may be interested in.

>>31565
500Euros per month, which is dirt cheap compared to N. American "hacker schools" which cost ~$17,000 and they only teach Ruby and Node.js
>>
Rebecca Nittingnet - Tue, 22 Apr 2014 12:39:28 EST ID:Ect3nOxE No.31598 Ignore Report Quick Reply
Lots of math
>>
Matilda Worthingstone - Tue, 22 Apr 2014 12:40:07 EST ID:zae84Wsy No.31599 Ignore Report Quick Reply
Lots of math
>>
Thomas Famblenat - Fri, 30 May 2014 18:17:06 EST ID:ZLNX/XLH No.31835 Ignore Report Quick Reply
google: Certified Ethical Hacker, myabe that will help you a bit.


a little experiment by Sophie Hinningpack - Thu, 29 May 2014 04:06:36 EST ID:OQfQ5dE/ No.31826 Ignore Report Reply Quick Reply
1401350796794.png -(103652 B, 265x265) Thumbnail displayed, click image for full size. 103652
hello there, how are you /g/?
i want to learn more by doing small projects/tasks, and i would like to share a thought with you. let me explain everything first:

me and a friend take care of a computer lab in a school-alike complex (they make training courses for graphics, 3d drawning and so on), mostly for fun we made a cryptocoin, took the litecoin source, changed stuff, the same procedure. We obviously want to mine it since we got the opportunity and authorization to use the machines in the lab we manage. we need this in autopilot so it runs everyday for like a month, for convenience only when the machines are idle . the idea is the following:

-small c++ application that controls ufasoft miner, placed in \mining\
-low level mouse hook (using a dll, SetWindowsHookEx and SetWindowsHookEx ?) with timers, so the application can check every 30 seconds if the mouse is being used, if not start ufasoft with arguments (pool,user,pass,..) but keep doing checks on the mouse every 30 seconds, this time if one check returns a movement of the mouse pause/kill ufasoft and go back checking the mouse.

the application will be a simple "controller", i just need a way to check for mouse usage (can be movement, buttons clicks, anything) in that kinda of loop, so when the students are using the machines it wont clog them up and as soon as they leave they will start mining our cryptocoin.

im more or less new to this kind of stuff, but i really like how it works, the various steps and the fact that it can run on autopilot, i just have some troubles figuring out how to do the mouse checks that way, more specifically how to loop them correctly. i hope some kind soul can clear my mind..
>>
Sophie Hinningpack - Thu, 29 May 2014 04:08:06 EST ID:OQfQ5dE/ No.31827 Ignore Report Quick Reply
oh. tried to ask on /g/ but this proxy is banned there. /prog/prog/
>>
Sophie Hinningpack - Thu, 29 May 2014 04:37:30 EST ID:OQfQ5dE/ No.31828 Ignore Report Quick Reply
im using this http://stackoverflow.com/questions/17502485/how-do-i-use-setwindowshookex-to-filter-low-level-key-events
except with WH_MOUSE_LL and MOUSEHOOKSTRUCT. from what ive understood it would be better to use LowLevelMouseProc, and if possible (?) check WM_MOUSEMOVE and somehow make it return true or false, so the timer can adjust on that.. is this the right approach?


Noob General. by Sherbert - Tue, 27 May 2014 16:43:41 EST ID:D7aosjDF No.31813 Ignore Report Reply Quick Reply
1401223421241.png -(578676 B, 858x450) Thumbnail displayed, click image for full size. 578676
I'm absolutely positive this has been posted here 100 times over, but could someone give me advice on where to begin my quest to become a game designing/programming mad scientist?

My ONLY experience with programming outside of reading a few C/C++ books back in 8th grade(5ever ago) was and is using codeacademy now and then to practice python/Javascript.

My main issue is that I don't understand how these languages are applicable outside of the codeacademy format and I feel that's partially my fault and codeacademy's. I'd really like to be able to make video games, a beat sequencer/famitracker type program, and just general programs on Windows.

If someone could give me a general rundown of the language types/which I should be using for the aforementioned purposes that'd be fantastic. <3

tl;dr ~~~ little - no experience with programming looking for guides/tutorials/resources to how I can get started in practicing and gaining skill.
>>
Barnaby Gendlebotch - Wed, 28 May 2014 13:32:45 EST ID:k1M9K1j7 No.31818 Ignore Report Quick Reply
Start by writing a simple game, like Pong or Mastermind or Minesweeper - learn on the job. Python and JavaScript are good choices, JavaScript especially since you can make it live on a web page for people to play and give feedback. Don't just make it work, though, keep refactoring the code and make it as conceptually efficient and elegant as possible. When you're done, write a slightly more complicated game, like Tetris or Breakout or Space Invaders. Then make some more games.
>>
Oliver Blarringville - Wed, 28 May 2014 13:44:18 EST ID:CmcHTLaD No.31819 Ignore Report Quick Reply
Try looking at other people's code as well. This game's pretty fun http://candybox2.net/source_code.html
>>
Graham Dallygold - Wed, 28 May 2014 13:47:42 EST ID:CjiZuQru No.31820 Ignore Report Quick Reply
>>31813
As posted before me: start by writing small games(guess the number, hangman) and expand into larger and more complex games as time progresses. However, the biggest problem most people run into when beginning programming is either: how the hell do I organize this? or Where do I start?

The solution to the second question is to break up your problem domain into smaller ones. If you would be developing a hangman game, you could break down the problem into smaller ones: pick a word from a dictionary, read a letter from the console, compare user input to the chosen word, keep track of all user input, winning condition when player guesses the complete word and losing condition when the tries run out.

As you can see: by breaking up your problem into smaller ones you end up with what almost looks like pseudocode. While this may seem logical, most people appear to skip this step leading to overengineering or underengineering as they either think the problem is harder/easier than it is.

Only write code for the things you need. Sure, you can leave all sorts of ends open in your software for expansion or extensions in case you need additional things in the future but you'll discover that by doing so you'll make it more difficult in the now to write code and in the future you will find it even more difficult as you have to deal with code you wrote while having less knowledge or while your idea evolved over time.

If you want to end up in the game industry having a solid knowledge of C++ is needed. However, C++ is an overly complex language for beginners and its easy to get stuck in a mess of a pointer errors, memory leaks and whatnot. Python is a nice language to start out.


Saw this on the internet. OOP vs Procedural for gamedev by Eugene Fudgefoot - Tue, 20 May 2014 01:03:43 EST ID:aoSxdohP No.31768 Ignore Report Reply Quick Reply
1400562223239.jpg -(6525 B, 275x185) Thumbnail displayed, click image for full size. 6525
>hello, i would just like to give my opinion and ask everyone elses opinion on something iv'e just sorta realized. first off i've been coding in c++ for only about 3 years and before that 3 years in qbasic, and some in pascal. after the first 2 years learning c++ i became completly obsessed with coding everything object oriented, maybe it's my obsessive compulsive over organizing self but everything i did, i had to do it the OO way. just recently i picked up the book "game programming all in one: SE", although when i first opened it up it seemed a little under my level, as i have already coded the basics like pong, pacmac, breakout, a mario clone, etc. but it 'teaches' the allegro library which i have never used and even though now i'm trying to get a project up in irrlicht i realized i have never made a full 2d game, with all the bells and whistles. so being the person i am, i start from page 1 and do everything (regardless how trivial it is sometimes), and made a seocnd discovery, the code is all in C. which means that there will be no OOP. well i just continued on and realized something ... OOP ruined progamming for me, and ruined making games. i remember in qbasic it wasnt a chore to make games, but when i started c++ and trying to do everything OOP it was a chore. for the time i spend trying to code an OO game framework i forget why i am even making a game, i forget why i started progamming in the first place. for instance say i'm making pong, now if i wanted to do it the OOP way maybe i'd do something along these lines. class CPaddle { private: int position; int speed; int color; public: CPaddle(); void move(); // ... blah blah }; class CBall { private: int x; int y; // blah blah }; now if i did this the 'procedural' way i would do this: struct { int position; int speed; int color; } paddle[2]; // i only need 2 paddles. struct { int x; int y; int speedx; int speedy; int color; } ball; // i only need 1 ball void movePaddle(int index) { paddle[index].position += paddle[index].speed; if (paddle[index].position >= // blah } actually i dont even see the point to have the ball a struct, i only have 1 ball, other than organization its pointless to have the …
Comment too long. Click here to view the full text.
2 posts and 1 images omitted. Click Reply to view.
>>
Cornelius Bubberwill - Fri, 23 May 2014 23:42:31 EST ID:pRXmkrU9 No.31787 Ignore Report Quick Reply
>>31786
FWIW, in Warsow (and other Quake derived engines?) the gamestate is encapsulated in singleton-kinda-like structs populated with loads of function pointers. That makes it easier to save state, i guess, or to debug or to extend and most of all to pass around one instead of several parameters. Then again it makes the code a fuckton harder to read without tools, because i never know where that damn function pointer was assigned, i.e. what it points to.

IMHO *struct x{int};* also makes sense for encapsulation and abstraction in contrast to *typedef int x;*, because there is no silent type conversion from struct to int, typedef OTOH seems useless in that regard.
i don't really understand what such typedef is useful for, may be for readability's sake.

Model View Control is the only OOP pattern i can think of, and that seems to be wildly popular. i have no clue why though, never wrote a program big enough for it to matter and no OOP anyway.
>>
Barnaby Fackleway - Sat, 24 May 2014 16:05:33 EST ID:gpyECHx+ No.31790 Ignore Report Quick Reply
>it would seem to me it would be a hell of a lot easier to just have some global functions and pass things around through the parameters. why even bother with the encapsulation?

i wonder about that too

  • personObject.getAge()
  • person.age()
versus
  • getAge(ageTable, personID)
  • ageTable.getAge(personID)
  • age(person)
>>
Oliver Sarringledging - Sun, 25 May 2014 00:07:46 EST ID:k1M9K1j7 No.31794 Ignore Report Quick Reply
1400990866119.jpg -(41436 B, 680x953) Thumbnail displayed, click image for full size. 41436
>>31771
Your example isn't a good argument for OOP. It recommends only heterogeneous collections and polymorphism. A language with variants and function overloading would do as well.

>>31790
There are languages in which person.age() and age(person) are equivalent expressions.

>>31768
You can do OOP in
http://www.cs.rit.edu/~ats/books/ooc.pdf
http://www.fritzsolms.net/sites/default/files/documents/STCD_C.pdf

The point of a singleton is to guarantee that just one instance exists. It's for things like database, environment and renderer, where one is necessary and more are bad.

The purpose of OOP is to encapsulate state behind an interface. It means you can protect your data which is useful for a robust data structures and applications. It can eliminate redundancy in code - with global functions, you may find yourself passing the same parameters each time. Ever used a set of functions that require a connection, like for a database or ftp? How about Win32 or GDI handles? OOP can help with resource management and greatly simplify the code that needs to be written.
Comment too long. Click here to view the full text.
>>
Betsy Semmertare - Wed, 28 May 2014 02:48:18 EST ID:gpyECHx+ No.31816 Ignore Report Quick Reply
>>31794
>There are languages in which person.age() and age(person) are equivalent expressions.

although having equivalent functionality
person.age() is usually meant to be stored/processed/cached with other person stuff like person.location() and person.health()
whereas, age(person) is usually meant to be stored/processed/cached with other age stuff like age(monster) and age(tree)

>The purpose of OOP is to encapsulate state behind an interface. It means you can protect your data which is useful for a robust data structures and applications.

encapsulation can be done outside of oop
age(person) as a retrieval function is already different than age[person] as an array
behind the scene, the data could be represented by birthday table,
with age() grabbing birth date and current date to calculate age
age() behavior could even be extended in the future to check operating system to know whether to use martian year or earth year
>>
Betsy Semmertare - Wed, 28 May 2014 03:21:07 EST ID:gpyECHx+ No.31817 Ignore Report Quick Reply
typo: the above should be
*interface* encapsulation can be done outside of oop

interface encapsulation should not be confused with data encapsulation


get into secured wi-fi's with passwords by Oliver Gannerfid - Sun, 25 May 2014 14:52:29 EST ID:10nd4ZyO No.31796 Ignore Report Reply Quick Reply
1401043949039.jpg -(1992143 B, 3264x1836) Thumbnail displayed, click image for full size. 1992143
What is the name of a good program you guys know that would have someone gain access to secured wi-fi?
*academic purposes only
>>
Caroline Heshbitch - Sun, 25 May 2014 16:03:25 EST ID:oYcIymyc No.31797 Ignore Report Quick Reply
Airsnort. But you better hope the target is WEP. If not then sorry kid you're not getting into your neighbor's wifi to jerk it to hentai because mommy and daddy took the internet away.
>>
Angus Sobblefuck - Mon, 26 May 2014 12:43:34 EST ID:ZMQnkpih No.31802 Ignore Report Quick Reply
WEP is easy if you can get a decent selection of packets. They have rainbow tables for wpa, but I've never used them.
>>
James Dungerhood - Mon, 26 May 2014 21:48:06 EST ID:xtelIQ1k No.31805 Ignore Report Quick Reply
There are online services that will do a giant dictionary attack against WPA for a reasonable fee.
>>
Albert Goodstone - Tue, 27 May 2014 02:07:51 EST ID:3K5aXY2t No.31808 Ignore Report Quick Reply
>>31796
Reaver works on WPA2 sometimes but takes anywhere from 3 to 10 hours to crack.


Knuth books by Faggy Cuvingstidging - Tue, 27 May 2014 00:55:03 EST ID:i2MVGmFT No.31807 Ignore Report Reply Quick Reply
1401166503152.jpg -(103304 B, 400x301) Thumbnail displayed, click image for full size. 103304
Where can I find Donald Knuth books?
>>
James Dungerhood - Tue, 27 May 2014 02:13:17 EST ID:xtelIQ1k No.31809 Ignore Report Quick Reply
The Information Super Highway might have them. Ask your librarian.


<<Last Pages Next>>
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
Report Post
Reason
Note
Please be descriptive with report notes,
this helps staff resolve issues quicker.