Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
deafboy

Programmers Lounge

Recommended Posts

On 6/6/2018 at 2:29 AM, cluelessgenius said:

anyone interessted in helping me get some progres on a c# project of mine?

ALFHEIM its called and im basically trying to combine asus aura, philips hue app, corsair link, g.skill.....you get the point its for controlling all the light in your appartment in one place instead of having 20 different tools from each oem. link is in my signature.

 

I would be much more Impressed with this running C++. Not a big fan of c# even though I have written in a few occasions because of the microsoft's lock to running .net on windows. I know in the next post you mentioned Qt. That would be a great place to do it with Qt's frameworks supporting an absurd amount of cross-compatibility. Maybe google around as well, This is probably a pretty common idea with how popular it is so there might be people working on the same thing. You could link up with them, share ideas and help each other finish it.

Link to post
Share on other sites
On 7/19/2018 at 3:20 PM, Wildstingray said:

Not a big fan of c# even though I have written in a few occasions because of the microsoft's lock to running .net on windows.

There's Mono for OSes that don't have support for or don't want to support .NET. Though I'm not sure how much of a good replacement it is.

Link to post
Share on other sites
On 8/7/2018 at 10:47 AM, M.Yurizaki said:

There's Mono for OSes that don't have support for or don't want to support .NET. Though I'm not sure how much of a good replacement it is.

The day when Microsoft C# and .Net framework became synonymous with cross platform compatibility is also the day when hell will freeze over and entropy will overcome strong nuclear force and dissolve everything. 


Sudo make me a sandwich 

 

Check out my guide on creating your own private cloud storage

 

Link to post
Share on other sites
2 hours ago, wasab said:

The day when Microsoft C# and .Net framework became synonymous with cross platform compatibility is also the day when hell will freeze over and entropy will overcome strong nuclear force and dissolve everything. 

.NET itself isn't going to break out of Microsoft platforms because it's Microsoft's implementation of CLI. For everyone else, there's Mono and other implementations of CLI. C# can be considered the language for CLI, which I should point out that C# has both an ISO and ECMA number.

 

Meaning anyone can develop an app in C# without licesening from Microsoft and they can run it on any platform that supports either .NET, Mono, or some other CLI implementation. Unity is an example of this, it uses C# that runs on Mono (I believe)

 

As a side example of this idea, when Oracle sued Google, they didn't sue them for using the Java programming language. They sued them because Oracle thought Google blatantly copied the JVM implementation even though Google made their own Java runtime implementation.

 

EDIT: Part of becoming a standard means submitting the technology to this https://en.m.wikipedia.org/wiki/Reasonable_and_non-discriminatory_licensing

Edited by M.Yurizaki
Link to post
Share on other sites
2 hours ago, M.Yurizaki said:

.NET itself isn't going to break out of Microsoft platforms because it's Microsoft's implementation of CLI. For everyone else, there's Mono and other implementations of CLI. C# can be considered the language for CLI, which I should point out that C# has both an ISO and ECMA number.

 

Meaning anyone can develop an app in C# without licesening from Microsoft and they can run it on any platform that supports either .NET, Mono, or some other CLI implementation. Unity is an example of this, it uses C# that runs on Mono (I believe)

 

As a side example of this idea, when Oracle sued Google, they didn't sue them for using the Java programming language. They sued them because Oracle thought Google blatantly copied the JVM implementation even though Google made their own Java runtime implementation.

 

EDIT: Part of becoming a standard means submitting the technology to this https://en.m.wikipedia.org/wiki/Reasonable_and_non-discriminatory_licensing

.net frameork is just a knock off java. Its class library mirrors java standard api and its CLR is just a mediocre java style virtual machine that so far supports Windows only. JVM and JDK has versions in nearly all platforms. BSD, Linux, Windows ect. There is mono but that is open sourced. The propietary .net is still Windows only. 

 

Crossplatform is meaningless if app can be ported easily. Using cross platform API like qt for example allows developers to cross compile. Porting an app to and from winodws will then just be a matter of finding the right C++ complier for the platform and compiling. No code rewrite needed.

 


