[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vr / w / wg] [i / ic] [r9k] [s4s] [vip] [cm / hm / lgbt / y] [3 / aco / adv / an / asp / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / qst / sci / soc / sp / tg / toy / trv / tv / vp / wsg / wsr / x] [Settings] [Home]
Board
Settings Home
/g/ - Technology



Thread archived.
You cannot reply anymore.



File: 1275769859420.jpg (131 KB, 800x800)
131 KB
131 KB JPG
What are you working on, /g/?

Old thread: >>59490616
>>
>>59496107
Thank you for using an anime image, let's all love lain.
>>
>>59496131
But I already love Lain.
>>
>>59496107
I'm learning how to make an operating system with osdev
>>
>>59496031
Well yeah, recursion as a concept is easy, and even in application it's easy enough (actually got to use it on my own for initial window placement position based on resolution) but my professor's the type of guy who says one thing but means another AND doesn't like it when students stray too far away from what they're "supposed" to know at that point. Not exactly a killer combination when it comes to projects.
>>
how do I display the results of a division in racket and not the operation?

(display (/ variable 4))
actually displays (16/4) rather than (4)
>>
>>59496242
(display eval(/ variable 4))
>>
>>59496265
?: literal data is not allowed;
no #%datum syntax transformer is bound in: 5569/300
>>
I'm working on defeating my inability to sit down and do work. It's not easy.
>>
https://github.com/asweigart/my_first_tic_tac_toe/blob/master/tictactoe.py
>>
>>59496364
Get a rope and tie yourself to your chair
>>
>>59496441
oh dear
>>
>>59496441
>(This project is a joke.)
>>
File: 1805486.1024.jpg (63 KB, 1024x1024)
63 KB
63 KB JPG
>>59496441
>>
>>59496486
>codegenerator Initial add.
>README.md Some people don't realize this is a joke.
Huh.
>>
File: 76512876143.jpg (11 KB, 180x176)
11 KB
11 KB JPG
>>59496441
>>
Client wants me to convert an XML feed with regularly updated data to his database and have the changes reflect every time the XML changes
Fuck my life
>>
>>59496456
I'l probably just play videogames or shitpost on /dpt/ if I do.
>>
>>59496547
that should take 10 minutes tops.

git gud pleb
>>
Are these recursive rules the same?

c -> a || a c

and
c -> a || c a
>>
What external libraries do you use? Or are you all not invented here programmers?
>>
>>59496556
10 minutes for an autist like you but I have shitposting and watching muh videos to do and work is taking away from it
>>
Which one is more suitable and easier for simple GUI applications: Qt or wxWidgets?

I just started learning Qt after learning C++11, and the lack of standard library usage kinda bothers me. But I guess in the real world, C++ programmers don't care so much about the standard library?
>>
>>59496580
pleb
>>
>>59496595
Qt because you can go with QML which is amazing for quick GUI/layouting.
>>
>>59496574
Let's see... an OpenGL wrapper, a library for reading native drawing tablet input, and a handful of utility libraries ripped from Github because I don't feel like doing my own Matrix math or filetype decoding.
>>
>>59496600
loser
>>
File: dkh3ly3saw9y.jpg (48 KB, 540x876)
48 KB
48 KB JPG
Can someone post that image with the huge list of beginner programming projects?
>>
>>59496623
still pleb
>>
>>59496613
cool

Which language(s)?
>>
>>59496639
Prolog and a little bit of turbo pascal
>>
>>59496574
Depends on the project. For the current one I'm using Boost.Filesystem, JsonCpp, Lua, Sqlite3, and SFML.
>>
>>59496486
Indeed. It's written in Python after all.
>>
>>59496636
still loser
>>
>>59496574
I generally despise external libraries because of how annoying they make building your program - especially if they use different build systems and recursively has more external deps.
If I do use one I tend to gut it and include it essentially inline in my own sources.
But some sane libraries I so use are stb's image, vorbis and truetype.
>>
>>59496595
You have to realize that the STL is not that old.
Most of it came with c++11 and was buggy shit in the beginning.
The C++ standard works slowly, where stuff like Qt and boost can react faster.

Qt is fine for making graphical applications.
It is easy to write, and mostly gets out of your way.
>>
>Python programmers

https://github.com/asweigart/my_first_tic_tac_toe/blob/master/tictactoe.py
>>
File: project.png (106 KB, 1386x705)
106 KB
106 KB PNG
>>59496639
Java. I get why it gets a bad rep, but it's quite comfy.

Man, I really need to implement spline interpolation for my strokes already.
>>
>>59496713
>posting the same link twice

kys please
>>
>>59496727
how can a language be "comfy"?????
>>
What's up with MSVS?
I have a project I have been working on and I figured I'd attempt to build it on Windows, and while the project builds fine on Linux using either clang or gcc with -Wall -Werror, MSVS15 throws a fuck ton of errors.

Is the C++14 support incomplete or are gcc/clang breaking some standard rules because they can figure a better way?
>>
>>59496787
How can a language be comfortable? Is that a serious question? I find it hard to believe anyone who has ever used C++'s virtual function maps or Javascript's dynamic typing would ever ask how Java's implementation of object hierarchy could be comfortable.
>>
File: 1438211461278.jpg (317 KB, 650x2600)
317 KB
317 KB JPG
Best library for Graphical UI in C++? GTK+? X? Qt?

Looking for a mix of good performance and ease of use.
>>

Shape shape = new Shape();

shape.drawACircle(50,4,"Blue",50,50);



