[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: 337
Thread images: 39

File: 1480974118479.png (518KB, 974x974px) Image search: [Google]
1480974118479.png
518KB, 974x974px
What are you working on, /g/?


Previous Thread: >>59163844
>>
Fuck you for using an animu image, you fag.
>>
>>59169389
Yeah, but I need to know how to make it handle shit for me.
>>
n log nth for I hate filling out performance reviews.
>>
>>59169414
Deport yourself back to your """'website"""'
>>
File: pukeface.png (24KB, 105x100px) Image search: [Google]
pukeface.png
24KB, 105x100px
I was gonna contribute to this thread but then weeb image.
>>
File: 1488284269319.png (461KB, 1220x3705px) Image search: [Google]
1488284269319.png
461KB, 1220x3705px
>>
File: 1444180068224.png (10KB, 327x173px) Image search: [Google]
1444180068224.png
10KB, 327x173px
>>59169469
>All that green under Ada
>>
>>59169469
>Delphi
Delphi is just an IDE, the name of the language is Object Pascal. And Garbage Collection isn't a feature - if anything it's a counter-feature. Whoever made that chart is a nescient moron.
>>
>>59169568
>counter feature
You mean in certain contexts it is a bad feature.

>counter feature
honestly
>>
>>59169563
D has more green tho
>>
File: ..png (4MB, 1778x2014px) Image search: [Google]
..png
4MB, 1778x2014px
@59169414
>baiting for (You)
Not so fast, you subhuman nigger
>>
>>59169586
But a gimped standard library for what Ada is used for, at the moment.
>>
File: 7090605.jpg (21KB, 437x437px) Image search: [Google]
7090605.jpg
21KB, 437x437px
>>59169568
>Garbage Collection isn't a feature
>it's a counter-feature
>>
>>59169583
It never is a bad feature. Seriously, why would you ever NOT want garbage collection except maybe for a couple fringe situations?
>>
>>59169469
I don't see this as a feature list.
The languages with more red are easier to program for.
>>
File: painful.jpg (12KB, 650x330px) Image search: [Google]
painful.jpg
12KB, 650x330px
>>59169635
>it's easy to program in C
>>
>>59169414
>>59169463
>>
>>59169635
The languages with more red are for retards that only know how to use a limited number of features
>>
>>59169635
The more red, the more shitty
>>
File: Pelles_C.png (41KB, 200x276px) Image search: [Google]
Pelles_C.png
41KB, 200x276px
>>59169645
It is if you use the right tools for the job, anon.
>>
>>59169687
>>59169645
Please do not bring up C(ancer) ITT
>>
>>59169650
>>59169661
>t. webdevs who are surprised that using C involves actual skill and an ounce of intelligence compared to JAvascript
>>
>>59169395
Lisp is the only good language, and even that is shit.
>>
How come Haskell got overtaken by Snoyberg and friends?

I wanted an environment free from corporate but it seems like Haskells done for :(
>>
>>59169687
This, it's ridiculous how other compilers/standard libraries STILL don't have support for safe "_s" functions. The standard has been around for 6 fucking years, and they still haven't implemented it.
>>
>>59169717
>Shit lacks featue
>Hurr durr u dun need dat XD

You are like one of those BSD zealots that try to hide their jealousy
>>
File: profile.jpg (25KB, 357x507px) Image search: [Google]
profile.jpg
25KB, 357x507px
>>59169731
michael goyman
>>
>>59169746
>C
>Anything Safe
>>
>>59169746
>STILL don't have support

That's because they're non-standard.
if they were actually a good idea, they would have been added to C11.
>>
>>59169717
Who needs that feature, I got mad skills to make up for my language's incompetency
>>
>>59169717
It's not about skill really, what takes real skill is being capable of using more advanced features - which C has none. What C really takes is lots of focus, alertness and hard work, because if you forget something as simple as a bounds checking, suddenly your application is entirely backdoored.
>>
>>59169760
>strcpy_s
>non-standard
Wew, I hope you're just pretending to be retarded!
>>
>>59169760
gets_s is actually in the standard now and almost supported nowhere.
Also, that's beside the point, stuff like that should have been in there in ANSI C, not some standard that is more a symbol of the commitee flailing, similar how modules should have been in C++ from the beginning.
>>
>>59169812
>strcpy
kek I remember C doesn't even have string operations
>>
>>59169760
But they were added to C11, you dumbass.
http://blog.smartbear.com/codereviewer/c11-a-new-c-standard-aiming-at-safer-programming/
Please refrain from further commenting on topics you have absolutely no understanding of.
>>
>>59169469
D master race
>>
>>59169838
>>59169815
>>59169812
>MUH CEEEEEEEE
>DONT TALK TO ME ABOUT MUH CEEEEEE

You people really need to go outside.
>>
>>59169756
No but I'm actually worried. Every other link or library I find directs you to the haskell-lang.org website instead of hackage.

Stackage. Why.

Horrible.
>>
>>59169862
C people are mentally ill
>>
>>59169862
Joke's on you, I actually do right now.
>>
File: 1ba.gif (3MB, 500x374px) Image search: [Google]
1ba.gif
3MB, 500x374px
>>59169862
>>59169881

>Going full autist about what language an anonymous person on a Taiwanese fishing board uses to program
>Not mentally ill
>>
>>59169897
You are right, I've seen python, JS, Java etc language users are being constantly shitted on and 99.99% times the shitposters are C people.
>>
Super newb question but I learned some basics on C#, now I'd want to put graphics on an application, like a background and possibly a menu.
Is there any way to do that on a normal application or do I have to use Windows Forms/WPE?
>>
>>59169832
The original version of C didn't even have structs or void functions. It truly was and is a shit language.
>>
https://discord.gg/fDUVz
new discord ^^
>>
>>59169975
Discord is for video gamers
>>
>>59169985
... and?
>>
>>59169975
>>>/v/

>>59169973
>Few decades back
"HURR DURR WEBDEV NEEDS STRUCTS XD"
"THEY CAN'T EVEN COME CLOSE TO OUR SKILLS"
>>
>>59169985
4chan is for weebs
>>
>>59169990
This isn't /v/
>>
>>59170003
Don't like it?
>>>/r/eddit
>>
>>59170007
This isn't /a/ either but it didn't stop you from shitposting animu.
>>
>>59169998
reminder that 99% of on-topic constructive /dpt/ posts come from people on the discord
>>59170022
ECKS DEED
>>
>>59169975
fuck off
>>
>>59170036
>reminder that 99% of on-topic constructive /dpt/ posts come from people on the discord
I know you are trying hard to shill your shitty gamer chat here. Don't pull numbers out of your ass
>>
>>59170040
>>59170050
okay sirs :^)
>>
>>59170036
filtered
>>
>>59170036

https://www.youtube.com/watch?v=YgHNtzxO0y8
>>
why isn't chicken or guile used more often for scripting vidya?
>>
>>59170066
>>59170065
wouldn't it be nice if they had the old /r9k/ filter on /g/?
>>59170079
Lua is just more well-known. Also, Guile was pretty slow until very recently. I'm not entirely sure about Chicken's performance. Honestly, the Lisp-y syntax is probably enough to turn away most C++ programmers
>>
>>59170134
>/r9k/ filter
>old
>>>>>>>>>>>>>>>>>>>/r/eddit
>>
>>59170154
Stop replying to tripfags. Just put his ID on your filter and move on.
>>
>>59170079
Use CL if you want a useful lisp.
>>
>>59170167
what about clojure?
>>
>>59170167
that's only really useful if you're writing the whole game with lisp

i don't think you would want to embed the whole of common lisp as a scripting language
>>
>>59170079
Because Lua is both faster and simpler.
>>
>>59170181
Clojure is a bastard lisp.
>>
>>59170223
In what way?
>>
>>59169469
Expand that to include actually relevant programming languages.
>>
I am programming a raycaster in Java it is pretty difficult to understand the concept of how they work in Java
>>
>>59170278
Java, C, C++ and C# ARE the only relevant languages.
>>
navigating a car where left swings are expensive
https://jsfiddle.net/xjhxo4L3/
>>
>be software engineer
>want to work in the US
>get stopped at the airport and they hand me engineering questions
>customs isn't technically trained so he sends me home because my answer didn't match the he found on google
https://www.linkedin.com/pulse/software-engineer-detained-several-hours-us-customs-given-fairchild
>>
>>59169469
>Direct Access to C
>Java: No

Java Native Interface?
>>
>>59169469
Also
>String Switches
>Java: No

Java has String switches.
>>
>>59170323
Drumpf's America, everyone!
>>
testing code tags

also am i doing recursion right
(define (recurse x)
(if (not (eq? x 10))
(begin
(display x)
(newline)
(recurse (+ x 1)))
(begin
(display x)
(newline))))
>>
>>59170306
Amazing how shitty things are popular.

Like Java, C, Windows ...
>>
>>59170357
What esoteric programming language is that?
>>
>>59170357
(((lisp)))
>>
>>59170366
Windows is one of the best os
>>
Is it better to learn C before C++?
>>
File: consider-suicide-captcha-fail.jpg (39KB, 735x280px) Image search: [Google]
consider-suicide-captcha-fail.jpg
39KB, 735x280px
>>59170366
What's more likely: those things are really shitty, or a couple of NEETs are just jelly of their success?
>>
File: 1455826514515..png (185KB, 1366x768px) Image search: [Google]
1455826514515..png
185KB, 1366x768px
>>59170391
lol
>>
>>59170402
by the looks of it, those things are quite shitty
>>
>>59169469

> really fucking fast
C++/C

nothing else
>>
>>59170401
Just learn D and forget about C and C++.
>>
File: th_hasklel.jpg (79KB, 622x541px) Image search: [Google]
th_hasklel.jpg
79KB, 622x541px
>>59169930
This and users of other meme languages.
>>
>>59170415
C has no native concurrency, it's built around 80's philosophy of computation
>>
>>59170416
seconding this
>>
File: C_BTFO.png (58KB, 350x1075px) Image search: [Google]
C_BTFO.png
58KB, 350x1075px
>>59170415
>muh speed
>>
>>59170323
to be fair, those ar easy questions, most people should be able to answer them.
7 years as a software engineer and he doesn't know what an abstract class is?
And even a webdev should know what a balanced tree is.
>>
>>59170079
>>59170190
>Chicken
>apparently compiler only
>guile
>GPL nuff said
>>
>>59170415
>nothing else
You forgot FORTRAN, motherfucker.
>>
>>59169469
Huge mistakes in this chart.

Going to mark this up as bait.
>>
>>59170416
what if I want to program an avr microcontroller
>>
>>59170491
are you going to?
>>
>>59170470
those numbers next to language names sure showed him.
>>
>>59170496

why would anyone learn c otherwise?
>>
File: 1452161125531.png (129KB, 300x300px) Image search: [Google]
1452161125531.png
129KB, 300x300px
>>59170491
>8-bit
>>
>>59170505
There's no reason to
>>
>>59170470
be careful with that numeric benchmark, tho
>>
>>59170491
use assembler for that.
>>
>>59170518

not all of them are 8 bit

also I don't think they are called AVRs anymore since they got bought by microchip

They are all just PICs
>>
>>59170533
t. baklava
>>
>>59170533
Hah, come back when it's been 18 years.
>>
>>59170533
>Just wanted to let you know that I've been thinking about suicide for some time

Welcome to the club, buddy.
>>
>>59170533
>>59170567
>>59170568
>>59170580
>>>/r/ibbit
>>
>>59170533
wow rude
>>
>>59170580
Take your reddit shit to reddit
>>
File: Screenshot_2017-03-01_00-02-23.png (10KB, 718x34px) Image search: [Google]
Screenshot_2017-03-01_00-02-23.png
10KB, 718x34px
Added tag autocompletion. Working on various system tags (size, width, tag count, etc.) now.
>>
>>59170580
See >>59170066
>>
>>59170533
N-nani?!
>>
>>59170476
i heard chicken can be embedded

but yeah GPL for a scripting language is pretty much a death sentence
>>
>>59170518
Everyone should start programming by programming a 8bit chip with 1mhz processor with a limited function set.
It gives people a reason to think about how to solve their problems and what they can do to optimize.
On modern computers, you need a huge dataset in order to make something that computes all night. (assuming you made it correctly).
When you write a function, you can just press "compile and run" and you will get instant result if you did something correct or not.

On a small limited platform, you need to account for everything you are doing, you need to read the code and figure out why it fails.
You need to debug.
>>
File: 1478652478266.gif (112KB, 255x231px) Image search: [Google]
1478652478266.gif
112KB, 255x231px
>>59169395
>always wonder why certain apps for smartphones don't exist
>decide to take it up as a hobby, wonder how hard it could be
>tfw

what is this hell

how is it this bad
>>
>>59170387
scheme mein nigger

also great the code tags fuck up the indentation completely
>>
>>59170646
Also memes like Hadoop would die.
https://aadrake.com/command-line-tools-can-be-235x-faster-than-your-hadoop-cluster.html
>>
>>59170650
This
Why can't Google and Apple release decent development environments?

Most of the difficulty in making apps isn't the app itself, but fiddling with a myriad of pieces to get a simple build to work.
>>
What's the best/recommended technique for reading a file/writing to a file in Java?
There are so many classes, readers, streams etc. and they seem to use one another in their constructors and whatnot, I don't know which one(s) to use.
>>
>>59170650
i wonder if building your own toolchain would just be easier at this point
>>
File: th_browser.jpg (92KB, 640x640px) Image search: [Google]
th_browser.jpg
92KB, 640x640px
>>59170827
They get paid for browser advertisement, not for quality software.
>>
>tfw to much of a brainlet to finish the math exercises in SICP
>>
>>59170687
> 1.75GB of data
no shit you dont use hadoop for this
you use hdfs when you have more data than will fit on one computer
>>
>>59170864
Why would you wanna waste your precious time reading that shit?
>>
Repostan from prev. thread. Missed the bump limit.

Hey /dpt/. I'm hoping someone could help me with this. I'm looking for a language that can run in the windows console, has C like syntax and is relatively lightweight. Something that you could use to make small, throwaway scripts with.
I am currently using C# but it feels a bit bloated relative to the complexity of the programs i'm making.
>>
>>59170962
Honestly just use python. It's not exactly C-like but who cares, it's close enough.
>>
>>59170962

D.

Use rdmd.
>>
File: 1486942344375.jpg (113KB, 580x720px) Image search: [Google]
1486942344375.jpg
113KB, 580x720px
Nothing, I stopped legit programming like 6 months ago because I got a job as a web developer and have basically forgotten how to do OpenGL and as a result have zero motivation or inspiration to program anything. I was going to make a game engine, once.
>>
>>59169469
>tfw when Haskell masterrace
Feels good.
>>
File: lolno.jpg (172KB, 866x1300px) Image search: [Google]
lolno.jpg
172KB, 866x1300px
>>59171003
>python
>lightweight
>>
File: fp claim.png (190KB, 2440x1228px) Image search: [Google]
fp claim.png
190KB, 2440x1228px
>>59171027
>>
File: x21jivrsx4ey.png (183KB, 500x700px) Image search: [Google]
x21jivrsx4ey.png
183KB, 500x700px
>>59169395
Can anyone recommend me some good lua projects?

Already wrote some game mods and accumulated a 2k downloads in two weeks but I'm bored with that now. Interested in mods (not gmod), game dev (briefly looked at LOVE), or anything inbetween. Trying to get good at coding.

Thanks /dpt/
>>
>>59171044
Actually, I really hate Haskell, but after being forced to learn that piece of shit language for my cs lectures/exam I've started to program everything in Haskell simply to annoy the people that have to read my code.
>>
>>59171112
>Can anyone recommend me some good lua projects?
Inherently, based on the fact that Lua is an embedded scripting language there is no such thing. Oh well, maybe you could do a Löve game, extending Mari0 or something.
>>
>>59171140
Are you saying there are no projects that are 100% Lua?
>>
>>59171126
funny because i like haskell
>>
>>59171140
I have interest in finishing CS50 and eventually learning Java dev.

Would you say it would be better to focus on those or get a better understanding of my first "real" programming language? (I took some cs50 and a full online js course to get started but learned how to use funcs, scope, args, loops, etc mainly from writing lua)
>>
File: 1484680499106.jpg (2MB, 2123x1181px) Image search: [Google]
1484680499106.jpg
2MB, 2123x1181px
>>59171112
you can try pico-8, it's a retro gaming console that is programmable with lua, people do really cool stuff with it because of the constraints it gives the programmer, which will help you git gud at the same time
>>
>>59171201
Never heard of that, sounds cool I'll look into it. Thanks anon
>>
>>59170841
What kind of file / what are you storing?
>>
>>59171174
>Are you saying there are no projects that are 100% Lua?
Not many and even less worthwile.

>>59171187
Lua is a "real" programming language. Not for standalone projects, though. Just keep in mind at some point you will want custom data types and namespaces and a rich standard library.
>>
>>59170841
For text files, use the nio classes.
>>
>>59171344
delete this post
>>
>>59171344
delet
>>
>>59171201
sounds neat but can you target the assembly instead? i'd rather develop my own language and compiler than use a garbage language like lua
>>
Does Rust have OOP?
>>
File: 1466247915748.png (11KB, 492x215px) Image search: [Google]
1466247915748.png
11KB, 492x215px
>>59171303
Got it, I've only been using it for game mods so far but I love how simple the language is. Thanks anon
>>
>>59171387
if you want it to (sort of)
>>
>>59171387
Rust's functional first
>>
>>59171409
no, it's imperative first. Rust has functional features (just like it has OOP features) but that doesnt make it functional at all
>>
give me 1(one) good reason to learn D
>>
>>59171408
Fuck. Is it easy enough to avoid?
>>59171409
How does that in any way answer my question? A language being imperative or functional has nothing to do with it being OOP or procedural.
>>
>>59171387
Define "OOP".

>>59171424
It's not C++.
>>
>>59171264
Strings.
Need to put them in an array.
>>
No one at work respects what I do. I can investigate something far reaching and dynamic or refactor an entire codebase and no one blinks. People do painfully easy unneeded grunt work and they get praised. It bothers me when it impacts the project because my observations are ignored and it ends up negatively impacting the project because no one listened to me, or I get in trouble for doing something that I objected to doing because my objections were so ignored that it was completely forgotten about. I am more assertive now and all it's done is made it more painfully obvious when people are ignoring me. What am I doing wrong?
>>
Java has lots of good libraries which makes it a good language
>>
File: Pattern Matching.png (12KB, 596x233px) Image search: [Google]
Pattern Matching.png
12KB, 596x233px
>>59171424
>>
>>59171429
yes. it's only OOP if you treat it as OOP. it gives you the tools to make it OOP or whatever paradigm you choose without forcing your hand IMO
>>
>>59171409
Did a tripshit just reply to me? lel
>>
File: gondola.jpg (45KB, 400x400px) Image search: [Google]
gondola.jpg
45KB, 400x400px
>>59171441
You are likely the victim of not working in a software company.
>>
>>59171420
>just like it has OOP features
Like what? Judging by your redditry you probably think polymorphism is an """OOP feature"""
>>59171431
Google it.
>>59171446
>it's only OOP if you treat it as OOP
This doesn't make even a slight bit of sense.
>>
>>59171459
What does that mean?
>>
>>59171445
what the fuck is this '!' bullshit and the backwards-ass variable declaring
>>
>>59171464
>>Define "OOP"
>Google it.
So many people have their own special-snowflake interpretation of what OOP is. There actually isn't a solid definition of it.
I can't answer your question properly until I get your special-snowflake definition.
>>
>>59171464
>Like what?
like inheritance and encapsulation
>>
>>59171472
! is template instantiation

>backward variable declaring
What are you talking about?

>SumType s;
as regular

even if it were the other way around, what would you be bitching about? it doesn't do it like C does it so it's wrong?
>>
>>59171464
It is multi-paradigm. Many things you can do in OO languages you can do in Rust, but not everything, and not always using the same abstraction you’re accustomed to.
>>
File: 148781814247.jpg (136KB, 640x400px) Image search: [Google]
148781814247.jpg
136KB, 640x400px
>>59171201
But Pico-8 shares no limitations with real old systems.
>>
>>59171486
>I can't answer your question properly until I get your special-snowflake definition.
This assumes I have my own special-snowflake definition of it, which I don't. So I can't provide you with an answer either.
>>59171489
Now explain how rust "has" them. I don't expect your explanation to be actually good though.
>>59171504
>Many things you can do in OO languages you can do in Rust, but not everything
This is blatantly false and you don't even need to know what "OO" and "Rust" mean to conclude this.
>not always using the same abstraction you’re accustomed to.
Does it seem like I'm "accustomed" to OOP? Is this how you usually treat people you've just met?
>>
>>59171501
>it doesn't do it like C does it so it's wrong?
yes
>>
>>59171539
but C does it wrong
>>
> The presence of interfaces, which Rust provides via traits
> The ability to express inheritance hierarchies, which Rust provides (but in a better way!) via trait dependencies
> Data sharing between parents and children in an inheritance hierarchy, which Rust doesn't currently have, but which is being considered in a series of RFCs. (Essentially, we want to make this happen, but don't yet have a clear feeling on the best way to make it happen.)