Sudo make me a sandwich 

 

Check out my guide on creating your own private cloud storage

 

Link to post
Share on other sites
25 minutes ago, wasab said:

.net frameork is just a knock off java. Its class library mirrors java standard api and its CLR is just a mediocre java style virtual machine that so far supports Windows only. JVM and JDK has versions in nearly all platforms. BSD, Linux, Windows ect. There is mono but that is open sourced. The propietary .net is still Windows only. 

The .NET framework isn't a programming language so I don't understand why you're comparing it to one.

 

But then again, I don't seem to understand your original post anymore other than you just wanted to shit on Microsoft. At which case I don't really see a point in continuing this discussion. ¯\_(ツ)_/¯

Link to post
Share on other sites
10 hours ago, M.Yurizaki said:

The .NET framework isn't a programming language so I don't understand why you're comparing it to one.

 

But then again, I don't seem to understand your original post anymore other than you just wanted to shit on Microsoft. At which case I don't really see a point in continuing this discussion. ¯\_(ツ)_/¯

.net is a framework. Java is a programming language but ALSO a framework. Java has JRE(java runtime environment) which contains the java virtual machine. .net had the common langauge runtime which contains it's own virtual machine. So how can I not compare the two? 

 

I said .net is Windows only and is meant for Windows only. It's main feature is to allow the ability to compile several langauges to MSIL wherears that java JRE compiles only the java porgramming lanagugae to byetecode (although anyone can write their own compiler to compile other langauges, see Jython) but with corss platform capability in mind.

To say .net can become as main stream as java Enterprise on none Windows platform is silly.

 


Sudo make me a sandwich 

 

Check out my guide on creating your own private cloud storage

 

Link to post
Share on other sites
On 8/16/2018 at 10:48 AM, wasab said:

.net is a framework. Java is a programming language but ALSO a framework. Java has JRE(java runtime environment) which contains the java virtual machine. .net had the common langauge runtime which contains it's own virtual machine. So how can I not compare the two? 

 

I said .net is Windows only and is meant for Windows only. It's main feature is to allow the ability to compile several langauges to MSIL wherears that java JRE compiles only the java porgramming lanagugae to byetecode (although anyone can write their own compiler to compile other langauges, see Jython) but with corss platform capability in mind.

To say .net can become as main stream as java Enterprise on none Windows platform is silly.

 

That's true, .net framework is windows only when it come to runtime.

But the users can be cross platform. Most clients request web applications these days and ASP.net can feed virtually any devices.

 

If you code simple apps, sometime you can only open up Mono or Xamarin to add the classes from the .net framework project and compile for cross platform. Especially libraries. Interface that's another story. I even had c# code librairies we brought over to Java and all we had to do is mass find replace of "string" to "String".

 

I personally love both language and still use both daily. .Net is more complicated for setting cross platform but Java is more complicated when it comes to UI.

Link to post
Share on other sites
14 hours ago, Dat Guy said:

I am currently evaluating the TECO text editor and I am amazed: it even outperforms ed in terms of speed and resource usage. And someone wrote a visual version of it. Nice!

If you like TECO, then you should check out Emacs.  It was originally written entirely in TECO macros.

Link to post
Share on other sites
9 hours ago, Dat Guy said:

Emacs has been my default IDE since 2013. But there's no TECO left in the GNU version. 

Indeed.  I had no idea that TECO still existed in any modern capacity, though.

Link to post
Share on other sites

Is anyone a freelancer here? i'm looking for tips for getting new clients, my expertise is fair niche (Elixir/Phoenix/React)

Link to post
Share on other sites

So I discovered this mildly interesting puzzle while writing a reply to a topic about list comprehensions in python.

The general idea behind a list comprehension is that any loop or series of nested loops can be made into a list comprehension if the following holds: Any for loop can be made into a list comprehension provided that it only contains another for loop, or for the final for loop, a single statement that appends something to a list.

To try to figure out if there are other patterns that can be transformed into a list comprehension, I set out to create a list that can't be generated by the above pattern of for loops:
 

nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
tmp = []