There is nothing wrong with this
>>
>>59496816
I think you have to enable C++14 support manually with some project settings in MSVS. At least that's how it used to be; I'm not too familiar with the IDE these data
>>
>>59496664
If it was written in {your favorite language} would it be less of a joke?
>>
>>59496820
>>59496787
comfy is an adjective that millennials use because they have tiny vocabularies, and it denotes a generic feeling of pleasantness, nothing more.
>>
>>59496834
where is it being drawn?
>>
>>59496829
Qt, no question.
>>
>>59496834
Could you draw a circle without using the drawACircle function?
>>
>>59496820
java is anything but "comfy" though
so many inconceivably dumb design decisions that just dont make any sense
it boggles my mind how shitty java really is when you try to use it for anything serious
>>
can someone tell a javascript scrub why the second one logs undefined

 var JData = {

"2082": {
"etitle": "Wages Of Fear, The",
}
};

console.log(JData[2082].etitle);

for (var x in JData) {
console.log(x.etitle);
}
[/code}
>>
>>59496858
Isn't Qt closed source?
>>
>>59496852
>it denotes a general feeling of pleasantness
Yes, in other words comfortable. Man, I thought I was a grandpa, but seeing the way these 20 year olds react to each new abbreviation the younger-uns come up with makes me glad I'm not aging as fast as you.
>>
>>59496846
I think I looked it up the other day and it said that it's enabled by default, and I'd like to think that's true since most of the C++14 features that my project uses work just fine, it's just these few things that throw a fit and I'm not sure who to blame.

For instance this code:
struct Value
{
unsigned min = 0;
unsigned max = 0;
};

std::vector<Value> values{};
values.push_back({5, 10});


Works fine with GCC/clang but MSVS bitches that you cannot bind an initializer list to const Value &.
>>
>>59496892
No.
>>
>>59496868
Keep telling yourself that. Me? I'm getting back to work. Enjoy your nested scopes.
>>
>>59496892
GPL is basically "closed source" to everyone but hobbyists and linux developers.

No large company wants to touch GPL code, many won't even touch LGPL code.
>>
>>59496868
Java is the king for enterprise business software no other language does it better
>>
>>59496892
Qt is open source and it's dual licensed.
You can use it even comercially as long as you link dynamically.
>>
>>59496881
for (var x in JData) {
console.log(JData[x].etitle);
}
>>
>>59496922
C# does it better. In every single way.
>>
>>59496242
It's not really the operation but the result in a factorial form, as most lisp derivates actually store and handle numbers in that format instead of the normal floating point numbers or integers.
>>
>>59496820
>How can a language be comfortable? Is that a serious question?
Yes. It seems to impossible by definition.
>>
>>59496939
oh

thanks man
>>
What do people mean by "objects" in a non OOP language like C? I've tried searching for it but I just get introductions to OOP.
>>
>>59497015
Probably primitive/struct instances.
>>
>>59497015
What do you think an object is?
In it's simplest form, it's just a compound type that holds stateful information, aka a struct.
>>
>>59496922
>Java is the king for enterprise business software no other language does it better
lol
>>
>>59497015
>non OOP language like C
C is an object-oriented language.
>>
>>59496922
List<Byte> dataBuffer;

public void write(int data) {
byte[] bArr = ByteBuffer.allocate(4).putInt(data).array();
for(int i = 0; i < data.length; i++) {
dataBuffer.add(data[i]);
}
}


sick language bro :^)
>>
>>59497015
Ask in >>59495452
>>
>>59497061
Only objective C. Regular imperative C is not
>>
>>59497015
Outside the OOP context it's just a piece of data. Can be a single primitive or multiple primitives. Generally they assign some greater meaning to it. Like a bitmap object would (possibly) be a pointer to image data with width and height, maybe even pixel format.

But the interpretation you get from context is usually the right one. Because there's no clear meaning to it outside of OOP or where it's been defined.
>>
>>59497074
>Regular imperative C is not
Are you telling me that objects are not easily implemented in C?
>>
>>59497074
There's nothing stopping you from doing stupid shit in C to emulate OO features in other languages.
Those languages just hide details from you, like including a self pointer whenever you call a member function of a class.

does this look nice?
obj1.doWork(&obj, ...)
>>
>>59497090
This:
http://onsmalltalk.com/objects-classes-and-constructors-smalltalk-style
Is not easily implemented in C.

You can implement it in C but it's not easily implemented.
>>
>>59497090
C does not support inheritance or polymorphism, therefore it is not object oriented. It is object based.
>>
Is "object" the most overloaded term in computer science?
>>
>>59497090
Classes, Interfaces, Member functions, Abstract classes, Polymorphism, Generics
>>
>>59497105
>OOP is an implicit this pointer
There's way more to it than that.
>>59497115
>C doesn't support polymorphism
It does.
>inheritance
Most 'oop' languages do this as poorly as you do it in C honestly.
>>
>>59497115
>C does not support inheritance
Wrong.
>or polymorphism
Wrong.
>>
>>59497115
>polymorphism
Did you have some kind of head injury in childhood?
>>
>>59497120
It's certainly up there. Any of the terms describing implementation details on an abstract level tend to be very overloaded.
>>
>>59497120
It's up there at least.
>>
Fact: OCaml programmers are the most powerful race in the world.
>>
>>59497131
Can you name some actually useful features of OO languages?
Because stuff like operator overloading, function overloading, and polymorphism were a mistake and have very little practical application outside the narrow examples in programming textbooks.

I can't even think of a single use for operator overloading besides matrix multiplication and string concatenation.
>>
>>59497150
Are you implying Ocaml programmers are aliens descending from the aliens that built the pyramids?
>>
>>59497167
They actually are their ancestors.
>>
>>59497163
>I can't even think of a single use for operator overloading besides matrix multiplication and string concatenation.

Well yeah there's your answer, when you need to operate on some data members but don't want to do it on the basis of individual members you can use operator overloading and it's not just useful for string concat and matrix manipulation, you could apply that to also say, color class, date/time class and such.