In addition to these things, I would round out the list of "things some consider to be part of being OO" with the following:

> "Encapsulation" (i.e. the ability for an object to have private data fields), which is absolutely a thing in Rust. It is important to note that the "encapsulation boundary" is at the module level.
> Dynamic dispatch, which Rust offers alongside static dispatch. Probably include here a mention of the fact that static dispatch is often preferable, but dynamic dispatch allows for certain things that static dispatch doesn't (like a container of different types implementing the same trait, via trait objects).

The conclusion would then be something about how even though Rust has many of the trappings of an OO language, the specifics of the design (and the ownership and lifetime systems) mean that things are generally built differently in Rust than they would probably be built in a more traditional OO language like Java or Ruby.
>>
How do I git gud at Haskell?
>>
>>59171558
read the wikibook
>>
how to get good at OOP and Java
>>
>>59171528
>>Many things you can do in OO languages you can do in Rust, but not everything
>This is blatantly false
>Does it seem like I'm "accustomed" to OOP?
Do you have mental issues?
>>
>>59171569
indian cram school
>>
>>59171554
>traits aka type classes
>somehow "related" to POO
Stopped reading right there. Worthless post.
>>59171572
Nope. Why would you think so? Just because I pointed out an obvious flaw in your thinking?
>>
>>59170473
If you read the article, you'll see that he answered them correctly and was free to go.
>>
>>59171586
Idiot or pretending to be one?
>Doesn't know about how Rust deals with OOP
>Others who know about it are wrong
>>
>>59171609
What you said is simply impossible. Which makes you the idiot here.
>>
>>59171586
There are ways of translating object-oriented concepts like multiple inheritance to Rust, but as Rust is not object-oriented the result of the translation may look substantially different from its appearance in an OO language.
>>
>>59171513
nah but there are some interesting constraints, max program size, limited color palette etc
>>
>>59171470
In a company where software isn't the actual product or that is basically law/financial consulting with a dev position, devs are often seen as a liability.
>>
>>59171622
So by your "logic" Haskell is pretty much an imperative language?
>>
>>59171441
while i understand where you're coming from, try to acknowledge that what you're saying sounds a bit arrogant. even if you don't walk around calling things "painfully easy unneeded grunt work" around your coworkers (i'll give you the benefit of the doubt and assume that you don't do this and are just venting at the moment), your attitude may still show through in ways you're not consciously aware of, which can damage coworkers' disposition towards you and make it difficult to get ahead
>>
>>59171661
Haskell is excellent at imperative programming
Do notation (aside from the lack of bang notation) + continuations and sequencing is excellent
>>
>>59170670
Are you using emacs?
>>
>>59171655
Unfortunately software is our project.
>>
>>59171661
Functional programming is very similar to properly designed objects.
>>
>>59171661
https://chadaustin.me/2015/09/haskell-is-not-a-purely-functional-language/
>>
>>59169469
C# does have direct access to C using P/Invoke along with struct member alignment control.
>>
>>59171682
yeah, i know emacs handles indentation strangely, that's probably the culprit here
>>
>>59171680
I know, but does it somehow make it an imperative language? You can't possibly claim that you aren't retarded if you say "yes"
>>59171688
>properly designed objects
Such a thing is impossible by definition, assuming "proper" has any kind of good connotations.
>>59171692
>hipster-webdev tier blog
Nah, I'll pass.
>>
>>59171724
it supports imperative programming pretty well
>>
>>59171724
This you trying to deny facts
>>
I'm having trouble understanding why using lambda in haskell is useful, still learning.
>>
>>59171724
sorry the author is not a 400lbs smelly manchild like you
>>
>>59171715
Yeah, I had the same problem until I added
(setq-default indent-tabs-mode nil)
to my .emacs.
>>
>>59171734
You didn't answer the question. I know about the things in >>59171680 (which I said in my post), so why did you feel the need to post the same thing twice?
>>59171739
Is pointing out obvious mistakes considered "denying facts" now?
>>59171755
Context?
>>
>>59171763
yeah thanks, i wasn't too sure of what i was supposed to fuck with
>>
So am I retarded or can I not single line declare multiple new objects from a class?
>>
>>59171846
no problem, happy hacking
>>
>>59171820
>Context
reality
>>
>>59171754
lambdas in haskell are functions
>>
>>59171754
lambdas are just functions.
>>
>>59171862
*in Java
>>
Hey guys anybody knows how I can make my spritefonts look right and not blurry in monogame?
Any font is full of garbage artifacts.
>>
>>59171864
Huh? I don't get it.
>>
Is there any reason to not use Atom?