for i in nums:
  tmp.append(i * 2)
  
  for j in tmp:
    tmp.append(i * 3)
    
print(tmp)


This program does not generate the output one would expect at first glance. Why?

Hint:

Spoiler

Does the program generate any output at all? Why or why not?


Bigger hint:

Spoiler

Please don't blame me for what happens if you run this on your host OS. If you are adamant that you must do that please atleast save your work first.

 


"Ultimately, saying that you don’t care about privacy because you have nothing to hide is no different from saying you don’t care about freedom of speech because you have nothing to say." ~Verax

Link to post
Share on other sites
On 11/20/2018 at 11:39 AM, rewird said:

Is anyone a freelancer here? i'm looking for tips for getting new clients, my expertise is fair niche (Elixir/Phoenix/React)

well idk how it works in australia but here a lot of freelancers are listed with different recruiting companys that broker projects for them and get a fee from the companies offering the project. 


"I know its stupidly overdone and unreasonably unneccesary but wouldnt it be awesome if ..."

 

CPU: Delidded i7 7700k (watercooled) Cooling: 3x 360 rads by Alphacool  MB: ASUS z270i  RAM: G.Skill Trident Z RGB 16GB  GPU: MSI GTX1080 Ti Aero @ 2 GHz (watercooled)  DISPLAY: LG 34UC88-B 21:9 1440p SSD(OS): Samsung 960 EVO 250GB SSD(Games): Corsair MP510 960GB SSD(Applikations): Samsung 850 EVO 500GB  HDD(Scratch): WD Blue 500GB HDD(Downloads): WD Blue 320GB HDD(Long-term): WD Green 2TB (external)   PSU: Corsair SF750 Case: Lian Li PC-O11 D Mouse: Logitech MX Master Keyboard: Logitech G513 Carbon

 

Link to post
Share on other sites

Hey all, 

 

I wanted to add to this topic and aim it towards people that are looking at taking that first leap into programming. There might be a few posts that are already relating to this subject, but I thought I would share some of my opinions, that is based on my experience so far. I'm currently finishing the second year of my degree and enjoying all the coding projects that I have done so far. 

 

Anyway, the question that most people always ask is "What language should I learn" - I know this to be true because before I learnt any language, I spent days trying to find the correct starting point. I really don't think it matters too much where you start, because once you learn your first language, it seems relatively easy to switch to another language.  My personal route of learning has gone a little like this, as I change my mind on my future career.

 

Python >> Javascript (Front-End) >> C++ (Didn't get very far) >> HTML/ CSS (Don't skip the basics) >> Javascript (Back-End) ----- As I try to become a full stack web developer. 

 

Moving on to my best way of learning to code, I have found that using the following helps the most:

  1. Udemy
  2. You-Tube
  3. Stack Overflow
  4. Learning to Google correctly
  5. Community advise 

The biggest tip that I have got so far is, don't try to learn everything, you will never learn every line of code/ methods etc. Just find good resources to use and bookmark them for reference, instead just try to learn the reasons why you're doing something and find your own style of coding. I also made my self a website, to host all my coding projects, it's nice seeing how basic my applications or webpages were at the start and how far I have come since. 

 

Anyway, hope this helps. Enjoy coding. 


console.log("It's not a bug – it's an undocumented feature.");
Link to post
Share on other sites

Howdy.

I am developer from Serbia. Self tought(books mostly) and some courses. 
Working as developer for last 2 years.
I started computer science at coledge last year, but I dont find it useful, since I know most of the stuff that we learn there...  so I am thinking of dropping out. 

I work mostly in python\django. 
Javascript/html/css comes with the territory. 

Thinking about improving on node.js. 

 

Mostly dedicated into learning cython last few days.



 

Link to post
Share on other sites

Im beginning a computer science class this year and was wondering what I should be practicing in my free time to better assimilate myself into my potential future jobs.

Like to prepare myself for the class I've been refreshing myself in C# scripting and building games in Unity mostly because it's fun and it's a constricted medium that allows me to just code and not have to think too much about what to code, and a few automation scripts to make my computer use a bit more streamlined. 

 