Function overloading is also quite useful.
>>
>>59497150
This is a strictly non-Jewish thread.
>>
>>59496834
Shape square = new Shape();
square.drawACircle(50,4,"Blue",50,50);


i don't like
>>
>>59497163
>matrix multiplication
You don't think Matrix Multiplication gets used literally billions of times per second in almost every single video game?

>How about vector math?
>How about simplifying your libraries to make it easier for other devs to use?
Nah. Not very useful at all my dude
>>
>>59496834
Why not
Shape shape = new Circle(50,4,"Blue",50,50);

shape.Draw();
?
>>
>>59497120
I Cee what you did there
>>
File: anal beads.png (34 KB, 841x613)
34 KB
34 KB PNG
>>59497163
>I can't even think of a single use for operator overloading besides matrix multiplication and string concatenation.

Heh, this kid doesn't even use duct tape
>>
>>59497163
>Because stuff like operator overloading, function overloading, and polymorphism were a mistake and have very little practical application outside the narrow examples in programming textbooks.
None of those are OO features. I'm surprised you picked those.
>operator overloading
Yeah it's certainly overrated. What it allows you to do outside of the obvious where it lets you do math is that it often lets you express non-math things in a different structure than function calls. Trivially obvious when you look at how you write them.

I don't know enough OOP to tell you what OOP actually invents (I've only written C++ 'OOP'). The idea of not allowing direct assignment to types where the fields would otherwise be plainly visible and accessible (private vs public). The rest is just old stuff. All I can see that OOP really gives you is orienting your program in terms of the abstract concept of objects (very often pertaining to the real world, as that's how it's taught).

>>59497230
It's no big deal really.
c=matmul(a,b);

vs
c=a * b;

are very similar and once you're used to the function call way of doing it I don't think you'd mind.
I won't deny that it's slightly prettier to have operator overloading.

But you should probably re-read the comment because he said math operations are a valid use for operator overloading.
>>
 
type Presses = Int
type Digit = Char
countPress :: [(Digit, Presses)] -> Presses
countPress p@[(dig, pre)] = foldr (\(a, b) -> (+) b) 0 p


Why is this giving me non-exhaustive patterns? it works when I only have one digit, presses pair though.
>>
>>59496834
Very unclear unless it's obvious from context what it does.
Is this drawing a shape on a screen via global state or is it drawing a shape into itself. So for instance a snowman might be a few circles at different offsets and a few lines.
Seems a pity to make it a member function when it could be a more generic thing.
>>
>>59497308
you use the pattern p@[(dig, pre)]
which only covers
[(_, _)]

i.e. a one element list
>>
File: bathroomtiles.png (6 KB, 733x162)
6 KB
6 KB PNG
>tfw your antidepressants finally kick in
>>
>>59497357
oh fuck im retarded, thanks. its working now.
>>
>>59497400
what text editor are you using?
>>
>>59497389
you're gonna burn out
>>
>>59497413

im using Vim. why?
>>
>>59497496
http://www.stephendiehl.com/posts/vim_2016.html
ctrl+f "case split"
>>
>>59497389
>meltdown in 3...2...
>>
>>59497496
>>59497513
here's another
https://github.com/eagletmt/ghcmod-vim
lookup GhcModSplitFunCase
>>
File: xxxsx.jpg (20 KB, 411x222)
20 KB
20 KB JPG
Is tokenization completely arbitrary? For example, in pic related the operators( = , ; ) are their own type and have no content. Is this the way it should be done? Is there a standard? Or is it all relative to how you plan to write your parser?
>>
>>59497539
Use a sum type
>>
>>59497539
desu that should have been
("operator", "=")
>>
What's the best text editor?
I've tried to get into vim, but I just find that sublime's project overview and switching makes it a lot easier to use for large projects.
>>
>>59497525

ok seems useful. Im new to haskell so i haven't bothered installing anything yet
>>
>>59497539
Yes its arbitrary.
You write it in a way that fits you best or you mimic someone else.
>>
>>59497702
just ask if you have questions
>>
I have an idea for a storage system. Unfortunately, I do not know how to program, and I am not going to because I really don't give a shit outside of this idea. Essentially, convert files into binary format, and hide it in images. I don't mean hiding values inside images themselves. That seems way too complicated. I mean hiding actual pixel values instead of pictures.

It could start off as something like a simple pixel grid, e.x. black is 0 and any non-black color is 1. Eventually it could be built up so that you need to know where a 'key' is inside of an image to decode it.

It wouldn't necessarily be for big files, more like in general, and as a back up if torrenting completely fails. The benefits to this system would be that files would be relatively easy to decode, take too much processing power for agencies and corporations to try to decode, and that they would require a human's eye (or trained AI) to even be flagged in the first place. It would also allow us to push the hosting of files onto image hosts rather than torrents. Eventually, files could be hidden in images in plain sight, requiring just the checksums and original image to be kept.


tl;dr Trick image hosts into hosting integrated files that would require humans or AI to even tell there's a file in it, because it would be based on pixels, not hidden file information. There are numerous options for free image hosting, and since it would take a lot of effort to even decide if a single image has additional content, it would be extremely easy to post essentially whatever you want and keep it there for awhile. Even if they made it check for resolution, you could just keep breaking up an image until it is in small pieces where you need all of them to unlock the hidden image.

tl;dr;tldr; Hide a file in a image so well that it requires a lot of effort to decide if there is a hidden file, and since it would need a key even if found it wouldn't be possible to crack.
>>
https://hangouts.google.com/call/b5qmmbqfdnedbmqepcls6n3mo4e

working on my own angular/react clone.
because I need to go beyond beyond
>>
Wage cucks, how do you deal with project managers?