Vim/Emacs users need not apply
>>
>>59171906
lag, startup time, memory consumption
>>
>>59171906
VS Code exists.
>>
File: 1486095773144.jpg (90KB, 957x621px) Image search: [Google]
1486095773144.jpg
90KB, 957x621px
Why did they have to make strings in Python immutable
>>
>>59171906
shitty plugins
>>
>>59171919
Consider using a computer from this decade
>>
>>59171906
Yes, it's garbage.
>>
>>59171906
>>59171919
oh
obnoxious fucking notifications
if there's an error and you want to ignore it
it's fucking awful and you can't

>>59171925
why did guido have to make Python
>>
>>59171932
crashes
>>
>>59171925
Strings are immutable in Java too.
>>
>>59171925
cause its not meant for anything other than parsing
>>
>>59171754
Haskell is ideally useless, which is a reason why it'll never be successful. Another reason is that it is being driven into the ground through Stackage. The other reason is that it is shit.
>>
>>59171932
i have an i7 and 32GB of RAM

>inb4 consider using a computer from this decade
>>
>>59171862
>in Java
>So am I retarded
Yes.
>>
>>59171906
>client application written with shitty web tech
ABSOLUTE
GARBAGE
>>
Name one thing wrong with Java

pro tip you can't and will just meme reasons that don't even matter
>>
>>59171987
you are using shitty web tech now
>>
>>59172010
Every thing
>>
>>59172010
Oracle
>>
>>59172010
name 3 desktop java apps
>>
>>59172010
>using "meme" in this reddit way
can you fuck off already?
>>
>>59172010
Have to wait years for a committee to add a feature to the language.
>>
>>59172010
C#
>>
Programming as an employee in a company for a living is pretty soul-destroying, don't you think?
>>
File: 1486403872071.png (174KB, 962x543px) Image search: [Google]
1486403872071.png
174KB, 962x543px
>>59172053
>>>/i/ndia
>>
>>59172026
>>59172032
Not an argument

