[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
/dpt/ - Daily Programming Thread
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 255
Thread images: 39
File: 1461327474533.gif (181 KB, 420x420) Image search: [Google]
1461327474533.gif
181 KB, 420x420
Old thread: >>54159551

Is that AI for world domination coming along nicely?
>>
#1
>>
>>54165965
>Is that AI for world domination coming along nicely?

Yes.
>>
How do I into servers?
I've got a week of free time, so I thought I might get a start on a browser game engine with a C/Java server and Javascript+HTML5 client, but I'm wondering if there's right and wrong ways to do the server, since I've seen some pretty poor servers in the past. Also, there's stuff like hiring the server which could get messy.
>>
learning c and reading "the c programming language"
the following line confuses me because of its syntax:

           qsort((void**) lineptr, 0, nlines-1, 
(int (*)(void*,void*))(numeric ? numcmp : strcmp));

the last argument is supposed to be a pointer to a function.
lets say that numeric is 1
the last argument should then be
int (*)(void*,void*))(numcmp)
shouldnt it be
int (*numcmp)(void*,void*)
also what is the difference between the two or is my argument simply illegal?
>>
File: sa.webm (3 MB, 720x405) Image search: [Google]
sa.webm
3 MB, 720x405
Hey everyone! Ask your favorite programming literate anything (IAMA) !

>tfw no question
>>
>>54166144
Why haven't you killed yourself yet?
>>
>>54166144
Who?
>>
I'm still trying to make a small test video. Python code:

%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
import cv2

frame = np.zeros([480, 640])
frame[0, :] = 1
frame[479, :] = 1
frame[:, 0] = 1
frame[:, 639] = 1
frame *= 255

fourcc = cv2.cv.CV_FOURCC('M','P','E','G')
vidout = cv2.VideoWriter('/home/anon/dev/test.avi', fourcc, 25.0, frame.shape[1::-1])
print vidout.isOpened()

for n in range(4):
for t in range(50):
left = t / 50 * 600
image = frame
image[:, left:(left + 40)] = 255

image = (image * 255).astype('u1')

#print vidout.write(image)
vidout.write(image)
#plt.imshow(image)


The VideoWriter is open, I'm not getting any errors while writing the file, the program goes through every iteration of the loop (as can be seen when uncommenting the print command) and the image has the specified dimensions and looks the way I want it to. The video file is created in the specified location.
However the file contains no frames, and the info about codec etc says N/A. I tried to open it regardless and got these errors:
> VLC
avi demux error: no key frame set for track 0

> MPV
[libav/demuxer] avi: Could not find codec parameters (Video: mpeg2video, 640x480)
[lavf] LAVF_header: av_find_stream_info() failed
Failed to recognize file format.

The codecs are installed.
> Ubuntu Videos
Could not demultiplex stream.
>>
>>54166144
Does she dies ?
>>
>>54166144
Kill yourself.
>>
>>54165965
Yep, data to feed it's power is being collected as we shitpost
>>
>>54166144
Are there any go-to certifications for general understanding of programming?

Looking for something that isn't language-specific, that shows I can pick up a new language and utilize it.
>>
>>54166221
A computer science degree.
>>
>>54166250
But I already have that.
>>
>>54166170
>image = frame
I literally know nothing about the libraries you are using, but this line makes me suspicious. Modifying image will cause frame to modify as well. You need to make a deep copy.
>>
>>54166221
>something that isn't language-specific, that shows I can pick up a new language and utilize it
A brain.
>>
>>54166255
Then what's the problem?
>>
>>54166268
Well, I have one of those. Not sure if I can prove that on a resume.
>>
>>54166278
I like my job, but I want to make more money.
>>
What's the first programming language I should learn? I want to eventually master Swift and design apps for iOS, but I read that it's not a good language to start out with.
>>
>>54166170 here
The solution to that particular problem was using
image = np.dstack([image, image, image])
and changing the assigned value for the 40-pixel-wide strip to 1. Now I'm getting video but it looks like crap with artifacts all over the place. Probably related to what >>54166256 said. I'll address that now.
>>
>>54166291
just do what you did to create the frame variable again, but inside the two fors
>>
>>54166047
>>/wdg/
But I'll go ahead and answer this one question here.

Amazon Web Services is pretty cheap (ie free) to fuck around with, and by the time it starts costing you money, you'll probably be generating enough traffic to make your money back if you're advertising or otherwise monetizing.