>put on headphones to prevent distraction
>project manager shows up
>give estimate for feature X and answer obvious questions
>put headphones back on
>guy keeps showing up every 15-30 minutes till 5 o'clock

>help junior with a problem
>look to the left
>two project managers queue up next to my desk

>getting something to drink
>two project managers show up

>give estimate for 2.5 days for feature X
>project manager: "we promised the client to release feature X for tomorrow, good luck"
>>
>>59497700
vscode
>>
File: flat,800x800,075,t.u6.jpg (179 KB, 800x800)
179 KB
179 KB JPG
>>59496628
https://projecteuler.net/archives
>>
File: IMG_20170321_015959.jpg (296 KB, 1024x768)
296 KB
296 KB JPG
I've once been inside gdb for so long, that when I was afterwards playing with my doggo (who was being a bit too aggressive) I though it would be good if he bit me because I'd be able to look at the backtrace and fix the underlying problem.
For like 0.3 seconds I thought my dog segfaulted when he bit me and I could look through his coredump.
Don't do computers, kids.
>>
>>59497775
>what is stenography
>>
>>59497230
>You don't think Matrix Multiplication gets used literally billions of times per second in almost every single video game?
You wanna do that in batches, i.e simd operations taking an array of floats, a count and the operation, can't really use operator overloading for that (well not in C++ anyway, you need more powerful metaprogramming, i.e stuff at read time)
>>
>>59497828
Tell them to fuck off and schedule a meeting.
>>
>>59497700
Write your own, it's the only way to get one which works exactly the way you want.
>>
>>59497828
>give estimate for 2.5 days for feature X
>project manager: "we promised the client to release feature X for tomorrow, good luck"
The entire dev team literally quit at my last job because they wouldn't stop fucking doing that, and we never had time to so much as do a basic smoke test
>>
File: the power of kek.jpg (2 KB, 125x100)
2 KB
2 KB JPG
hey guys, best book to learn python 3 syntax? I already code in C, C# and javascript, intermediate level, but I wanna pick up python as well, just cause from trying it out a bit I saw it's super easy to code something up in 5 minutes.
>>
>>59497859
>stenography
wtf have I written. It's steganography of course.
>>
File: IMG_4371.jpg (44 KB, 922x940)
44 KB
44 KB JPG
>>59496441
So this was auto-generated right?
>>
>>59497932
Just read docs.python.org
>>
>>59497932
https://learnxinyminutes.com/docs/python3/
>>
>>59497828
>give estimate for 2.5 days for feature X
>project manager: "we promised the client to release feature X for tomorrow, good luck"
Just to be sure - you realize it's entirely their fuck up that they didn't ask you that at least 3 days earlier and they're trying to shove the fallout on your ass?
>>
>>59497952
yes, by copy-paste
>>
>>59497932
>hey guys
>code
>>>/r/ibbit
>>
>>59497859
What the hell does that have to do with stenography?
>>
File: IMG_4736.png (610 KB, 588x766)
610 KB
610 KB PNG
>>59498040
Hmm, could at least write some Python to generate more Python desu
>>
/g/uys, noob question here

I tried to run dev c++ on my computer and write some basic program. The program compiled and executed just fine (I think),but the black box-thing didn't appear.

Well it did appear about half a second before disappearing.

Any help with this? I wanna ask in sqt but that thread is bloated with nonsense
>>
>>59498177
>Using Windows
>>
>>59498090
damn, /dpt/ is so uptight about everything. Is it the lack of sex that's got you like this?
>>
>>59498223
Any other answer? Anyone?
>>
C is for Creative
>>
>>59498177
Run your program from Far Manager
>>
>>59498177
Try doing tools-->environment options-->check "pause console programs after return". Otherwise, because there's no "owner" of the console window, it disappears after the program finishes. If you want to be able to run the program outside of the Dev-C++ IDE, without it exiting at the end, I'd suggest doing something like placing getchar() at the end of main(), just before return, then the program won't exit until you press enter.
>>
>>59497894
I already told them to fuck off when I'm not working on their project. They snitched on me by telling the chief. The chief told me that I have to be more flexible. Work hard, play hard bla bla bla...
>>59497923
Our project manager clicks on random things in the application. That's our test. And I even have to ask them to do so explicitly, otherwise we end up releasing without having tested at all.
>>59497997
Technically, correct. But they'll tell you that you should've spent your free time on it. You have to give up everything for the customers.
>>
>>59498165
yeah,,,
>>
>>59498319
>You have to give up everything for the customers.
Sure, ok, but in this case you're just saving the ass of the project manager. I'd feel a temptation to stretch implementing the feature up to 3 days.
>>
File: uh.png (91 KB, 811x565)
91 KB
91 KB PNG
>>
>>59498405
Lambda calculus has no I/O!
>>
File: Paige_hair..png (239 KB, 610x341)
239 KB
239 KB PNG
>>59498259
>>
>>59498394
>you're just saving the ass of the project manager.
Correct. I also figured out that project managers try to force you into doing unpaid overtime so they get a bigger bonus. They get a bonus for each finished project within budget.
>>
>>59496107
>testing if a quantity is near 0
>forgot to put fabs in front of it
Holy shit I'm a fucking retard
>>
>>59498420
it returns an expression that can be interpreted to perform IO
>>
>>59498462
Yes.
>>
>>59498259
C for Cancer
>>
>>59496850
Yes
>>
>>59496107
Just a heads up for people working on windows, bullet 2.86 appears to have a showstopper which causes really large amounts of heap corruption.
>>
>>59498543
Can you justify it in {your favorite language}?
>>
>>59498550
>windows in charge of being operating system
>>
>>59498488
C is for Creative.
>>
>>59498314
#include <iostream>