>>59172037
There are plenty google them

>>59172049
This is a good thing so they have time to think about it research and implement it
>>
>>59172064
>java user talking about india
kek
>>
>>59172055
If you live in a shit country then yes, it is.
>>
>>59172067
If you think it's alright to support ORCL then you are beyond help.
See you later friend
>>
>>59172089
as if a C# pajeet can get away with it
>>
>>59171862
myList.addAll(Arrays.asList(new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj(), new MyObj()));
>>
>>59172067
This will only contribute to its demise when said committee ceases to exist in time.
>>
>>59172093
It's shit everywhere.
>>
>>59172132
Working for a company in any position is shit anywhere, not just coding.
>>
>>59171862
var muhThings = Enumerable.Range(0, 10).Select(x => new Thing());
>>
>>59172123
tips
>>
>>59172055
Not at all. I work for a small company, and it's comfy as hell.
>>
>>59169395
Do not contribute to anime threads
>>
>>59171922
The only reason VS code is popular is because it's easy to set it up quickly.

If you are a vim user, syncing .vimrc across your machines yields the same result
>>
why is Java popular
>>
>>59172218
Same reason as C. It came at the right moment, even though it's shit.
>>
>>59172208
>not using a modern editor with Vim keybinds
>>
>>59172233
you didn't get the point in the picture
>>
>>59172021
i'll put up with using my native web browsing client to view remote content served by shitty tech while i must, but there's a sizeable gap between that and using a node.js-based text editor when there are numerous and better alternatives available
>>
>>59172218
It's popular now because it's already popular.