Don't worry too much about making your server perfect the first time. Don't do it in C. Make sure you clean any data to prevent cross site scripting. Java is a solid choice for servers. (I'm using Spring and Tomcat at work for our Java server stack.)

If you want to go deeper into doing better servers, just google "java server best practices."

Also, you should check out phazer. It's the popular browser game engine for 2D games. Might save you the trouble of making the engine and let you cut straight to making the game.
>>
>>54166309
Too complicated, just used image = frame.copy().
It works, hooray!
>>
>>54166289
Swift would be fine to start with.

C# is a great learning language for high level. Java is fine, too.

C++ if you want to be able to use it pretty much anywhere, company-wise.

I personally don't like recommendations for Python due to how different it is compared to the other big languages.

Make sure you have a rudimentary knowledge of T-SQL as well.
>>
File: 1461187609842.jpg (214 KB, 650x273) Image search: [Google]
1461187609842.jpg
214 KB, 650x273
Is javascript literally fascism?
>>
>>54166319
Now post the video.
>>
>>54166047
>>54166313
AWS is good, but you may consider BizSpark:
https://www.microsoft.com/bizspark

Tons of free Azure stuff for years until you start making like $1,000,000 in revenue.
>>
>>54166078
>shouldn't it be
that's like saying
puts((const char *) x);

should be
fputs(const char *x);

the first is a function call involving a cast for one of the arguments; the second is not a function call
>>
File: fight_of_the_century.webm (2 MB, 640x640) Image search: [Google]
fight_of_the_century.webm
2 MB, 640x640
>>54166159
>>54166169
>>54166204
Please, don't bully.

>>54166159
Why should i ?

>>54166173
No (⊙﹏⊙ )

>>54166289
Scheme or Python.

>>54166221
http://www.kent.ac.uk/careers/tests/computer-test.htm

>>54166325
No.
>>
>>54165965
So I wrote a program in C. I'm a shitty programmer and I basically only do it for the fun. The program takes three wave files and calculates one output file (also wav). It doesn't matter what exactly happens, but the SAME binary generates a faulty output in 3 of 4 times.

Now I absolutely don't understand what happens and how the same binary with the same input data can deliver different output. What can cause this? What should I be looking out for? I use the FFTW library btw (just in case it has known issues).
>>
>>54166347
>Please, don't bully.
Consider this: nobody will be able to bully you ever again if you kill yourself.
>>
>>54166313
Free servers?
Neat.
And fortunately Java is what I'm learning to do servers for at the moment, though something like Phazer wouldn't be very good since I have to manage the game data based on quadtrees.
>>
>>54166354
>What can cause this
undefined behavior
>>
>>54166354
Post code.
>>
File: test3.webm (58 KB, 640x480) Image search: [Google]
test3.webm
58 KB, 640x480
>>54166327
Behold.
>>
>>54166347
Holy shit you're such a massive faggot.
>>
void __attribute__((optimize("O0"))) secure_wipe_memory(void *v, size_t n) {
static void *(*const volatile memset_sec)(void *, int, size_t) = &memset;


Holy shit.. how is zeroing out memory still an unsolved problem?
>>
>>54166413
It's a work or art.
>>
>>54166173
Of course not, imbecile. That is a cartoon.
>>
>>54166421
It's not.
>>
File: 1461330894823.jpg (30 KB, 316x202) Image search: [Google]
1461330894823.jpg
30 KB, 316x202
>tfw *love* C# and .NET but prefer Linux to Windows
>>
>>54166544
>mono
>>
>>54166579
I love Mono and I've used it since Mono 1.0 but it's not the same as having the entire Visual Studio and first-class citizens like WPF. Also all the web material like interesting blog posts, etc always assume Windows. Luckily there's .NET Core and ASP.NET 5 so the future is bright.
>>
File: l3lPkAE.png (56 KB, 739x494) Image search: [Google]
l3lPkAE.png
56 KB, 739x494
>>54166347
Explain this sorcery.

I think none of the answers are correct.

The first paragraph indicates that only 60% of the chocolate is going to be used in the first place, as 100 bars of 10g stamped each into 6g only equals 600g, thus the answer can be no higher than 60%.

The rest of the answer indicates that only taking full boxes would end up being around 48% of the initial weight.
>>
>>54166624
Unfortunately, the best development tool is still the full Visual Studio, but VS Code has really come a long way.

I'm in the same boat as you, so I just program on my Windows box.
>>
>>54166402
It's 400 lines of terrible C code, I don't think you want to dig through that.
>>54166380
Could you explain that?
>>
>>54166712
>Could you explain that?
Which one of the words troubles you?
>>
>>54166354
>>54166712
>I wrote a horrible program in an unsafe language and it's doing something weird
Okay, post your code, let us look so we can help you.
>lolno its really bad just use telepathy
>>
>>54166712
>I don't think you want to dig through that.
Better than leaving us guessing.
>>
It's semi-related but I need to find an email provider which works without base64 attachments, so I can send patches.
>>
>>54166624
UI in HTML
>>
>>54166770
>>>/g/sqt/
>>
i fucking give up, i'm tired of trying to get this thing to work
>>
File: muidem.jpg (3 KB, 64x64) Image search: [Google]
muidem.jpg
3 KB, 64x64
>>54166663
>despatch
>Britsh
58% brainiac, if you round up 57.6
600g / 24g(bag) = 25 bags
24 bags are shipped. 1bag of 24g is eaten by migrant workers.
you shipped 576g out of 1000g.
>>
>>54166770
that's a client setting, dufus!
>>
File: 1422394896484.jpg (740 KB, 728x2080) Image search: [Google]
1422394896484.jpg
740 KB, 728x2080
>>54166663

1000g / 10g = 100 rectangles

100 rectangles -> 100 disks of 6g

4 disks per bag -> 100 disks / 4 -> 25 bags

6 bags per box -> 25 bags / 6 -> 4 boxes (discard 1 bag)

at the end we have 4 boxes * 6 bags * 4 disks * 6g chocolate = 576 g (~58% of 1kg)
>>
>>54166830
>>54166839
Oh fuck me, I divided the 100 disks by 6 for 15 bags.

This is why I rubber duck debug.
>>
>>54166806
No one answered there, so I figured someone here might have had sent patches over email before, so he might know.
>>
>>54166836
Yeah but gmail doesn't have this setting so I instead of trying multiple providers, I figured I could ask
>>
>>54166885
you're beyond help
>>
>>54166916
Thanks man! Instead of being an ass can you fucking help me. If you can't just stfu
>>
>>54166954
>namefagging in the wrong thread
oh shit
>>
>>54166937
can you read? how can I fucking help you when you're beyond help?
>>
>>54167002
oh god...
>>
>>54166340
Took me some time, but if I understood it right then
(RTN_TYPE (*) (ARG) FUNC)

is the general syntax of a function pointer cast.

Anyways, thanks!
>>
>>54167066
Messed up the parentheses.
>>
>>54166347
>http://www.kent.ac.uk/careers/tests/computer-test.htm

Did you even read the fucking page you linked?
>As mentioned before, this test is for practice only, so you should not regard your result as of importance chiefly because the test was not taken under proper test conditions

Nice certification bud.
>>
On a C++ Console Application is it possible to make a text editor?

I'm on windows
>>
>>54167370
https://github.com/Bill-Gray/PDCurses
>>
>>54167370
What is Vim?
>>
>>54167481
i don't know
>>
>>54167481
A text editor.
>>
>>54167510
That's right!
>>
>>54167481
an inferior emacs knockoff
>>
>>54166047
I'd like some help on this too

can WAMP64 with an apache server be used for a personal website?

this is probably a pants-on-head retarded question but I'm brand new to this shit, I'd like to get my own development server up and running so I can test things for real
>>
>>54167522
>inferior
why would you run vim from within emacs?
>>
I'm just revising Python on codecademy. Isn't using triple quotes for multi-lined comments pretty bad, considering it could potentially create a string?
>>
>>54167566
python in general is "pretty bad"
>>
>>54167566
Not if you don't assign it to anything.
>>
>>54167566
no it's the same thing as docstrings in C#/Java, which is basically putting XML at the top of your code
>>
File: ௵.jpg (21 KB, 372x260) Image search: [Google]
௵.jpg
21 KB, 372x260
>>54167566
>python "teachers" give you absolutely fucking awful advice and reinforce bad habits
>python is an incredible language full of opportunities
>python "experts" so stuck on their shitty memeways and syntax special snowflakes that they can't write efficient code


why
>>
>>54167603
Eh, it has it's uses, just like everything.
>>
>>54167634
>the python reinforces bad habits
Python is easy to learn for budding "coder dudes" and "coder girls" and literally spoils new programmers with syntactic sugar.
>>
any visual studio extensions you would recommend?
>>
>>54167742
VsVim
Resharper
>>
>>54167742
R#, VA X
>>
Hey guys I'm trying to write a function to write current time:

 

string currentTime = DateTime.Now.Year.ToString() +
DateTime.Now.Month.ToString() +
DateTime.Now.Day.ToString() +
DateTime.Now.Hour.ToString() +
DateTime.Now.Minute.ToString() +
DateTime.Now.Second.ToString();



Is there a better / faster way to do this ? Seems a little bit verbose :\
>>
File: mememancer.png (118 KB, 410x410) Image search: [Google]
mememancer.png
118 KB, 410x410
I just learned my first bit of code, lads. I feel like some sort of wizard now.

>2.next.next.even?
>>
>>54167767
>>54167778
thx senpai(s), i'll check them out
>>
>>54167767
>>54167778
Resharper gives me cancer.

I didn't really want to fuck with it that much, but out of the box it did some neat things but felt very invasive.

I'll take a look at Visual Assist.
>>
Should I learn at least the basics of command line?
>>
>>54167850
Yes, for whatever OS your use as a daily.

Sometimes it's easier to use a shell over GUI.
>>
>>54167849
>Resharper gives me cancer
then you're obviously retarded
>>
File: screenshot_486.png (220 KB, 1133x807) Image search: [Google]
screenshot_486.png
220 KB, 1133x807
>looking for useful extensions
>find this
what do?
>>
>>54167813
https://msdn.microsoft.com/en-us/library/zdtaw1bw(v=vs.110).aspx
>>
>>54167871
Install it, obviously.
>>
>>54167871
Windows wins again. Freetards BTFO.
>>
>>54167849
>Resharper gives me cancer
obviously you haven't worked on a major C# project
>>
File: screenshot_487.png (28 KB, 818x176) Image search: [Google]
screenshot_487.png
28 KB, 818x176
the author is pretty cute
>>
>>54167870
>>54167898
I didn't use it long.

What are the major benefits with ReSharper in large projects?

I've worked on some fairly large stuff and wading through the code was pretty cumbersome, as it was a codebase I inherited.

I'm not really shit-talking ReSharper, I just personally didn't end up utilizing it to its potential.
>>
>>54167897
WEEABOO
E
E
A
B
O
O
>>
>>54167898
>you haven't worked on a major c# project

and never will since nobody uses meme languages for real applications outside their flavour of the month one and one projects for school to impress retard professors

feel free to prove me wrong
>>
>>54167913
>it takes over ctrl+F

Was going to install this to show off my powerlevel at work, but not anymore.
>>
>>54167917
better intellisense, F12, refactoring, extensive code highlighting,...
>>
>>54167913
>What does Ctrl+F means?
more like literally retarded
>>
File: screenshot_488.png (119 KB, 1465x697) Image search: [Google]
screenshot_488.png
119 KB, 1465x697
>>54167883
i'm not sure about this, i don't like being watched like that
>>
>>54167969
MOTIVATION
>>
>>54167925
I work on major C# projects at my job. So that's at least one instance of C# being used for major projects.
>>
>>54167930
control + f works fine, dunno what that guy was talking about

>>54167978
t-to fap neee
>>
>>54167979
>meme applications where lol don't worry we can throw more CPU at it :^)))

Your company is stuck in old ways and will die like microsoft is
>>
>>54167925
>C#
>meme language
C# is one of the most used languages in the enterprise, NEET.
>>
>>54167997
>if it's used it's good

Android is the greatest operating system in the world then i agree
>>
>>54167999
>desperately moving the goalpost
lmao
>>
>>54167925
There are many internal enterprise applications written in C#.

It's the go-to language for .NET stack developers, considering its easy integrations with Active Directory, the OWA APIs, SQL Server, etc.

Most small and mid-size companies use Microsoft business products like Active Directory on a domain controller, as well as Exchange.
>>
>>54167997
>Enterprise™
>Not a meme

Pick one
>>
>>54167999
>if it's used it's good
Literally no one was talking about quality. You've managed to strawman and change the argument in one post.

Nice.
>>
>>54167997
>C#
>enterprise
>most used
bwahahahahahaha
>>
>>54168017
You cannot find a commercial application written in c# because it's a meme language used by enterprise hacks who can easily throw more CPU and call it a solution instead of learning to work with less and make more

There's a reason python/ROR is running wild in actual developer circles while 50 year old jerkoffs talk about muh .net framework thanks microsoft for your danke apis that make it so I don't need to learn how to code :^)
>>
>>54167990
I don't think you have any idea what you are talking about.

C# isn't just used because XD LE MOAR PROCESSING.

see >>54168026
>>
>>54167997
>most used
No, that would be JavaScript.
>>
>>54168026
>.NET stack developers
aka webfag codemonkeys
>>
>>54168054
see
>muh apis muh ease of use
>>54168048

Thanks microsoft for making programming so easy even hacks can pretend to be developers and extoll the virtue of centralized corporate languages
>>
>>54168045
Java is on it's way out m8

Unfortunately, the future lies in web interfaces and Javascript desktop applications.
>>
>>54168080
fuck off retarded shit memer

webshit is what's on its way out, fuck you
>>
>>54168048
>work with less and make more
$ less; make; more
Missing filename ("less --help" for help)
make: *** No targets specified and no makefile found. Stop.

Usage:
more [options] <file>...

Options:
-d display help instead of ringing bell
-f count logical rather than screen lines
-l suppress pause after form feed
-c do not scroll, display text and clean line ends
-p do not scroll, clean screen and display text
-s squeeze multiple blank lines into one
-u suppress underlining
-<number> the number of lines per screenful
+<number> display file beginning from line number
+/<string> display file beginning from search string match
-V display version information and exit

For more details see more(1).

what is this?
>>
>>54168048
>implying you need to know how "code" for python/ROR
>>
>>54168048
The enterprise is the biggest employer of software engineers. Your bank, your government, everything needs enterprise software. You're just an underage with no real job experience and probably not a single completed medium-sized project trying to give the rest of us lessons about how software should be built. It's pretty pathetic, m8. Also learn to use punctuation retard.
>>
>>54168091
.NET codemonkey so upset he can only shitfling

too bad there's no API that can argue for you either
>>
MUCH LAUGHINGS
>>
>>54168080
>Java
BWAHAHAHAHAHAHA
>>
>>54168048
>thanks microsoft for your danke apis that make it so I don't need to learn how to code
As moron as your post is, this statement actually proves the use of C# and .NET.

You don't have to spend a significant amount of time creating an integration piece that pulls data from various bits of the Microsoft stack.

It's incredibly valuable for small, agile internal projects.

There are many small to mid size companies that don't need to spend $50,000 on a small internal web-based application. A tech-savvy intern with a few weeks can easily get something together that serves the needs of the company without breaking the bank.


>>54168065
>misquoting
He said 'one of the most used', which is correct.
>>
>>54167997
M8 nobody is saying that C# is the worst or even a bad language, but it's still a giant meme.

You know, it's perfectly possible for people to dislike both C# AND Java.
>>
>>54168094
>can't name a single commercial application programmed in c# so he's upset and goes on a tirade
>muh enterprise is real business you're just a neet :^)

kill.self
>>
>>54168094
>The enterprise
>h
>e
>>
>>54168111
shitflinging

>>54168102
XDD XDD HE DOESN'T KNO HOW 2 CODE XDDDDDDD HAHAA RITE GUYS
>>
>>54168105
>You don't have to spend a significant amount of time creating an integration piece that pulls data from various bits of the Microsoft stack.
>It's incredibly valuable for small, agile internal projects.
>There are many small to mid size companies that don't need to spend $50,000 on a small internal web-based application. A tech-savvy intern with a few weeks can easily get something together that serves the needs of the company without breaking the bank.

so it's a crap memelanguage meant for corporate wannabes to shit out poorly designed and inefficient code

thanks for proving my point

haskell is more useful than fucking c#
>>
>>54168105
>said
>most used
>correct.
anon...
>>
>>54168088
>outdated Windows desktop developer detected
Get on with the times geezer.
>>
File: 1459694218489.jpg (86 KB, 509x501) Image search: [Google]
1459694218489.jpg
86 KB, 509x501
>>54168088
Your going to need atleast two citations on how "webshit" is on it's way out.

Please don't just pick the first two HN articles.
>>
>>54168105
>"He said" backpedaling
>>
>>54168132
>haskell
>useful
m8...
>>
>>54168099
not even the codemonkey

How does Python/RoR not spoonfeed you through "creating apps"

Are you really that high on xd le python meme
>>
>>54168146
>webshit
>animu mental illness
Checks out!
>>
>>54168179
>can't win argument
>XD ANIMOO XDDDDDD
>>
File: girls_laughing.jpg (43 KB, 600x363) Image search: [Google]
girls_laughing.jpg
43 KB, 600x363
>Hey anon, what are you doing?
>Oh, I'm just doing this quick data analysis/data entry tool for my company
>That's pretty awesome! Are you using a .sql script to securely and quickly parse?
>Actually all I know is the .net framework.. I've studied c# my whole life though!
>their reaction when
>>
>>54168170
>xd le
babies are not allowed in this subreddit
>>
>>54168194
>being this new
>>
>>54168190
>called out on his degeneracy
>XD DAMAGE CONTROL XDDDDDDDD
>>
>if you join our academy today you too can create such wide-ranging applications such as.. data reading with aero themes!
>>
>>54168202
>stale meme
lad...
>>
>>54168209
There is nothing wrong with being a degenerate.

How is this damage control? I'm still waiting on my 2 sources, now be a good boy and go get them.
>>
File: howilikemyfont.png (246 KB, 1620x1310) Image search: [Google]
howilikemyfont.png
246 KB, 1620x1310
Maybe you guys can help me with this.

I'm looking for a coding font.

What I want:
1 Legibility (l <=> I, 0 <=> O etc)
2 Pixel perfect (all vertical and horizontal strokes align to the pixel grid)
3 NOT a bitmap font, meaning it can still be antialiased
(4) A bold variation would be really cool, but it's not that important.

Pic related is an illustration of what I'm looking for. Left the vectorized glyph, right renderings. I would just do it myself, but I want to check whether somebody has done it already.
>>
>>54168217
PEDRO
COMPUTER NO WORKO
>>
>>54168217
>posts picture from 208
>c# is outdated
>>
>>54168111
I have personally developed C# applications, both web and desktop within mid-market organizations, ranging from construction to law firms. I've also written countless small automation pieces and simple data visualization GUIs for the occasional needy CEO.

One major software piece that is widely used by MSPs is LabTech. LabTech and its plugins are written in C#, as well as the hosted website that comes with the license.

I have worked with multiple development shops that do most of their contracted projects in MVC.NET.

I'm not trying to say that C# is the best language, or that it's even a great solution for many projects. Hell, I'm not even going to try to say that C# is 'efficient' or that the average developer is competent.

All I'm saying is that it IS in fact widely used, and is incredibly useful to most small- to mid-size organizations for rapid internal development.

I'd love for someone to prove me wrong, but I doubt anyone besides me in this thread actually has experience managing the financials and processes of at least a mid-size company.
>>
>>54168217
>what is domain logic
it's not c#'s fault you're retarded, let it go.
>>
>>54168237
>implying there's c# applications unironically written after 2008

enjoy sacrificing to the outer gods and begging the .net framework to actually work
>>
>>54168223
>nothing wrong with being a degenerate
mental illness confirmed
>>
>>54168239
>you can use c# to make.. automation scripts!

c# developers really do know how to push the cutting edge of language usage
>>
>>54168239
>I doubt anyone besides me
top fucking kek
>>
>>54168261
>unironically
double digit IQ confirmed
>>
File: c# the language of the future.png (71 KB, 1105x704) Image search: [Google]
c# the language of the future.png
71 KB, 1105x704
>muh enterprise usage
>>
>>54168146
>what is the dot com bubble
lmfao you think a six figure salary for no talent and no work put in is healthy

fucking retard
>>
>>54168284
I'm not sure how to respond to this post.

I think it's intentional trolling, but you may have actually posted this thinking that you're making some sort of point, or that your implications are correct in any way.

If it's intentional, is it ironic? To clarify, I think you're actually supporting the idea that C# is good for a wide variety of applications, such as the web applications and major MSP tool I mentioned in this post.

I just don't know with you people any more.
>>
>>54168298
>he relies on corporate .apis to write a fucking data entry program and calls someone else retarded

:^)
>>
>>54168329
>.apis
webcuck spotted
>>
>>54168325
so it's a meme language with no use outside of things that other languages do better and since you were a good enough goy to hold onto a fading language you decide it's better