using namespace std;

int main () //is this where I put that getchar thing?
{
cout<<"hello world!";
return 0;
}
>>
>>59498582
C is Cancer. C is a disservice to intelligent programmers. It has almost 0 features that a modern and intelligent programmer uses to be productive. Since C is such a timesink, it's popularity is falling more than any other languages in the market.
C is dying and it should die ASAP. C programmers are actually retards in general. C is a small language to grasp, exactly the kind of shit that makes things retard friendly.
C has no advanced features like C++ does.

But as a newfag you are kinda in the right direction. C is for newbies. Think of it this way:
During ancient times, counting to 10 was a big deal and a person who could count to 10 was considered to be "wise".

Fast forward a few century counting to 10 is so trivial we teach this to toddlers. Now toddlers appreciate the vast "knowledge" of counting to 10 while matured brains are busy with modern technologies.

C is from stone age and the people who still preach it is like overgrown toddlers that can't learn advanced things.
C doesn't have delegates
C doesn't have resizable arrays
C doesn't have strings
C doesn't have string concatenation
C doesn't have namespaces
C doesn't have exception handling
C doesn't have closures in the standard
C doesn't have unit tests
C doesn't have Function overloading
C doesn't have memory safety of any kind
C doesn't prevent memory exploits and has no bounds and runtime checks
C doesn't have dynamic method loading/creatin
C doesn't even have generics and templates
C doesn't have meta programming
C doesn't have mixins
C doesn't have higher order functions
C doesn't have contract programming
C doesn't have inner classes
C doesn't have function literals
C doesn't have array slicing
C has a very limited support for implicit parallelism
C doesn't even have string switches

C is a cancer that plagues the modern industry. If you want guaranteed memory exploits and security vulnerabilities in your program with timesink development period then use Assembly, not C.

Ban C
>>
>>59497163
>operator overloading, function overloading, and polymorphism
Not OOP.

>were a mistake
Kill yourself C fag. Overloading is fine when done with something like type classes. Polymorphism is an incredibly broad concept and without any polymorphism at all you can't do very much.

>I can't even think of a single use for operator overloading besides matrix multiplication and string concatenation.
Once you start abstracting a lot it becomes a god send. Abstract algebra and category theory stuff really benefits from it.
>>
>>59498606
Hold up. C, as of C11, has an equivalent for function overloading.
>>
>>59498606
yeah but does C++ have heterogeneous kind equalities?
>>
File: 1489530656576.jpg (49 KB, 600x381)
49 KB
49 KB JPG
>>59498612
>Not OOP
>Not FP
>Nothing
Litreally toddler toy rhymebook for 4 year olds
>>
>>59497163
operator overloading allows you to implement container classes while still having them act like arrays in syntax.
>>
>>59498606
>C++
>>>/oopt/
>>
>>59498606
C cucks REKT
>>
>>59498606
>>59498612
>>59498625
>>59498639
Which is better Java or C
>>
>>59498606
As a person who likes c what would you recommend for me to switch over to?
>>
Is dynamic typing really that bad? I find it pretty comfy to write.
>>
>>59498663
C.
>>
>>59498663
Java if you actually program
C if you masturbate over pointers and spend time fixing 87 undefined behaviors of your shitty fizzbuzz
>>
File: ein language.png (49 KB, 600x400)
49 KB
49 KB PNG
>>59498663
>>59498668
>>
File: Device driver.gif (1.43 MB, 260x167)
1.43 MB
1.43 MB GIF
>>59498606
C is the purest language. It operates at the same primitive level as the CPU. It's the only high level language that does this without adding overhead.

C is the only beautiful language.
>>
>>59498448
protip: just stop proving them you can do a task faster than you estimate. There is time for employee assessment and time for normal performance and every manager knows to separate it. It's your job as an engineer to provide them with the information on how many work hours it will take to finish a task so they can schedule it and estimate its cost.
>>
File: 1485764233138.png (372 KB, 954x768)
372 KB
372 KB PNG
>>59498606
I got a question


How will C tars ever recover?
>>
>>59498606
>"C doesn't have all the bloat that enables me to be a successful Pajeet"
Cry some more, baby bitch
>>
>>59498683
>Java
>better than C if you program

What has /dpt/ become
>>
>>59498698
>C is the purest language
Yeah pure SHITE
>. It operates at the same primitive level as the CPU
Not it's not. It's a high level language. If you like to pretend to work on a low level use ASM

C is ugly and outright puke inducing
>>
>>59498581
I have to make a vidya and have it run on windows.
>>
>>59498715
ground poo
>>
>>59498720
You and your retarded comments are puke inducing.
>>
>>59498668
Python

