Jump to content
Phishing Emails & YouTube Messages - Fake Giveaway Read more... ×
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 

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 

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 

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.

 

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: Intel i7 7700k Cooling: Stock cooler (temporary)  MB: ASUS z270i  RAM: G.Skill Trident Z RGB 16GB  GPU: MSI GTX1080 Ti Aero  DISPLAY: LG 34UC88-B 21:9 1440p SSD(OS): Samsung 960 EVO 250GB SSD(Games): Samsung 840 EVO 250GB  HDD(Scratch): WD Blue 500GB HDD(Downloads): WD Blue 320GB HDD(Long-term): WD Green 2TB (external)   PSU: Corsair SF600 Case: Lian Li PC-O11 Dynamic

 

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

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


×