that's called selection bias


thanks
>>
It doesn't matter is C# is a bad language or not. There are no other legitimate alternatives.

>inb4 java
>inb4 hasklel
>>
>>54168353
>no other language can possibly do what c# does

.net codemonkeys everyone
>>
>>54168353
>no other legitimate alternatives
webshits actually believe this
>>
>>54168353
>There are no other legitimate alternatives
VB.NET
checkmate :^)
>>
>>54168353
VB.net and C# give the same output, you can use either and get the same result
>>
>>54168370
How is C# webshit.

If we are talking ASP.NET then yes
>>
>>54168308
>Joomla 1.5x CMS Installation & Setup with MySQL
>200€

>Google Maps Plugin
>80 €
>>
>>54168370
>>54168366
You go guys, just shitpost a bit more and you'll prove him wrong!
>neets actually will believe this
>>
>>
File: fn93EYH.png (24 KB, 936x603) Image search: [Google]
fn93EYH.png
24 KB, 936x603
>>54168347
>with no use outside of things that other languages do better
No, I think you've misunderstood my explanation of C#'s popularity.

Even IF another language did something more efficiently (I'm not conceding this, merely hypothetically), it is likely much easier to do many things in the .NET stack in a shorter amount of time.

If you would like, we could go over some specific examples. You provide a solution in your favorite language, I'll provide a solution in C#.

Of course, the examples will involve integration with Exchange servers and Active Directory.

The reason being that over 90% of Fortune 1000 companies use Active Directory.
>>
>>54168407
Then your response will be
>I don't have an API that does that sorry :( you should use the right apis!

this is implying you're not a heavily butthurt microshill trying to convince people muh data entry is a highly specialized and hard to come by set of functions in a fucking programming language that uses much more resources than even java at its shittiest
>>
>>54168399
>maximum damage control
webshit got told
>>
>>54168431
I'm not entirely sure what you are trying to convey with this post.

I did not mention data entry at all.
>>
>>54168457
>all the applications you reference are data entry and then muh automation
>thinking this is something that only c# can do
>thinking c# does this in any way better than even ocaml or haskell or even goddamn c++


seriously gramps keep up with the modern times, c# is dead. you only use it because you seem to know alot of other butthurt old codgers who can't into new paradigms and not rely on premade corporate apis to do the majority of your legwork
>>
>>54168485
>c# is dead
Why do people keep saying this? I've heard this every year for the past decade. C# is among the best designed broadly adopted langugaes out there.
>>
>>54168231
Pretty much
>>
>>
Trying to solve exercise 17 of project euler - https://projecteuler.net/problem=17 And i'm getting an answer which is close but not quite right. Can anyone see a problem with it?

#include <stdio.h>
#include <string.h>

int tencharcount(int i);
int onecharcount(int i);
int hundredcharcount(int i);
int debug(int i);

char *base[] = {"one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten",
"eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen",};
char *tens[] = {"twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety",};


int main()
{
int charcount = 0;
for (int i = 1; i < 1001; i++) {
if (i >= 1 && i <= 19)
charcount += onecharcount(i);
else if (i >= 20 && i <= 99) {
charcount += tencharcount(i);
} else if (i >= 100 && i <= 999) {
charcount += hundredcharcount(i);
} else {
charcount += strlen("onethousand");
}
}

charcount += debug(666);

printf("Final character count: %d\n",charcount);
return 0;
}

int debug(int i)
{
int charcount = 0;
if (i >= 1 && i <= 19)
charcount += onecharcount(i);
else if (i >= 20 && i <= 99) {
charcount += tencharcount(i);
} else if (i >= 100 && i <= 999) {
charcount += hundredcharcount(i);
} else {
charcount += strlen("onethousand");
}
return charcount;
}

int onecharcount(int i)
{
if (i <= 0)
return 0;
int num = i % 20;
if (num == 0)
num += 20;
return strlen(base[num-1]);
}

int tencharcount(int i)
{
if (i < 20)
return 0;
int tmp;
if (i % 10 != 0)
tmp = onecharcount(i % 10);
int num = i /= 10;
return (strlen(tens[num-2]) + tmp);
}

int hundredcharcount(int i)
{
if (i < 100)
return 0;
int tmp;
if (i % 100 != 0)
tmp = tencharcount(i % 100);
int num = i /= 100;
return (strlen(base[num-1]) + strlen("hundred") + strlen("and") + tmp);
}
>>
>>54168536
forgot to comment out my debug, whoops
>>
>>54168485
I've specifically mentioned web applications for many different industries.

I never said that C# is the only language capable. My point is that C# allows less experienced developers to create internal applications quickly.

I even specifically said that other language may do some things more efficiently.

I don't understand why you are willfully ignoring my posts and vomiting retardation into this thread.

C# is objectively not 'dead'. If you'd like to provide an objective measurement of what qualifies as 'dead', then we can compare it to other languages based on your personal definition.

You're a silly person, almost cute. It's like a dog that keep barking, but you're enamored by the apparent effort.
>>
>>54168569
>C# is objectively not 'dead'

except real developers aren't using it because it's corporate trash go figure

enjoy having to debug and write all your c# yourself in ten years when everyone else is using real languages with proper paradigms that aren't based on muh ease of use and allowing pajeet codemonkeys to make lowest common denominator trash, which is incidentally always around the same quality as the highest quality c# program, which is strange, why is that again? is it because the programmers are terrible or the language is limiting and not efficient?
>>
Opinions on Nim? What do you think about it, have you used it? If so, for what?
>>
>>54168569
what are you doing. You just posted a serious reply to someone who proposed
>ocaml, haskell
to replace c# for developing windows enterprise applications. Are you seriously that desperate to prove a point to some faggot on the internet?
>>
>>54168600
Good movie, shitty language
>>
>>54168617
Why shitty?
>>
>>54168593
>except real developers aren't using it
But a lot of developers are. Maybe it's dead amongst whatever definition you have for "real developers" is, but it pretty incredibly popular as langugaes go.
>>
>>54168593
>no new application in c# in ten years
wanna bet your unemployed ass on that, friend-o?
>>
>>54168605
>Are you seriously that desperate to prove a point to some faggot on the internet?
4chan
>>
>>54168516
>C#
>best designed
wew laddie
>>
>>54168605
I'm trying to get him to respond more, as I'm learning a bit of why some under-educated NEETs have trouble understanding software that isn't public-facing.

>>54168593
Current outlooks for C# show a recent increase in popularity.

Why do you think C# will be less popular 5 years from now? Ten years from now?

Do you know something that the industry doesn't?

What is a 'real developer'? If you personal definition of a 'real developer' is literally 'a developer who doesn't use C#', then I suppose you're exactly right. I suppose I could also stand here and say that my definition of a star is green and moist, but I doubt anyone would agree with me on that.
>>
>>54168653
among the best designed yes. What widely adopted language do you think is better?
>>
File: Untitled0.jpg (119 KB, 300x376) Image search: [Google]
Untitled0.jpg
119 KB, 300x376
>>54168605
>ocaml
>implying it cannot do anything
>>
>>54168653
haskell wouldn't steal ideas from badly designed languages now, would it?
>>
>>54168674
What did haskell adopt from C#? I'm curious
>>
>>54168622
Just kidding it's actually pretty sweet as a c++ language. I looked up some benchmarks and oh look people still think Java is a good language... kek
>>
>>54168627
>>54168637
>>54168656
>maybe if we shill hard enough people will believe us about our dead language being le best :^)
>>
>>54168667
>think
know
>>
>>54168694
*c++ alternative
>>
>>54168697
If I was anywhere but 4chan, I would believe this post is clever irony. However, it is likely that you're series, which is also humorous.
>>
>>54168674
>haskell
top kek
>>
>>54168725
>owever, it is likely that you're series, which is also humorous.