It reminds me of C but with training wheels.
>>
Null terminated strings were a mistake.
>>
File: 1489461328707.png (740 KB, 1834x1200)
740 KB
740 KB PNG
>>59498714
>bloat
These are called features you monkey. Too bad your primitive brain is unable to fathom the usage of these features
>>
LMAO at you ALL
/dpt/ is not about programming
It's only about C(ancer), Hasklel and animu
Join /oopt/ today
>>
>>59498678
Dynamic typing inserts branch instructions before every primitive operation, which cancels out all the benefits of modern CPU design.
>>
>>59498698
> C is the purest language. It operates at the same primitive level as the CPU.
But CPUs aren't "pure", it's a fucking mess of ad-hock hacks.
>>
>>59498733
C is an abstraction, it's not a low level language. Fuck off idiot.
>>
>>59498744
meant for >>59498732
>>
Someone asked why the gtk file picker is not fixed yet.
Because it's written in C. The file chooser widget is written in GTK+, which is one of the most popular C's GUI library. People know about this already.
>Why hasn't this been fixed
As a software developer, I would not touch obsolete POS language such as C, let alone GTK.
For me, it's easier to develop something else rather than fucking with obsolete featureless languagelet like C(ancer). Using C for anything but micro controllers and kernels is pants on head retarded, specially GUI. GUI is MEANT for Object Oriented Programming and C doesn't have that level of sophistication. Developing in C is literally a worthless timesink because C does not have anything to offer but timesink: C has no templates, operator overloading, exception handling, type checks, runtime checks, constructors, lazy evaluations, monads and the list goes on. If you are not hacking the very language itself with macros shitting all over the source files you wouldn't trivial things such as get function overloading.
C does not have exception handling. It's meant for 80's computing and the projects that are written in C are unironically stuck in the 80's: like GTK+
Even after you have gone through the agony of using a language that is a disservice to the intelligent programmers (Linus doesn't count, he's on a different level and not everyone is Linus), you have to worry about memory safety.
C is not memory safe. As if the timesink development was not enough pain, you have to test your program for possible security vulnerability. When K&R came up with C, it was an ancient time. C's priority was being able to produce binaries that can run in an 800MHz processor with 64MiB RAM that can fit into floppies. Security was NOT a concern.

Coincidentally, KDE file chooser has thumbnails and guess what language it's written in: it's C++.
>>
File: pajeetmyson.jpg (406 KB, 1834x1200)
406 KB
406 KB JPG
>>59498735
Shut the fuck up Pajeet.
All you can do is hide behind a mountain of buzzwords so others can't see your inability to write good C code.
>>
>>59498773
>GUI is MEANT for Object Oriented Programming
IMGUI is better than RMGUI though and IMGUI is procedural.
>>
File: 1361999120267.png (20 KB, 241x230)
20 KB
20 KB PNG
>>59498777
Trips of truth. How will anti-C fags recover
>>
File: images.png (4 KB, 236x213)
4 KB
4 KB PNG
>>59498777
>Function overloading
>Meta programming
>Mixins
>"BUZZWORDS"
This is an 18+ site. toddler
>>
>>59498783
>IMGUI is procedural
>written in sepples
>>
File: do i really want this.png (36 KB, 321x322)
36 KB
36 KB PNG
>>59498783
>redrawing the entire UI on each iteration of the event loop
>>
File: images.duckduckgo.com.jpg (58 KB, 414x414)
58 KB
58 KB JPG
>>59498777
>tail call elimination is now a buzzword
>>
>>59498819
IMGUI the concept, not the library.

>>59498821
There's nothing wrong with that now that GPUs exist.
>>
File: kukuru_despair.png (1.7 MB, 1366x768)
1.7 MB
1.7 MB PNG
>>59498606
Put me in the screencap
>>
>>59498822
It was always a buzzword.
>>
>>59498773
>MiB
Read up JEDEC papers, pajeet
>>
>>59498177
put
system ("pause");

before return 0
>>
>>59498844
Go back to >>>/a/
Brain dead weeb
>>
>>59498801
Get out, Pajeet.
>>
File: 1479106914008.png (289 KB, 1280x905)
289 KB
289 KB PNG
>>59498848
Booty blasted wintoddler spotted
>>
>>59498858
You haven't understood yet?
/dpt/ is for anime circlejerkers.
>>
>>59498867
Fuck off, C toddler
>>
>>59498606
C is an obsolete programming language for the programming techniques of the past.
>>
File: 161093861073.jpg (24 KB, 227x173)
24 KB
24 KB JPG
>>59498881
You first, baby Pajeet.
>>
>>59498871
RAM is measured in megabytes.
>>
>>59498883
C is a beginner programming language for low attention span autistic newbies that can't read a book more than 300 pages
>>
>>59498602
Put getchar() between the cout statement and the return statement.
>>
>>59498888
see >>59498858
>>
In what way is a WHILE cycle superior to a FOR cycle?

What can I do in a while cycle that I can't in a for?
>>
>>59498888
>C toddler
>Anime toddler
What a coincidence
>>
>>59498896
Programming languages have to be easy to pick up. This is a requirement for a usable language.

If I can't use your language in production within a day or two of the first time I hear about it, you've failed as a language designer.
>>
>>59498904
many loops can be easily expressed as a loop of arbitrary length that stops when some sentinel value is suddenly zero, this doesn't require a whole for loop
>>
>>59498918
Says who?
>>
>>59498847
Toddlers that can't fathom what they are and never used them will call it buzzword

Either sour grapes or extremely low self esteem. Nothing surprising from a C toddler
>>
File: 18241836546135.jpg (69 KB, 640x600)
69 KB
69 KB JPG
>>59498914
>>59498903
>He doesn't have a smug anime folder
>>>/ribbit/
>>
>>59498925
It's self-evident.

If you don't think it's self-evident, you're obviously an academic who's lost touch with reality.
>>
>>59498918
> If I can't use your language in production within a day or two of the first time I hear about it, you've failed as a language designer.
Wew, lad.
>>
>>59498918
>Programming languages have to be easy to pick up
Sorry no. Go stick to your beginner friendly toddler language book called K%R
>>
>>59498852
Also, use eclipse instead
>>
>>59498918
>If my low IQ brain isn't able to pick it up then it's your fault
C tards, everyone
>>
>>59498918
Probably the dumbest post I've seen this week
>>
>>59498939
Fuck off code monkey.
>>
>>59498932
>"He doesn't want to have bloat in his language"
>"what an entitled piece of shit"
>>
>>59498970
Developers call it features
Fizzbuzzers call it bloat
>>
C is for Creative.
>>
>>59498699
Should I overestimate in order to always finish on time?
>>
>>59498985
C is an insult to intelligent programmers
>>
>>59498981
No. Braindead retards call it features, so they can feel good hiding their incompetency behind it.
>>
>>59499009
Braindead dumb shit C toddles call it bloat because their monkey brain cannot understand how to use them.
>>
>>59498606
>It has almost 0 features that a modern and intelligent programmer uses to be productive.
Provide some examples.