The Class teaches an Object oriented programming language(don't know which one), HTML ,JavaScript , SQL, PHP and other more general computer/IT skills but I want to know what else I should be doing, what wont school teach me that would be useful to know and look good on a resume


Why do you always die right after I fix you?

 

Link to post
Share on other sites
On 6/7/2019 at 10:05 AM, RainColt said:

-snip-

I suggest taking a look into functional programming. It's a very different way of looking at how to program, but it leads to very elegant code and is being adopted more and more. Newer versions of Java got anonymous functions and some list operations, and Google made actually replaced Java as the default Android language with Kotlin, which is more or less Java with actual functional programming support.

 

My favorite is Scala, but for learning more pure functional programming Haskell is kind of the default.


"Do as I say, not as I do."

-Because you actually care if it makes sense.

Link to post
Share on other sites

Over the years I've had a number of languages I've done... but they've all kind of blended in to each other....

basic->assembly->qbasic->visual basic->fortran->VB6->c/c++->html/css/javascript->python->COBOL->VB.NET->PHP->C#  (by total accident... I THOUGHT I was doing a VB.NET program, it compiled, and ran, but it was a C# program!  I was so used to other languages, I was writing in a hybrid javascript/php/c like way and it "worked" with tooltips lol.  Been in C# ever sense.  And I probably left out a few that I hated or didn't do much in too... because I know there were more.

 

Well... and with xamarin since it's in .NET, and in the .NET core for linux things to an extent.  But also do database development, TSQL based things... so there's that too.

 

The thing is, I find most of the programming languages to "look similar" anymore...

Link to post
Share on other sites

Some of my proudest achievements in programming:

My first ever program (made 2009 when I was 6. Written in batch)

<more apps I cannot remember>
My first ever discord bot (made 2017? 2018? written in JavaScript)
My first and second pip packages for Python (Kamojipy and Hewwwo. Finished both within the last few weeks)
Twittdesk (https://github.com/HatingLife576/twittdesk, early 2019, first USEFUL application, now abandoned like that github acc)
Lazypax (https://github.com/novuspax/Lazypax, my first ever "product" for Novuspax (which is my software org), made 2019)
------

I just love programming and I want to make more and I of course plan too.

 

Link to post
Share on other sites
13 minutes ago, SafyreLyons-5LT said:

Some of my proudest achievements in programming:

My first ever program (made 2009 when I was 6. Written in batch)

<more apps I cannot remember>
My first ever discord bot (made 2017? 2018? written in JavaScript)
My first and second pip packages for Python (Kamojipy and Hewwwo. Finished both within the last few weeks)
Twittdesk (https://github.com/HatingLife576/twittdesk, early 2019, first USEFUL application, now abandoned like that github acc)
Lazypax (https://github.com/novuspax/Lazypax, my first ever "product" for Novuspax (which is my software org), made 2019)
------

I just love programming and I want to make more and I of course plan too.

 

interested in the discord bot.

i never looked into their sdk/api 

what exactly have you done with it?

i personally would love a way to catch incoming calls to me and maybe even start outgoing calls programmatically. oh and watching for specific people coming online would also be interesting. anything like that possible at all?


"I know its stupidly overdone and unreasonably unneccesary but wouldnt it be awesome if ..."

 

CPU: Delidded i7 7700k (watercooled) Cooling: 3x 360 rads by Alphacool  MB: ASUS z270i  RAM: G.Skill Trident Z RGB 16GB  GPU: MSI GTX1080 Ti Aero @ 2 GHz (watercooled)  DISPLAY: LG 34UC88-B 21:9 1440p SSD(OS): Samsung 960 EVO 250GB SSD(Games): Corsair MP510 960GB SSD(Applikations): Samsung 850 EVO 500GB  HDD(Scratch): WD Blue 500GB HDD(Downloads): WD Blue 320GB HDD(Long-term): WD Green 2TB (external)   PSU: Corsair SF750 Case: Lian Li PC-O11 D Mouse: Logitech MX Master Keyboard: Logitech G513 Carbon

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×