c# defence force confirmed for pajeet codemonkeys who are afraid of the microsoft spigot going away
>>
>>54168694
>looked up some benchmarks
confirmed "professional" :^)
>>
>>54168681
my internet is lagging as fuck so I can't look it up rn, as far as I remember it was mentioned in the 'haskell is useless' video. Some features of list comprehension I think? It's something minor though, I was mostly memeing.
>>
File: argument-typo.jpg (32 KB, 735x541) Image search: [Google]
argument-typo.jpg
32 KB, 735x541
>>54168746
>>
>>54168697
No one claimed C# was the best. Simply that it is good.

>Mudscum turk
Country that spent 8 billion euro on giving every pupil in every school in the country shitty broken android tablets lecturing anyone on technology..
>>
File: le just pretending meme.jpg (26 KB, 349x642) Image search: [Google]
le just pretending meme.jpg
26 KB, 349x642
>>54168766
>>
>>54168755
https://github.com/kostya/benchmarks
>>
>>54168784
he wasn't pretending, he was pointing out how retarded you are?
>>
>>54168784
Again with the unintentional irony.
>>
>>54168777
>>Mudscum turk
>Country that spent 8 billion euro on giving every pupil in every school in the country shitty broken android tablets lecturing anyone on technology..

Actually pajeet, the point is the only C# applications you'll find nowaday are made by subhuman mongrels who can't write in a real language.