It was popular then because it was an attractive tool for the enterprise.
>>
>>59172218
Businessmen got fooled into thinking it was the best tool for any job.
>>
>>59172248
>fooled
It was a deliberate choice, to deskill programmers in an effort to reduce job security and make them easily replaceable.
>>
>>59171674
I'm a bit salty about that because it was so recent. I recently investigated an issue with great pains because it was jeopardizing an upcoming release release that we need to make to keep a million dollar contract we're on thin ice for. My claims of finding the solution were not even considered, and people kept panicking before someone not even on the project used my work as a basis for an investigation that had no bearing on our solution and ate up more time despite being simple, but was praised despite this.
When he was proposing his solution, I gently reminded everyone of the nature of the problem, I would not say something like it was unneeded grunt work. I only use such language now because of the great insult that's been done to me.
>>
>>59172218
because it has training wheels, allowing companies to throw excessive numbers of incompetent programmers at a project with relatively few risks
>>
Can someone explain how this shit works?

char *difference(char *thisValue, char *thatValue) {
char *result;
int indexThis = strlen(thisValue);
int indexThat = strlen(thatValue);
boolean doable = FALSE;
int indexResult=1;
int borrowValue;
int digitDifference;
if((indexThis >= indexThat) && (LE(thatValue,thisValue) == TRUE)) {
doable = TRUE;
indexResult = indexThis;
}
result = malloc(sizeof(char)*(indexResult+1));
result[0] = charOf(0);
result[1] = NULL_CHAR;
if(doable == TRUE) {
/////////////////
indexResult = indexResult-1; indexThis = indexThis-1; indexThat = indexThat-1;
borrowValue = 0;
while(indexThat>=0) {
if((digitValueOf(thisValue,indexThis) - borrowValue) < digitValueOf(thatValue,indexThat)) {
borrowValue = 1;
}
else {
borrowValue = 0;
}
digitDifference = ((borrowValue * 10) + digitValueOf(thisValue,indexThis)) -
digitValueOf(thatValue,indexThat);
result[indexResult] = charOf(digitDifference);
indexResult--; indexThis=decIndex(indexThis); indexThat=decIndex(indexThat);
}
while(indexResult >= 0) {
result[indexResult] = charOf((digitValueOf(thisValue,indexResult) - borrowValue)); borrowValue = 0; indexResult--;
}
trimLeadingZeroes(result);
////////////////////
}
return result;
}
>>
>>59172306
so the businessmen knew what they were doing all along
>>
>>59172218
Because its good
>>
>>59172357
you still have to be a decent programmer to program in java