>C is dying and it should die
Not until there's an acceptable replacement for the low-level stuff. Do you really want to be forced to write device drivers and kernels entirely in assembly?
>inb4 "I've never had to write a kernel so it's obviously not an important task"

> C is a small language to grasp, exactly the kind of shit that makes things retard friendly.
C is retard-unfriendly SPECIFICALLY because it's so simple. Virtually nothing is done for you, you have to do it all yourself from the basic components. A retard can be told "take this hammer and hit this nail". But give a retard a hammer and a box full of nails, he won't have any idea where to put them. That's why retards aren't good C programmers. They're fine as Java or Python programmers, where the house is 99% built and you just have to hammer the last few nails in, but in C all you get is a hammer, a box of nails, and a truckload of lumber. It's up to you to figure out how to put things together. C requires much more from the programmer than other languages, which is why it ISN'T a language for retards. The language doesn't tell you how to do things, and it won't stop you from doing utterly stupid things. It's designed to be used by people who know what they're doing, either when all those nice features simply aren't available, or when they're too inefficient for the required performance.
>>
>>59499002
Intelligent programmers always find their way with C.
And don't call yourself an intelligent programmer, because you're a moron.
>>
>>59498568
>{}
What is this supposed to be? A set? A block of code?
>>
>>59499009
>>59498970
>>59498847
>MUUUUUH BLOAT XDDDDDDDD
100 bucks say it's an undesirable NEET dwelling in the basement
>>
>>59499028
They can, and they could, but they prefer to code in a language that get shit done.
C is for Capable.
>>
My professor talks about a proper method/function being one that can go from start to finish without stopping somewhere in the middle because of some kind of statement, but he hasn't really ever gone into detail about ways to build this habit. Where's the best place to start with building this habit, reading HTDP?
>>
>>59499029
>Provide some examples.
Re read the post, C tard
>>
These people are beyond saving.
They can only jerk to animu, write C(ancer) or Hasklel.
Leave them, let them die.
Join the thread for real programmers: >>59495452
>>
can someone test this c++ program for me
[code[
int main(void) {
for (char* i=0;;(++i)=0) {new long long;}
}
[/code[
>>
>>59499033
Intelligent programmers don't bother with the incompetence of C
>>
>>59499047
>MUHHH FEATURES
>I CAN'T CODE WITHOUT MY 9001 AUTOMATIC ASS SWEEPERS
You're a shit programmer.
>>
>>59499077
I could hire you as a cleaner though.
>>
>>59498991
I'd be careful, but its still better than underestimating because lagging behind doesn't benefit anyone, not your manager and even less you.
>>
>>59499055
>They can, and they could
Ah, should they? Is it because your butt ravaged C toddler self said so?
>>
>Doesn't even have exception handling
C is a joke
>>
>>59499123
I think I already told you to shut the fuck up if you've got nothing interesting to say, Pajeet.
>>
>>59498733
Really the only things C and Python have in common are:
>they both have a lot of libraries
>they're both imperative

>>59498734
So what do you suggest? Pascal/Hollerith strings?

>>59498735
You're free to reimplement the features yourself when you need them. Or just use a library that someone else has written.
>>
File: 1488248151444.jpg (233 KB, 503x662)
233 KB
233 KB JPG
>>59499143
>le bloat ecksdee
>le pajeet exdi
Are C toddlers running out of arguments?
>>
>>59499161
>Library will fix the language level featurelessness
>>
@59499167
>le
>>>/r/ibbit
>>
>>59499167
>Le C toddler
>Le can't use muh features
Are Pajeets running out of arguments?
>>
>>59498958
No, don't do that.
>>
File: 1489681269874.png (790 KB, 3720x3720)
790 KB
790 KB PNG
Only skiddies are interested in C
>>
I write js code that looks like c. Is it bad fampai? Always forget about fancy fp shit
>>
>>59499192
>features are bad
Take a look at this edgy C expert karnel hacker master
>>
>>59498822
It's a buzzword because it's not something that should be considered a 'feature' or even worth mentioning. Changing a call to a jump and reusing the previous stack frame is an obvious and straightforward code transformation you'd have to be braindead not to do, and every non-retarded compiler for every language does it.
>>
File: 1461381260301.jpg (278 KB, 1261x1000)
278 KB
278 KB JPG
>>59496628
>>
>>59499202
>I write js code that looks like c. Is it bad fampai?
It is bad. Read a good book to understand FP better
>>
memes aside, which C++ GUI is the comfiest for small projects?
>>
File: smug8.jpg (136 KB, 560x570)
136 KB
136 KB JPG
>>59498858
>Ctard detected
>>
>>59499062
Programmers don't use 'oop'. You're thinking of koders.
>>
>>59499216
Do you even understand what it is? I guess not because the only thing you understand is if while for, it's what your shitlang is limited to
>>
>>59499167
Don't even bother arguing with them.
They are never going to produce something useful, they aren't going to work, they only spend days on 4chan.
>>
>>59499244
This is why 'c' is popular in here, jobless basement dwellers that like to pretend they are some kernel haxor shitpost about it 24/7
>>
>>59499200
Well well well, if it isn't that picture that proves nothing but that C raises lots of result on a Google search.

>>59499215
>If I call them features maybe it will make them good!
>>
>>59499177
Features belong in libraries, not in the language itself.
>>
>>59499272
Switching from C has the highest result
>>
>>59499264
That's what I am talking about!
Let's leave them and have an actual productive programming thread.
>>
>>59499242
>Do you even understand what it is?
Considering I pretty much explained how to implement it (and have in fact implemented in my compiler), yes, I do.
>>
>>59499280
Write a library that brings contract programming and unittests in C
>>
>>59499199
Why?
>>
>>59499281
It's as if it's single character name makes results from other languages like c++ and c# influence it.
>>
>>59499280
Can you implement generics, lambdas, and dependent types for C as libraries?
>>
>>59499287
Solid proof here >>59499289
>>
File: dick_contest.jpg (127 KB, 312x758)
127 KB
127 KB JPG
>>59499264
You seem to be shitposting about C being bad 24/7 too

>>59499281
See picture for actual relevant results.
>>
>>59498678
It's slow and makes many common mistakes into runtime errors. You can't define reliable interfaces either. Anything longer than 1k loc should not be written in dynamically typed languages. They are also called scripting languages for a reason - ideal for small scripts.
>>
>>59499242
TCO (which is an actual real thing that exists, as opposed to 'tail call elimination') simply means converting a function call into a jump when there is no need to preserve local state.
>>
>>59499303

I don't think C toddlers understand what any of those are
>>
>>59499337
Nice way of saying tail call elimination does not exist in C
>>
>>59499357
What do C toddlers understand?
If
while
else
for
break
goto
*
**
That's about it
>>
>>59499380
Might as well use brainfuck and pretend to understand advanced programming concepts
>>
>>59499380
Are those to few for you to actually code something worthwhile with?
>BUT MUH FEATURES
Not an argument.
>>
>>59499404
>Are those to few for you to actually code something worthwhile with?
yes, not everyone is limited to your sophisticated fizzbuzz solutions, C NEET
>>
>>59499404
Does C even have lazy evaluations?
>>
>>59499294
Write a kernel in JavaScript first.

>>59499300
Because Eclipse is bloated.

>>59499303
Generics are trivial. Lambdas and dependent types don't make sense without a dynamic runtime, which you could write in C.
>>
File: 1478838811226.png (165 KB, 327x316)
165 KB
165 KB PNG
>>59499433
>Lambdas and dependent types don't make sense without a dynamic runtime
>>
>>59499380
Functional programmers only understand definitions, lambda abstraction and application, so that's even fewer things to learn.
>>
File: 1354403890278.png (594 KB, 788x1024)
594 KB
594 KB PNG
>>59499417
The fact that so many complex and sophisticated C programs exit out there just invalidate you stupid opinion, Pajeet.
>>
>>59499445
This is how limited C toddlers' brain is
>>
>>59499433
>C tards insecure about JS
kek
>>
>>59499433
>Because Eclipse is bloated.
I'm so edgy I use $cat to program my kernel
>>
>>59499370
It does have TCO in most implementations though.

>>59499417
So what 'worthwhile' stuff have you written?

>>59499432
Why should it? It's designed for maximum performance on realistic instruction sets, which means it uses HYPER-eager evaluation, AKA evaluating as much as possible at compile time. Lazy evaluation simply doesn't make sense unless you have a CPU that can actually do it on the ISA level.
>>
>>59499456
You only need three simple rules to build up all of FP.
>>
>>59499433
>Lambdas and dependent types don't make sense without a dynamic runtime
>>
>>59499456
You're the one with a limited brain if you can't make worthwhile programs using only >>59499380
>>
>>59499479
>So what 'worthwhile' stuff have you written?
Where I work, each of our pulls are bigger than your one hour weekend programming practices, basement dweller
>>
C is for Competitive
>>
>>59499479
>Why should it?
Lazy evaluations have nothing to do with performance you dumbshit. And
>evaluating as much as possible at compile time. Lazy evaluation simply doesn't make sense unless you have a CPU that can actually do it on the ISA level.
Wtf are you on about?
>>
>>59499512
C is useless
>>
>>59498177
your program is exiting very quickly, before you can read anything. you can use
cin.get()

to block until the user hits enter. Or you can launch your program from cmd.exe to see the output in your terminal.
>>
>>59496628
Here you go!
>>
I want to datamine 4chan. What would be fun to look at?
>>
>>59499520
>Lazy evaluations have nothing to do with performance you dumbshit.
Okay then, show me what 'lazy evaluation' looks like in assembly.
>>
>>59499530
Your favorite programming language is probably useless, and so are you.
>>
>>59499494
>How to spot a NEET.txt
>>
New thread:

>>59499557
>>59499557
>>59499557
>>
>>59499544
>Okay then, show me what 'lazy evaluation' looks like in assembly.
Why
>>
>>59499548
Hit a nerve, didn't I?
>>
>>59499554
>How to spot a code "artisan" AKA Pajeet-sama
>>
>>59499570
>implying the performance of code has nothing to do with the instructions it generates
>>
>2017
>learning javascript
>>
>>59499586
Could say the same about you.
>>
>>59498883
C and Lisp are the only ones who end up with the princesses, Ranjeet
>>
>>59499674
C had a buffer overflow. I'm sorry you missed the joke.
>>
>>59499433
>Lambdas and dependent types don't make sense without a dynamic runtime
what did he mean by this?
>>
File: 1449300195534.jpg (67 KB, 480x960)
67 KB
67 KB JPG
>>59496107
I need a better way of learning C#. I'm taking a unity tutorial that's supposed to do teach me but it's taking its sweet ass time pussy footing around as if I gave two shits about unity
>>
File: 1452163121273.png (70 KB, 216x186)
70 KB
70 KB PNG
>>59496441
someone do that with connect 4
>>
>>59496441
My first non-hello world program was a rouge like with graphics programmed like this. I stored different versions of the map for each player location and whether or not an item was picked up.




Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.