of course I only found this out accidentally today because you've forced me to look up who is actually making c# applications nowadays

strange how it's fucking foreigners
>>
>>54168790
Looks like Nim is actually the best language. Fuck you guys.
>>
>>54168817
Were you looking for Reddit?
>>
>>54168823
>who can't write in a real language.
Such as?
>>
>>54168852
Not c#
Not java
>>
>>54168871
you don't know do you?
>>
New Thread:

>>54168873
>>54168873
>>
>>54168885
The only language that isn't absolutely useless that isn't c# or java is c++.
>>
>>54168907
Is it possible that you're retarded?
>>
>>54168910
So C++ is the only "real language"?
>>
>>54168527
>Pretty much
not at all
>>
>>54168885
>if someone shatters my worldview I have absolutely no alternatives!

.net codemonkeys in a nutshell, I already mentioned c++ about 50 replies ago you shill faggot
>>
>>54168907
Literally less than 230 posts ITT, retard.
>>
>>54168932
So C++ is the only "real language"?
>>
>>54168918
If c++ got a decent GUI library it would be the most popular language
>>
>>54168944
>shill not resorting to tedious wordsmithing

No, but it's the real version of the c# trash you pretend to code with
>>
>>54168932
>he thinks he's shattering anyone's worldview with his inane shitposting
>>
>>54168103
>>54168133
>>54168165
>>54168221
>>54168344
>>54168438
Still going full-force with your faggotry, huh retard?
>>
>>54168927
o rly
>>
>>54168946
Yes, but it doesn't. So it's not. This is one of many reasons people prefer C# for certain projects.
>>
>>54168952
C++ and C# serve entirely different purposes, anon.