your argument is invalid
>>
I have a site that I want a program to fetch data from but the site requires you to click around on the page in order the get all the information that is required. So basically, you can't simply insert the URL to get all the data, which I assume is "hidden" with javascript? Let's use www.betbrain.com/ as an example. You get a number of matches by simply clicking the URL but to load the rest you have to click a button. How can I do this automatically with a program so I can read all the data? Is it possible to type a URL with certain javascirpt instructions? I hope I made myself clear enough.

It really would make my day if I figured this out.
>>
>>59172396
You have to "load" the page and then scrape the data using a browser client of some sort.
>>
>>59172396
Use Selenium.
>>
>>59172429
>>59172476
Thank you!
>>
>>59172363
Yep.

Why pay a good local programmer $400 a day when you can pay 10 mediocre overseas programmers $20 a day each? It doesn't matter if they produce buggy software, users are conditioned to expect bugs these days.
>>
Is Richard Stallman a good programmer?

Who do you guys think are one of the best programmers?
>>
>>59172546
Mel Kaye.
>>
>>59172546
>Who do you guys think are one of the best programmers?
me
>>
>>59172546
Stallman was a good programmer but then he got involved into politics and left programming gradually.
>>
>>59172546
this is gonna sound really typical but john carmack is one

the guy at Looking Glass too i guess, those games were fucking IMPRESSIVE
>>
So I have this thing:

A == -1 && ((B = 0));

This probably should do something like
if (A == -1) {
B = 0;
}

Which would be the better thing? The original seems to be rather unreadable but idk what's faster/more optimizable.
>>
>>59172546
Terry A. Davis
>>
>>59172558
>>59172583
>>59172595
>>59172612
I want to learn from the best programmers
>>
>>59172654
Learn Lisp
>>
Chad is getting paid and scoring mad pussy and you are living in a basement

What's your excuse, /g/?
>>
>>59172607
Yeah, don't put assignment operators inside conditionals. Even pre/post increment operators can be questionable at times.

As for faster/more optimized, they would both be the same (assuming it's a compiled language).
>>
>>59172335
i hear you, that is unfortunate. you can't win 'em all. when working in a company, politics can very often end up taking precedence over what's actually best for the company. pick your battles, and if you feel strongly about something, make your claim and make sure it's on record somewhere, that way if you get denied and it bites the company in the ass later, you have something to cite so the blame doesn't fall on you (and your coworkers will increasingly associate overlooking your stance with negative outcomes for the company, giving your input more weight in the future)
>>
test
\U00000026
>>
File: editor-latency-windows-text.png (8KB, 580x430px) Image search: [Google]
editor-latency-windows-text.png
8KB, 580x430px
>>59171906
>ny reason to not use Atom?
existence of Intellij IDEs with zero-latency typing >https://pavelfatin.com/typing-with-pleasure/
>>
>>59172546
andrei alexandrescu
>>
>>59172703
But anon, I live in a luxury penthouse apartment.
>>
>>59172716
Yeah, also intent was confusing at first. I'll just change it to the if thing.
>>
>>59172730
Add me in your SIMS
>>
>>59172717
>make your claim and make sure it's on record somewhere
Listen to this anon, for she is wise.

CYA always. Everything important goes into an email.

If you have a conversation in person, send an
>As per our conversation
email to cover your ass.
>>
>>59172335
you lack people and communication skills go learn them they are just as easy to learn as programming
>>
>>59172724
Andrei spends more time shilling D than programming.
>>
>>59172387
you really don't, java is just lowering the bar for what people consider to be a decent programmer. it's like saying you still have to be a decent game developer to develop a game with unity
>>
>>59172723
Vim masterrace

Also
>windows
eww
>>
>>59172747
cause d is awesome
>>
>>59172738
What's a SIMS?
>>
>>59172756
>you still have to be a decent game developer to develop a game with unity
This is true, though.

The difference between a cash-in Unity title and a AA Unity title is massive.
>>
File: 16831080.jpg (83KB, 541x767px) Image search: [Google]
16831080.jpg
83KB, 541x767px
>>59172761
I don't disagree.

It's highly painful if you are searching for anything in google.
Even if you include " D " in the search query, google doesn't show you results that includes D.

PHP and Java everywhere.
Just fuck my shit up
>>
>>59172786
try "dlang" instead of just "d"
>>
>>59172798
Fuck google search anyways. #d room is almost as comfy
>>
>>59171634
>max program size
Max Lua program size?
>limited color palette
EGA, CGA...
>>
>>59172737
If you really wanted to combine conditionals and assignment, then use the ternary operator. Some purists might not like it when one of the options is "set it equal to itself", but it's a fairly wide-spread and accepted practice:
B = (A == -1) ? 0 : B;
>>
>>59172745
Which people and communication skills? I have been learning and yet have not seen an increase in respect.
>>
File: file.png (275KB, 1583x1027px) Image search: [Google]
file.png
275KB, 1583x1027px
Just messing around with monogame for a bit of fun
>>
>>59172745
So not easy at all? Sounds about right.
>>
Why is there practically no C in this thread?
>>
>>59172839
I went for a single line if instead, but thanks for that suggestion. Hadn't thought about assigning the result of a ternary instead of assigning within a ternary operator.
>>
>>59172757
vim is good for quick edits, but can't compete with IDE in large project
>>
>>59172876
C is communism
>>
>>59172774
wait... are you agreeing with me or are you claiming that the developer of a broken asset-flip title is a decent game developer?
>>
>>59169954

Winforms and and WPF are how you get windows onto the screen. You dont have a graphical application without them.
>>
>>59172876
Because amateurs usually don't deal mess with embedded software, firmware, and kernels?
>>
>>59172546
>Who do you guys think are one of the best programmers?
Me, also I am the cutest one
>>
>>59172881
What are the must have things of an IDE?
What makes an editor an IDE?
>>
New thread:
>>59172907
>>59172907
>>59172907
>>
There is literally nothing wrong with Java generics
>>
>>59172905
Mostly sophisticated debug and compiler integration, but also potentially integration of other, non-code resources that the project uses (especially if they're UI related).
>>
>>59172913
there's no constraints and you can't have a generic on a value type
>>
File: editor-latency-linux-xml.png (9KB, 580x430px) Image search: [Google]
editor-latency-linux-xml.png
9KB, 580x430px
>>59172757
also Intellij pwned vim in linoks
>>
>>59172881
IDEs are good for quick edits, but can't compete with vim in a large project. For lists, composable macros, and regex are made for large-scale refactoring no matter what you're doing.
>>
>>59172876
Because
>this forum is full of NEET neckbeards who'd rather shill Haskell and Lisp
>C is obsolete
choose 2
>>
>>59172942
That's Vim-GNOME though
>>
>>59172898
I wasn't aware that was all C could do. Please, tell me more.
>>
>>59172756
The thing with engines (and with Java) is that it's very very easy for people who know nothing to make something poorly in it, but you can always tell. and there will always be that smaller group of people using the same engine who are real programmers doing good work, that get shit on for being in the same group as the shitheads
>>
>>59172936
>no constraints
Use Interfaces if you want constraints.

>can't have generic on value type
Fair point, but the way Java handles internal types, wrangling what is and isn't possible would be a clusterfuck.
>>
>>59172964
i understand that, but it's not really relevant. i was simply refuting the argument that "you still have to be a decent programmer to program in java"
>>
>>59172968
>Use Interfaces if you want constraints
this being the only option imposes tangible limitations as compared to C#

>the way Java handles internal types, wrangling what is and isn't possible would be a clusterfuck
i don't see why any value type should be impossible with un/boxing. then in a perfect world they could allow user value types as well
>>
>>59172948
I just can't be bothered spending time to configure vim for every obscure feature i might need as i go and pray the plugin is still supported, nor do i have interest in programming text editors. IDE has everything vim has and more, out of the box, with interactive gui, and most important - financial backing which guarantees it won't become abandonware. The only thing good about vim is the ability to ditch mouse and arrow keys, but again - vim emulation plugin is available in IDE so.. also most fresh vim users can't do anything with it for quite some time, it's just painful to see them lag behind while sane people get IDE and spend time shipping actual code.
>>
>>59173121
Looking at C# constraints, I'm failing to see how that'd make a difference in Java which doesn't have the concept of structs. I guess the new() one has its uses, but the other ones seem like they can be done without generics without adding any code complexity.

>boxing/unboxing
Why would you want generics to explicitly work with value types if you were willing to have them boxed/unboxed? I mean you can have them boxed/unboxed automatically with the generic syntax that exists now.
>>
>>59173200
I cannot be bothered to spend the time I would lose if I didn't have all the great refactoring features I mentioned. Someone has to be able to manipulate massive codebases on a team. Both IDEs and vim are indespenable.
>>
>>59171887
You want to increase the size of the spritefont in the settings for it in the pipeline - then scale down. Chances are, you are scaling up a small spritefont :)
>>
File: 1488200137839.jpg (750KB, 1000x1522px) Image search: [Google]
1488200137839.jpg
750KB, 1000x1522px
>tfw no programming bf to cuddle and watch anime with
>>
>>59174032
i regret making that shirt on redbubble

you can't even delete designs once they make sell more than 100 units
>>
>>59174048
Why do you regret it anon? It's cute! CUTE! :3
>>
>>59170323
D R U M P F
U
M
P
F
>>
File: 43.webm (544KB, 640x640px) Image search: [Google]
43.webm
544KB, 640x640px
I've gotten to a point as a novice programmer where I don't really know how to get better or just get a deeper understanding of the practicality of programming.
I know a few languages at their most basic level and I've written a few applications (for school or work) but I haven't found anything that I could work on without some kind of external force making me do it. I'm interested in OS development or maybe just script writing - so my question is: where do I start? What are some cool things I can do to my computer by writing my own scripts?
Sorry if these seem like stupid questions.
>>
>>59174665
>posting 3d women
>>>/r/ibbit
>>
>>59174788
We aren't having sex with either so what's the difference?
>>
>>59174816
at least the 2-dimensional ones are actually cute
Thread posts: 337
Thread images: 39


[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.