A real programmer would be able to adequately write in both of these.
>>
>>54168962
We really don't need another tripfaggot in here. Might I suggest the watch thread?
>>
>>54168600
Got into it but using wrappers for C(++) APIs and libs is a pain in the ass, I'm too noob for this I guess
>>
>>54168824
>Nim
>best
fucking children everywhere
>>
>>54168946
There is barely a language that has a decent GUI library but there are still a fuckton of popular languages. Qt is as decent as GUI usually gets.
What c++ needs is refactoring of all the baggage from c and iterative development.
>>
>>54168962
>hurrdurr my language needs to spoonfeed me apis or I can't do it
>excusing a genuinely bloated library and resource system because you're so stuck in your 90's-era muh enterprise language

This is why computer companies die, becaue of thinking like yours getting set then not realizing what you think is set in stone is based on sandy foundations

c# has always been bottom of the gutter enterprise shit-it-out-as-fast-as-you-can trash, now compounded by the fact they shovel enterprise work to foreigners and boom, you have a need for a wide based yet shallow language with no further reaching applications

I hate retards like you

.net codemonkeys in a nutshell
>>
>>54166624
This. C# devs seem to think that using mono and becoming a second class citizen is a fun development experience. Anyone who develops C# for non-windows will suffer a number of painful setbacks and will eventually drop it for a less windows-centric language.
>>
>>54168954
thanks for the (You)s
now fuck off
>>
>>54168997
>hurrdurr my language needs to spoonfeed me apis or I can't do it
What are you referring to exactly?
>>
>>54168975
I know you are, but what am I? :^)
>>
>>54169008

You seem highly asshurt.
>>
>>54169009
You need to be 18+ to visit this web site.
>>
>>54169023
> being this new
>>
>>54169017
interesting
>>
>>54168995
Qt is decent except no one will use it because of it's dogshit licensing
>>
>>
>>54169032
>DELETE THIS
m80...
>>
>>54169036
How is it dogshit? Isn't it "do whatever the fuck you want with your code using qt as long as you link dynamically"?
Thread replies: 255
Thread images: 39

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.